================================================================== BUG: KASAN: stack-out-of-bounds in memcpy include/linux/fortify-string.h:225 [inline] BUG: KASAN: stack-out-of-bounds in packet_recvmsg+0x56c/0x1150 net/packet/af_packet.c:3485 Write of size 135 at addr ffffc90002bdfa30 by task syz-executor.2/18825 CPU: 0 PID: 18825 Comm: syz-executor.2 Not tainted 5.16.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 print_address_description.constprop.0.cold+0xf/0x320 mm/kasan/report.c:247 __kasan_report mm/kasan/report.c:433 [inline] kasan_report.cold+0x83/0xdf mm/kasan/report.c:450 check_region_inline mm/kasan/generic.c:183 [inline] kasan_check_range+0x13d/0x180 mm/kasan/generic.c:189 memcpy+0x39/0x60 mm/kasan/shadow.c:66 memcpy include/linux/fortify-string.h:225 [inline] packet_recvmsg+0x56c/0x1150 net/packet/af_packet.c:3485 sock_recvmsg_nosec net/socket.c:944 [inline] sock_recvmsg net/socket.c:962 [inline] sock_recvmsg net/socket.c:958 [inline] ____sys_recvmsg+0x2c4/0x600 net/socket.c:2628 ___sys_recvmsg+0x127/0x200 net/socket.c:2670 do_recvmmsg+0x24d/0x6d0 net/socket.c:2764 __sys_recvmmsg net/socket.c:2845 [inline] __do_sys_recvmmsg net/socket.c:2866 [inline] __se_sys_recvmmsg net/socket.c:2859 [inline] __x64_sys_recvmmsg+0x17d/0x260 net/socket.c:2859 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f7be3c99e99 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:00007f7be260f168 EFLAGS: 00000246 ORIG_RAX: 000000000000012b RAX: ffffffffffffffda RBX: 00007f7be3dacf60 RCX: 00007f7be3c99e99 RDX: 0000000000000004 RSI: 0000000020005f00 RDI: 0000000000000004 RBP: 00007f7be3cf4031 R08: 0000000020006040 R09: 0000000000000000 R10: 0000000000010000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff50975a4f R14: 00007f7be260f300 R15: 0000000000022000 addr ffffc90002bdfa30 is located in stack of task syz-executor.2/18825 at offset 32 in frame: ____sys_recvmsg+0x0/0x600 include/linux/uio.h:257 this frame has 1 object: [32, 160) 'addr' Memory state around the buggy address: ffffc90002bdf980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90002bdfa00: 00 00 f1 f1 f1 f1 00 00 00 00 00 00 00 00 00 00 >ffffc90002bdfa80: 00 00 00 00 00 00 f3 f3 f3 f3 00 00 00 00 00 00 ^ ffffc90002bdfb00: 00 00 00 00 00 00 f1 f1 f1 f1 00 f2 f2 f2 00 f2 ffffc90002bdfb80: f2 f2 00 00 00 00 00 00 00 f2 f2 f2 f2 f2 00 00 ==================================================================