netlink: 24 bytes leftover after parsing attributes in process `syz-executor.3'.
INFO: trying to register non-static key.
the code is fine but needs lockdep annotation.
turning off the locking correctness validator.
CPU: 0 PID: 22157 Comm: syz-executor.3 Not tainted 4.19.144-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/0x2fe lib/dump_stack.c:118
assign_lock_key kernel/locking/lockdep.c:727 [inline]
register_lock_class+0xe76/0x11c0 kernel/locking/lockdep.c:753
__lock_acquire+0x17d/0x3ff0 kernel/locking/lockdep.c:3303
lock_acquire+0x170/0x3c0 kernel/locking/lockdep.c:3907
__mutex_lock_common kernel/locking/mutex.c:925 [inline]
__mutex_lock+0xd7/0x1260 kernel/locking/mutex.c:1072
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/0x46b 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/0xe95 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:4778
netlink_rcv_skb+0x160/0x440 net/netlink/af_netlink.c:2455
netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline]
netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1344
netlink_sendmsg+0x6bb/0xc40 net/netlink/af_netlink.c:1909
sock_sendmsg_nosec net/socket.c:622 [inline]
sock_sendmsg+0xc3/0x120 net/socket.c:632
___sys_sendmsg+0x3b3/0x8e0 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:0x45d5b9
Code: 5d b4 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 2b b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fe0dea2ac78 EFLAGS: 00000246 ORIG_RAX: 0000000000000133
RAX: ffffffffffffffda RBX: 0000000000027a00 RCX: 000000000045d5b9
RDX: 010efe10675dec16 RSI: 0000000020000200 RDI: 0000000000000008
RBP: 000000000118cf88 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118cf4c
R13: 00007ffe203749af R14: 00007fe0dea2b9c0 R15: 000000000118cf4c
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: 22157 Comm: syz-executor.3 Not tainted 4.19.144-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:ffff88804a9b7030 EFLAGS: 00010246
RAX: 0000000000000002 RBX: 0000000000000011 RCX: ffffc9000c223000
RDX: 0000000000000000 RSI: ffffffff882ee9a0 RDI: 0000000000000010
RBP: ffffffff882ee9a0 R08: ffff888216053780 R09: ffffed1042c0a6f0
R10: ffff888216053787 R11: ffffffff8ad3a01b R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000000000 R15: ffff888047f402c0
FS: 00007fe0dea2b700(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b31c20000 CR3: 000000004b13d000 CR4: 00000000001426e0
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/0x46b 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/0xe95 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:4778
netlink_rcv_skb+0x160/0x440 net/netlink/af_netlink.c:2455
netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline]
netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1344
netlink_sendmsg+0x6bb/0xc40 net/netlink/af_netlink.c:1909
sock_sendmsg_nosec net/socket.c:622 [inline]
sock_sendmsg+0xc3/0x120 net/socket.c:632
___sys_sendmsg+0x3b3/0x8e0 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:0x45d5b9
Code: 5d b4 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 2b b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fe0dea2ac78 EFLAGS: 00000246 ORIG_RAX: 0000000000000133
RAX: ffffffffffffffda RBX: 0000000000027a00 RCX: 000000000045d5b9
RDX: 010efe10675dec16 RSI: 0000000020000200 RDI: 0000000000000008
RBP: 000000000118cf88 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118cf4c
R13: 00007ffe203749af R14: 00007fe0dea2b9c0 R15: 000000000118cf4c
Modules linked in:
---[ end trace d65d747e8bbd19c6 ]---
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:ffff88804a9b7030 EFLAGS: 00010246
RAX: 0000000000000002 RBX: 0000000000000011 RCX: ffffc9000c223000
RDX: 0000000000000000 RSI: ffffffff882ee9a0 RDI: 0000000000000010
RBP: ffffffff882ee9a0 R08: ffff888216053780 R09: ffffed1042c0a6f0
R10: ffff888216053787 R11: ffffffff8ad3a01b R12: 0000000000000000
R13: dffffc0000000000 R14: 0000000000000000 R15: ffff888047f402c0
FS: 00007fe0dea2b700(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000744138 CR3: 000000004b13d000 CR4: 00000000001426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400