bisecting fixing commit since ddef1e8e3f6eb26034833b7255e3fa584d54a230 building syzkaller on b35fad31e9c2d4a970d051deff80ec7cc4c3e459 testing commit ddef1e8e3f6eb26034833b7255e3fa584d54a230 with gcc (GCC) 8.1.0 kernel signature: e08a1c2cc54bd08111806f4081e69ba97ccb2ad4 all runs: crashed: INFO: task hung in nbd_ioctl testing current HEAD e1f7d50ae3a3ec342e87a9b1ce6787bfb8b3c08b testing commit e1f7d50ae3a3ec342e87a9b1ce6787bfb8b3c08b with gcc (GCC) 8.1.0 kernel signature: d5ea037be5390cfeee13ebda721318e0f3613948 all runs: OK # git bisect start e1f7d50ae3a3ec342e87a9b1ce6787bfb8b3c08b ddef1e8e3f6eb26034833b7255e3fa584d54a230 Bisecting: 702 revisions left to test after this (roughly 10 steps) [484278a79fa5824c902a94a6bc18a8046ea9b952] powerpc/eeh: Fix use of EEH_PE_KEEP on wrong field testing commit 484278a79fa5824c902a94a6bc18a8046ea9b952 with gcc (GCC) 8.1.0 kernel signature: 31dfa89d5f1d960cc39b10c6115c1a84698652c6 all runs: OK # git bisect bad 484278a79fa5824c902a94a6bc18a8046ea9b952 Bisecting: 350 revisions left to test after this (roughly 9 steps) [66130c3f3793b9b0e3db7469153ff1160e9f91ac] rtc: rv8803: fix the rv8803 id in the OF table testing commit 66130c3f3793b9b0e3db7469153ff1160e9f91ac with gcc (GCC) 8.1.0 kernel signature: 9afc3d64b981768f725a917060ebc3724b5ee9e5 all runs: OK # git bisect bad 66130c3f3793b9b0e3db7469153ff1160e9f91ac Bisecting: 175 revisions left to test after this (roughly 8 steps) [d25eb9d6b723afa23e818892c026adc2021ac8cd] mm: thp: handle page cache THP correctly in PageTransCompoundMap testing commit d25eb9d6b723afa23e818892c026adc2021ac8cd with gcc (GCC) 8.1.0 kernel signature: 7e16f9b126fcd981745e99d4e1c2cfa5dd178f83 all runs: OK # git bisect bad d25eb9d6b723afa23e818892c026adc2021ac8cd Bisecting: 87 revisions left to test after this (roughly 7 steps) [2a571bd399084762a67519f35ef586407fbd3cb2] NFC: pn533: fix use-after-free and memleaks testing commit 2a571bd399084762a67519f35ef586407fbd3cb2 with gcc (GCC) 8.1.0 kernel signature: aed111affef00e7cd02093be204c9aac84b76175 all runs: OK # git bisect bad 2a571bd399084762a67519f35ef586407fbd3cb2 Bisecting: 43 revisions left to test after this (roughly 6 steps) [11d172c77de4b7a771c65af2e8e2ef4eaf9a1304] MIPS: include: Mark __cmpxchg as __always_inline testing commit 11d172c77de4b7a771c65af2e8e2ef4eaf9a1304 with gcc (GCC) 8.1.0 kernel signature: 96b30b9997cfa2653faf1d59085b968ad76cbcff all runs: crashed: INFO: task hung in nbd_ioctl # git bisect good 11d172c77de4b7a771c65af2e8e2ef4eaf9a1304 Bisecting: 21 revisions left to test after this (roughly 5 steps) [224db95138624aea6070df2446fd199233f42755] ALSA: hda/realtek - Fix 2 front mics of codec 0x623 testing commit 224db95138624aea6070df2446fd199233f42755 with gcc (GCC) 8.1.0 kernel signature: 4cec6b0ec25a9b05301a8d6981ab1083d299a1cb all runs: OK # git bisect bad 224db95138624aea6070df2446fd199233f42755 Bisecting: 10 revisions left to test after this (roughly 4 steps) [640fb32d61f32d1011bf9a96805e5a8d033abcea] NFSv4: Fix leak of clp->cl_acceptor string testing commit 640fb32d61f32d1011bf9a96805e5a8d033abcea with gcc (GCC) 8.1.0 kernel signature: 9f14d1a1d16b646011a41d38a09c7fc3b66903c3 all runs: crashed: INFO: task hung in nbd_ioctl # git bisect good 640fb32d61f32d1011bf9a96805e5a8d033abcea Bisecting: 5 revisions left to test after this (roughly 3 steps) [54b9f5791846d2de59e8c65502b3f1071f65424f] net_sched: check cops->tcf_block in tc_bind_tclass() testing commit 54b9f5791846d2de59e8c65502b3f1071f65424f with gcc (GCC) 8.1.0 kernel signature: d4ce7249b2c4fdc54678a8b9d0480ce6f4e0f277 all runs: OK # git bisect bad 54b9f5791846d2de59e8c65502b3f1071f65424f Bisecting: 2 revisions left to test after this (roughly 1 step) [2a7ad49ad210e80780964807f241eeb3bdc23f1f] tracing: Initialize iter->seq after zeroing in tracing_read_pipe() testing commit 2a7ad49ad210e80780964807f241eeb3bdc23f1f with gcc (GCC) 8.1.0 kernel signature: 750ad90c3fc53e3501f316ccaac03b638eaf265e all runs: crashed: INFO: task hung in nbd_ioctl # git bisect good 2a7ad49ad210e80780964807f241eeb3bdc23f1f Bisecting: 0 revisions left to test after this (roughly 1 step) [d7030f05a84cf6ce9587dce5fab9774666597cd5] USB: legousbtower: fix a signedness bug in tower_probe() testing commit d7030f05a84cf6ce9587dce5fab9774666597cd5 with gcc (GCC) 8.1.0 kernel signature: 2eef7349fe11daef818d8dee94dfc9f442ccff23 all runs: OK # git bisect bad d7030f05a84cf6ce9587dce5fab9774666597cd5 Bisecting: 0 revisions left to test after this (roughly 0 steps) [4df728651b8a99693c69962d8e5a5b9e5a3bbcc7] nbd: verify socket is supported during setup testing commit 4df728651b8a99693c69962d8e5a5b9e5a3bbcc7 with gcc (GCC) 8.1.0 kernel signature: af78968e45874cffc2335c0ce14ffda1eeb2c1ac all runs: OK # git bisect bad 4df728651b8a99693c69962d8e5a5b9e5a3bbcc7 4df728651b8a99693c69962d8e5a5b9e5a3bbcc7 is the first bad commit commit 4df728651b8a99693c69962d8e5a5b9e5a3bbcc7 Author: Mike Christie Date: Thu Oct 17 16:27:34 2019 -0500 nbd: verify socket is supported during setup [ Upstream commit cf1b2326b734896734c6e167e41766f9cee7686a ] nbd requires socket families to support the shutdown method so the nbd recv workqueue can be woken up from its sock_recvmsg call. If the socket does not support the callout we will leave recv works running or get hangs later when the device or module is removed. This adds a check during socket connection/reconnection to make sure the socket being passed in supports the needed callout. Reported-by: syzbot+24c12fa8d218ed26011a@syzkaller.appspotmail.com Fixes: e9e006f5fcf2 ("nbd: fix max number of supported devs") Tested-by: Richard W.M. Jones Signed-off-by: Mike Christie Signed-off-by: Jens Axboe Signed-off-by: Sasha Levin drivers/block/nbd.c | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) culprit signature: af78968e45874cffc2335c0ce14ffda1eeb2c1ac parent signature: 750ad90c3fc53e3501f316ccaac03b638eaf265e revisions tested: 13, total time: 3h55m16.332409782s (build: 1h47m14.274717007s, test: 2h6m18.634513261s) first good commit: 4df728651b8a99693c69962d8e5a5b9e5a3bbcc7 nbd: verify socket is supported during setup cc: ["axboe@kernel.dk" "mchristi@redhat.com" "rjones@redhat.com" "sashal@kernel.org"]