bisecting cause commit starting from b41dae061bbd722b9d7fa828f35d22035b218e18 building syzkaller on 1e9788a0d9bd8fca36978810fd3fc50b6c4f060b testing commit b41dae061bbd722b9d7fa828f35d22035b218e18 with gcc (GCC) 8.1.0 all runs: crashed: BUG: assuming atomic context at net/kcm/kcmsock.c:LINE testing release v5.3 testing commit 4d856f72c10ecb060868ed10ff1b1453943fc6c8 with gcc (GCC) 8.1.0 all runs: OK # git bisect start b41dae061bbd722b9d7fa828f35d22035b218e18 v5.3 Bisecting: 3807 revisions left to test after this (roughly 12 steps) [d2aaa49e281959828370667edbc1cdcc7fc4026a] Merge tag 'acpi-5.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm testing commit d2aaa49e281959828370667edbc1cdcc7fc4026a with gcc (GCC) 8.1.0 all runs: OK # git bisect good d2aaa49e281959828370667edbc1cdcc7fc4026a Bisecting: 1903 revisions left to test after this (roughly 11 steps) [0060c8783330ab60deb96f9d6bb7abfe4664765d] net: stmmac: implement support for passive mode converters via dt testing commit 0060c8783330ab60deb96f9d6bb7abfe4664765d with gcc (GCC) 8.1.0 all runs: OK # git bisect good 0060c8783330ab60deb96f9d6bb7abfe4664765d Bisecting: 1006 revisions left to test after this (roughly 10 steps) [e6874fc29410fabfdbc8c12b467f41a16cbcfd2b] Merge tag 'staging-5.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging testing commit e6874fc29410fabfdbc8c12b467f41a16cbcfd2b with gcc (GCC) 8.1.0 all runs: OK # git bisect good e6874fc29410fabfdbc8c12b467f41a16cbcfd2b Bisecting: 478 revisions left to test after this (roughly 9 steps) [8b53c76533aa4356602aea98f98a2f3b4051464c] Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 testing commit 8b53c76533aa4356602aea98f98a2f3b4051464c with gcc (GCC) 8.1.0 all runs: OK # git bisect good 8b53c76533aa4356602aea98f98a2f3b4051464c Bisecting: 244 revisions left to test after this (roughly 8 steps) [d013cc800a2a41b0496f99a11f3cff724cf65941] Merge tag 'filelock-v5.4-1' of git://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux testing commit d013cc800a2a41b0496f99a11f3cff724cf65941 with gcc (GCC) 8.1.0 all runs: crashed: BUG: assuming atomic context at net/kcm/kcmsock.c:LINE # git bisect bad d013cc800a2a41b0496f99a11f3cff724cf65941 Bisecting: 101 revisions left to test after this (roughly 7 steps) [a3d3c74da49c65fc63a937fa559186b0e16adca3] Merge tag 'wireless-drivers-next-for-davem-2019-09-14' of git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers-next testing commit a3d3c74da49c65fc63a937fa559186b0e16adca3 with gcc (GCC) 8.1.0 all runs: OK # git bisect good a3d3c74da49c65fc63a937fa559186b0e16adca3 Bisecting: 50 revisions left to test after this (roughly 6 steps) [282faf61a053be43910fcc42d86ecf16c0d30123] net: ena: switch to dim algorithm for rx adaptive interrupt moderation testing commit 282faf61a053be43910fcc42d86ecf16c0d30123 with gcc (GCC) 8.1.0 all runs: crashed: BUG: assuming atomic context at net/kcm/kcmsock.c:LINE # git bisect bad 282faf61a053be43910fcc42d86ecf16c0d30123 Bisecting: 24 revisions left to test after this (roughly 5 steps) [28f2c362dbe2a9ec3dfb086dcabbd08ecfcbe236] Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next testing commit 28f2c362dbe2a9ec3dfb086dcabbd08ecfcbe236 with gcc (GCC) 8.1.0 all runs: crashed: BUG: assuming atomic context at net/kcm/kcmsock.c:LINE # git bisect bad 28f2c362dbe2a9ec3dfb086dcabbd08ecfcbe236 Bisecting: 12 revisions left to test after this (roughly 4 steps) [5a712e1363c8ecb4b504a888833ef91416314c36] samples/bpf: fix xdpsock l2fwd tx for unaligned mode testing commit 5a712e1363c8ecb4b504a888833ef91416314c36 with gcc (GCC) 8.1.0 all runs: crashed: BUG: assuming atomic context at net/kcm/kcmsock.c:LINE # git bisect bad 5a712e1363c8ecb4b504a888833ef91416314c36 Bisecting: 6 revisions left to test after this (roughly 3 steps) [e3e02e1d9c24b0c3a36f9c854ae80e61fd62b2a9] selftests/bpf: test_progs: convert test_sockopt_inherit testing commit e3e02e1d9c24b0c3a36f9c854ae80e61fd62b2a9 with gcc (GCC) 8.1.0 all runs: OK # git bisect good e3e02e1d9c24b0c3a36f9c854ae80e61fd62b2a9 Bisecting: 3 revisions left to test after this (roughly 2 steps) [a2c11b034142b9de9ab236aeeb53d6f39c3508aa] kcm: use BPF_PROG_RUN testing commit a2c11b034142b9de9ab236aeeb53d6f39c3508aa with gcc (GCC) 8.1.0 all runs: crashed: BUG: assuming atomic context at net/kcm/kcmsock.c:LINE # git bisect bad a2c11b034142b9de9ab236aeeb53d6f39c3508aa Bisecting: 0 revisions left to test after this (roughly 1 step) [8f6e19ab49bd5e3e490cf3d6d9412f91a732fb2c] Merge branch 'move-sockopt-tests' testing commit 8f6e19ab49bd5e3e490cf3d6d9412f91a732fb2c with gcc (GCC) 8.1.0 all runs: OK # git bisect good 8f6e19ab49bd5e3e490cf3d6d9412f91a732fb2c a2c11b034142b9de9ab236aeeb53d6f39c3508aa is the first bad commit commit a2c11b034142b9de9ab236aeeb53d6f39c3508aa Author: Sami Tolvanen Date: Thu Sep 5 14:15:28 2019 -0700 kcm: use BPF_PROG_RUN Instead of invoking struct bpf_prog::bpf_func directly, use the BPF_PROG_RUN macro. Signed-off-by: Sami Tolvanen Acked-by: Yonghong Song Signed-off-by: Alexei Starovoitov :040000 040000 d7e121fb9dc43997d74dd94056b51cb646b42d61 ab88f8a1c256669f4aa7fbfc0d8d28402adaed4e M net revisions tested: 14, total time: 3h13m25.985645871s (build: 1h21m29.398900753s, test: 1h47m4.62881667s) first bad commit: a2c11b034142b9de9ab236aeeb53d6f39c3508aa kcm: use BPF_PROG_RUN cc: ["allison@lohutok.net" "ast@kernel.org" "bpf@vger.kernel.org" "daniel@iogearbox.net" "davem@davemloft.net" "info@metux.net" "jslaby@suse.cz" "kafai@fb.com" "linux-kernel@vger.kernel.org" "mkubecek@suse.cz" "netdev@vger.kernel.org" "samitolvanen@google.com" "songliubraving@fb.com" "tglx@linutronix.de" "yhs@fb.com" "yuehaibing@huawei.com"] crash: BUG: assuming atomic context at net/kcm/kcmsock.c:LINE BUG: assuming atomic context at net/kcm/kcmsock.c:382 in_atomic(): 0, irqs_disabled(): 0, pid: 2538, name: kworker/u4:4 3 locks held by kworker/u4:4/2538: #0: 0000000030b4796a ((wq_completion)kstrp){+.+.}, at: __write_once_size include/linux/compiler.h:226 [inline] #0: 0000000030b4796a ((wq_completion)kstrp){+.+.}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: 0000000030b4796a ((wq_completion)kstrp){+.+.}, at: atomic64_set include/asm-generic/atomic-instrumented.h:855 [inline] #0: 0000000030b4796a ((wq_completion)kstrp){+.+.}, at: atomic_long_set include/asm-generic/atomic-long.h:40 [inline] #0: 0000000030b4796a ((wq_completion)kstrp){+.+.}, at: set_work_data kernel/workqueue.c:620 [inline] #0: 0000000030b4796a ((wq_completion)kstrp){+.+.}, at: set_work_pool_and_clear_pending kernel/workqueue.c:647 [inline] #0: 0000000030b4796a ((wq_completion)kstrp){+.+.}, at: process_one_work+0x76f/0x1630 kernel/workqueue.c:2240 #1: 0000000066c3da29 ((work_completion)(&strp->work)){+.+.}, at: process_one_work+0x79f/0x1630 kernel/workqueue.c:2244 #2: 000000004f6c333d (sk_lock-AF_INET){+.+.}, at: lock_sock include/net/sock.h:1522 [inline] #2: 000000004f6c333d (sk_lock-AF_INET){+.+.}, at: strp_sock_lock+0x29/0x40 net/strparser/strparser.c:440 CPU: 1 PID: 2538 Comm: kworker/u4:4 Not tainted 5.3.0-rc7+ #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: kstrp strp_work Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x113/0x167 lib/dump_stack.c:113 __cant_sleep.cold.99+0xa6/0xbe kernel/sched/core.c:6636 kcm_parse_func_strparser+0x4f/0x1f0 net/kcm/kcmsock.c:382 __strp_recv+0x350/0x1b90 net/strparser/strparser.c:221 strp_recv+0xb6/0x147 net/strparser/strparser.c:343 tcp_read_sock+0x204/0xa90 net/ipv4/tcp.c:1639 strp_read_sock+0x137/0x1e0 net/strparser/strparser.c:366 do_strp_work net/strparser/strparser.c:414 [inline] strp_work+0x99/0xd0 net/strparser/strparser.c:423 process_one_work+0x856/0x1630 kernel/workqueue.c:2269 worker_thread+0x85/0xb60 kernel/workqueue.c:2415 kthread+0x331/0x3f0 kernel/kthread.c:255 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352