================================================================== BUG: KASAN: global-out-of-bounds in netlink_policy_dump_add_policy+0x309/0x3a0 net/netlink/policy.c:160 Read of size 1 at addr ffffffff88e71600 by task syz-executor.0/10204 CPU: 0 PID: 10204 Comm: syz-executor.0 Not tainted 5.11.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x9a/0xcc lib/dump_stack.c:120 print_address_description.constprop.0.cold+0x5/0x2f8 mm/kasan/report.c:230 __kasan_report mm/kasan/report.c:396 [inline] kasan_report.cold+0x79/0xd5 mm/kasan/report.c:413 netlink_policy_dump_add_policy+0x309/0x3a0 net/netlink/policy.c:160 ctrl_dumppolicy_start+0x384/0x6c0 net/netlink/genetlink.c:1181 genl_start+0x359/0x630 net/netlink/genetlink.c:604 __netlink_dump_start+0x4c4/0x810 net/netlink/af_netlink.c:2363 genl_family_rcv_msg_dumpit+0x262/0x2f0 net/netlink/genetlink.c:686 genl_family_rcv_msg net/netlink/genetlink.c:780 [inline] genl_rcv_msg+0x362/0x4a0 net/netlink/genetlink.c:800 netlink_rcv_skb+0x118/0x370 net/netlink/af_netlink.c:2494 genl_rcv+0x1f/0x30 net/netlink/genetlink.c:811 netlink_unicast_kernel net/netlink/af_netlink.c:1304 [inline] netlink_unicast+0x42e/0x700 net/netlink/af_netlink.c:1330 netlink_sendmsg+0x70e/0xbe0 net/netlink/af_netlink.c:1919 sock_sendmsg_nosec net/socket.c:652 [inline] sock_sendmsg+0xab/0xe0 net/socket.c:672 ____sys_sendmsg+0x5bf/0x7a0 net/socket.c:2345 ___sys_sendmsg+0xd3/0x150 net/socket.c:2399 __sys_sendmsg+0xb2/0x140 net/socket.c:2432 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x465b09 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:00007f26c6bc5188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000465b09 RDX: 0000000000000000 RSI: 00000000200029c0 RDI: 0000000000000003 RBP: 00000000004b069f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60 R13: 00007fffdc8cad7f R14: 00007f26c6bc5300 R15: 0000000000022000 The buggy address belongs to the variable: vdpa_nl_policy+0x40/0x3620 Memory state around the buggy address: ffffffff88e71500: 00 00 00 00 00 05 f9 f9 f9 f9 f9 f9 00 00 00 00 ffffffff88e71580: 00 00 f9 f9 f9 f9 f9 f9 00 00 00 00 00 00 00 00 >ffffffff88e71600: f9 f9 f9 f9 00 00 04 f9 f9 f9 f9 f9 05 f9 f9 f9 ^ ffffffff88e71680: f9 f9 f9 f9 00 00 07 f9 f9 f9 f9 f9 00 00 00 01 ffffffff88e71700: f9 f9 f9 f9 00 07 f9 f9 f9 f9 f9 f9 00 01 f9 f9 ==================================================================