bisecting cause commit starting from 425c075dcbb2009a526fffb40ada846acc40d2b1 building syzkaller on 2e9971bbbfb4df6ba0118353163a7703f3dbd6ec testing commit 425c075dcbb2009a526fffb40ada846acc40d2b1 with gcc (GCC) 8.1.0 kernel signature: 37627b3c941eaca95d0561bbe1aa6f53793d44081e459cb3dc1588cc1f54bec8 all runs: crashed: BUG: sleeping function called from invalid context in kmem_cache_alloc_node_trace testing release v5.5 testing commit d5226fa6dbae0569ee43ecfc08bdcd6770fc4755 with gcc (GCC) 8.1.0 kernel signature: a29e2d98b3db630a840212fc2f6a57abc62a1261e474ea9a288ac04e32d85256 all runs: OK # git bisect start 425c075dcbb2009a526fffb40ada846acc40d2b1 d5226fa6dbae0569ee43ecfc08bdcd6770fc4755 Bisecting: 5831 revisions left to test after this (roughly 13 steps) [9f68e3655aae6d49d6ba05dd263f99f33c2567af] Merge tag 'drm-next-2020-01-30' of git://anongit.freedesktop.org/drm/drm testing commit 9f68e3655aae6d49d6ba05dd263f99f33c2567af with gcc (GCC) 8.1.0 kernel signature: 82cfd23d1ebc8804d751feb79c0105b639c25ee380871558613f8540b6f40b58 all runs: OK # git bisect good 9f68e3655aae6d49d6ba05dd263f99f33c2567af Bisecting: 3077 revisions left to test after this (roughly 12 steps) [469030d454bd1620c7b2651d9ec8cdcbaa74deb9] Merge tag 'armsoc-soc' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc testing commit 469030d454bd1620c7b2651d9ec8cdcbaa74deb9 with gcc (GCC) 8.1.0 kernel signature: d8c1d06708017bac0ad935769b3e61653dd2a17e038cd9035045256edd3ff15e all runs: OK # git bisect good 469030d454bd1620c7b2651d9ec8cdcbaa74deb9 Bisecting: 1538 revisions left to test after this (roughly 11 steps) [b1339ecac661e1cf3e1dc78ac56bff3aeeaeb92c] drm/i915/execlists: Always force a context reload when rewinding RING_TAIL testing commit b1339ecac661e1cf3e1dc78ac56bff3aeeaeb92c with gcc (GCC) 8.1.0 kernel signature: d7fa0073334b6932f59d043e3e0fbee70c9d319172b52569d2c41adf9c063f3a all runs: OK # git bisect good b1339ecac661e1cf3e1dc78ac56bff3aeeaeb92c Bisecting: 764 revisions left to test after this (roughly 10 steps) [165b94ffcf8ef8165654df70f9f1c534797217cb] Merge tag 'mlx5-updates-2020-02-25' of git://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux testing commit 165b94ffcf8ef8165654df70f9f1c534797217cb with gcc (GCC) 8.1.0 kernel signature: 7eb3884efe9f6fff522554e68ebe64dfaa38e30fa2b64425258bc42f83041638 run #0: OK run #1: OK run #2: OK run #3: OK run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: boot failed: can't ssh into the instance # git bisect good 165b94ffcf8ef8165654df70f9f1c534797217cb Bisecting: 398 revisions left to test after this (roughly 9 steps) [9a834f9b04bc5ed2db27eb45b0cc6415ce7c314c] Merge branch 'net-cleanup-datagram-receive-helpers' testing commit 9a834f9b04bc5ed2db27eb45b0cc6415ce7c314c with gcc (GCC) 8.1.0 kernel signature: d0c909650ab7b0cb92a3c8ea3708426cd3585de4466eb3cd799a0ff7d94ae8c4 all runs: OK # git bisect good 9a834f9b04bc5ed2db27eb45b0cc6415ce7c314c Bisecting: 199 revisions left to test after this (roughly 8 steps) [4a80a183387160d4304add54927a2bec28dbc294] ice: let core reject the unsupported coalescing parameters testing commit 4a80a183387160d4304add54927a2bec28dbc294 with gcc (GCC) 8.1.0 kernel signature: a642445fcc2fa2b9e3a8832a7756f62ee64d6e3ea8e9a209257ec28845cdb657 all runs: crashed: BUG: sleeping function called from invalid context in kmem_cache_alloc_node_trace # git bisect bad 4a80a183387160d4304add54927a2bec28dbc294 Bisecting: 99 revisions left to test after this (roughly 7 steps) [15070919f801348e9a9a2ea96f427d8b621f3cd5] mvneta: add XDP ethtool errors stats for TX to driver testing commit 15070919f801348e9a9a2ea96f427d8b621f3cd5 with gcc (GCC) 8.1.0 kernel signature: 4a0236d02eac77c0b1a4efd97602fe0731e68ed0f9e705de7103c3cf1bfd2c4e all runs: OK # git bisect good 15070919f801348e9a9a2ea96f427d8b621f3cd5 Bisecting: 49 revisions left to test after this (roughly 6 steps) [29e59fd4fb488cdafde587c2dca6e8fc4123b6e8] net: mscc: ocelot: make ocelot_ace_rule support multiple ports testing commit 29e59fd4fb488cdafde587c2dca6e8fc4123b6e8 with gcc (GCC) 8.1.0 kernel signature: e2c2c29ea658bfa67b276a8660babcc4ba7b0989b5082ed6a548a32188c302ed all runs: crashed: BUG: sleeping function called from invalid context in kmem_cache_alloc_node_trace # git bisect bad 29e59fd4fb488cdafde587c2dca6e8fc4123b6e8 Bisecting: 24 revisions left to test after this (roughly 5 steps) [e762ae5d0547b1534f4e70342c38162b66d724d0] Merge branch 'net-qrtr-Nameserver-fixes' testing commit e762ae5d0547b1534f4e70342c38162b66d724d0 with gcc (GCC) 8.1.0 kernel signature: 90a28790dc442f4e12f0dc02e8134483cf9621e843dba2bd77826ac43c0a87a9 all runs: crashed: BUG: sleeping function called from invalid context in kmem_cache_alloc_node_trace # git bisect bad e762ae5d0547b1534f4e70342c38162b66d724d0 Bisecting: 12 revisions left to test after this (roughly 4 steps) [1954b86016cf8522970e1b7aba801233d777ec47] mptcp: Check connection state before attempting send testing commit 1954b86016cf8522970e1b7aba801233d777ec47 with gcc (GCC) 8.1.0 kernel signature: 1784608d55dce58e473739e903c591d75b020f3e7876ad0f43ac40c3bf381a30 all runs: crashed: BUG: sleeping function called from invalid context in kmem_cache_alloc_node_trace # git bisect bad 1954b86016cf8522970e1b7aba801233d777ec47 Bisecting: 5 revisions left to test after this (roughly 3 steps) [46475bb20f4ba019abf22b0db10bf55a4158852e] net/sched: act_ct: Software offload of established flows testing commit 46475bb20f4ba019abf22b0db10bf55a4158852e with gcc (GCC) 8.1.0 kernel signature: b1de8784ee981d8110aac7f039595965402412a43e7c28bb341d59a14a9f6297 all runs: crashed: BUG: sleeping function called from invalid context in kmem_cache_alloc_node_trace # git bisect bad 46475bb20f4ba019abf22b0db10bf55a4158852e Bisecting: 2 revisions left to test after this (roughly 2 steps) [a7442ec3bf89c244328cb50a66d549e9172bad52] octeontx2-af: fix spelling mistake "backpessure" -> "backpressure" testing commit a7442ec3bf89c244328cb50a66d549e9172bad52 with gcc (GCC) 8.1.0 kernel signature: 42f6369e77a4666cdd4d239e3ae036a46504eb027ffa593dbcbb9b3d1769db24 all runs: OK # git bisect good a7442ec3bf89c244328cb50a66d549e9172bad52 Bisecting: 0 revisions left to test after this (roughly 1 step) [64ff70b80fd403110b67dd9f7184a604fdb0da43] net/sched: act_ct: Offload established connections to flow table testing commit 64ff70b80fd403110b67dd9f7184a604fdb0da43 with gcc (GCC) 8.1.0 kernel signature: 1722a2d298249568008715d025df7660cdd18fad763741a4ce22952e4e098b76 all runs: crashed: BUG: sleeping function called from invalid context in kmem_cache_alloc_node_trace # git bisect bad 64ff70b80fd403110b67dd9f7184a604fdb0da43 Bisecting: 0 revisions left to test after this (roughly 0 steps) [c34b961a249211bdb08d03bdecfb31ff22eb002f] net/sched: act_ct: Create nf flow table per zone testing commit c34b961a249211bdb08d03bdecfb31ff22eb002f with gcc (GCC) 8.1.0 kernel signature: 3048c17b67665ba2bc4695e8ecc22b059fbe66684820870f43063d530b8f6b70 all runs: crashed: BUG: sleeping function called from invalid context in kmem_cache_alloc_node_trace # git bisect bad c34b961a249211bdb08d03bdecfb31ff22eb002f c34b961a249211bdb08d03bdecfb31ff22eb002f is the first bad commit commit c34b961a249211bdb08d03bdecfb31ff22eb002f Author: Paul Blakey Date: Tue Mar 3 15:07:49 2020 +0200 net/sched: act_ct: Create nf flow table per zone Use the NF flow tables infrastructure for CT offload. Create a nf flow table per zone. Next patches will add FT entries to this table, and do the software offload. Signed-off-by: Paul Blakey Reviewed-by: Jiri Pirko Signed-off-by: David S. Miller include/net/tc_act/tc_ct.h | 2 + net/sched/Kconfig | 2 +- net/sched/act_ct.c | 134 ++++++++++++++++++++++++++++++++++++++++++++- 3 files changed, 136 insertions(+), 2 deletions(-) culprit signature: 3048c17b67665ba2bc4695e8ecc22b059fbe66684820870f43063d530b8f6b70 parent signature: 42f6369e77a4666cdd4d239e3ae036a46504eb027ffa593dbcbb9b3d1769db24 revisions tested: 16, total time: 3h42m25.039443442s (build: 1h48m49.44339878s, test: 1h52m26.245585505s) first bad commit: c34b961a249211bdb08d03bdecfb31ff22eb002f net/sched: act_ct: Create nf flow table per zone cc: ["davem@davemloft.net" "jiri@mellanox.com" "paulb@mellanox.com"] crash: BUG: sleeping function called from invalid context in kmem_cache_alloc_node_trace BUG: sleeping function called from invalid context at mm/slab.h:565 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 8436, name: syz-executor.2 2 locks held by syz-executor.2/8436: #0: ffffffff896cca20 (rtnl_mutex){+.+.}, at: rtnl_lock net/core/rtnetlink.c:72 [inline] #0: ffffffff896cca20 (rtnl_mutex){+.+.}, at: rtnetlink_rcv_msg+0x2f8/0x8c0 net/core/rtnetlink.c:5437 #1: ffffffff89710758 (zones_lock){+...}, at: spin_lock_bh include/linux/spinlock.h:343 [inline] #1: ffffffff89710758 (zones_lock){+...}, at: tcf_ct_flow_table_get+0x9b/0x1240 net/sched/act_ct.c:67 Preemption disabled at: [<0000000000000000>] 0x0 CPU: 0 PID: 8436 Comm: syz-executor.2 Not tainted 5.6.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x128/0x182 lib/dump_stack.c:118 ___might_sleep.cold.99+0x1fa/0x243 kernel/sched/core.c:6798 slab_pre_alloc_hook mm/slab.h:565 [inline] slab_alloc_node mm/slab.c:3227 [inline] kmem_cache_alloc_node_trace+0x276/0x790 mm/slab.c:3593 __do_kmalloc_node mm/slab.c:3615 [inline] __kmalloc_node+0x35/0x60 mm/slab.c:3623 kvmalloc include/linux/mm.h:645 [inline] kvzalloc include/linux/mm.h:653 [inline] bucket_table_alloc+0x52/0x3c0 lib/rhashtable.c:175 rhashtable_init+0x352/0x6d0 lib/rhashtable.c:1054 nf_flow_table_init+0x167/0x2d0 net/netfilter/nf_flow_table_core.c:498 tcf_ct_flow_table_get+0xb86/0x1240 net/sched/act_ct.c:82 tcf_ct_init+0x92f/0x13c9 net/sched/act_ct.c:839 tcf_action_init_1+0x607/0x920 net/sched/act_api.c:945 tcf_action_init+0x152/0x290 net/sched/act_api.c:1001 tcf_action_add+0xd4/0x2e0 net/sched/act_api.c:1411 tc_ctl_action+0x29e/0x398 net/sched/act_api.c:1466 rtnetlink_rcv_msg+0x346/0x8c0 net/core/rtnetlink.c:5440 netlink_rcv_skb+0x119/0x340 net/netlink/af_netlink.c:2478 netlink_unicast_kernel net/netlink/af_netlink.c:1303 [inline] netlink_unicast+0x434/0x630 net/netlink/af_netlink.c:1329 netlink_sendmsg+0x714/0xc60 net/netlink/af_netlink.c:1918 sock_sendmsg_nosec net/socket.c:652 [inline] sock_sendmsg+0xac/0xe0 net/socket.c:672 ____sys_sendmsg+0x54e/0x750 net/socket.c:2343 ___sys_sendmsg+0xe4/0x160 net/socket.c:2397 __sys_sendmsg+0xce/0x170 net/socket.c:2430 do_syscall_64+0xc6/0x5e0 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45c4a9 Code: ad b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f800506fc78 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f80050706d4 RCX: 000000000045c4a9 RDX: 0000000000000000 RSI: 0000000020000300 RDI: 0000000000000003 RBP: 000000000076bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000000009fa R14: 00000000004cc777 R15: 000000000076bf2c