Date
July 8, 2025, 4:38 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.247462] ================================================================== [ 18.247527] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x344/0x430 [ 18.247587] Read of size 1 at addr fff00000c637d0c8 by task kunit_try_catch/209 [ 18.247638] [ 18.247669] CPU: 1 UID: 0 PID: 209 Comm: kunit_try_catch Tainted: G B N 6.15.6-rc1 #1 PREEMPT [ 18.247750] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.247776] Hardware name: linux,dummy-virt (DT) [ 18.247809] Call trace: [ 18.247830] show_stack+0x20/0x38 (C) [ 18.247880] dump_stack_lvl+0x8c/0xd0 [ 18.247927] print_report+0x118/0x608 [ 18.247973] kasan_report+0xdc/0x128 [ 18.248016] __asan_report_load1_noabort+0x20/0x30 [ 18.248066] kmem_cache_oob+0x344/0x430 [ 18.248112] kunit_try_run_case+0x170/0x3f0 [ 18.252151] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.252214] kthread+0x328/0x630 [ 18.252263] ret_from_fork+0x10/0x20 [ 18.252314] [ 18.252346] Allocated by task 209: [ 18.252375] kasan_save_stack+0x3c/0x68 [ 18.252415] kasan_save_track+0x20/0x40 [ 18.252451] kasan_save_alloc_info+0x40/0x58 [ 18.252488] __kasan_slab_alloc+0xa8/0xb0 [ 18.252526] kmem_cache_alloc_noprof+0x10c/0x398 [ 18.252564] kmem_cache_oob+0x12c/0x430 [ 18.252600] kunit_try_run_case+0x170/0x3f0 [ 18.252639] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.252684] kthread+0x328/0x630 [ 18.252722] ret_from_fork+0x10/0x20 [ 18.252759] [ 18.252779] The buggy address belongs to the object at fff00000c637d000 [ 18.252779] which belongs to the cache test_cache of size 200 [ 18.252837] The buggy address is located 0 bytes to the right of [ 18.252837] allocated 200-byte region [fff00000c637d000, fff00000c637d0c8) [ 18.252900] [ 18.252921] The buggy address belongs to the physical page: [ 18.252952] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10637d [ 18.253008] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.253058] page_type: f5(slab) [ 18.253097] raw: 0bfffe0000000000 fff00000c5b8bb40 dead000000000122 0000000000000000 [ 18.253147] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 18.253188] page dumped because: kasan: bad access detected [ 18.253219] [ 18.253236] Memory state around the buggy address: [ 18.253268] fff00000c637cf80: fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc fc [ 18.253313] fff00000c637d000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.253396] >fff00000c637d080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 18.253436] ^ [ 18.253470] fff00000c637d100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.253513] fff00000c637d180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.253609] ==================================================================
[ 11.963291] ================================================================== [ 11.963770] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x402/0x530 [ 11.964500] Read of size 1 at addr ffff8881029dc0c8 by task kunit_try_catch/227 [ 11.964801] [ 11.965015] CPU: 1 UID: 0 PID: 227 Comm: kunit_try_catch Tainted: G B N 6.15.6-rc1 #1 PREEMPT(voluntary) [ 11.965063] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.965077] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.965099] Call Trace: [ 11.965112] <TASK> [ 11.965128] dump_stack_lvl+0x73/0xb0 [ 11.965157] print_report+0xd1/0x650 [ 11.965182] ? __virt_addr_valid+0x1db/0x2d0 [ 11.965204] ? kmem_cache_oob+0x402/0x530 [ 11.965224] ? kasan_complete_mode_report_info+0x2a/0x200 [ 11.965247] ? kmem_cache_oob+0x402/0x530 [ 11.965268] kasan_report+0x141/0x180 [ 11.965290] ? kmem_cache_oob+0x402/0x530 [ 11.965315] __asan_report_load1_noabort+0x18/0x20 [ 11.965336] kmem_cache_oob+0x402/0x530 [ 11.965355] ? trace_hardirqs_on+0x37/0xe0 [ 11.965380] ? __pfx_kmem_cache_oob+0x10/0x10 [ 11.965399] ? finish_task_switch.isra.0+0x153/0x700 [ 11.965423] ? __switch_to+0x5d9/0xf60 [ 11.965445] ? dequeue_task_fair+0x166/0x4e0 [ 11.965472] ? __pfx_read_tsc+0x10/0x10 [ 11.965492] ? ktime_get_ts64+0x86/0x230 [ 11.965519] kunit_try_run_case+0x1a5/0x480 [ 11.965559] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.965578] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.965604] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.965629] ? __kthread_parkme+0x82/0x180 [ 11.965651] ? preempt_count_sub+0x50/0x80 [ 11.965675] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.965696] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.965719] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.965743] kthread+0x337/0x6f0 [ 11.965761] ? trace_preempt_on+0x20/0xc0 [ 11.965784] ? __pfx_kthread+0x10/0x10 [ 11.965802] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.965824] ? calculate_sigpending+0x7b/0xa0 [ 11.965932] ? __pfx_kthread+0x10/0x10 [ 11.965955] ret_from_fork+0x41/0x80 [ 11.965978] ? __pfx_kthread+0x10/0x10 [ 11.965997] ret_from_fork_asm+0x1a/0x30 [ 11.966027] </TASK> [ 11.966039] [ 11.976503] Allocated by task 227: [ 11.976679] kasan_save_stack+0x45/0x70 [ 11.977104] kasan_save_track+0x18/0x40 [ 11.977276] kasan_save_alloc_info+0x3b/0x50 [ 11.977462] __kasan_slab_alloc+0x91/0xa0 [ 11.978078] kmem_cache_alloc_noprof+0x123/0x3f0 [ 11.978394] kmem_cache_oob+0x157/0x530 [ 11.978717] kunit_try_run_case+0x1a5/0x480 [ 11.979091] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.979450] kthread+0x337/0x6f0 [ 11.979777] ret_from_fork+0x41/0x80 [ 11.980116] ret_from_fork_asm+0x1a/0x30 [ 11.980312] [ 11.980408] The buggy address belongs to the object at ffff8881029dc000 [ 11.980408] which belongs to the cache test_cache of size 200 [ 11.981196] The buggy address is located 0 bytes to the right of [ 11.981196] allocated 200-byte region [ffff8881029dc000, ffff8881029dc0c8) [ 11.982409] [ 11.982608] The buggy address belongs to the physical page: [ 11.983161] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1029dc [ 11.983487] flags: 0x200000000000000(node=0|zone=2) [ 11.983705] page_type: f5(slab) [ 11.984224] raw: 0200000000000000 ffff8881010b3280 dead000000000122 0000000000000000 [ 11.985016] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 11.985421] page dumped because: kasan: bad access detected [ 11.986010] [ 11.986095] Memory state around the buggy address: [ 11.986450] ffff8881029dbf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.987259] ffff8881029dc000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.987792] >ffff8881029dc080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 11.988314] ^ [ 11.988719] ffff8881029dc100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.989195] ffff8881029dc180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.989500] ==================================================================