Re: [PATCH] tipc: fix shutdown() of connectionless socket

2020-09-03 Thread David Miller
From: Wouter Verhelst Date: Thu, 3 Sep 2020 14:05:15 +0200 > That's fine, because NBD doesn't deal with SOCK_DGRAM sockets anyway > (i.e., passing a SOCK_DGRAM socket to the NBD device is undefined > behavior). Then why doesn't NBD simply reject such sockets?

Re: [PATCH] tipc: fix shutdown() of connectionless socket

2020-09-03 Thread Wouter Verhelst
On Thu, Sep 03, 2020 at 08:57:01PM +0900, Tetsuo Handa wrote: > On 2020/09/03 20:31, Wouter Verhelst wrote: > > So. > > > > On Wed, Sep 02, 2020 at 08:09:54PM +0900, Tetsuo Handa wrote: > >> syzbot is reporting hung task at nbd_ioctl() [1], for there are two > >> problems regarding TIPC's connecti

Re: [PATCH] tipc: fix shutdown() of connectionless socket

2020-09-03 Thread Wouter Verhelst
So. On Wed, Sep 02, 2020 at 08:09:54PM +0900, Tetsuo Handa wrote: > syzbot is reporting hung task at nbd_ioctl() [1], for there are two > problems regarding TIPC's connectionless socket's shutdown() operation. > I found C reproducer for this problem (shown below) from "no output from > test machin

Re: [PATCH] tipc: fix shutdown() of connectionless socket

2020-09-03 Thread Tetsuo Handa
On 2020/09/03 20:31, Wouter Verhelst wrote: > So. > > On Wed, Sep 02, 2020 at 08:09:54PM +0900, Tetsuo Handa wrote: >> syzbot is reporting hung task at nbd_ioctl() [1], for there are two >> problems regarding TIPC's connectionless socket's shutdown() operation. >> I found C reproducer for this pro

[PATCH] tipc: fix shutdown() of connectionless socket

2020-09-02 Thread Tetsuo Handa
syzbot is reporting hung task at nbd_ioctl() [1], for there are two problems regarding TIPC's connectionless socket's shutdown() operation. I found C reproducer for this problem (shown below) from "no output from test machine (2)" report. -- int main(int argc, char *argv[]) { cons