==================================================================
BUG: KASAN: global-out-of-bounds in netlink_policy_dump_add_policy+0x40e/0x4b0 net/netlink/policy.c:160
Read of size 1 at addr ffffffff89e000ae by task syz-executor.0/7172
CPU: 1 PID: 7172 Comm: syz-executor.0 Not tainted 6.1.0-rc3-syzkaller-00887-g0c9ef08a4d0f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Call Trace:
<TASK>
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
print_address_description mm/kasan/report.c:284 [inline]
print_report+0x15e/0x45d mm/kasan/report.c:395
kasan_report+0xbb/0x1f0 mm/kasan/report.c:495
netlink_policy_dump_add_policy+0x40e/0x4b0 net/netlink/policy.c:160
ctrl_dumppolicy_start+0x30b/0xa70 net/netlink/genetlink.c:1423
genl_start+0x3bc/0x650 net/netlink/genetlink.c:823
__netlink_dump_start+0x589/0x900 net/netlink/af_netlink.c:2381
genl_family_rcv_msg_dumpit+0x1b5/0x310 net/netlink/genetlink.c:902
genl_family_rcv_msg net/netlink/genetlink.c:1029 [inline]
genl_rcv_msg+0x415/0x7d0 net/netlink/genetlink.c:1049
netlink_rcv_skb+0x161/0x440 net/netlink/af_netlink.c:2564
genl_rcv+0x24/0x40 net/netlink/genetlink.c:1060
netlink_unicast_kernel net/netlink/af_netlink.c:1330 [inline]
netlink_unicast+0x543/0x7f0 net/netlink/af_netlink.c:1356
netlink_sendmsg+0x917/0xe10 net/netlink/af_netlink.c:1932
sock_sendmsg_nosec net/socket.c:714 [inline]
sock_sendmsg+0xcf/0x120 net/socket.c:734
____sys_sendmsg+0x712/0x8c0 net/socket.c:2476
___sys_sendmsg+0x110/0x1b0 net/socket.c:2530
__sys_sendmsg+0xf3/0x1c0 net/socket.c:2559
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f79f088b639
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:00007f79f15b4168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f79f09abf80 RCX: 00007f79f088b639
RDX: 0000000000000000 RSI: 00000000200029c0 RDI: 0000000000000003
RBP: 00007f79f08e67e1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd5205cd9f R14: 00007f79f15b4300 R15: 0000000000022000
</TASK>
The buggy address belongs to the variable:
__start_rodata+0xae/0x1500
The buggy address belongs to the physical page:
page:ffffea0000278000 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x9e00
flags: 0xfff00000001000(reserved|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000001000 ffffea0000278008 ffffea0000278008 0000000000000000
raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner info is not present (never set?)
Memory state around the buggy address:
ffffffff89dfff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffffffff89e00000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffffffff89e00080: 00 00 00 00 00 f9 f9 f9 f9 f9 f9 f9 00 01 f9 f9
^
ffffffff89e00100: f9 f9 f9 f9 00 00 00 07 f9 f9 f9 f9 00 00 00 00
ffffffff89e00180: 00 00 00 00 00 00 00 05 f9 f9 f9 f9 03 f9 f9 f9
==================================================================