]> git.baikalelectronics.ru Git - kernel.git/commit
net: handle NULL ->poll gracefully
authorChristoph Hellwig <hch@lst.de>
Fri, 29 Jun 2018 13:37:24 +0000 (15:37 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 29 Jun 2018 13:51:51 +0000 (06:51 -0700)
commit1455bf6bed9e3ceffc9684053be38cbbd335515b
treef66935ea26b2e23e1fcf0c75324e4e78afdc673b
parentfee563ebb03056e7199e579bf7d7c2f997a9b23c
net: handle NULL ->poll gracefully

The big aio poll revert broke various network protocols that don't
implement ->poll as a patch in the aio poll serie removed sock_no_poll
and made the common code handle this case.

Reported-by: syzbot+57727883dbad76db2ef0@syzkaller.appspotmail.com
Reported-by: syzbot+cdb0d3176b53d35ad454@syzkaller.appspotmail.com
Reported-by: syzbot+2c7e8f74f8b2571c87e8@syzkaller.appspotmail.com
Reported-by: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
Fixes: 5bdec0811f4d ("Revert changes to convert to ->poll_mask() and aio IOCB_CMD_POLL")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
net/socket.c