================================================================== BUG: KASAN: global-out-of-bounds in validate_nla+0x12c4/0x1580 lib/nlattr.c:169 Read of size 1 at addr ffffffff88f41fc0 by task syz-executor288/7947 CPU: 1 PID: 7947 Comm: syz-executor288 Not tainted 5.0.0-rc3+ #41 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+0x1db/0x2d0 lib/dump_stack.c:113 print_address_description.cold+0x5/0x20d mm/kasan/report.c:187 kasan_report.cold+0x1b/0x40 mm/kasan/report.c:317 __asan_report_load1_noabort+0x14/0x20 mm/kasan/generic_report.c:132 validate_nla+0x12c4/0x1580 lib/nlattr.c:169 nla_validate+0xc1/0x130 lib/nlattr.c:340 validate_nla+0x711/0x1580 lib/nlattr.c:247 __nla_parse+0x206/0x340 lib/nlattr.c:415 nla_parse+0x45/0x60 lib/nlattr.c:439 nlmsg_parse include/net/netlink.h:527 [inline] nl80211_dump_wiphy_parse.isra.0.constprop.0+0x133/0x610 net/wireless/nl80211.c:2299 nl80211_dump_wiphy+0x595/0x760 net/wireless/nl80211.c:2342 genl_lock_dumpit+0x6d/0xa0 net/netlink/genetlink.c:481 netlink_dump+0x5f2/0x1070 net/netlink/af_netlink.c:2244 __netlink_dump_start+0x5b4/0x7e0 net/netlink/af_netlink.c:2352 genl_family_rcv_msg+0xeb5/0x11a0 net/netlink/genetlink.c:549 genl_rcv_msg+0xca/0x16c net/netlink/genetlink.c:626 netlink_rcv_skb+0x17d/0x410 net/netlink/af_netlink.c:2477 genl_rcv+0x29/0x40 net/netlink/genetlink.c:637 netlink_unicast_kernel net/netlink/af_netlink.c:1310 [inline] netlink_unicast+0x574/0x770 net/netlink/af_netlink.c:1336 netlink_sendmsg+0xa05/0xf90 net/netlink/af_netlink.c:1917 sock_sendmsg_nosec net/socket.c:621 [inline] sock_sendmsg+0xdd/0x130 net/socket.c:631 ___sys_sendmsg+0x7ec/0x910 net/socket.c:2116 __sys_sendmsg+0x112/0x270 net/socket.c:2154 __compat_sys_sendmsg net/compat.c:757 [inline] __do_compat_sys_sendmsg net/compat.c:764 [inline] __se_compat_sys_sendmsg net/compat.c:761 [inline] __ia32_compat_sys_sendmsg+0x7a/0xb0 net/compat.c:761 do_syscall_32_irqs_on arch/x86/entry/common.c:326 [inline] do_fast_syscall_32+0x333/0xf98 arch/x86/entry/common.c:397 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 RIP: 0023:0xf7f94869 Code: 85 d2 74 02 89 0a 5b 5d c3 8b 04 24 c3 8b 14 24 c3 8b 3c 24 c3 90 90 90 90 90 90 90 90 90 90 90 90 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 eb 0d 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 002b:00000000ff958f9c EFLAGS: 00000246 ORIG_RAX: 0000000000000172 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000020000380 RDX: 0000000000000000 RSI: 00000000080ea078 RDI: 00000000ff958ff0 RBP: 0000000000001000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 The buggy address belongs to the variable: nl80211_pmsr_attr_policy+0x60/0x80 Memory state around the buggy address: ffffffff88f41e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffffff88f41f00: 00 00 00 00 00 00 00 00 fa fa fa fa 00 00 00 00 >ffffffff88f41f80: 00 00 00 00 00 00 00 00 fa fa fa fa 00 00 00 00 ^ ffffffff88f42000: 00 00 00 00 00 00 fa fa fa fa fa fa 00 00 00 00 ffffffff88f42080: 00 00 fa fa fa fa fa fa 00 00 00 00 fa fa fa fa ==================================================================