bisecting fixing commit since 5b7a52cd2eef952cee8a72512ef370bcdef46636 building syzkaller on f24824d3d54060a7d878eeb35c47f85dab84966a testing commit 5b7a52cd2eef952cee8a72512ef370bcdef46636 with gcc (GCC) 8.4.1 20210217 kernel signature: d1575e2ce2385587df2de2ec1ae73bb648419049333bd58a0a65d04fa4962bff run #0: crashed: general protection fault in __tcf_idr_release run #1: crashed: general protection fault in __tcf_idr_release run #2: crashed: general protection fault in __tcf_idr_release run #3: crashed: general protection fault in __tcf_idr_release run #4: crashed: general protection fault in __tcf_idr_release run #5: crashed: general protection fault in __tcf_idr_release run #6: crashed: KASAN: stack-out-of-bounds Read in tcf_action_destroy run #7: crashed: BUG: unable to handle kernel paging request in tcf_action_destroy run #8: crashed: KASAN: stack-out-of-bounds Read in tcf_action_destroy run #9: crashed: general protection fault in __tcf_idr_release run #10: crashed: general protection fault in __tcf_idr_release run #11: crashed: BUG: unable to handle kernel paging request in tcf_action_destroy run #12: crashed: BUG: unable to handle kernel paging request in tcf_action_destroy run #13: crashed: general protection fault in __tcf_idr_release run #14: crashed: BUG: unable to handle kernel paging request in tcf_action_destroy run #15: crashed: KASAN: out-of-bounds Read in tcf_action_destroy run #16: crashed: general protection fault in __tcf_idr_release run #17: crashed: general protection fault in __tcf_idr_release run #18: crashed: general protection fault in __tcf_idr_release run #19: crashed: KASAN: out-of-bounds Read in tcf_action_destroy testing current HEAD 670d6552eda8ff0c5f396d3d6f0174237917c66c testing commit 670d6552eda8ff0c5f396d3d6f0174237917c66c with gcc (GCC) 8.4.1 20210217 kernel signature: 1db1304c92ef2c60fbd810aa3b31cabd2628155bf371744c736927c6be594f04 run #0: crashed: BUG: unable to handle kernel paging request in tcf_action_destroy run #1: crashed: general protection fault in __tcf_idr_release run #2: crashed: general protection fault in __tcf_idr_release run #3: crashed: KASAN: stack-out-of-bounds Read in tcf_action_destroy run #4: crashed: general protection fault in __tcf_idr_release run #5: crashed: general protection fault in __tcf_idr_release run #6: crashed: KASAN: out-of-bounds Read in __tcf_idr_release run #7: crashed: BUG: unable to handle kernel paging request in tcf_action_destroy run #8: crashed: BUG: unable to handle kernel paging request in tcf_action_destroy run #9: crashed: general protection fault in __tcf_idr_release revisions tested: 2, total time: 21m21.55969821s (build: 14m12.936235042s, test: 6m46.934835799s) the crash still happens on HEAD commit msg: Linux 4.14.227 crash: general protection fault in __tcf_idr_release netlink: 32 bytes leftover after parsing attributes in process `syz-executor.1'. netlink: 32 bytes leftover after parsing attributes in process `syz-executor.2'. netlink: 32 bytes leftover after parsing attributes in process `syz-executor.4'. kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] PREEMPT SMP KASAN Modules linked in: CPU: 0 PID: 14670 Comm: syz-executor.1 Not tainted 4.14.227-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff8881f3f74400 task.stack: ffff8881f3388000 RIP: 0010:atomic_inc arch/x86/include/asm/atomic.h:92 [inline] RIP: 0010:__lock_acquire+0x262/0x42d0 kernel/locking/lockdep.c:3382 RSP: 0018:ffff8881f338f160 EFLAGS: 00010002 RAX: 0040414000000002 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 1ffff1103e925cc4 RSI: 0000000000000000 RDI: ffff8881f492e620 RBP: ffff8881f338f330 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: ffff8881f3f74400 R12: ffff8881f492e618 R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000000 FS: 00007f3f80144700(0000) GS:ffff8881f6400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffd507cdc90 CR3: 00000001d3a47001 CR4: 00000000001606f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_acquire+0x17e/0x3e0 kernel/locking/lockdep.c:3998 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:135 [inline] _raw_spin_lock_bh+0x31/0x40 kernel/locking/spinlock.c:176 spin_lock_bh include/linux/spinlock.h:322 [inline] tcf_idr_remove net/sched/act_api.c:78 [inline] __tcf_idr_release net/sched/act_api.c:101 [inline] __tcf_idr_release+0x12e/0x1c0 net/sched/act_api.c:85 tcf_action_destroy+0xbf/0x160 net/sched/act_api.c:527 tcf_action_init+0x335/0x460 net/sched/act_api.c:769 tcf_action_add net/sched/act_api.c:1079 [inline] tc_ctl_action+0x3c4/0x580 net/sched/act_api.c:1131 rtnetlink_rcv_msg+0x34c/0x9e0 net/core/rtnetlink.c:4316 netlink_rcv_skb+0x12f/0x3b0 net/netlink/af_netlink.c:2433 rtnetlink_rcv+0x10/0x20 net/core/rtnetlink.c:4328 netlink_unicast_kernel net/netlink/af_netlink.c:1287 [inline] netlink_unicast+0x40b/0x610 net/netlink/af_netlink.c:1313 netlink_sendmsg+0x639/0xbe0 net/netlink/af_netlink.c:1878 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xac/0xf0 net/socket.c:656 ___sys_sendmsg+0x625/0x920 net/socket.c:2062 __sys_sendmsg+0xc1/0x140 net/socket.c:2096 SYSC_sendmsg net/socket.c:2107 [inline] SyS_sendmsg+0xd/0x20 net/socket.c:2103 do_syscall_64+0x1c7/0x5b0 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x465889 RSP: 002b:00007f3f80144188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 000000000055bf00 RCX: 0000000000465889 RDX: 0000000000000000 RSI: 0000000020002980 RDI: 0000000000000003 RBP: 00000000004af68d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000055bf00 R13: 00007ffcdb8b968f R14: 00007f3f80144300 R15: 0000000000022000 Code: 00 00 fc ff df 89 f3 49 8d 7c dc 08 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 cd 2e 00 00 49 8b 44 dc 08 48 85 c0 0f 84 03 ff ff ff ff 80 38 01 00 00 49 8d 9b 80 08 00 00 48 ba 00 00 00 00 00 RIP: atomic_inc arch/x86/include/asm/atomic.h:92 [inline] RSP: ffff8881f338f160 RIP: __lock_acquire+0x262/0x42d0 kernel/locking/lockdep.c:3382 RSP: ffff8881f338f160 ---[ end trace e3eb79b5b10777dc ]---