Date
July 11, 2025, 11:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.301523] ================================================================== [ 17.301751] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x344/0x430 [ 17.301894] Read of size 1 at addr fff00000c58e90c8 by task kunit_try_catch/208 [ 17.301945] [ 17.301981] CPU: 0 UID: 0 PID: 208 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 17.302065] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.302093] Hardware name: linux,dummy-virt (DT) [ 17.302164] Call trace: [ 17.302223] show_stack+0x20/0x38 (C) [ 17.302282] dump_stack_lvl+0x8c/0xd0 [ 17.302547] print_report+0x118/0x608 [ 17.302770] kasan_report+0xdc/0x128 [ 17.302896] __asan_report_load1_noabort+0x20/0x30 [ 17.302946] kmem_cache_oob+0x344/0x430 [ 17.302992] kunit_try_run_case+0x170/0x3f0 [ 17.303040] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.303092] kthread+0x328/0x630 [ 17.303135] ret_from_fork+0x10/0x20 [ 17.303183] [ 17.303201] Allocated by task 208: [ 17.303250] kasan_save_stack+0x3c/0x68 [ 17.303291] kasan_save_track+0x20/0x40 [ 17.303339] kasan_save_alloc_info+0x40/0x58 [ 17.303401] __kasan_slab_alloc+0xa8/0xb0 [ 17.303492] kmem_cache_alloc_noprof+0x10c/0x398 [ 17.303620] kmem_cache_oob+0x12c/0x430 [ 17.303655] kunit_try_run_case+0x170/0x3f0 [ 17.303709] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.303752] kthread+0x328/0x630 [ 17.303822] ret_from_fork+0x10/0x20 [ 17.303969] [ 17.303989] The buggy address belongs to the object at fff00000c58e9000 [ 17.303989] which belongs to the cache test_cache of size 200 [ 17.304072] The buggy address is located 0 bytes to the right of [ 17.304072] allocated 200-byte region [fff00000c58e9000, fff00000c58e90c8) [ 17.304226] [ 17.304253] The buggy address belongs to the physical page: [ 17.304359] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1058e9 [ 17.304416] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.304466] page_type: f5(slab) [ 17.304591] raw: 0bfffe0000000000 fff00000c3ea3a00 dead000000000122 0000000000000000 [ 17.305319] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 17.305423] page dumped because: kasan: bad access detected [ 17.305484] [ 17.305502] Memory state around the buggy address: [ 17.305534] fff00000c58e8f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.305577] fff00000c58e9000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.305620] >fff00000c58e9080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 17.305657] ^ [ 17.305692] fff00000c58e9100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.305733] fff00000c58e9180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.305773] ==================================================================
[ 13.011127] ================================================================== [ 13.011497] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x402/0x530 [ 13.011721] Read of size 1 at addr ffff888102a0a0c8 by task kunit_try_catch/224 [ 13.012024] [ 13.012320] CPU: 1 UID: 0 PID: 224 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 13.012366] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.012378] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.012398] Call Trace: [ 13.012410] <TASK> [ 13.012426] dump_stack_lvl+0x73/0xb0 [ 13.012456] print_report+0xd1/0x650 [ 13.012478] ? __virt_addr_valid+0x1db/0x2d0 [ 13.012501] ? kmem_cache_oob+0x402/0x530 [ 13.012523] ? kasan_complete_mode_report_info+0x2a/0x200 [ 13.012546] ? kmem_cache_oob+0x402/0x530 [ 13.012568] kasan_report+0x141/0x180 [ 13.012590] ? kmem_cache_oob+0x402/0x530 [ 13.012618] __asan_report_load1_noabort+0x18/0x20 [ 13.012642] kmem_cache_oob+0x402/0x530 [ 13.012663] ? trace_hardirqs_on+0x37/0xe0 [ 13.012687] ? __pfx_kmem_cache_oob+0x10/0x10 [ 13.012709] ? finish_task_switch.isra.0+0x153/0x700 [ 13.012732] ? __switch_to+0x47/0xf50 [ 13.012761] ? __pfx_read_tsc+0x10/0x10 [ 13.012782] ? ktime_get_ts64+0x86/0x230 [ 13.012806] kunit_try_run_case+0x1a5/0x480 [ 13.012830] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.012853] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.012877] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.012901] ? __kthread_parkme+0x82/0x180 [ 13.012935] ? preempt_count_sub+0x50/0x80 [ 13.012958] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.012982] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.013006] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.013030] kthread+0x337/0x6f0 [ 13.013048] ? trace_preempt_on+0x20/0xc0 [ 13.013070] ? __pfx_kthread+0x10/0x10 [ 13.013091] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.013125] ? calculate_sigpending+0x7b/0xa0 [ 13.013148] ? __pfx_kthread+0x10/0x10 [ 13.013170] ret_from_fork+0x116/0x1d0 [ 13.013187] ? __pfx_kthread+0x10/0x10 [ 13.013208] ret_from_fork_asm+0x1a/0x30 [ 13.013240] </TASK> [ 13.013249] [ 13.021259] Allocated by task 224: [ 13.021397] kasan_save_stack+0x45/0x70 [ 13.021544] kasan_save_track+0x18/0x40 [ 13.021742] kasan_save_alloc_info+0x3b/0x50 [ 13.021967] __kasan_slab_alloc+0x91/0xa0 [ 13.022378] kmem_cache_alloc_noprof+0x123/0x3f0 [ 13.022631] kmem_cache_oob+0x157/0x530 [ 13.022782] kunit_try_run_case+0x1a5/0x480 [ 13.022943] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.023251] kthread+0x337/0x6f0 [ 13.023429] ret_from_fork+0x116/0x1d0 [ 13.023616] ret_from_fork_asm+0x1a/0x30 [ 13.023818] [ 13.023913] The buggy address belongs to the object at ffff888102a0a000 [ 13.023913] which belongs to the cache test_cache of size 200 [ 13.024427] The buggy address is located 0 bytes to the right of [ 13.024427] allocated 200-byte region [ffff888102a0a000, ffff888102a0a0c8) [ 13.025087] [ 13.025189] The buggy address belongs to the physical page: [ 13.025418] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a0a [ 13.025657] flags: 0x200000000000000(node=0|zone=2) [ 13.026002] page_type: f5(slab) [ 13.026193] raw: 0200000000000000 ffff888101c02a00 dead000000000122 0000000000000000 [ 13.026626] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 13.027006] page dumped because: kasan: bad access detected [ 13.027180] [ 13.027249] Memory state around the buggy address: [ 13.027571] ffff888102a09f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.027897] ffff888102a0a000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.028233] >ffff888102a0a080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 13.028741] ^ [ 13.028954] ffff888102a0a100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.029233] ffff888102a0a180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.029544] ==================================================================