wlan0: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 wlan0: Creating new IBSS network, BSSID 50:50:50:50:50:50 IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready ================================================================== BUG: KASAN: slab-out-of-bounds in _copy_to_iter+0x493/0x1420 Read of size 4060 at addr ffff8880152b2024 by task syz-executor.1/3871 CPU: 0 PID: 3871 Comm: syz-executor.1 Not tainted 5.19.0-rc6-next-20220715 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 Call Trace: dump_stack_lvl+0x8b/0xb3 print_report.cold+0x5e/0x5e5 kasan_report+0xb1/0x1c0 kasan_check_range+0x35/0x1c0 memcpy+0x20/0x60 _copy_to_iter+0x493/0x1420 simple_copy_to_iter+0x4c/0x70 __skb_datagram_iter+0x122/0x880 skb_copy_datagram_iter+0x80/0x270 netlink_recvmsg+0x1c3/0xd60 sock_recvmsg+0x149/0x180 sock_read_iter+0x2b3/0x3b0 generic_file_splice_read+0x187/0x4d0 sock_splice_read+0xf0/0x120 do_splice_to+0x1bc/0x240 splice_file_to_pipe+0x104/0x120 do_sendfile+0x42a/0x1280 __x64_sys_sendfile64+0x1d1/0x210 do_syscall_64+0x3b/0x90 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fa1cbb99b19 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:00007fa1c910f188 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007fa1cbcacf60 RCX: 00007fa1cbb99b19 RDX: 0000000000000000 RSI: 0000000000000006 RDI: 0000000000000005 RBP: 00007fa1cbbf3f6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000088 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc2c962c2f R14: 00007fa1c910f300 R15: 0000000000022000 Allocated by task 3736: kasan_save_stack+0x1e/0x40 __kasan_kmalloc+0x81/0xa0 alloc_bprm+0x51/0x910 kernel_execve+0xab/0x500 call_usermodehelper_exec_async+0x2e6/0x580 ret_from_fork+0x22/0x30 Last potentially related work creation: kasan_save_stack+0x1e/0x40 __kasan_record_aux_stack+0x97/0xb0 call_rcu+0x6a/0xa30 __key_link+0xea/0x180 __key_instantiate_and_link+0x35c/0x3f0 key_create_or_update+0x708/0xc40 __do_sys_add_key+0x215/0x430 do_syscall_64+0x3b/0x90 entry_SYSCALL_64_after_hwframe+0x63/0xcd The buggy address belongs to the object at ffff8880152b2000 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 36 bytes inside of 512-byte region [ffff8880152b2000, ffff8880152b2200) The buggy address belongs to the physical page: page:00000000576bff7d refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff8880152b2c00 pfn:0x152b0 head:00000000576bff7d order:2 compound_mapcount:0 compound_pincount:0 flags: 0x100000000010200(slab|head|node=0|zone=1) raw: 0100000000010200 ffffea000038ee00 dead000000000002 ffff888007841c80 raw: ffff8880152b2c00 000000008010000f 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880152b2100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880152b2180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8880152b2200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8880152b2280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880152b2300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50 IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready wlan0: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 wlan0: Creating new IBSS network, BSSID 50:50:50:50:50:50 IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready wlan0: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 wlan0: Creating new IBSS network, BSSID 50:50:50:50:50:50 IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50 IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50 IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready wlan0: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 wlan0: Creating new IBSS network, BSSID 50:50:50:50:50:50 IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50 IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready wlan0: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 wlan0: Creating new IBSS network, BSSID 50:50:50:50:50:50 IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50 IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready