================================================================== 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 ffff88801e0efee0 by task syz-executor.4/16563 CPU: 1 PID: 16563 Comm: syz-executor.4 Not tainted 5.10.0-rc5-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:1903 [inline] new_sync_write+0x426/0x650 fs/read_write.c:518 vfs_write+0x791/0xa30 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:0x45deb9 Code: 0d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fbd600f1c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 000000000003af80 RCX: 000000000045deb9 RDX: 0000000000000020 RSI: 0000000020000000 RDI: 0000000000000003 RBP: 000000000118bf60 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118bf2c R13: 000000000169fb7f R14: 00007fbd600f29c0 R15: 000000000118bf2c Allocated by task 16563: 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:1903 [inline] new_sync_write+0x426/0x650 fs/read_write.c:518 vfs_write+0x791/0xa30 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 ffff88801e0efec0 which belongs to the cache kmalloc-32 of size 32 The buggy address is located 0 bytes to the right of 32-byte region [ffff88801e0efec0, ffff88801e0efee0) The buggy address belongs to the page: page:00000000cdb35c31 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88801e0ef700 pfn:0x1e0ef flags: 0xfff00000000200(slab) raw: 00fff00000000200 ffffea00006e1f00 0000000400000004 ffff888010041a00 raw: ffff88801e0ef700 000000008040003b 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88801e0efd80: fa fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc ffff88801e0efe00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc >ffff88801e0efe80: fa fb fb fb fc fc fc fc 00 00 00 00 fc fc fc fc ^ ffff88801e0eff00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc ffff88801e0eff80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc ==================================================================