Skip to content

Commit d66fa9e

Browse files
Tom Herbertdavem330
authored andcommitted
strparser: Call sock_owned_by_user_nocheck
strparser wants to check socket ownership without producing any warnings. As indicated by the comment in the code, it is permissible for owned_by_user to return true. Fixes: 43a0c67 ("strparser: Stream parser for messages") Reported-by: syzbot <syzkaller@googlegroups.com> Reported-and-tested-by: <syzbot+c91c53af67f9ebe599a337d2e70950366153b295@syzkaller.appspotmail.com> Signed-off-by: Tom Herbert <tom@quantonium.net> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 602f7a2 commit d66fa9e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/strparser/strparser.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ void strp_data_ready(struct strparser *strp)
401401
* allows a thread in BH context to safely check if the process
402402
* lock is held. In this case, if the lock is held, queue work.
403403
*/
404-
if (sock_owned_by_user(strp->sk)) {
404+
if (sock_owned_by_user_nocheck(strp->sk)) {
405405
queue_work(strp_wq, &strp->work);
406406
return;
407407
}

0 commit comments

Comments
 (0)