netlink: 416 bytes leftover after parsing attributes in process `syz-executor.2'. general protection fault, probably for non-canonical address 0xdffffc000000006c: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000360-0x0000000000000367] CPU: 1 PID: 6302 Comm: syz-executor.2 Tainted: G W 5.17.0-next-20220323-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:br_mst_info_size+0xf5/0x270 net/bridge/br_mst.c:243 Code: de 52 f9 4c 8d 63 28 4c 89 e0 48 c1 e8 03 80 3c 28 00 0f 85 37 01 00 00 4c 8b 73 28 49 8d be 60 03 00 00 48 89 fa 48 c1 ea 03 <0f> b6 14 2a 84 d2 74 09 80 fa 01 0f 8e 28 01 00 00 45 0f b7 b6 60 RSP: 0018:ffffc90004c970a8 EFLAGS: 00010206 RAX: 1ffff1100f927305 RBX: ffff88807c939800 RCX: ffffc900040f4000 RDX: 000000000000006c RSI: ffffffff8825cb5e RDI: 0000000000000363 RBP: dffffc0000000000 R08: 0000000000000000 R09: ffffffff8db6a7d7 R10: ffffffff881fa607 R11: 0000000000000000 R12: ffff88807c939828 R13: ffffc90004c970d8 R14: 0000000000000003 R15: 0000000000000004 FS: 00007f5bfc97b700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1830da0000 CR3: 0000000024b99000 CR4: 00000000003526e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: br_get_link_af_size_filtered+0x2c0/0xc10 net/bridge/br_netlink.c:123 rtnl_link_get_af_size net/core/rtnetlink.c:598 [inline] if_nlmsg_size+0x40c/0xa50 net/core/rtnetlink.c:1040 rtnl_calcit.isra.0+0x25f/0x460 net/core/rtnetlink.c:3780 rtnetlink_rcv_msg+0xa65/0xb80 net/core/rtnetlink.c:5937 netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2496 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline] netlink_unicast+0x543/0x7f0 net/netlink/af_netlink.c:1345 netlink_sendmsg+0x904/0xe00 net/netlink/af_netlink.c:1921 sock_sendmsg_nosec net/socket.c:705 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:725 ____sys_sendmsg+0x6e8/0x810 net/socket.c:2413 ___sys_sendmsg+0xf3/0x170 net/socket.c:2467 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2496 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0x80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f5bfb889049 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f5bfc97b168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f5bfb99bf60 RCX: 00007f5bfb889049 RDX: 0000000020000000 RSI: 0000000020000340 RDI: 0000000000000003 RBP: 00007f5bfb8e308d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd4f3591ef R14: 00007f5bfc97b300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:br_mst_info_size+0xf5/0x270 net/bridge/br_mst.c:243 Code: de 52 f9 4c 8d 63 28 4c 89 e0 48 c1 e8 03 80 3c 28 00 0f 85 37 01 00 00 4c 8b 73 28 49 8d be 60 03 00 00 48 89 fa 48 c1 ea 03 <0f> b6 14 2a 84 d2 74 09 80 fa 01 0f 8e 28 01 00 00 45 0f b7 b6 60 RSP: 0018:ffffc90004c970a8 EFLAGS: 00010206 RAX: 1ffff1100f927305 RBX: ffff88807c939800 RCX: ffffc900040f4000 RDX: 000000000000006c RSI: ffffffff8825cb5e RDI: 0000000000000363 RBP: dffffc0000000000 R08: 0000000000000000 R09: ffffffff8db6a7d7 R10: ffffffff881fa607 R11: 0000000000000000 R12: ffff88807c939828 R13: ffffc90004c970d8 R14: 0000000000000003 R15: 0000000000000004 FS: 00007f5bfc97b700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb45aad53a5 CR3: 0000000024b99000 CR4: 00000000003526e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: de 52 f9 ficoms -0x7(%rdx) 3: 4c 8d 63 28 lea 0x28(%rbx),%r12 7: 4c 89 e0 mov %r12,%rax a: 48 c1 e8 03 shr $0x3,%rax e: 80 3c 28 00 cmpb $0x0,(%rax,%rbp,1) 12: 0f 85 37 01 00 00 jne 0x14f 18: 4c 8b 73 28 mov 0x28(%rbx),%r14 1c: 49 8d be 60 03 00 00 lea 0x360(%r14),%rdi 23: 48 89 fa mov %rdi,%rdx 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 0f b6 14 2a movzbl (%rdx,%rbp,1),%edx <-- trapping instruction 2e: 84 d2 test %dl,%dl 30: 74 09 je 0x3b 32: 80 fa 01 cmp $0x1,%dl 35: 0f 8e 28 01 00 00 jle 0x163 3b: 45 rex.RB 3c: 0f .byte 0xf 3d: b7 b6 mov $0xb6,%bh 3f: 60 (bad)