================================================================== BUG: KASAN: slab-out-of-bounds in memcpy include/linux/string.h:399 [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:493 Read of size 4294967293 at addr ffff88802042efa0 by task syz-executor672/8497 CPU: 1 PID: 8497 Comm: syz-executor672 Not tainted 5.10.0-rc1-next-20201030-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+0x107/0x163 lib/dump_stack.c:118 print_address_description.constprop.0.cold+0xae/0x4c8 mm/kasan/report.c:385 __kasan_report mm/kasan/report.c:545 [inline] kasan_report.cold+0x1f/0x37 mm/kasan/report.c:562 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:399 [inline] skb_put_data include/linux/skbuff.h:2275 [inline] qrtr_endpoint_post+0x5c1/0x1050 net/qrtr/qrtr.c:493 qrtr_tun_write_iter+0xf5/0x180 net/qrtr/tun.c:92 call_write_iter include/linux/fs.h:1886 [inline] new_sync_write+0x426/0x650 fs/read_write.c:518 vfs_write+0x57d/0x700 fs/read_write.c:605 ksys_write+0x12d/0x250 fs/read_write.c:658 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x440279 Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 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 0f 83 7b 13 fc ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffc6b4d5d38 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440279 RDX: 0000000000000020 RSI: 0000000020000000 RDI: 0000000000000003 RBP: 00000000006ca018 R08: 0000000000000000 R09: 00000000004002c8 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a80 R13: 0000000000401b10 R14: 0000000000000000 R15: 0000000000000000 Allocated by task 8497: kasan_save_stack+0x1b/0x40 mm/kasan/common.c:48 kasan_set_track mm/kasan/common.c:56 [inline] __kasan_kmalloc.constprop.0+0xc2/0xd0 mm/kasan/common.c:461 kmalloc include/linux/slab.h:557 [inline] kzalloc include/linux/slab.h:664 [inline] qrtr_tun_write_iter+0x8a/0x180 net/qrtr/tun.c:83 call_write_iter include/linux/fs.h:1886 [inline] new_sync_write+0x426/0x650 fs/read_write.c:518 vfs_write+0x57d/0x700 fs/read_write.c:605 ksys_write+0x12d/0x250 fs/read_write.c:658 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 The buggy address belongs to the object at ffff88802042ef80 which belongs to the cache kmalloc-32 of size 32 The buggy address is located 0 bytes to the right of 32-byte region [ffff88802042ef80, ffff88802042efa0) The buggy address belongs to the page: page:00000000c4a65a52 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x2042e flags: 0xfff00000000200(slab) raw: 00fff00000000200 ffffea00006cc8c0 0000000600000006 ffff888010041a00 raw: 0000000000000000 0000000080400040 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88802042ee80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc ffff88802042ef00: fa fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc >ffff88802042ef80: 00 00 00 00 fc fc fc fc fb fb fb fb fc fc fc fc ^ ffff88802042f000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88802042f080: 00 00 00 00 00 fc fc fc fc fc fc fc fc 00 00 00 ==================================================================