Date
July 22, 2025, 2:40 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.169802] ================================================================== [ 17.169933] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x3a0/0x3f8 [ 17.170342] Write of size 16 at addr fff00000c16d0640 by task kunit_try_catch/168 [ 17.170453] [ 17.170487] CPU: 0 UID: 0 PID: 168 Comm: kunit_try_catch Tainted: G B N 6.15.8-rc1 #1 PREEMPT [ 17.170567] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.170593] Hardware name: linux,dummy-virt (DT) [ 17.170800] Call trace: [ 17.170826] show_stack+0x20/0x38 (C) [ 17.171003] dump_stack_lvl+0x8c/0xd0 [ 17.171173] print_report+0x118/0x5d0 [ 17.171232] kasan_report+0xdc/0x128 [ 17.171293] __asan_report_store16_noabort+0x20/0x30 [ 17.171343] kmalloc_oob_16+0x3a0/0x3f8 [ 17.171388] kunit_try_run_case+0x170/0x3f0 [ 17.171843] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.171960] kthread+0x328/0x630 [ 17.172012] ret_from_fork+0x10/0x20 [ 17.172066] [ 17.172090] Allocated by task 168: [ 17.172117] kasan_save_stack+0x3c/0x68 [ 17.172155] kasan_save_track+0x20/0x40 [ 17.172200] kasan_save_alloc_info+0x40/0x58 [ 17.172246] __kasan_kmalloc+0xd4/0xd8 [ 17.172290] __kmalloc_cache_noprof+0x16c/0x3c0 [ 17.172336] kmalloc_oob_16+0xb4/0x3f8 [ 17.172373] kunit_try_run_case+0x170/0x3f0 [ 17.172410] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.172449] kthread+0x328/0x630 [ 17.172482] ret_from_fork+0x10/0x20 [ 17.172516] [ 17.172534] The buggy address belongs to the object at fff00000c16d0640 [ 17.172534] which belongs to the cache kmalloc-16 of size 16 [ 17.172598] The buggy address is located 0 bytes inside of [ 17.172598] allocated 13-byte region [fff00000c16d0640, fff00000c16d064d) [ 17.172673] [ 17.172692] The buggy address belongs to the physical page: [ 17.172722] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1016d0 [ 17.172773] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.172820] page_type: f5(slab) [ 17.172864] raw: 0bfffe0000000000 fff00000c0001640 dead000000000122 0000000000000000 [ 17.172914] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 17.172952] page dumped because: kasan: bad access detected [ 17.172991] [ 17.173013] Memory state around the buggy address: [ 17.173062] fff00000c16d0500: 00 05 fc fc 00 05 fc fc 00 05 fc fc 00 05 fc fc [ 17.173104] fff00000c16d0580: 00 05 fc fc 00 05 fc fc fa fb fc fc fa fb fc fc [ 17.173144] >fff00000c16d0600: fa fb fc fc fa fb fc fc 00 05 fc fc 00 00 fc fc [ 17.173180] ^ [ 17.173213] fff00000c16d0680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.173262] fff00000c16d0700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.173633] ==================================================================
[ 11.088714] ================================================================== [ 11.089801] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_16+0x452/0x4a0 [ 11.090193] Write of size 16 at addr ffff8881022195e0 by task kunit_try_catch/186 [ 11.090691] [ 11.091182] CPU: 1 UID: 0 PID: 186 Comm: kunit_try_catch Tainted: G B N 6.15.8-rc1 #1 PREEMPT(voluntary) [ 11.091245] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.091256] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.091278] Call Trace: [ 11.091290] <TASK> [ 11.091327] dump_stack_lvl+0x73/0xb0 [ 11.091355] print_report+0xd1/0x610 [ 11.091378] ? __virt_addr_valid+0x1db/0x2d0 [ 11.091399] ? kmalloc_oob_16+0x452/0x4a0 [ 11.091419] ? kasan_complete_mode_report_info+0x2a/0x200 [ 11.091441] ? kmalloc_oob_16+0x452/0x4a0 [ 11.091462] kasan_report+0x141/0x180 [ 11.091483] ? kmalloc_oob_16+0x452/0x4a0 [ 11.091509] __asan_report_store16_noabort+0x1b/0x30 [ 11.091529] kmalloc_oob_16+0x452/0x4a0 [ 11.091550] ? __pfx_kmalloc_oob_16+0x10/0x10 [ 11.091572] ? __schedule+0x10c6/0x2b60 [ 11.091594] ? __pfx_read_tsc+0x10/0x10 [ 11.091613] ? ktime_get_ts64+0x86/0x230 [ 11.091638] kunit_try_run_case+0x1a5/0x480 [ 11.091659] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.091676] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.091696] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.091720] ? __kthread_parkme+0x82/0x180 [ 11.091763] ? preempt_count_sub+0x50/0x80 [ 11.091788] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.091807] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.091829] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.091852] kthread+0x337/0x6f0 [ 11.091868] ? trace_preempt_on+0x20/0xc0 [ 11.091891] ? __pfx_kthread+0x10/0x10 [ 11.091908] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.091929] ? calculate_sigpending+0x7b/0xa0 [ 11.091950] ? __pfx_kthread+0x10/0x10 [ 11.091967] ret_from_fork+0x41/0x80 [ 11.091987] ? __pfx_kthread+0x10/0x10 [ 11.092004] ret_from_fork_asm+0x1a/0x30 [ 11.092034] </TASK> [ 11.092044] [ 11.106282] Allocated by task 186: [ 11.106459] kasan_save_stack+0x45/0x70 [ 11.106900] kasan_save_track+0x18/0x40 [ 11.107230] kasan_save_alloc_info+0x3b/0x50 [ 11.107431] __kasan_kmalloc+0xb7/0xc0 [ 11.107677] __kmalloc_cache_noprof+0x189/0x420 [ 11.108304] kmalloc_oob_16+0xa8/0x4a0 [ 11.108715] kunit_try_run_case+0x1a5/0x480 [ 11.108902] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.109076] kthread+0x337/0x6f0 [ 11.109193] ret_from_fork+0x41/0x80 [ 11.109329] ret_from_fork_asm+0x1a/0x30 [ 11.109465] [ 11.109533] The buggy address belongs to the object at ffff8881022195e0 [ 11.109533] which belongs to the cache kmalloc-16 of size 16 [ 11.110042] The buggy address is located 0 bytes inside of [ 11.110042] allocated 13-byte region [ffff8881022195e0, ffff8881022195ed) [ 11.110422] [ 11.110582] The buggy address belongs to the physical page: [ 11.110884] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102219 [ 11.111210] flags: 0x200000000000000(node=0|zone=2) [ 11.111479] page_type: f5(slab) [ 11.111654] raw: 0200000000000000 ffff888100041640 dead000000000122 0000000000000000 [ 11.112181] raw: 0000000000000000 0000000080800080 00000000f5000000 0000000000000000 [ 11.112877] page dumped because: kasan: bad access detected [ 11.113129] [ 11.113233] Memory state around the buggy address: [ 11.113449] ffff888102219480: 00 06 fc fc 00 06 fc fc 00 04 fc fc 00 04 fc fc [ 11.113931] ffff888102219500: 00 01 fc fc 00 01 fc fc 00 04 fc fc 00 04 fc fc [ 11.114235] >ffff888102219580: 00 05 fc fc 00 04 fc fc fa fb fc fc 00 05 fc fc [ 11.115005] ^ [ 11.115295] ffff888102219600: 00 00 fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.116095] ffff888102219680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.116595] ==================================================================