syzbot


INFO: trying to register non-static key in xt_find_match

Status: auto-closed as invalid on 2020/08/27 08:53
Reported-by: syzbot+89cf5983327a54f1b7fa@syzkaller.appspotmail.com
First crash: 1600d, last: 1600d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 INFO: trying to register non-static key in xt_find_match (3) 1 1077d 1077d 0/1 auto-closed as invalid on 2022/02/01 10:08
linux-4.19 INFO: trying to register non-static key in xt_find_match (2) 1 1465d 1465d 0/1 auto-closed as invalid on 2021/01/09 02:03

Sample crash report:
INFO: trying to register non-static key.
the code is fine but needs lockdep annotation.
turning off the locking correctness validator.
CPU: 1 PID: 17721 Comm: syz-executor.5 Not tainted 4.19.118-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+0x188/0x20d lib/dump_stack.c:118
 assign_lock_key kernel/locking/lockdep.c:727 [inline]
 register_lock_class+0x14d0/0x16f0 kernel/locking/lockdep.c:753
 __lock_acquire+0x154/0x49c0 kernel/locking/lockdep.c:3303
 lock_acquire+0x170/0x400 kernel/locking/lockdep.c:3907
 __mutex_lock_common kernel/locking/mutex.c:925 [inline]
 __mutex_lock+0xf7/0x1300 kernel/locking/mutex.c:1072
 xt_find_match net/netfilter/x_tables.c:189 [inline]
 xt_find_match+0xa1/0x270 net/netfilter/x_tables.c:181
 xt_request_find_match net/netfilter/x_tables.c:219 [inline]
 xt_request_find_match+0x88/0x110 net/netfilter/x_tables.c:212
 get_xt_match net/sched/em_ipt.c:112 [inline]
 em_ipt_change+0x1c8/0x45e net/sched/em_ipt.c:132
 tcf_em_validate net/sched/ematch.c:248 [inline]
 tcf_em_tree_validate net/sched/ematch.c:365 [inline]
 tcf_em_tree_validate+0x990/0xf48 net/sched/ematch.c:307
 flow_change+0x408/0x1ca0 net/sched/cls_flow.c:439
 tc_new_tfilter+0xa6b/0x1450 net/sched/cls_api.c:1320
 rtnetlink_rcv_msg+0x453/0xaf0 net/core/rtnetlink.c:4777
 netlink_rcv_skb+0x160/0x410 net/netlink/af_netlink.c:2455
 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline]
 netlink_unicast+0x4d7/0x6a0 net/netlink/af_netlink.c:1344
 netlink_sendmsg+0x80b/0xcd0 net/netlink/af_netlink.c:1909
 sock_sendmsg_nosec net/socket.c:622 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:632
 ___sys_sendmsg+0x3e2/0x920 net/socket.c:2115
 __sys_sendmmsg+0x195/0x470 net/socket.c:2210
 __do_sys_sendmmsg net/socket.c:2239 [inline]
 __se_sys_sendmmsg net/socket.c:2236 [inline]
 __x64_sys_sendmmsg+0x99/0x100 net/socket.c:2236
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45c829
Code: 0d b7 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 db b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f694236bc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000133
RAX: ffffffffffffffda RBX: 00000000004fc0c0 RCX: 000000000045c829
RDX: 04924924924924b3 RSI: 0000000020000200 RDI: 0000000000000005
RBP: 000000000078bfa0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000000008d8 R14: 00000000004cb7b3 R15: 00007f694236c6d4
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
CPU: 1 PID: 17721 Comm: syz-executor.5 Not tainted 4.19.118-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:strcmp+0x35/0xb0 lib/string.c:327
Code: df 41 54 55 53 48 89 fb 48 83 ec 08 eb 08 40 84 ed 74 5d 4c 89 e6 48 89 df 48 83 c3 01 48 89 f8 48 89 fa 48 c1 e8 03 83 e2 07 <42> 0f b6 04 28 38 d0 7f 04 84 c0 75 50 0f b6 6b ff 4c 8d 66 01 48
RSP: 0018:ffff88820ecef030 EFLAGS: 00010246
RAX: 0000000000000002 RBX: 0000000000000011 RCX: ffffc90010786000
RDX: 0000000000000000 RSI: ffffffff882dc700 RDI: 0000000000000010
RBP: 000000000000a3e0 R08: ffff888216164ae0 R09: ffffed1042c2c95d
R10: ffff88820ecef060 R11: ffff888216164ae7 R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000000
FS:  00007f694236c700(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f9708418000 CR3: 0000000214962000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 xt_find_match net/netfilter/x_tables.c:191 [inline]
 xt_find_match+0x13d/0x270 net/netfilter/x_tables.c:181
 xt_request_find_match net/netfilter/x_tables.c:219 [inline]
 xt_request_find_match+0x88/0x110 net/netfilter/x_tables.c:212
 get_xt_match net/sched/em_ipt.c:112 [inline]
 em_ipt_change+0x1c8/0x45e net/sched/em_ipt.c:132
 tcf_em_validate net/sched/ematch.c:248 [inline]
 tcf_em_tree_validate net/sched/ematch.c:365 [inline]
 tcf_em_tree_validate+0x990/0xf48 net/sched/ematch.c:307
 flow_change+0x408/0x1ca0 net/sched/cls_flow.c:439
 tc_new_tfilter+0xa6b/0x1450 net/sched/cls_api.c:1320
 rtnetlink_rcv_msg+0x453/0xaf0 net/core/rtnetlink.c:4777
 netlink_rcv_skb+0x160/0x410 net/netlink/af_netlink.c:2455
 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline]
 netlink_unicast+0x4d7/0x6a0 net/netlink/af_netlink.c:1344
 netlink_sendmsg+0x80b/0xcd0 net/netlink/af_netlink.c:1909
 sock_sendmsg_nosec net/socket.c:622 [inline]
 sock_sendmsg+0xcf/0x120 net/socket.c:632
 ___sys_sendmsg+0x3e2/0x920 net/socket.c:2115
 __sys_sendmmsg+0x195/0x470 net/socket.c:2210
 __do_sys_sendmmsg net/socket.c:2239 [inline]
 __se_sys_sendmmsg net/socket.c:2236 [inline]
 __x64_sys_sendmmsg+0x99/0x100 net/socket.c:2236
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x45c829
Code: 0d b7 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 db b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f694236bc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000133
RAX: ffffffffffffffda RBX: 00000000004fc0c0 RCX: 000000000045c829
RDX: 04924924924924b3 RSI: 0000000020000200 RDI: 0000000000000005
RBP: 000000000078bfa0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000000008d8 R14: 00000000004cb7b3 R15: 00007f694236c6d4
Modules linked in:
---[ end trace 7c81b7635eba7bcd ]---
RIP: 0010:strcmp+0x35/0xb0 lib/string.c:327
Code: df 41 54 55 53 48 89 fb 48 83 ec 08 eb 08 40 84 ed 74 5d 4c 89 e6 48 89 df 48 83 c3 01 48 89 f8 48 89 fa 48 c1 e8 03 83 e2 07 <42> 0f b6 04 28 38 d0 7f 04 84 c0 75 50 0f b6 6b ff 4c 8d 66 01 48
RSP: 0018:ffff88820ecef030 EFLAGS: 00010246
RAX: 0000000000000002 RBX: 0000000000000011 RCX: ffffc90010786000
RDX: 0000000000000000 RSI: ffffffff882dc700 RDI: 0000000000000010
RBP: 000000000000a3e0 R08: ffff888216164ae0 R09: ffffed1042c2c95d
R10: ffff88820ecef060 R11: ffff888216164ae7 R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000000
FS:  00007f694236c700(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000560f8e0f4648 CR3: 0000000214962000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/04/29 08:52 linux-4.19.y 7edd66cf6167 e3ecea2e .config console log report ci2-linux-4-19
* Struck through repros no longer work on HEAD.