================================================================== 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:2293 [inline] BUG: KASAN: slab-out-of-bounds in qrtr_endpoint_post+0x5c0/0x11b0 net/qrtr/qrtr.c:499 Read of size 4294967294 at addr ffff88801cbe2210 by task syz-executor.3/17465 CPU: 1 PID: 17465 Comm: syz-executor.3 Not tainted 5.12.0-rc4-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+0x5b/0x2f8 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:2293 [inline] qrtr_endpoint_post+0x5c0/0x11b0 net/qrtr/qrtr.c:499 qrtr_tun_write_iter+0x11f/0x1a0 net/qrtr/tun.c:108 call_write_iter include/linux/fs.h:1977 [inline] new_sync_write+0x426/0x650 fs/read_write.c:518 vfs_write+0x796/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/0xae RIP: 0033:0x466459 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:00007fa74014d188 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000466459 RDX: 0000000000000010 RSI: 00000000200003c0 RDI: 0000000000000004 RBP: 00000000004bf9fb R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60 R13: 0000000000a9fb1f R14: 00007fa74014d300 R15: 0000000000022000 Allocated by task 17465: 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 mm/kasan/common.c:465 [inline] __kasan_kmalloc+0x99/0xc0 mm/kasan/common.c:515 kmalloc include/linux/slab.h:559 [inline] kzalloc include/linux/slab.h:684 [inline] qrtr_tun_write_iter+0xbd/0x1a0 net/qrtr/tun.c:99 call_write_iter include/linux/fs.h:1977 [inline] new_sync_write+0x426/0x650 fs/read_write.c:518 vfs_write+0x796/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/0xae The buggy address belongs to the object at ffff88801cbe2200 which belongs to the cache kmalloc-16 of size 16 The buggy address is located 0 bytes to the right of 16-byte region [ffff88801cbe2200, ffff88801cbe2210) The buggy address belongs to the page: page:ffffea000072f880 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1cbe2 flags: 0xfff00000000200(slab) raw: 00fff00000000200 ffffea00004a2040 0000001800000018 ffff8880108413c0 raw: 0000000000000000 0000000080800080 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88801cbe2100: 00 00 fc fc fa fb fc fc fb fb fc fc fa fb fc fc ffff88801cbe2180: fa fb fc fc fa fb fc fc fa fb fc fc 00 00 fc fc >ffff88801cbe2200: 00 00 fc fc 00 00 fc fc fa fb fc fc fb fb fc fc ^ ffff88801cbe2280: fb fb fc fc 00 00 fc fc 00 00 fc fc fa fb fc fc ffff88801cbe2300: 00 00 fc fc fa fb fc fc fa fb fc fc fa fb fc fc ==================================================================