netlink: 20 bytes leftover after parsing attributes in process `syz-executor.4'. ieee802154 phy0 wpan0: encryption failed: -22 netlink: 20 bytes leftover after parsing attributes in process `syz-executor.4'. ================================================================== BUG: KASAN: slab-out-of-bounds in flush_gro_hash net/core/dev.c:6241 [inline] BUG: KASAN: slab-out-of-bounds in netif_napi_del+0x301/0x380 net/core/dev.c:6256 Read of size 8 at addr ffff88804d742518 by task syz-executor.4/4832 CPU: 0 PID: 4832 Comm: syz-executor.4 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 print_address_description.cold+0x54/0x219 mm/kasan/report.c:256 kasan_report_error.cold+0x8a/0x1b9 mm/kasan/report.c:354 kasan_report mm/kasan/report.c:412 [inline] __asan_report_load8_noabort+0x88/0x90 mm/kasan/report.c:433 flush_gro_hash net/core/dev.c:6241 [inline] netif_napi_del+0x301/0x380 net/core/dev.c:6256 free_netdev+0x21f/0x410 net/core/dev.c:9250 netdev_run_todo+0x89b/0xab0 net/core/dev.c:9002 rtnl_unlock net/core/rtnetlink.c:117 [inline] rtnetlink_rcv_msg+0x460/0xb80 net/core/rtnetlink.c:4783 netlink_rcv_skb+0x160/0x440 net/netlink/af_netlink.c:2463 netlink_unicast_kernel net/netlink/af_netlink.c:1325 [inline] netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1351 netlink_sendmsg+0x6c3/0xc50 net/netlink/af_netlink.c:1917 sock_sendmsg_nosec net/socket.c:651 [inline] sock_sendmsg+0xc3/0x120 net/socket.c:661 ___sys_sendmsg+0x7bb/0x8e0 net/socket.c:2227 __sys_sendmsg net/socket.c:2265 [inline] __do_sys_sendmsg net/socket.c:2274 [inline] __se_sys_sendmsg net/socket.c:2272 [inline] __x64_sys_sendmsg+0x132/0x220 net/socket.c:2272 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f73e1cb4109 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:00007f73e0629168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f73e1dc6f60 RCX: 00007f73e1cb4109 RDX: 0000000000000000 RSI: 0000000020000180 RDI: 0000000000000003 RBP: 00007f73e1d0e0ed R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffec5c6100f R14: 00007f73e0629300 R15: 0000000000022000 Allocated by task 4840: __do_kmalloc_node mm/slab.c:3689 [inline] __kmalloc_node+0x4c/0x70 mm/slab.c:3696 kmalloc_node include/linux/slab.h:557 [inline] kvmalloc_node+0xb4/0xf0 mm/util.c:423 kvmalloc include/linux/mm.h:577 [inline] kvzalloc include/linux/mm.h:585 [inline] alloc_netdev_mqs+0x97/0xd50 net/core/dev.c:9152 __tun_chr_ioctl.isra.0+0x2184/0x3d00 drivers/net/tun.c:2628 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:501 [inline] do_vfs_ioctl+0xcdb/0x12e0 fs/ioctl.c:688 ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705 __do_sys_ioctl fs/ioctl.c:712 [inline] __se_sys_ioctl fs/ioctl.c:710 [inline] __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 2730: __cache_free mm/slab.c:3503 [inline] kfree+0xcc/0x210 mm/slab.c:3822 device_release+0x76/0x210 drivers/base/core.c:1076 kobject_cleanup lib/kobject.c:662 [inline] kobject_release lib/kobject.c:691 [inline] kref_put include/linux/kref.h:70 [inline] kobject_put+0x28b/0x5d0 lib/kobject.c:708 put_device+0x1c/0x30 drivers/base/core.c:2267 mac80211_hwsim_new_radio+0x423/0x3c60 drivers/net/wireless/mac80211_hwsim.c:2949 hwsim_new_radio_nl+0x5c3/0x850 drivers/net/wireless/mac80211_hwsim.c:3374 audit: type=1804 audit(1657814699.005:728): pid=4857 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=invalid_pcr cause=open_writers comm="syz-executor.3" name="/root/syzkaller-testdir1666306584/syzkaller.PsxCGv/200/bus" dev="sda1" ino=14112 res=1 genl_family_rcv_msg+0x642/0xc40 net/netlink/genetlink.c:602 genl_rcv_msg+0xbf/0x160 net/netlink/genetlink.c:627 netlink_rcv_skb+0x160/0x440 net/netlink/af_netlink.c:2463 genl_rcv+0x24/0x40 net/netlink/genetlink.c:638 netlink_unicast_kernel net/netlink/af_netlink.c:1325 [inline] netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1351 netlink_sendmsg+0x6c3/0xc50 net/netlink/af_netlink.c:1917 sock_sendmsg_nosec net/socket.c:651 [inline] sock_sendmsg+0xc3/0x120 net/socket.c:661 ___sys_sendmsg+0x7bb/0x8e0 net/socket.c:2227 __sys_sendmsg net/socket.c:2265 [inline] __do_sys_sendmsg net/socket.c:2274 [inline] __se_sys_sendmsg net/socket.c:2272 [inline] __x64_sys_sendmsg+0x132/0x220 net/socket.c:2272 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff88804d7425c0 which belongs to the cache kmalloc-16384 of size 16384 The buggy address is located 168 bytes to the left of 16384-byte region [ffff88804d7425c0, ffff88804d7465c0) The buggy address belongs to the page: page:ffffea000135d000 count:1 mapcount:0 mapping:ffff88813bff2200 index:0x0 compound_mapcount: 0 flags: 0xfff00000008100(slab|head) raw: 00fff00000008100 ffffea0002553208 ffffea000138aa08 ffff88813bff2200 raw: 0000000000000000 ffff88804d7425c0 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88804d742400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88804d742480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88804d742500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88804d742580: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 ffff88804d742600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================