bisecting fixing commit since fbc5fe7a54d02e11972e3b2a5ddb6ffc88162c8f building syzkaller on b20883285d2350f5694399287b7f03478a3036c6 testing commit fbc5fe7a54d02e11972e3b2a5ddb6ffc88162c8f with gcc (GCC) 8.1.0 kernel signature: 9eb9bd5183f185b18825593464af644cf6d4e3e2883d7f9b81466bf867d8abb6 all runs: crashed: BUG: sleeping function called from invalid context in lock_sock_nested testing current HEAD 78d697fc93f98054e36a3ab76dca1a88802ba7be testing commit 78d697fc93f98054e36a3ab76dca1a88802ba7be with gcc (GCC) 8.1.0 kernel signature: 13018ce7fd6d86417c7883de2ecda904bf88436d63d7e9e956ae333d02b5e0f1 all runs: OK # git bisect start 78d697fc93f98054e36a3ab76dca1a88802ba7be fbc5fe7a54d02e11972e3b2a5ddb6ffc88162c8f Bisecting: 987 revisions left to test after this (roughly 10 steps) [e3258fc2fc74008ff4e5713c62ec1e95c79c8e77] scsi: enclosure: Fix stale device oops with hot replug testing commit e3258fc2fc74008ff4e5713c62ec1e95c79c8e77 with gcc (GCC) 8.1.0 kernel signature: 7b17f1f25d59fb2323cd26c722a68995991c42dcf2414e47975bfc331eba0fb1 all runs: crashed: BUG: sleeping function called from invalid context in lock_sock_nested # git bisect good e3258fc2fc74008ff4e5713c62ec1e95c79c8e77 Bisecting: 493 revisions left to test after this (roughly 9 steps) [172b7f71488cfcb1426790bdefe334b1487fb65c] USB: serial: ir-usb: add missing endpoint sanity check testing commit 172b7f71488cfcb1426790bdefe334b1487fb65c with gcc (GCC) 8.1.0 kernel signature: c7b6d6ca3f9b7689b486486ae6eba3bfed4c03f2b1b14415da7352b5b7f07de4 all runs: crashed: BUG: sleeping function called from invalid context in lock_sock_nested # git bisect good 172b7f71488cfcb1426790bdefe334b1487fb65c Bisecting: 246 revisions left to test after this (roughly 8 steps) [1e26078c29edb7bdf7d75ddc52d34912b805791e] arm64: cpufeature: Fix the type of no FP/SIMD capability testing commit 1e26078c29edb7bdf7d75ddc52d34912b805791e with gcc (GCC) 8.1.0 kernel signature: d719f5ad3053f7f02c2d70e0fab8d4b7c66221a8a4a666a72a43f9d8b8f3ed6f all runs: OK # git bisect bad 1e26078c29edb7bdf7d75ddc52d34912b805791e Bisecting: 123 revisions left to test after this (roughly 7 steps) [3760557c3a9bc43bbd782052c81d6aebe5d7317f] mmc: spi: Toggle SPI polarity, do not hardcode it testing commit 3760557c3a9bc43bbd782052c81d6aebe5d7317f with gcc (GCC) 8.1.0 kernel signature: 3b5e557849a831e94900ae355fabe6eff229d55bdccd225511071fd67940c779 all runs: OK # git bisect bad 3760557c3a9bc43bbd782052c81d6aebe5d7317f Bisecting: 61 revisions left to test after this (roughly 6 steps) [2dbb6faebb94d6d5ae87e5ea6be9280c366393e1] cfg80211: Fix radar event during another phy CAC testing commit 2dbb6faebb94d6d5ae87e5ea6be9280c366393e1 with gcc (GCC) 8.1.0 kernel signature: 098d7df47835ef06aca5ae54213d8020fd81d2f72ed3377bd38699e7ae9d7eb5 all runs: OK # git bisect bad 2dbb6faebb94d6d5ae87e5ea6be9280c366393e1 Bisecting: 30 revisions left to test after this (roughly 5 steps) [40642747dd9feab4912157882166c05722cec7b0] vfs: fix do_last() regression testing commit 40642747dd9feab4912157882166c05722cec7b0 with gcc (GCC) 8.1.0 kernel signature: 57f81e9b7cabb08c6a1308f25b23dd96573ab501c4558d54a0997ce4ca0def5c all runs: OK # git bisect bad 40642747dd9feab4912157882166c05722cec7b0 Bisecting: 14 revisions left to test after this (roughly 4 steps) [0f6f0693493719ff84c7ff5ae161605d86aed619] arc: eznps: fix allmodconfig kconfig warning testing commit 0f6f0693493719ff84c7ff5ae161605d86aed619 with gcc (GCC) 8.1.0 kernel signature: 991c299843e83a37bb714be74db486baabb88ea4d1740f323d9854b87056d339 all runs: crashed: BUG: sleeping function called from invalid context in lock_sock_nested # git bisect good 0f6f0693493719ff84c7ff5ae161605d86aed619 Bisecting: 7 revisions left to test after this (roughly 3 steps) [e52f8ff34eaa49047c225a42c0a4d2976c4ab20c] net: wan: sdla: Fix cast from pointer to integer of different size testing commit e52f8ff34eaa49047c225a42c0a4d2976c4ab20c with gcc (GCC) 8.1.0 kernel signature: 001815b3630e82317a01c2b18e81d9e1ae0c6c7ab10d899254f30f1529500f54 all runs: crashed: BUG: sleeping function called from invalid context in lock_sock_nested # git bisect good e52f8ff34eaa49047c225a42c0a4d2976c4ab20c Bisecting: 3 revisions left to test after this (roughly 2 steps) [ebb7fb7dfd657b65fd7d315b0c8709af94db535f] usb-storage: Disable UAS on JMicron SATA enclosure testing commit ebb7fb7dfd657b65fd7d315b0c8709af94db535f with gcc (GCC) 8.1.0 kernel signature: 24f29766c5baf3c2627a271144f159bec81ee6562c0129a3b2fa8671aafc6405 all runs: crashed: BUG: sleeping function called from invalid context in lock_sock_nested # git bisect good ebb7fb7dfd657b65fd7d315b0c8709af94db535f Bisecting: 1 revision left to test after this (roughly 1 step) [c662ea4fab81c530590c2be3e86e26313d047e3b] rsi: fix use-after-free on probe errors testing commit c662ea4fab81c530590c2be3e86e26313d047e3b with gcc (GCC) 8.1.0 kernel signature: c2e549f4d7e966495ec7a838342af36564cb7466992a946b6d432a8216993156 all runs: crashed: BUG: sleeping function called from invalid context in lock_sock_nested # git bisect good c662ea4fab81c530590c2be3e86e26313d047e3b Bisecting: 0 revisions left to test after this (roughly 0 steps) [713ff7e4d605c4dd1efd838e3f0092cd93733f0c] crypto: af_alg - Use bh_lock_sock in sk_destruct testing commit 713ff7e4d605c4dd1efd838e3f0092cd93733f0c with gcc (GCC) 8.1.0 kernel signature: 970662fa009ef840f27f04609e5c86c14536c1abe9e7987c6bf68b07b45bd00b all runs: OK # git bisect bad 713ff7e4d605c4dd1efd838e3f0092cd93733f0c 713ff7e4d605c4dd1efd838e3f0092cd93733f0c is the first bad commit commit 713ff7e4d605c4dd1efd838e3f0092cd93733f0c Author: Herbert Xu Date: Thu Dec 5 13:45:05 2019 +0800 crypto: af_alg - Use bh_lock_sock in sk_destruct commit 37f96694cf73ba116993a9d2d99ad6a75fa7fdb0 upstream. As af_alg_release_parent may be called from BH context (most notably due to an async request that only completes after socket closure, or as reported here because of an RCU-delayed sk_destruct call), we must use bh_lock_sock instead of lock_sock. Reported-by: syzbot+c2f1558d49e25cc36e5e@syzkaller.appspotmail.com Reported-by: Eric Dumazet Fixes: c840ac6af3f8 ("crypto: af_alg - Disallow bind/setkey/...") Cc: Signed-off-by: Herbert Xu Signed-off-by: Greg Kroah-Hartman crypto/af_alg.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) culprit signature: 970662fa009ef840f27f04609e5c86c14536c1abe9e7987c6bf68b07b45bd00b parent signature: c2e549f4d7e966495ec7a838342af36564cb7466992a946b6d432a8216993156 revisions tested: 13, total time: 3h24m16.31003372s (build: 1h50m37.480688099s, test: 1h32m25.244394352s) first good commit: 713ff7e4d605c4dd1efd838e3f0092cd93733f0c crypto: af_alg - Use bh_lock_sock in sk_destruct cc: ["davem@davemloft.net" "gregkh@linuxfoundation.org" "herbert@gondor.apana.org.au" "linux-crypto@vger.kernel.org" "linux-kernel@vger.kernel.org"]