================================================================== 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:3446 Write of size 178 at addr ffffc900037bfe10 by task syz-executor.3/8828 CPU: 1 PID: 8828 Comm: syz-executor.3 Not tainted 5.12.0-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:233 __kasan_report mm/kasan/report.c:419 [inline] kasan_report.cold+0x7c/0xd8 mm/kasan/report.c:436 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:3446 sock_recvmsg_nosec net/socket.c:888 [inline] sock_recvmsg net/socket.c:906 [inline] sock_recvmsg net/socket.c:902 [inline] __sys_recvfrom+0x248/0x3a0 net/socket.c:2034 __do_sys_recvfrom net/socket.c:2052 [inline] __se_sys_recvfrom net/socket.c:2048 [inline] __x64_sys_recvfrom+0xdd/0x1b0 net/socket.c:2048 do_syscall_64+0x3a/0xb0 arch/x86/entry/common.c:47 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4665d9 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:00007fd19bf1f188 EFLAGS: 00000246 ORIG_RAX: 000000000000002d RAX: ffffffffffffffda RBX: 000000000056c008 RCX: 00000000004665d9 RDX: 000000000000003c RSI: 0000000020000000 RDI: 0000000000000005 RBP: 00000000004bfcb9 R08: 00000000200000c0 R09: 0000000000000080 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c008 R13: 00007ffc4e669e3f R14: 00007fd19bf1f300 R15: 0000000000022000 addr ffffc900037bfe10 is located in stack of task syz-executor.3/8828 at offset 224 in frame: __sys_recvfrom+0x0/0x3a0 net/socket.c:1996 this frame has 5 objects: [32, 36) 'err' [48, 52) 'fput_needed' [64, 80) 'iov' [96, 192) 'msg' [224, 352) 'address' Memory state around the buggy address: ffffc900037bfd80: f2 f2 00 00 00 00 00 00 00 00 00 00 00 00 f2 f2 ffffc900037bfe00: f2 f2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffffc900037bfe80: 00 00 f3 f3 f3 f3 00 00 00 00 00 00 00 00 00 00 ^ ffffc900037bff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffffc900037bff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================