syzbot


INFO: trying to register non-static key in xt_find_match (3)

Status: auto-closed as invalid on 2022/02/01 10:08
Reported-by: syzbot+bcd3137bc436efc623be@syzkaller.appspotmail.com
First crash: 925d, last: 925d
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 1 1448d 1448d 0/1 auto-closed as invalid on 2020/08/27 08:53
linux-4.19 INFO: trying to register non-static key in xt_find_match (2) 1 1313d 1313d 0/1 auto-closed as invalid on 2021/01/09 02:03

Sample crash report:
EXT4-fs (loop2): VFS: Can't find ext4 filesystem
unable to load match
EXT4-fs (loop4): Ignoring removed mblk_io_submit option
netlink: 12 bytes leftover after parsing attributes in process `syz-executor.3'.
EXT4-fs (loop4): fragment/cluster size (16384) != block size (1024)
INFO: trying to register non-static key.
The code is fine but needs lockdep annotation, or maybe
you didn't initialize this object before use?
turning off the locking correctness validator.
CPU: 1 PID: 19198 Comm: syz-executor.3 Not tainted 4.19.208-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+0x1fc/0x2ef lib/dump_stack.c:118
 assign_lock_key kernel/locking/lockdep.c:728 [inline]
 register_lock_class+0xe82/0x11c0 kernel/locking/lockdep.c:754
 __lock_acquire+0x17d/0x3ff0 kernel/locking/lockdep.c:3304
 lock_acquire+0x170/0x3c0 kernel/locking/lockdep.c:3908
 __mutex_lock_common kernel/locking/mutex.c:937 [inline]
 __mutex_lock+0xd7/0x1190 kernel/locking/mutex.c:1078
 xt_find_match net/netfilter/x_tables.c:189 [inline]
 xt_find_match+0xa3/0x280 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+0x1c7/0x470 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+0x8fa/0xea0 net/sched/ematch.c:307
 flow_change+0x2a4/0x1ca0 net/sched/cls_flow.c:439
 tc_new_tfilter+0xb52/0x16c0 net/sched/cls_api.c:1320
 rtnetlink_rcv_msg+0x453/0xb80 net/core/rtnetlink.c:4782
 netlink_rcv_skb+0x160/0x440 net/netlink/af_netlink.c:2457
 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline]
 netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1346
 netlink_sendmsg+0x6bb/0xc40 net/netlink/af_netlink.c:1911
 sock_sendmsg_nosec net/socket.c:651 [inline]
 sock_sendmsg+0xc3/0x120 net/socket.c:661
 ___sys_sendmsg+0x7bb/0x8e0 net/socket.c:2227
 __sys_sendmsg net/socket.c:2265 [inline]
 __do_sys_sendmsg net/socket.c:2274 [inline]
 __se_sys_sendmsg net/socket.c:2272 [inline]
 __x64_sys_sendmsg+0x132/0x220 net/socket.c:2272
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f12eeb538d9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f12ec0a9188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f12eec58020 RCX: 00007f12eeb538d9
RDX: 0000000000000000 RSI: 0000000020000440 RDI: 0000000000000004
RBP: 00007f12eebadcb4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe1cf547df R14: 00007f12ec0a9300 R15: 0000000000022000
EXT4-fs (loop2): VFS: Can't find ext4 filesystem
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: 0 PID: 19198 Comm: syz-executor.3 Not tainted 4.19.208-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:strcmp+0x35/0xb0 lib/string.c:384
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:ffff8880412ef170 EFLAGS: 00010246
RAX: 0000000000000002 RBX: 0000000000000011 RCX: ffffc9000c508000
RDX: 0000000000000000 RSI: ffffffff89509280 RDI: 0000000000000010
RBP: ffffffff89509280 R08: ffff8882358b2ec0 R09: ffffed1046b165d8
R10: ffff8882358b2ec7 R11: ffffffff8c66505b R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000000000 R15: ffff88804cd54100
FS:  00007f12ec0a9700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff4bf0af922 CR3: 00000000a09a6000 CR4: 00000000003406f0
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+0x13f/0x280 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+0x1c7/0x470 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+0x8fa/0xea0 net/sched/ematch.c:307
 flow_change+0x2a4/0x1ca0 net/sched/cls_flow.c:439
 tc_new_tfilter+0xb52/0x16c0 net/sched/cls_api.c:1320
 rtnetlink_rcv_msg+0x453/0xb80 net/core/rtnetlink.c:4782
 netlink_rcv_skb+0x160/0x440 net/netlink/af_netlink.c:2457
 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline]
 netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1346
 netlink_sendmsg+0x6bb/0xc40 net/netlink/af_netlink.c:1911
 sock_sendmsg_nosec net/socket.c:651 [inline]
 sock_sendmsg+0xc3/0x120 net/socket.c:661
 ___sys_sendmsg+0x7bb/0x8e0 net/socket.c:2227
 __sys_sendmsg net/socket.c:2265 [inline]
 __do_sys_sendmsg net/socket.c:2274 [inline]
 __se_sys_sendmsg net/socket.c:2272 [inline]
 __x64_sys_sendmsg+0x132/0x220 net/socket.c:2272
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f12eeb538d9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f12ec0a9188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f12eec58020 RCX: 00007f12eeb538d9
RDX: 0000000000000000 RSI: 0000000020000440 RDI: 0000000000000004
RBP: 00007f12eebadcb4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe1cf547df R14: 00007f12ec0a9300 R15: 0000000000022000
Modules linked in:
---[ end trace 940da3890b3a386a ]---
RIP: 0010:strcmp+0x35/0xb0 lib/string.c:384
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
EXT4-fs (loop4): Ignoring removed mblk_io_submit option
RSP: 0018:ffff8880412ef170 EFLAGS: 00010246
RAX: 0000000000000002 RBX: 0000000000000011 RCX: ffffc9000c508000
EXT4-fs (loop4): fragment/cluster size (16384) != block size (1024)
EXT4-fs (loop2): VFS: Can't find ext4 filesystem
RDX: 0000000000000000 RSI: ffffffff89509280 RDI: 0000000000000010
RBP: ffffffff89509280 R08: ffff8882358b2ec0 R09: ffffed1046b165d8
R10: ffff8882358b2ec7 R11: ffffffff8c66505b R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000000000 R15: ffff88804cd54100
FS:  00007f12ec0a9700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055b658fbeee8 CR3: 00000000a09a6000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	df 41 54             	filds  0x54(%rcx)
   3:	55                   	push   %rbp
   4:	53                   	push   %rbx
   5:	48 89 fb             	mov    %rdi,%rbx
   8:	48 83 ec 08          	sub    $0x8,%rsp
   c:	eb 08                	jmp    0x16
   e:	40 84 ed             	test   %bpl,%bpl
  11:	74 5d                	je     0x70
  13:	4c 89 e6             	mov    %r12,%rsi
  16:	48 89 df             	mov    %rbx,%rdi
  19:	48 83 c3 01          	add    $0x1,%rbx
  1d:	48 89 f8             	mov    %rdi,%rax
  20:	48 89 fa             	mov    %rdi,%rdx
  23:	48 c1 e8 03          	shr    $0x3,%rax
  27:	83 e2 07             	and    $0x7,%edx
* 2a:	42 0f b6 04 28       	movzbl (%rax,%r13,1),%eax <-- trapping instruction
  2f:	38 d0                	cmp    %dl,%al
  31:	7f 04                	jg     0x37
  33:	84 c0                	test   %al,%al
  35:	75 50                	jne    0x87
  37:	0f b6 6b ff          	movzbl -0x1(%rbx),%ebp
  3b:	4c 8d 66 01          	lea    0x1(%rsi),%r12
  3f:	48                   	rex.W

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/10/04 10:07 linux-4.19.y c2276d585654 ce697b49 .config console log report info ci2-linux-4-19 INFO: trying to register non-static key in xt_find_match
* Struck through repros no longer work on HEAD.