Date
July 5, 2025, 11:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.822089] ================================================================== [ 17.822183] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x2ec/0x320 [ 17.822238] Read of size 1 at addr fff00000c59fcb5f by task kunit_try_catch/138 [ 17.822285] [ 17.822319] CPU: 0 UID: 0 PID: 138 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 17.822404] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.822430] Hardware name: linux,dummy-virt (DT) [ 17.822471] Call trace: [ 17.822493] show_stack+0x20/0x38 (C) [ 17.822540] dump_stack_lvl+0x8c/0xd0 [ 17.822584] print_report+0x118/0x608 [ 17.822630] kasan_report+0xdc/0x128 [ 17.822674] __asan_report_load1_noabort+0x20/0x30 [ 17.822728] kmalloc_oob_left+0x2ec/0x320 [ 17.822771] kunit_try_run_case+0x170/0x3f0 [ 17.822817] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.822867] kthread+0x328/0x630 [ 17.822917] ret_from_fork+0x10/0x20 [ 17.822964] [ 17.822988] Allocated by task 11: [ 17.823015] kasan_save_stack+0x3c/0x68 [ 17.823054] kasan_save_track+0x20/0x40 [ 17.823097] kasan_save_alloc_info+0x40/0x58 [ 17.823136] __kasan_kmalloc+0xd4/0xd8 [ 17.823180] __kmalloc_node_track_caller_noprof+0x194/0x4b8 [ 17.823455] kvasprintf+0xe0/0x180 [ 17.824259] __kthread_create_on_node+0x16c/0x350 [ 17.824326] kthread_create_on_node+0xe4/0x130 [ 17.824364] create_worker+0x380/0x6b8 [ 17.824400] worker_thread+0x808/0xf38 [ 17.824434] kthread+0x328/0x630 [ 17.824465] ret_from_fork+0x10/0x20 [ 17.824499] [ 17.824519] The buggy address belongs to the object at fff00000c59fcb40 [ 17.824519] which belongs to the cache kmalloc-16 of size 16 [ 17.824577] The buggy address is located 19 bytes to the right of [ 17.824577] allocated 12-byte region [fff00000c59fcb40, fff00000c59fcb4c) [ 17.824639] [ 17.824658] The buggy address belongs to the physical page: [ 17.824688] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1059fc [ 17.824738] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.824784] page_type: f5(slab) [ 17.824822] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 17.824870] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 17.824911] page dumped because: kasan: bad access detected [ 17.824941] [ 17.824958] Memory state around the buggy address: [ 17.824987] fff00000c59fca00: 00 02 fc fc 00 02 fc fc 00 05 fc fc fa fb fc fc [ 17.825028] fff00000c59fca80: 00 02 fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 17.825069] >fff00000c59fcb00: fa fb fc fc fa fb fc fc 00 04 fc fc 00 07 fc fc [ 17.825105] ^ [ 17.825139] fff00000c59fcb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.825195] fff00000c59fcc00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.825230] ==================================================================
[ 12.770060] ================================================================== [ 12.771274] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x361/0x3c0 [ 12.771658] Read of size 1 at addr ffff88810216f09f by task kunit_try_catch/156 [ 12.771993] [ 12.772240] CPU: 0 UID: 0 PID: 156 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 12.772301] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.772315] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.772344] Call Trace: [ 12.772360] <TASK> [ 12.772385] dump_stack_lvl+0x73/0xb0 [ 12.772425] print_report+0xd1/0x650 [ 12.772454] ? __virt_addr_valid+0x1db/0x2d0 [ 12.772484] ? kmalloc_oob_left+0x361/0x3c0 [ 12.772509] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.772533] ? kmalloc_oob_left+0x361/0x3c0 [ 12.772557] kasan_report+0x141/0x180 [ 12.772582] ? kmalloc_oob_left+0x361/0x3c0 [ 12.772612] __asan_report_load1_noabort+0x18/0x20 [ 12.772639] kmalloc_oob_left+0x361/0x3c0 [ 12.772664] ? __pfx_kmalloc_oob_left+0x10/0x10 [ 12.772689] ? __schedule+0x10cc/0x2b60 [ 12.772716] ? __pfx_read_tsc+0x10/0x10 [ 12.772740] ? ktime_get_ts64+0x86/0x230 [ 12.772770] kunit_try_run_case+0x1a5/0x480 [ 12.772814] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.772838] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.772865] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.772891] ? __kthread_parkme+0x82/0x180 [ 12.772915] ? preempt_count_sub+0x50/0x80 [ 12.772943] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.772968] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.772994] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.773019] kthread+0x337/0x6f0 [ 12.773041] ? trace_preempt_on+0x20/0xc0 [ 12.773092] ? __pfx_kthread+0x10/0x10 [ 12.773116] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.773432] ? calculate_sigpending+0x7b/0xa0 [ 12.773462] ? __pfx_kthread+0x10/0x10 [ 12.773487] ret_from_fork+0x116/0x1d0 [ 12.773509] ? __pfx_kthread+0x10/0x10 [ 12.773532] ret_from_fork_asm+0x1a/0x30 [ 12.773568] </TASK> [ 12.773581] [ 12.786502] Allocated by task 1: [ 12.786810] kasan_save_stack+0x45/0x70 [ 12.787148] kasan_save_track+0x18/0x40 [ 12.787601] kasan_save_alloc_info+0x3b/0x50 [ 12.788117] __kasan_kmalloc+0xb7/0xc0 [ 12.788379] __kmalloc_node_track_caller_noprof+0x1cb/0x500 [ 12.788588] kvasprintf+0xc5/0x150 [ 12.788729] __kthread_create_on_node+0x18b/0x3a0 [ 12.788929] kthread_create_on_node+0xab/0xe0 [ 12.789149] create_worker+0x3e5/0x7b0 [ 12.789755] alloc_unbound_pwq+0x8ea/0xdb0 [ 12.789991] apply_wqattrs_prepare+0x332/0xd20 [ 12.790293] apply_workqueue_attrs_locked+0x4d/0xa0 [ 12.790610] alloc_workqueue+0xcc7/0x1ad0 [ 12.790832] latency_fsnotify_init+0x1b/0x50 [ 12.791030] do_one_initcall+0xd8/0x370 [ 12.791663] kernel_init_freeable+0x420/0x6f0 [ 12.791959] kernel_init+0x23/0x1e0 [ 12.792135] ret_from_fork+0x116/0x1d0 [ 12.792382] ret_from_fork_asm+0x1a/0x30 [ 12.792566] [ 12.792680] The buggy address belongs to the object at ffff88810216f080 [ 12.792680] which belongs to the cache kmalloc-16 of size 16 [ 12.793858] The buggy address is located 18 bytes to the right of [ 12.793858] allocated 13-byte region [ffff88810216f080, ffff88810216f08d) [ 12.794768] [ 12.794900] The buggy address belongs to the physical page: [ 12.795407] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10216f [ 12.795918] flags: 0x200000000000000(node=0|zone=2) [ 12.796353] page_type: f5(slab) [ 12.796517] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 12.797036] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 12.797725] page dumped because: kasan: bad access detected [ 12.798036] [ 12.798144] Memory state around the buggy address: [ 12.798699] ffff88810216ef80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 12.799224] ffff88810216f000: fa fb fc fc 00 00 fc fc 00 00 fc fc fa fb fc fc [ 12.799662] >ffff88810216f080: 00 05 fc fc 00 07 fc fc fc fc fc fc fc fc fc fc [ 12.800110] ^ [ 12.800402] ffff88810216f100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.800714] ffff88810216f180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.801059] ==================================================================