================================================================== BUG: KASAN: slab-out-of-bounds in ieee80211_key_free+0xf0/0x110 net/mac80211/key.c:722 Read of size 2 at addr ffff8880b32e32a8 by task syz-executor.1/20333 CPU: 1 PID: 20333 Comm: syz-executor.1 Not tainted 4.19.164-syzkaller #0 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+0x1fc/0x2fe lib/dump_stack.c:118 print_address_description.cold+0x54/0x219 mm/kasan/report.c:256 kasan_report_error.cold+0x8a/0x1c7 mm/kasan/report.c:354 kasan_report mm/kasan/report.c:412 [inline] __asan_report_load2_noabort+0x88/0x90 mm/kasan/report.c:431 ieee80211_key_free+0xf0/0x110 net/mac80211/key.c:722 ieee80211_del_key+0x162/0x3d0 net/mac80211/cfg.c:498 rdev_del_key net/wireless/rdev-ops.h:106 [inline] nl80211_del_key+0x43e/0xc20 net/wireless/nl80211.c:3656 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:2455 genl_rcv+0x24/0x40 net/netlink/genetlink.c:638 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x6bb/0xc40 net/netlink/af_netlink.c:1909 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xc3/0x120 net/socket.c:632 ___sys_sendmsg+0x7bb/0x8e0 net/socket.c:2115 UDF-fs: bad mount option "session=00000000004294967295" or missing value __sys_sendmsg net/socket.c:2153 [inline] __do_sys_sendmsg net/socket.c:2162 [inline] __se_sys_sendmsg net/socket.c:2160 [inline] __x64_sys_sendmsg+0x132/0x220 net/socket.c:2160 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45e299 Code: 0d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f2ee6d10c68 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045e299 RDX: 0000000000000000 RSI: 0000000020000800 RDI: 0000000000000005 RBP: 000000000119bfc0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000119bf8c R13: 00007ffd32d71b9f R14: 00007f2ee6d119c0 R15: 000000000119bf8c Allocated by task 19421: __do_kmalloc mm/slab.c:3727 [inline] __kmalloc_track_caller+0x155/0x3c0 mm/slab.c:3742 kmemdup+0x23/0x50 mm/util.c:118 kmemdup include/linux/string.h:446 [inline] shmem_symlink+0x185/0x7c0 mm/shmem.c:3074 vfs_symlink+0x453/0x6c0 fs/namei.c:4129 do_symlinkat+0x258/0x2c0 fs/namei.c:4156 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 18: __cache_free mm/slab.c:3503 [inline] kfree+0xcc/0x210 mm/slab.c:3822 shmem_destroy_callback+0x96/0xb0 mm/shmem.c:3609 __rcu_reclaim kernel/rcu/rcu.h:236 [inline] rcu_do_batch kernel/rcu/tree.c:2584 [inline] invoke_rcu_callbacks kernel/rcu/tree.c:2897 [inline] __rcu_process_callbacks kernel/rcu/tree.c:2864 [inline] rcu_process_callbacks+0x8ff/0x18b0 kernel/rcu/tree.c:2881 __do_softirq+0x26c/0x9a0 kernel/softirq.c:292 The buggy address belongs to the object at ffff8880b32e3280 which belongs to the cache kmalloc-32 of size 32 The buggy address is located 8 bytes to the right of 32-byte region [ffff8880b32e3280, ffff8880b32e32a0) The buggy address belongs to the page: page:ffffea0002ccb8c0 count:1 mapcount:0 mapping:ffff88813bff01c0 index:0xffff8880b32e3fc1 flags: 0xfff00000000100(slab) raw: 00fff00000000100 ffffea0002a99508 ffffea0002ca7248 ffff88813bff01c0 raw: ffff8880b32e3fc1 ffff8880b32e3000 000000010000003c 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880b32e3180: fb fb fb fb fc fc fc fc 06 fc fc fc fc fc fc fc ffff8880b32e3200: 00 00 00 fc fc fc fc fc 00 02 fc fc fc fc fc fc >ffff8880b32e3280: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc ^ ffff8880b32e3300: fb fb fb fb fc fc fc fc 07 fc fc fc fc fc fc fc ffff8880b32e3380: 06 fc fc fc fc fc fc fc 05 fc fc fc fc fc fc fc ==================================================================