================================================================== BUG: KASAN: stack-out-of-bounds in memcpy include/linux/fortify-string.h:191 [inline] BUG: KASAN: stack-out-of-bounds in packet_recvmsg+0x56c/0x1150 net/packet/af_packet.c:3443 Write of size 149 at addr ffffc90001d2fa38 by task syz-executor.5/11924 CPU: 0 PID: 11924 Comm: syz-executor.5 Not tainted 5.12.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x141/0x1d7 lib/dump_stack.c:120 print_address_description.constprop.0.cold+0x5/0x2f8 mm/kasan/report.c:232 __kasan_report mm/kasan/report.c:399 [inline] kasan_report.cold+0x7c/0xd8 mm/kasan/report.c:416 check_region_inline mm/kasan/generic.c:180 [inline] kasan_check_range+0x13d/0x180 mm/kasan/generic.c:186 memcpy+0x39/0x60 mm/kasan/shadow.c:66 memcpy include/linux/fortify-string.h:191 [inline] packet_recvmsg+0x56c/0x1150 net/packet/af_packet.c:3443 sock_recvmsg_nosec net/socket.c:888 [inline] ____sys_recvmsg+0x527/0x600 net/socket.c:2567 ___sys_recvmsg+0x127/0x200 net/socket.c:2611 do_recvmmsg+0x24d/0x6d0 net/socket.c:2705 __sys_recvmmsg net/socket.c:2786 [inline] __do_sys_recvmmsg net/socket.c:2807 [inline] __se_sys_recvmmsg net/socket.c:2800 [inline] __x64_sys_recvmmsg+0x17d/0x260 net/socket.c:2800 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4665f9 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:00007efd0129b188 EFLAGS: 00000246 ORIG_RAX: 000000000000012b RAX: ffffffffffffffda RBX: 000000000056c008 RCX: 00000000004665f9 RDX: 0000000000000009 RSI: 0000000020005580 RDI: 0000000000000004 RBP: 00000000004bfce1 R08: 0000000020005800 R09: 0000000000000000 R10: 0000000000000020 R11: 0000000000000246 R12: 000000000056c008 R13: 00007ffc3c92263f R14: 00007efd0129b300 R15: 0000000000022000 addr ffffc90001d2fa38 is located in stack of task syz-executor.5/11924 at offset 32 in frame: ____sys_recvmsg+0x0/0x600 include/linux/audit.h:313 this frame has 1 object: [32, 160) 'addr' Memory state around the buggy address: ffffc90001d2f980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc90001d2fa00: 00 00 00 f1 f1 f1 f1 00 00 00 00 00 00 00 00 00 >ffffc90001d2fa80: 00 00 00 00 00 00 00 f3 f3 f3 f3 00 00 00 00 00 ^ ffffc90001d2fb00: 00 00 00 00 00 00 00 f1 f1 f1 f1 00 f2 f2 f2 00 ffffc90001d2fb80: f2 f2 f2 00 00 00 00 00 00 00 f2 f2 f2 f2 f2 00 ==================================================================