================================================================== BUG: KASAN: slab-out-of-bounds in dns_resolver_preparse+0x910/0x9b0 net/dns_resolver/dns_key.c:127 Read of size 1 at addr ffff88800d13c9dc by task syz-executor.4/7085 CPU: 1 PID: 7085 Comm: syz-executor.4 Not tainted 5.10.206 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x107/0x167 lib/dump_stack.c:118 print_address_description.constprop.0+0x1c/0x220 mm/kasan/report.c:377 __kasan_report mm/kasan/report.c:537 [inline] kasan_report.cold+0x37/0x7c mm/kasan/report.c:554 dns_resolver_preparse+0x910/0x9b0 net/dns_resolver/dns_key.c:127 key_create_or_update+0x3e0/0xc30 security/keys/key.c:859 __do_sys_add_key+0x215/0x430 security/keys/keyctl.c:134 do_syscall_64+0x33/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x62/0xc7 RIP: 0033:0x7ff9cc186b19 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:00007ff9c96fc188 EFLAGS: 00000246 ORIG_RAX: 00000000000000f8 RAX: ffffffffffffffda RBX: 00007ff9cc299f60 RCX: 00007ff9cc186b19 RDX: 0000000020000000 RSI: 0000000000000000 RDI: 0000000020000040 RBP: 00007ff9cc1e0f6d R08: fffffffffffffffb R09: 0000000000000000 R10: 0000000000000004 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffda27f0f7f R14: 00007ff9c96fc300 R15: 0000000000022000 Allocated by task 7085: kasan_save_stack+0x1b/0x40 mm/kasan/common.c:48 kasan_set_track mm/kasan/common.c:56 [inline] __kasan_kmalloc.constprop.0+0xc9/0xd0 mm/kasan/common.c:461 kmalloc_node include/linux/slab.h:575 [inline] kvmalloc_node+0x119/0x170 mm/util.c:607 kvmalloc include/linux/mm.h:765 [inline] __do_sys_add_key+0x311/0x430 security/keys/keyctl.c:116 do_syscall_64+0x33/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x62/0xc7 The buggy address belongs to the object at ffff88800d13c9d8 which belongs to the cache kmalloc-8 of size 8 The buggy address is located 4 bytes inside of 8-byte region [ffff88800d13c9d8, ffff88800d13c9e0) The buggy address belongs to the page: page:0000000025477f35 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88800d13cd48 pfn:0xd13c flags: 0x100000000000200(slab) raw: 0100000000000200 ffffea0000396e80 0000000900000009 ffff888008041c80 raw: ffff88800d13cd48 000000008066004c 00000001ffffffff ffff88800b895001 page dumped because: kasan: bad access detected page->mem_cgroup:ffff88800b895001 Memory state around the buggy address: ffff88800d13c880: fc fc fc fb fc fc fc fc 00 fc fc fc fc 00 fc fc ffff88800d13c900: fc fc fb fc fc fc fc fa fc fc fc fc fa fc fc fc >ffff88800d13c980: fc 00 fc fc fc fc fa fc fc fc fc 04 fc fc fc fc ^ ffff88800d13ca00: fb fc fc fc fc 00 fc fc fc fc fa fc fc fc fc fa ffff88800d13ca80: fc fc fc fc fa fc fc fc fc 00 fc fc fc fc fb fc ================================================================== EXT4-fs warning (device sda): verify_group_input:146: Cannot add at group 0 (only 16 groups) debugfs: Directory '€˜§°ÇÛ ”uòQÇC !' with parent 'ieee80211' already present! EXT4-fs (loop3): mounted filesystem without journal. Opts: ,errors=continue udc-core: couldn't find an available UDC or it's busy misc raw-gadget: fail, usb_gadget_probe_driver returned -19 EXT4-fs warning (device sda): verify_group_input:146: Cannot add at group 0 (only 16 groups) sysfs: cannot create duplicate filename '/class/ieee80211/€˜§°ÇÛ ”uòQÇC !' CPU: 0 PID: 7112 Comm: syz-executor.7 Tainted: G B 5.10.206 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x107/0x167 lib/dump_stack.c:118 sysfs_warn_dup.cold+0x1c/0x29 fs/sysfs/dir.c:30 sysfs_do_create_link_sd+0x122/0x140 fs/sysfs/symlink.c:51 sysfs_do_create_link fs/sysfs/symlink.c:80 [inline] sysfs_create_link+0x5f/0xc0 fs/sysfs/symlink.c:92 device_add_class_symlinks drivers/base/core.c:2733 [inline] device_add+0x703/0x1c50 drivers/base/core.c:2941 wiphy_register+0x1da6/0x2850 net/wireless/core.c:915 ieee80211_register_hw+0x23c5/0x38b0 net/mac80211/main.c:1293 mac80211_hwsim_new_radio+0x1ce0/0x4250 drivers/net/wireless/mac80211_hwsim.c:3300 hwsim_new_radio_nl+0x991/0x1080 drivers/net/wireless/mac80211_hwsim.c:3881 genl_family_rcv_msg_doit+0x22d/0x330 net/netlink/genetlink.c:739 genl_family_rcv_msg net/netlink/genetlink.c:783 [inline] genl_rcv_msg+0x33c/0x5a0 net/netlink/genetlink.c:800 netlink_rcv_skb+0x14b/0x430 net/netlink/af_netlink.c:2497 genl_rcv+0x24/0x40 net/netlink/genetlink.c:811 netlink_unicast_kernel net/netlink/af_netlink.c:1322 [inline] netlink_unicast+0x549/0x7f0 net/netlink/af_netlink.c:1348 netlink_sendmsg+0x90f/0xdf0 net/netlink/af_netlink.c:1916 sock_sendmsg_nosec net/socket.c:651 [inline] __sock_sendmsg+0x154/0x190 net/socket.c:663 ____sys_sendmsg+0x70d/0x870 net/socket.c:2376 ___sys_sendmsg+0xf3/0x170 net/socket.c:2430 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2459 do_syscall_64+0x33/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x62/0xc7 RIP: 0033:0x7ff942b4cb19 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:00007ff9400c2188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007ff942c5ff60 RCX: 00007ff942b4cb19 RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000000000006 RBP: 00007ff942ba6f6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd2ef631df R14: 00007ff9400c2300 R15: 0000000000022000