Skip to content

Commit b8350cd

Browse files
committed
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace
Pull si_code fix from Eric Biederman: "When sorting out the si_code ambiguity fcntl I accidentally overshot and included SIGPOLL as well. Ooops! This is my trivial fix for that. Vince Weaver caught this when it landed in your tree with his perf_event_tests many of which started failing because the si_code changed" Quoth Vince Weaver: "I've tested with this patch applied and can confirm all of my tests now pass again" Fixes: d08477a ("fcntl: Don't use ambiguous SIG_POLL si_codes") * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace: fcntl: Don't set si_code to SI_SIGIO when sig == SIGPOLL
2 parents 94686c3 + 54640d2 commit b8350cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/fcntl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ static void send_sigio_to_task(struct task_struct *p,
749749
* specific si_codes. In that case use SI_SIGIO instead
750750
* to remove the ambiguity.
751751
*/
752-
if (sig_specific_sicodes(signum))
752+
if ((signum != SIGPOLL) && sig_specific_sicodes(signum))
753753
si.si_code = SI_SIGIO;
754754

755755
/* Make sure we are called with one of the POLL_*

0 commit comments

Comments
 (0)