Date
July 1, 2025, 3:08 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.649498] ================================================================== [ 17.650425] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x344/0x430 [ 17.651770] Read of size 1 at addr fff00000c57d80c8 by task kunit_try_catch/208 [ 17.652586] [ 17.652933] CPU: 1 UID: 0 PID: 208 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 17.653352] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.653381] Hardware name: linux,dummy-virt (DT) [ 17.653414] Call trace: [ 17.653941] show_stack+0x20/0x38 (C) [ 17.654017] dump_stack_lvl+0x8c/0xd0 [ 17.654373] print_report+0x118/0x608 [ 17.654731] kasan_report+0xdc/0x128 [ 17.654858] __asan_report_load1_noabort+0x20/0x30 [ 17.655969] kmem_cache_oob+0x344/0x430 [ 17.656639] kunit_try_run_case+0x170/0x3f0 [ 17.657046] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.657136] kthread+0x328/0x630 [ 17.657180] ret_from_fork+0x10/0x20 [ 17.657973] [ 17.658113] Allocated by task 208: [ 17.658312] kasan_save_stack+0x3c/0x68 [ 17.659129] kasan_save_track+0x20/0x40 [ 17.660140] kasan_save_alloc_info+0x40/0x58 [ 17.660431] __kasan_slab_alloc+0xa8/0xb0 [ 17.660498] kmem_cache_alloc_noprof+0x10c/0x398 [ 17.660810] kmem_cache_oob+0x12c/0x430 [ 17.660860] kunit_try_run_case+0x170/0x3f0 [ 17.661264] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.661425] kthread+0x328/0x630 [ 17.661464] ret_from_fork+0x10/0x20 [ 17.662032] [ 17.662149] The buggy address belongs to the object at fff00000c57d8000 [ 17.662149] which belongs to the cache test_cache of size 200 [ 17.662811] The buggy address is located 0 bytes to the right of [ 17.662811] allocated 200-byte region [fff00000c57d8000, fff00000c57d80c8) [ 17.663262] [ 17.663793] The buggy address belongs to the physical page: [ 17.663929] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1057d8 [ 17.664119] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.664223] page_type: f5(slab) [ 17.664269] raw: 0bfffe0000000000 fff00000c57d5000 dead000000000122 0000000000000000 [ 17.664700] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 17.665909] page dumped because: kasan: bad access detected [ 17.665953] [ 17.665971] Memory state around the buggy address: [ 17.666032] fff00000c57d7f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.666798] fff00000c57d8000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.667389] >fff00000c57d8080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 17.667733] ^ [ 17.667846] fff00000c57d8100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.667902] fff00000c57d8180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.667944] ==================================================================
[ 12.251385] ================================================================== [ 12.251890] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x402/0x530 [ 12.252520] Read of size 1 at addr ffff8881027d80c8 by task kunit_try_catch/224 [ 12.252825] [ 12.253233] CPU: 1 UID: 0 PID: 224 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 12.253284] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.253297] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.253318] Call Trace: [ 12.253331] <TASK> [ 12.253349] dump_stack_lvl+0x73/0xb0 [ 12.253380] print_report+0xd1/0x650 [ 12.253402] ? __virt_addr_valid+0x1db/0x2d0 [ 12.253425] ? kmem_cache_oob+0x402/0x530 [ 12.253446] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.253467] ? kmem_cache_oob+0x402/0x530 [ 12.253488] kasan_report+0x141/0x180 [ 12.253508] ? kmem_cache_oob+0x402/0x530 [ 12.253534] __asan_report_load1_noabort+0x18/0x20 [ 12.253557] kmem_cache_oob+0x402/0x530 [ 12.253576] ? trace_hardirqs_on+0x37/0xe0 [ 12.253599] ? __pfx_kmem_cache_oob+0x10/0x10 [ 12.253620] ? finish_task_switch.isra.0+0x153/0x700 [ 12.253657] ? __switch_to+0x47/0xf50 [ 12.253685] ? __pfx_read_tsc+0x10/0x10 [ 12.253705] ? ktime_get_ts64+0x86/0x230 [ 12.253728] kunit_try_run_case+0x1a5/0x480 [ 12.253752] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.253773] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.253795] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.253816] ? __kthread_parkme+0x82/0x180 [ 12.253835] ? preempt_count_sub+0x50/0x80 [ 12.253857] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.253878] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.253900] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.253921] kthread+0x337/0x6f0 [ 12.253939] ? trace_preempt_on+0x20/0xc0 [ 12.253959] ? __pfx_kthread+0x10/0x10 [ 12.253979] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.253998] ? calculate_sigpending+0x7b/0xa0 [ 12.254030] ? __pfx_kthread+0x10/0x10 [ 12.254050] ret_from_fork+0x116/0x1d0 [ 12.254067] ? __pfx_kthread+0x10/0x10 [ 12.254086] ret_from_fork_asm+0x1a/0x30 [ 12.254115] </TASK> [ 12.254127] [ 12.264114] Allocated by task 224: [ 12.264298] kasan_save_stack+0x45/0x70 [ 12.264505] kasan_save_track+0x18/0x40 [ 12.264748] kasan_save_alloc_info+0x3b/0x50 [ 12.264904] __kasan_slab_alloc+0x91/0xa0 [ 12.265115] kmem_cache_alloc_noprof+0x123/0x3f0 [ 12.265321] kmem_cache_oob+0x157/0x530 [ 12.265497] kunit_try_run_case+0x1a5/0x480 [ 12.265658] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.265883] kthread+0x337/0x6f0 [ 12.266078] ret_from_fork+0x116/0x1d0 [ 12.266222] ret_from_fork_asm+0x1a/0x30 [ 12.266423] [ 12.266503] The buggy address belongs to the object at ffff8881027d8000 [ 12.266503] which belongs to the cache test_cache of size 200 [ 12.266993] The buggy address is located 0 bytes to the right of [ 12.266993] allocated 200-byte region [ffff8881027d8000, ffff8881027d80c8) [ 12.267521] [ 12.267615] The buggy address belongs to the physical page: [ 12.267863] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1027d8 [ 12.268289] flags: 0x200000000000000(node=0|zone=2) [ 12.268454] page_type: f5(slab) [ 12.268622] raw: 0200000000000000 ffff8881015c4780 dead000000000122 0000000000000000 [ 12.269049] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 12.269400] page dumped because: kasan: bad access detected [ 12.269706] [ 12.269809] Memory state around the buggy address: [ 12.270047] ffff8881027d7f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.270384] ffff8881027d8000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.270614] >ffff8881027d8080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 12.270820] ^ [ 12.271215] ffff8881027d8100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.271498] ffff8881027d8180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.272273] ==================================================================