Date
July 16, 2025, 3:10 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.370056] ================================================================== [ 16.370119] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x2ec/0x320 [ 16.370173] Read of size 1 at addr fff00000c3eef4df by task kunit_try_catch/138 [ 16.370239] [ 16.370377] CPU: 1 UID: 0 PID: 138 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 16.370459] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.370485] Hardware name: linux,dummy-virt (DT) [ 16.370636] Call trace: [ 16.370735] show_stack+0x20/0x38 (C) [ 16.370798] dump_stack_lvl+0x8c/0xd0 [ 16.370846] print_report+0x118/0x5d0 [ 16.370980] kasan_report+0xdc/0x128 [ 16.371026] __asan_report_load1_noabort+0x20/0x30 [ 16.371183] kmalloc_oob_left+0x2ec/0x320 [ 16.371279] kunit_try_run_case+0x170/0x3f0 [ 16.371520] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.371626] kthread+0x328/0x630 [ 16.371772] ret_from_fork+0x10/0x20 [ 16.371843] [ 16.371860] Allocated by task 47: [ 16.371889] kasan_save_stack+0x3c/0x68 [ 16.371929] kasan_save_track+0x20/0x40 [ 16.371967] kasan_save_alloc_info+0x40/0x58 [ 16.372005] __kasan_kmalloc+0xd4/0xd8 [ 16.372319] __kmalloc_node_track_caller_noprof+0x194/0x4b8 [ 16.372452] kvasprintf+0xe0/0x180 [ 16.372556] __kthread_create_on_node+0x16c/0x350 [ 16.372639] kthread_create_on_node+0xe4/0x130 [ 16.372735] create_worker+0x380/0x6b8 [ 16.372771] worker_thread+0x808/0xf38 [ 16.373074] kthread+0x328/0x630 [ 16.373171] ret_from_fork+0x10/0x20 [ 16.373261] [ 16.373327] The buggy address belongs to the object at fff00000c3eef4c0 [ 16.373327] which belongs to the cache kmalloc-16 of size 16 [ 16.373441] The buggy address is located 19 bytes to the right of [ 16.373441] allocated 12-byte region [fff00000c3eef4c0, fff00000c3eef4cc) [ 16.373539] [ 16.373743] The buggy address belongs to the physical page: [ 16.373908] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103eef [ 16.374037] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 16.374102] page_type: f5(slab) [ 16.374194] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 16.374245] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 16.374293] page dumped because: kasan: bad access detected [ 16.374470] [ 16.374608] Memory state around the buggy address: [ 16.374688] fff00000c3eef380: 00 02 fc fc 00 02 fc fc 00 05 fc fc fa fb fc fc [ 16.374796] fff00000c3eef400: 00 02 fc fc fa fb fc fc fa fb fc fc fa fb fc fc [ 16.374857] >fff00000c3eef480: fa fb fc fc fa fb fc fc 00 04 fc fc 00 07 fc fc [ 16.374893] ^ [ 16.375172] fff00000c3eef500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.375304] fff00000c3eef580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.375430] ==================================================================
[ 11.910800] ================================================================== [ 11.911839] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_left+0x361/0x3c0 [ 11.913257] Read of size 1 at addr ffff8881029d9fff by task kunit_try_catch/155 [ 11.914537] [ 11.914732] CPU: 1 UID: 0 PID: 155 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 11.914791] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.914804] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.914826] Call Trace: [ 11.914839] <TASK> [ 11.914857] dump_stack_lvl+0x73/0xb0 [ 11.914889] print_report+0xd1/0x610 [ 11.914911] ? __virt_addr_valid+0x1db/0x2d0 [ 11.914935] ? kmalloc_oob_left+0x361/0x3c0 [ 11.914956] ? kasan_complete_mode_report_info+0x2a/0x200 [ 11.915220] ? kmalloc_oob_left+0x361/0x3c0 [ 11.915243] kasan_report+0x141/0x180 [ 11.915266] ? kmalloc_oob_left+0x361/0x3c0 [ 11.915299] __asan_report_load1_noabort+0x18/0x20 [ 11.915326] kmalloc_oob_left+0x361/0x3c0 [ 11.915349] ? __pfx_kmalloc_oob_left+0x10/0x10 [ 11.915372] ? __schedule+0x10cc/0x2b60 [ 11.915395] ? __pfx_read_tsc+0x10/0x10 [ 11.915417] ? ktime_get_ts64+0x86/0x230 [ 11.915488] kunit_try_run_case+0x1a5/0x480 [ 11.915514] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.915536] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.915561] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.915584] ? __kthread_parkme+0x82/0x180 [ 11.915605] ? preempt_count_sub+0x50/0x80 [ 11.915629] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.915653] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.915678] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.915703] kthread+0x337/0x6f0 [ 11.915721] ? trace_preempt_on+0x20/0xc0 [ 11.915745] ? __pfx_kthread+0x10/0x10 [ 11.915776] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.915797] ? calculate_sigpending+0x7b/0xa0 [ 11.915822] ? __pfx_kthread+0x10/0x10 [ 11.915843] ret_from_fork+0x116/0x1d0 [ 11.915862] ? __pfx_kthread+0x10/0x10 [ 11.915882] ret_from_fork_asm+0x1a/0x30 [ 11.915912] </TASK> [ 11.915923] [ 11.930741] The buggy address belongs to the object at ffff8881029d9f00 [ 11.930741] which belongs to the cache kmalloc-192 of size 192 [ 11.932471] The buggy address is located 63 bytes to the right of [ 11.932471] allocated 192-byte region [ffff8881029d9f00, ffff8881029d9fc0) [ 11.932960] [ 11.933453] The buggy address belongs to the physical page: [ 11.934182] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1029d9 [ 11.935398] flags: 0x200000000000000(node=0|zone=2) [ 11.935707] page_type: f5(slab) [ 11.935844] raw: 0200000000000000 ffff8881000413c0 dead000000000122 0000000000000000 [ 11.936143] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 11.936921] page dumped because: kasan: bad access detected [ 11.937508] [ 11.937683] Memory state around the buggy address: [ 11.938203] ffff8881029d9e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.938912] ffff8881029d9f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.939560] >ffff8881029d9f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.940041] ^ [ 11.940610] ffff8881029da000: 00 07 fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.941330] ffff8881029da080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.941811] ==================================================================