Date
July 22, 2025, 2:40 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.781066] ================================================================== [ 17.781150] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x344/0x430 [ 17.781241] Read of size 1 at addr fff00000c6fae0c8 by task kunit_try_catch/209 [ 17.781322] [ 17.781379] CPU: 0 UID: 0 PID: 209 Comm: kunit_try_catch Tainted: G B N 6.15.8-rc1 #1 PREEMPT [ 17.781468] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.781776] Hardware name: linux,dummy-virt (DT) [ 17.781822] Call trace: [ 17.781860] show_stack+0x20/0x38 (C) [ 17.781915] dump_stack_lvl+0x8c/0xd0 [ 17.781987] print_report+0x118/0x5d0 [ 17.782072] kasan_report+0xdc/0x128 [ 17.782118] __asan_report_load1_noabort+0x20/0x30 [ 17.782167] kmem_cache_oob+0x344/0x430 [ 17.782494] kunit_try_run_case+0x170/0x3f0 [ 17.782564] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.782642] kthread+0x328/0x630 [ 17.782691] ret_from_fork+0x10/0x20 [ 17.782771] [ 17.782789] Allocated by task 209: [ 17.782818] kasan_save_stack+0x3c/0x68 [ 17.783052] kasan_save_track+0x20/0x40 [ 17.783158] kasan_save_alloc_info+0x40/0x58 [ 17.783233] __kasan_slab_alloc+0xa8/0xb0 [ 17.783339] kmem_cache_alloc_noprof+0x10c/0x398 [ 17.783427] kmem_cache_oob+0x12c/0x430 [ 17.783505] kunit_try_run_case+0x170/0x3f0 [ 17.783581] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.783648] kthread+0x328/0x630 [ 17.783718] ret_from_fork+0x10/0x20 [ 17.783782] [ 17.783803] The buggy address belongs to the object at fff00000c6fae000 [ 17.783803] which belongs to the cache test_cache of size 200 [ 17.783861] The buggy address is located 0 bytes to the right of [ 17.783861] allocated 200-byte region [fff00000c6fae000, fff00000c6fae0c8) [ 17.783948] [ 17.783968] The buggy address belongs to the physical page: [ 17.784181] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106fae [ 17.784269] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.784352] page_type: f5(slab) [ 17.784414] raw: 0bfffe0000000000 fff00000c1bdf3c0 dead000000000122 0000000000000000 [ 17.784659] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 17.784838] page dumped because: kasan: bad access detected [ 17.784907] [ 17.784959] Memory state around the buggy address: [ 17.785060] fff00000c6fadf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 17.785133] fff00000c6fae000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.785214] >fff00000c6fae080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 17.785309] ^ [ 17.785396] fff00000c6fae100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.785497] fff00000c6fae180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.785628] ==================================================================
[ 11.757855] ================================================================== [ 11.758391] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x402/0x530 [ 11.758629] Read of size 1 at addr ffff8881028c20c8 by task kunit_try_catch/227 [ 11.759822] [ 11.760173] CPU: 1 UID: 0 PID: 227 Comm: kunit_try_catch Tainted: G B N 6.15.8-rc1 #1 PREEMPT(voluntary) [ 11.760345] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.760373] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.760397] Call Trace: [ 11.760410] <TASK> [ 11.760427] dump_stack_lvl+0x73/0xb0 [ 11.760501] print_report+0xd1/0x610 [ 11.760525] ? __virt_addr_valid+0x1db/0x2d0 [ 11.760546] ? kmem_cache_oob+0x402/0x530 [ 11.760565] ? kasan_complete_mode_report_info+0x2a/0x200 [ 11.760587] ? kmem_cache_oob+0x402/0x530 [ 11.760605] kasan_report+0x141/0x180 [ 11.760627] ? kmem_cache_oob+0x402/0x530 [ 11.760651] __asan_report_load1_noabort+0x18/0x20 [ 11.760671] kmem_cache_oob+0x402/0x530 [ 11.760690] ? trace_hardirqs_on+0x37/0xe0 [ 11.760713] ? __pfx_kmem_cache_oob+0x10/0x10 [ 11.760731] ? finish_task_switch.isra.0+0x153/0x700 [ 11.760754] ? __switch_to+0x5d9/0xf60 [ 11.760774] ? dequeue_task_fair+0x166/0x4e0 [ 11.760801] ? __pfx_read_tsc+0x10/0x10 [ 11.760821] ? ktime_get_ts64+0x86/0x230 [ 11.760846] kunit_try_run_case+0x1a5/0x480 [ 11.760867] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.760885] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.760905] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.760936] ? __kthread_parkme+0x82/0x180 [ 11.760957] ? preempt_count_sub+0x50/0x80 [ 11.760980] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.761000] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.761022] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.761045] kthread+0x337/0x6f0 [ 11.761061] ? trace_preempt_on+0x20/0xc0 [ 11.761082] ? __pfx_kthread+0x10/0x10 [ 11.761100] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.761121] ? calculate_sigpending+0x7b/0xa0 [ 11.761142] ? __pfx_kthread+0x10/0x10 [ 11.761159] ret_from_fork+0x41/0x80 [ 11.761179] ? __pfx_kthread+0x10/0x10 [ 11.761196] ret_from_fork_asm+0x1a/0x30 [ 11.761237] </TASK> [ 11.761249] [ 11.776996] Allocated by task 227: [ 11.777248] kasan_save_stack+0x45/0x70 [ 11.777618] kasan_save_track+0x18/0x40 [ 11.777862] kasan_save_alloc_info+0x3b/0x50 [ 11.778275] __kasan_slab_alloc+0x91/0xa0 [ 11.778694] kmem_cache_alloc_noprof+0x123/0x3f0 [ 11.779015] kmem_cache_oob+0x157/0x530 [ 11.779150] kunit_try_run_case+0x1a5/0x480 [ 11.779304] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.779742] kthread+0x337/0x6f0 [ 11.780371] ret_from_fork+0x41/0x80 [ 11.780794] ret_from_fork_asm+0x1a/0x30 [ 11.781184] [ 11.781352] The buggy address belongs to the object at ffff8881028c2000 [ 11.781352] which belongs to the cache test_cache of size 200 [ 11.782322] The buggy address is located 0 bytes to the right of [ 11.782322] allocated 200-byte region [ffff8881028c2000, ffff8881028c20c8) [ 11.782801] [ 11.782973] The buggy address belongs to the physical page: [ 11.783557] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1028c2 [ 11.784350] flags: 0x200000000000000(node=0|zone=2) [ 11.784900] page_type: f5(slab) [ 11.785284] raw: 0200000000000000 ffff888101db33c0 dead000000000122 0000000000000000 [ 11.785878] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 11.786678] page dumped because: kasan: bad access detected [ 11.786971] [ 11.787126] Memory state around the buggy address: [ 11.787563] ffff8881028c1f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.787861] ffff8881028c2000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.788519] >ffff8881028c2080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 11.789317] ^ [ 11.789709] ffff8881028c2100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.790155] ffff8881028c2180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.790390] ==================================================================