]> git.baikalelectronics.ru Git - kernel.git/commit
strparser: Call sock_owned_by_user_nocheck
authorTom Herbert <tom@quantonium.net>
Thu, 28 Dec 2017 19:00:44 +0000 (11:00 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Dec 2017 19:28:22 +0000 (14:28 -0500)
commit3af2becb76e40d3c3948f10043a869ce0c4bc8a4
tree832c9d8b395b29e905c8dd0f32003730c330177a
parent3f2a3c99d77cd97905680c17eb7919c260851c9d
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: 0310cbc8394aebb1 ("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>
net/strparser/strparser.c