================================================================== BUG: KASAN: slab-out-of-bounds in blk_log_remap+0xa8/0x120 kernel/trace/blktrace.c:1635 Read of size 8 at addr ffff88801b0b2018 b Read of size 8 at addr ffff88801b0b2018 by task syz.1.282/6717 CPU: 1 UID: 0 PID: 6717 Comm: syz.1.282 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description+0x55/0x1e0 mm/kasan/report.c:378 print_report+0x58/0x70 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 blk_log_remap+0xa8/0x120 kernel/trace/blktrace.c:1635 print_one_line+0x29d/0x300 kernel/trace/blktrace.c:1757 tracing_read_pipe+0x568/0xb50 kernel/trace/trace.c:5446 vfs_read+0x213/0xa80 fs/read_write.c:572 ksys_read+0x150/0x270 fs/read_write.c:716 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f7c69f5e98e Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08 RSP: 002b:00007f7c6af13f68 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 00007f7c6af146c0 RCX: 00007f7c69f5e98e RDX: 0000000000002000 RSI: 0000200000001dc0 RDI: 0000000000000004 RBP: 00007f7c6a03503b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004 R13: 00002000000047c0 R14: 00007f7c6a225fa0 R15: 00007ffd34bc3648 Allocated by task 0: kasan_save_stack mm/kasan/common.c:57 [inline] kasan_save_track+0x3e/0x80 mm/kasan/common.c:78 poison_kmalloc_redzone mm/kasan/common.c:398 [inline] __kasan_kmalloc+0x93/0xb0 mm/kasan/common.c:415 kasan_kmalloc include/linux/kasan.h:263 [inline] __do_kmalloc_node mm/slub.c:5450 [inline] __kmalloc_node_track_caller_noprof+0x4af/0x720 mm/slub.c:5581 __kmemdup_nul mm/util.c:64 [inline] kstrdup+0x42/0x100 mm/util.c:84 __kernfs_new_node+0xa9/0x980 fs/kernfs/dir.c:661 kernfs_new_node+0xea/0x140 fs/kernfs/dir.c:751 __kernfs_create_file+0x4b/0x2e0 fs/kernfs/file.c:1050 cgroup_add_file kernel/cgroup/cgroup.c:4521 [inline] cgroup_addrm_files+0x8f4/0xd50 kernel/cgroup/cgroup.c:4573 css_populate_dir+0x123/0x3d0 kernel/cgroup/cgroup.c:1818 cgroup_init+0x6d8/0xbf0 kernel/cgroup/cgroup.c:6600 start_kernel+0x379/0x3e0 init/main.c:1176 x86_64_start_reservations+0x24/0x30 arch/x86/kernel/head64.c:310 x86_64_start_kernel+0x137/0x1b0 arch/x86/kernel/head64.c:291 common_startup_64+0x13e/0x157 The buggy address belongs to the object at ffff88801b0b2000 which belongs to the cache kmalloc-32 of size 32 The buggy address is located 2 bytes to the right of allocated 22-byte region [ffff88801b0b2000, ffff88801b0b2016) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88801b0b23c0 pfn:0x1b0b2 flags: 0xfff00000000200(workingset|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000200 ffff88801b041780 ffffea0000a74850 ffffea0000b94510 raw: ffff88801b0b23c0 000000000040003d 00000000f5000000 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0xd2000(__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 0, tgid 0 (swapper), ts 1596721953 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1853 prep_new_page mm/page_alloc.c:1861 [inline] get_page_from_freelist+0x2209/0x2280 mm/page_alloc.c:3925 __alloc_frozen_pages_noprof+0x217/0x5a0 mm/page_alloc.c:5430 alloc_slab_page mm/slub.c:3378 [inline] allocate_slab+0x7d/0x620 mm/slub.c:3493 new_slab mm/slub.c:3544 [inline] refill_objects+0x2d5/0x350 mm/slub.c:7453 refill_sheaf mm/slub.c:2916 [inline] __pcs_replace_empty_main+0x2c8/0x6c0 mm/slub.c:4805 alloc_from_pcs mm/slub.c:4881 [inline] slab_alloc_node mm/slub.c:5015 [inline] __kmalloc_cache_noprof+0x396/0x600 mm/slub.c:5595 _kmalloc_noprof include/linux/slab.h:991 [inline] add_tracer+0x12b/0x730 kernel/trace/trace.c:8045 register_tracer+0x14d/0x2c0 kernel/trace/trace.c:1497 tracer_alloc_buffers+0x3c7/0x3f0 kernel/trace/trace.c:9965 early_trace_init+0x39/0x70 kernel/trace/trace.c:10009 start_kernel+0x171/0x3e0 init/main.c:1050 x86_64_start_reservations+0x24/0x30 arch/x86/kernel/head64.c:310 x86_64_start_kernel+0x137/0x1b0 arch/x86/kernel/head64.c:291 common_startup_64+0x13e/0x157 page_owner free stack trace missing Memory state around the buggy address: ffff88801b0b1f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88801b0b1f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88801b0b2000: 00 00 06 fc fc fc fc fc 00 00 01 fc fc fc fc fc ^ ffff88801b0b2080: 00 00 07 fc fc fc fc fc 00 00 07 fc fc fc fc fc ffff88801b0b2100: 00 00 03 fc fc fc fc fc 00 00 05 fc fc fc fc fc ==================================================================