================================================================== BUG: KASAN: slab-out-of-bounds in memcpy include/linux/string.h:406 [inline] BUG: KASAN: slab-out-of-bounds in skb_put_data include/linux/skbuff.h:2275 [inline] BUG: KASAN: slab-out-of-bounds in qrtr_endpoint_post+0x5c1/0x1050 net/qrtr/qrtr.c:492 Read of size 4294967293 at addr ffff8880968b0ce0 by task syz-executor266/6886 CPU: 1 PID: 6886 Comm: syz-executor266 Not tainted 5.9.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x198/0x1fd lib/dump_stack.c:118 print_address_description.constprop.0.cold+0xae/0x497 mm/kasan/report.c:383 __kasan_report mm/kasan/report.c:513 [inline] kasan_report.cold+0x1f/0x37 mm/kasan/report.c:530 check_memory_region_inline mm/kasan/generic.c:186 [inline] check_memory_region+0x13d/0x180 mm/kasan/generic.c:192 memcpy+0x20/0x60 mm/kasan/common.c:105 memcpy include/linux/string.h:406 [inline] skb_put_data include/linux/skbuff.h:2275 [inline] qrtr_endpoint_post+0x5c1/0x1050 net/qrtr/qrtr.c:492 qrtr_tun_write_iter+0xf5/0x180 net/qrtr/tun.c:92 call_write_iter include/linux/fs.h:1882 [inline] new_sync_write+0x422/0x650 fs/read_write.c:503 vfs_write+0x5ad/0x730 fs/read_write.c:578 ksys_write+0x12d/0x250 fs/read_write.c:631 do_syscall_32_irqs_on arch/x86/entry/common.c:78 [inline] __do_fast_syscall_32+0x60/0x90 arch/x86/entry/common.c:137 do_fast_syscall_32+0x2f/0x70 arch/x86/entry/common.c:160 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c RIP: 0023:0xf7f83549 Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 eb 0d 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 002b:00000000ff92dd1c EFLAGS: 00000246 ORIG_RAX: 0000000000000004 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000020000000 RDX: 0000000000000020 RSI: 00000000080ea078 RDI: 00000000ff92dd70 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Allocated by task 6886: kasan_save_stack+0x1b/0x40 mm/kasan/common.c:48 kasan_set_track mm/kasan/common.c:56 [inline] __kasan_kmalloc.constprop.0+0xbf/0xd0 mm/kasan/common.c:461 __do_kmalloc mm/slab.c:3655 [inline] __kmalloc+0x1b0/0x360 mm/slab.c:3664 kmalloc include/linux/slab.h:559 [inline] kzalloc include/linux/slab.h:666 [inline] qrtr_tun_write_iter+0x8a/0x180 net/qrtr/tun.c:83 call_write_iter include/linux/fs.h:1882 [inline] new_sync_write+0x422/0x650 fs/read_write.c:503 vfs_write+0x5ad/0x730 fs/read_write.c:578 ksys_write+0x12d/0x250 fs/read_write.c:631 do_syscall_32_irqs_on arch/x86/entry/common.c:78 [inline] __do_fast_syscall_32+0x60/0x90 arch/x86/entry/common.c:137 do_fast_syscall_32+0x2f/0x70 arch/x86/entry/common.c:160 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c The buggy address belongs to the object at ffff8880968b0cc0 which belongs to the cache kmalloc-32 of size 32 The buggy address is located 0 bytes to the right of 32-byte region [ffff8880968b0cc0, ffff8880968b0ce0) The buggy address belongs to the page: page:000000001a4704c7 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff8880968b0fc1 pfn:0x968b0 flags: 0xfffe0000000200(slab) raw: 00fffe0000000200 ffffea000279eb88 ffffea00025a7c48 ffff8880aa040100 raw: ffff8880968b0fc1 ffff8880968b0000 0000000100000023 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880968b0b80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc ffff8880968b0c00: 00 01 fc fc fc fc fc fc fa fb fb fb fc fc fc fc >ffff8880968b0c80: fa fb fb fb fc fc fc fc 00 00 00 00 fc fc fc fc ^ ffff8880968b0d00: 00 01 fc fc fc fc fc fc 00 00 fc fc fc fc fc fc ffff8880968b0d80: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc ==================================================================