Date
July 18, 2025, 11:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.804078] ================================================================== [ 15.804202] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x344/0x430 [ 15.804265] Read of size 1 at addr fff00000c5a650c8 by task kunit_try_catch/207 [ 15.804342] [ 15.804417] CPU: 1 UID: 0 PID: 207 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 15.804784] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.804846] Hardware name: linux,dummy-virt (DT) [ 15.804956] Call trace: [ 15.804983] show_stack+0x20/0x38 (C) [ 15.805057] dump_stack_lvl+0x8c/0xd0 [ 15.805163] print_report+0x118/0x5d0 [ 15.805631] kasan_report+0xdc/0x128 [ 15.805709] __asan_report_load1_noabort+0x20/0x30 [ 15.805852] kmem_cache_oob+0x344/0x430 [ 15.806083] kunit_try_run_case+0x170/0x3f0 [ 15.806294] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.806632] kthread+0x328/0x630 [ 15.806717] ret_from_fork+0x10/0x20 [ 15.806908] [ 15.807121] Allocated by task 207: [ 15.807247] kasan_save_stack+0x3c/0x68 [ 15.807355] kasan_save_track+0x20/0x40 [ 15.807401] kasan_save_alloc_info+0x40/0x58 [ 15.807620] __kasan_slab_alloc+0xa8/0xb0 [ 15.807851] kmem_cache_alloc_noprof+0x10c/0x398 [ 15.808015] kmem_cache_oob+0x12c/0x430 [ 15.808175] kunit_try_run_case+0x170/0x3f0 [ 15.808313] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.808582] kthread+0x328/0x630 [ 15.808705] ret_from_fork+0x10/0x20 [ 15.808894] [ 15.808961] The buggy address belongs to the object at fff00000c5a65000 [ 15.808961] which belongs to the cache test_cache of size 200 [ 15.809139] The buggy address is located 0 bytes to the right of [ 15.809139] allocated 200-byte region [fff00000c5a65000, fff00000c5a650c8) [ 15.809298] [ 15.809351] The buggy address belongs to the physical page: [ 15.809387] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105a65 [ 15.809446] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 15.809743] page_type: f5(slab) [ 15.809903] raw: 0bfffe0000000000 fff00000c3e97a00 dead000000000122 0000000000000000 [ 15.810024] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 15.810103] page dumped because: kasan: bad access detected [ 15.810193] [ 15.810309] Memory state around the buggy address: [ 15.810356] fff00000c5a64f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.810438] fff00000c5a65000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.810777] >fff00000c5a65080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 15.810875] ^ [ 15.811033] fff00000c5a65100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.811192] fff00000c5a65180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.811321] ==================================================================
[ 12.822177] ================================================================== [ 12.823373] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x402/0x530 [ 12.823728] Read of size 1 at addr ffff8881030ee0c8 by task kunit_try_catch/226 [ 12.824019] [ 12.824123] CPU: 1 UID: 0 PID: 226 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 12.824165] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.824244] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.824268] Call Trace: [ 12.824292] <TASK> [ 12.824307] dump_stack_lvl+0x73/0xb0 [ 12.824338] print_report+0xd1/0x610 [ 12.824360] ? __virt_addr_valid+0x1db/0x2d0 [ 12.824381] ? kmem_cache_oob+0x402/0x530 [ 12.824403] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.824425] ? kmem_cache_oob+0x402/0x530 [ 12.824447] kasan_report+0x141/0x180 [ 12.824468] ? kmem_cache_oob+0x402/0x530 [ 12.824495] __asan_report_load1_noabort+0x18/0x20 [ 12.824519] kmem_cache_oob+0x402/0x530 [ 12.824539] ? trace_hardirqs_on+0x37/0xe0 [ 12.824562] ? __pfx_kmem_cache_oob+0x10/0x10 [ 12.824583] ? finish_task_switch.isra.0+0x153/0x700 [ 12.824605] ? __switch_to+0x47/0xf50 [ 12.824632] ? trace_hardirqs_on+0x37/0xe0 [ 12.824652] ? __pfx_read_tsc+0x10/0x10 [ 12.824671] ? ktime_get_ts64+0x86/0x230 [ 12.824694] kunit_try_run_case+0x1a5/0x480 [ 12.824718] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.824740] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.824763] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.824786] ? __kthread_parkme+0x82/0x180 [ 12.824806] ? preempt_count_sub+0x50/0x80 [ 12.824829] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.824852] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.824876] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.824899] kthread+0x337/0x6f0 [ 12.824918] ? trace_preempt_on+0x20/0xc0 [ 12.824943] ? __pfx_kthread+0x10/0x10 [ 12.824963] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.824984] ? calculate_sigpending+0x7b/0xa0 [ 12.825007] ? __pfx_kthread+0x10/0x10 [ 12.825185] ret_from_fork+0x116/0x1d0 [ 12.825205] ? __pfx_kthread+0x10/0x10 [ 12.825225] ret_from_fork_asm+0x1a/0x30 [ 12.825257] </TASK> [ 12.825266] [ 12.833154] Allocated by task 226: [ 12.833325] kasan_save_stack+0x45/0x70 [ 12.833528] kasan_save_track+0x18/0x40 [ 12.833722] kasan_save_alloc_info+0x3b/0x50 [ 12.833929] __kasan_slab_alloc+0x91/0xa0 [ 12.834115] kmem_cache_alloc_noprof+0x123/0x3f0 [ 12.834271] kmem_cache_oob+0x157/0x530 [ 12.834418] kunit_try_run_case+0x1a5/0x480 [ 12.835011] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.835296] kthread+0x337/0x6f0 [ 12.835454] ret_from_fork+0x116/0x1d0 [ 12.835679] ret_from_fork_asm+0x1a/0x30 [ 12.835857] [ 12.835954] The buggy address belongs to the object at ffff8881030ee000 [ 12.835954] which belongs to the cache test_cache of size 200 [ 12.836467] The buggy address is located 0 bytes to the right of [ 12.836467] allocated 200-byte region [ffff8881030ee000, ffff8881030ee0c8) [ 12.836944] [ 12.837095] The buggy address belongs to the physical page: [ 12.837363] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1030ee [ 12.837747] flags: 0x200000000000000(node=0|zone=2) [ 12.837961] page_type: f5(slab) [ 12.838322] raw: 0200000000000000 ffff888101093780 dead000000000122 0000000000000000 [ 12.838692] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 12.838983] page dumped because: kasan: bad access detected [ 12.839225] [ 12.839308] Memory state around the buggy address: [ 12.839463] ffff8881030edf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.839679] ffff8881030ee000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.839948] >ffff8881030ee080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 12.840256] ^ [ 12.840521] ffff8881030ee100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.841085] ffff8881030ee180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.841411] ==================================================================