Date
July 10, 2025, 9:07 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 29.949051] ================================================================== [ 29.949143] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x344/0x430 [ 29.949219] Read of size 1 at addr fff00000c99ac0c8 by task kunit_try_catch/238 [ 29.949311] [ 29.949358] CPU: 0 UID: 0 PID: 238 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250710 #1 PREEMPT [ 29.949447] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.949494] Hardware name: linux,dummy-virt (DT) [ 29.949711] Call trace: [ 29.949759] show_stack+0x20/0x38 (C) [ 29.949815] dump_stack_lvl+0x8c/0xd0 [ 29.949860] print_report+0x118/0x5d0 [ 29.949925] kasan_report+0xdc/0x128 [ 29.949973] __asan_report_load1_noabort+0x20/0x30 [ 29.950033] kmem_cache_oob+0x344/0x430 [ 29.950080] kunit_try_run_case+0x170/0x3f0 [ 29.950144] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.950217] kthread+0x328/0x630 [ 29.950283] ret_from_fork+0x10/0x20 [ 29.950488] [ 29.950515] Allocated by task 238: [ 29.950548] kasan_save_stack+0x3c/0x68 [ 29.950610] kasan_save_track+0x20/0x40 [ 29.950765] kasan_save_alloc_info+0x40/0x58 [ 29.950808] __kasan_slab_alloc+0xa8/0xb0 [ 29.950846] kmem_cache_alloc_noprof+0x10c/0x398 [ 29.950963] kmem_cache_oob+0x12c/0x430 [ 29.951023] kunit_try_run_case+0x170/0x3f0 [ 29.951118] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.951271] kthread+0x328/0x630 [ 29.951353] ret_from_fork+0x10/0x20 [ 29.951424] [ 29.951470] The buggy address belongs to the object at fff00000c99ac000 [ 29.951470] which belongs to the cache test_cache of size 200 [ 29.951536] The buggy address is located 0 bytes to the right of [ 29.951536] allocated 200-byte region [fff00000c99ac000, fff00000c99ac0c8) [ 29.951624] [ 29.951644] The buggy address belongs to the physical page: [ 29.951676] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1099ac [ 29.951829] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 29.951887] page_type: f5(slab) [ 29.951926] raw: 0bfffe0000000000 fff00000c582f780 dead000000000122 0000000000000000 [ 29.951978] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 29.952062] page dumped because: kasan: bad access detected [ 29.952144] [ 29.952186] Memory state around the buggy address: [ 29.952230] fff00000c99abf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 29.952302] fff00000c99ac000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 29.952377] >fff00000c99ac080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 29.952416] ^ [ 29.952480] fff00000c99ac100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.952571] fff00000c99ac180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.952646] ==================================================================
[ 25.719205] ================================================================== [ 25.719986] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x402/0x530 [ 25.720281] Read of size 1 at addr ffff8881058510c8 by task kunit_try_catch/255 [ 25.720560] [ 25.720692] CPU: 0 UID: 0 PID: 255 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250710 #1 PREEMPT(voluntary) [ 25.720755] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.720767] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.720790] Call Trace: [ 25.720803] <TASK> [ 25.720823] dump_stack_lvl+0x73/0xb0 [ 25.720852] print_report+0xd1/0x610 [ 25.720874] ? __virt_addr_valid+0x1db/0x2d0 [ 25.720900] ? kmem_cache_oob+0x402/0x530 [ 25.720993] ? kasan_complete_mode_report_info+0x2a/0x200 [ 25.721019] ? kmem_cache_oob+0x402/0x530 [ 25.721041] kasan_report+0x141/0x180 [ 25.721063] ? kmem_cache_oob+0x402/0x530 [ 25.721090] __asan_report_load1_noabort+0x18/0x20 [ 25.721113] kmem_cache_oob+0x402/0x530 [ 25.721136] ? __pfx_kmem_cache_oob+0x10/0x10 [ 25.721157] ? __schedule+0x207f/0x2b60 [ 25.721178] ? schedule+0x7c/0x2e0 [ 25.721198] ? trace_hardirqs_on+0x37/0xe0 [ 25.721225] ? __pfx_read_tsc+0x10/0x10 [ 25.721247] ? ktime_get_ts64+0x86/0x230 [ 25.721271] kunit_try_run_case+0x1a5/0x480 [ 25.721294] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.721314] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 25.721337] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.721359] ? __kthread_parkme+0x82/0x180 [ 25.721380] ? preempt_count_sub+0x50/0x80 [ 25.721404] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.721425] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.721449] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.721474] kthread+0x337/0x6f0 [ 25.721494] ? trace_preempt_on+0x20/0xc0 [ 25.721515] ? __pfx_kthread+0x10/0x10 [ 25.721552] ? _raw_spin_unlock_irq+0x47/0x80 [ 25.721573] ? calculate_sigpending+0x7b/0xa0 [ 25.721597] ? __pfx_kthread+0x10/0x10 [ 25.721619] ret_from_fork+0x116/0x1d0 [ 25.721638] ? __pfx_kthread+0x10/0x10 [ 25.721658] ret_from_fork_asm+0x1a/0x30 [ 25.721689] </TASK> [ 25.721711] [ 25.731967] Allocated by task 255: [ 25.732228] kasan_save_stack+0x45/0x70 [ 25.732569] kasan_save_track+0x18/0x40 [ 25.733012] kasan_save_alloc_info+0x3b/0x50 [ 25.733239] __kasan_slab_alloc+0x91/0xa0 [ 25.733629] kmem_cache_alloc_noprof+0x123/0x3f0 [ 25.734038] kmem_cache_oob+0x157/0x530 [ 25.734260] kunit_try_run_case+0x1a5/0x480 [ 25.734591] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.734964] kthread+0x337/0x6f0 [ 25.735106] ret_from_fork+0x116/0x1d0 [ 25.735296] ret_from_fork_asm+0x1a/0x30 [ 25.735647] [ 25.735861] The buggy address belongs to the object at ffff888105851000 [ 25.735861] which belongs to the cache test_cache of size 200 [ 25.736321] The buggy address is located 0 bytes to the right of [ 25.736321] allocated 200-byte region [ffff888105851000, ffff8881058510c8) [ 25.737251] [ 25.737729] The buggy address belongs to the physical page: [ 25.738095] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105851 [ 25.738568] flags: 0x200000000000000(node=0|zone=2) [ 25.738812] page_type: f5(slab) [ 25.739074] raw: 0200000000000000 ffff888101ab3140 dead000000000122 0000000000000000 [ 25.739373] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 25.739708] page dumped because: kasan: bad access detected [ 25.740058] [ 25.740238] Memory state around the buggy address: [ 25.740430] ffff888105850f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.740770] ffff888105851000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 25.741021] >ffff888105851080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 25.741326] ^ [ 25.741804] ffff888105851100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.742237] ffff888105851180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.742585] ==================================================================