================================================================== BUG: KASAN: slab-out-of-bounds in memcpy include/linux/fortify-string.h:191 [inline] BUG: KASAN: slab-out-of-bounds in skb_put_data include/linux/skbuff.h:2294 [inline] BUG: KASAN: slab-out-of-bounds in qrtr_endpoint_post+0x4f1/0x1070 net/qrtr/qrtr.c:502 Read of size 4294967293 at addr ffff88810c652b20 by task syz-executor.4/7492 CPU: 0 PID: 7492 Comm: syz-executor.4 Not tainted 5.12.0-rc8-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+0x10c/0x14b lib/dump_stack.c:120 print_address_description.constprop.0.cold+0x5b/0x2c6 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+0x20/0x60 mm/kasan/shadow.c:65 memcpy include/linux/fortify-string.h:191 [inline] skb_put_data include/linux/skbuff.h:2294 [inline] qrtr_endpoint_post+0x4f1/0x1070 net/qrtr/qrtr.c:502 qrtr_tun_write_iter+0xd0/0x140 net/qrtr/tun.c:108 call_write_iter include/linux/fs.h:1977 [inline] new_sync_write+0x35d/0x5f0 fs/read_write.c:518 vfs_write+0x5da/0x890 fs/read_write.c:605 ksys_write+0xf4/0x1d0 fs/read_write.c:658 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x465769 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:00007f534c045188 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 000000000055bf00 RCX: 0000000000465769 RDX: 0000000000000020 RSI: 0000000020000000 RDI: 0000000000000003 RBP: 00000000004af65e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000055bf00 R13: 00007ffea926123f R14: 00007f534c045300 R15: 0000000000022000 Allocated by task 7492: kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38 kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:427 [inline] ____kasan_kmalloc mm/kasan/common.c:506 [inline] __kasan_kmalloc+0x78/0x90 mm/kasan/common.c:515 kasan_kmalloc include/linux/kasan.h:233 [inline] __do_kmalloc mm/slab.c:3695 [inline] __kmalloc+0x1ae/0x390 mm/slab.c:3704 kmalloc include/linux/slab.h:559 [inline] kzalloc include/linux/slab.h:684 [inline] qrtr_tun_write_iter+0x9b/0x140 net/qrtr/tun.c:99 call_write_iter include/linux/fs.h:1977 [inline] new_sync_write+0x35d/0x5f0 fs/read_write.c:518 vfs_write+0x5da/0x890 fs/read_write.c:605 ksys_write+0xf4/0x1d0 fs/read_write.c:658 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xae The buggy address belongs to the object at ffff88810c652b00 which belongs to the cache kmalloc-32 of size 32 The buggy address is located 0 bytes to the right of 32-byte region [ffff88810c652b00, ffff88810c652b20) The buggy address belongs to the page: page:00000000b4d142c6 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88810c652fc1 pfn:0x10c652 flags: 0x17ffe0000000200(slab) raw: 017ffe0000000200 ffffea0004404d88 ffffea00044028c8 ffff888100040100 raw: ffff88810c652fc1 ffff88810c652000 000000010000003b 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88810c652a00: 07 fc fc fc fc fc fc fc 07 fc fc fc fc fc fc fc ffff88810c652a80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc >ffff88810c652b00: 00 00 00 00 fc fc fc fc fa fb fb fb fc fc fc fc ^ ffff88810c652b80: 00 00 01 fc fc fc fc fc fa fb fb fb fc fc fc fc ffff88810c652c00: fa fb fb fb fc fc fc fc 00 00 01 fc fc fc fc fc ==================================================================