You lost all the original signed-off-by lines of the original, AND you lost the authorship of the original commit. And you didn't cc: anyone involved in the original patch, to get their review, or objection to it being backported.
Sorry for the rookie mistakes. I drafted another version and it is attached to the email. Can you please check whether it is OK?
Also, how did you test this change? is this something that you have actually hit in real life?
Yes. I encountered this when testing the latest v5.10.y branch. A minimal proof-of-concept code looks like this: ~~~ #include <stdio.h> #include <stdlib.h> #include <fcntl.h> #include <unistd.h>
int main(void) { int fd = open("/sys/kernel/config", 0);
if(!fork()) { while(1) lseek(fd, SEEK_CUR, 1); } while(1) unlinkat(fd, "file", 0);
return 0; } ~~~