================================================================== 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+0x66e/0x1340 net/qrtr/qrtr.c:502 Read of size 4294967295 at addr ffff8880129e1fa0 by task syz-executor.3/15385 CPU: 0 PID: 15385 Comm: syz-executor.3 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+0x202/0x31e lib/dump_stack.c:120 print_address_description+0x5f/0x3b0 mm/kasan/report.c:232 __kasan_report mm/kasan/report.c:399 [inline] kasan_report+0x15c/0x200 mm/kasan/report.c:416 check_region_inline mm/kasan/generic.c:135 [inline] kasan_check_range+0x2b5/0x2f0 mm/kasan/generic.c:186 memcpy+0x25/0x60 mm/kasan/shadow.c:65 skb_put_data include/linux/skbuff.h:2294 [inline] qrtr_endpoint_post+0x66e/0x1340 net/qrtr/qrtr.c:502 qrtr_tun_write_iter+0xfc/0x150 net/qrtr/tun.c:108 call_write_iter include/linux/fs.h:1977 [inline] new_sync_write fs/read_write.c:518 [inline] vfs_write+0xa39/0xc90 fs/read_write.c:605 ksys_write+0x171/0x2a0 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:0x4665f9 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:00007fc8c0f2c188 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 00000000004665f9 RDX: 0000000000000020 RSI: 0000000020000000 RDI: 0000000000000004 RBP: 00000000004bfbb9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60 R13: 00007ffcc3227abf R14: 00007fc8c0f2c300 R15: 0000000000022000 Allocated by task 15385: kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:427 [inline] ____kasan_kmalloc+0xc2/0xf0 mm/kasan/common.c:506 kasan_kmalloc include/linux/kasan.h:233 [inline] __kmalloc+0xb4/0x380 mm/slub.c:4055 kmalloc include/linux/slab.h:559 [inline] kzalloc include/linux/slab.h:684 [inline] qrtr_tun_write_iter+0xc2/0x150 net/qrtr/tun.c:99 call_write_iter include/linux/fs.h:1977 [inline] new_sync_write fs/read_write.c:518 [inline] vfs_write+0xa39/0xc90 fs/read_write.c:605 ksys_write+0x171/0x2a0 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 ffff8880129e1f80 which belongs to the cache kmalloc-32 of size 32 The buggy address is located 0 bytes to the right of 32-byte region [ffff8880129e1f80, ffff8880129e1fa0) The buggy address belongs to the page: page:ffffea00004a7840 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x129e1 flags: 0xfff00000000200(slab) raw: 00fff00000000200 ffffea0000536c80 0000000b0000000b ffff888010c41500 raw: 0000000000000000 0000000080400040 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880129e1e80: 00 00 00 00 fc fc fc fc 00 00 00 fc fc fc fc fc ffff8880129e1f00: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc >ffff8880129e1f80: 00 00 00 00 fc fc fc fc fa fb fb fb fc fc fc fc ^ ffff8880129e2000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8880129e2080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================