Date
July 1, 2025, 11:08 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.870261] ================================================================== [ 18.870359] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x344/0x430 [ 18.870456] Read of size 1 at addr fff00000c77370c8 by task kunit_try_catch/208 [ 18.870521] [ 18.870567] CPU: 1 UID: 0 PID: 208 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 18.870661] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.870701] Hardware name: linux,dummy-virt (DT) [ 18.870749] Call trace: [ 18.870774] show_stack+0x20/0x38 (C) [ 18.870831] dump_stack_lvl+0x8c/0xd0 [ 18.870885] print_report+0x118/0x608 [ 18.870935] kasan_report+0xdc/0x128 [ 18.870994] __asan_report_load1_noabort+0x20/0x30 [ 18.871051] kmem_cache_oob+0x344/0x430 [ 18.871099] kunit_try_run_case+0x170/0x3f0 [ 18.871164] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.871223] kthread+0x328/0x630 [ 18.871695] ret_from_fork+0x10/0x20 [ 18.871752] [ 18.871830] Allocated by task 208: [ 18.871885] kasan_save_stack+0x3c/0x68 [ 18.871930] kasan_save_track+0x20/0x40 [ 18.871971] kasan_save_alloc_info+0x40/0x58 [ 18.872177] __kasan_slab_alloc+0xa8/0xb0 [ 18.872230] kmem_cache_alloc_noprof+0x10c/0x398 [ 18.872321] kmem_cache_oob+0x12c/0x430 [ 18.872395] kunit_try_run_case+0x170/0x3f0 [ 18.872589] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.872775] kthread+0x328/0x630 [ 18.872857] ret_from_fork+0x10/0x20 [ 18.872925] [ 18.872948] The buggy address belongs to the object at fff00000c7737000 [ 18.872948] which belongs to the cache test_cache of size 200 [ 18.873365] The buggy address is located 0 bytes to the right of [ 18.873365] allocated 200-byte region [fff00000c7737000, fff00000c77370c8) [ 18.873667] [ 18.873871] The buggy address belongs to the physical page: [ 18.874018] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107737 [ 18.874150] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.874375] page_type: f5(slab) [ 18.874455] raw: 0bfffe0000000000 fff00000c0caca00 dead000000000122 0000000000000000 [ 18.874761] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 18.874996] page dumped because: kasan: bad access detected [ 18.875091] [ 18.875233] Memory state around the buggy address: [ 18.875403] fff00000c7736f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.875513] fff00000c7737000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.875660] >fff00000c7737080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 18.875706] ^ [ 18.875747] fff00000c7737100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.875796] fff00000c7737180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.875840] ==================================================================
[ 12.135627] ================================================================== [ 12.137166] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x402/0x530 [ 12.137970] Read of size 1 at addr ffff8881025990c8 by task kunit_try_catch/224 [ 12.138610] [ 12.138715] CPU: 0 UID: 0 PID: 224 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 12.138766] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.138779] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.138802] Call Trace: [ 12.138817] <TASK> [ 12.138836] dump_stack_lvl+0x73/0xb0 [ 12.138868] print_report+0xd1/0x650 [ 12.138891] ? __virt_addr_valid+0x1db/0x2d0 [ 12.138914] ? kmem_cache_oob+0x402/0x530 [ 12.138935] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.138956] ? kmem_cache_oob+0x402/0x530 [ 12.138977] kasan_report+0x141/0x180 [ 12.138998] ? kmem_cache_oob+0x402/0x530 [ 12.139023] __asan_report_load1_noabort+0x18/0x20 [ 12.139046] kmem_cache_oob+0x402/0x530 [ 12.139066] ? trace_hardirqs_on+0x37/0xe0 [ 12.139090] ? __pfx_kmem_cache_oob+0x10/0x10 [ 12.139111] ? finish_task_switch.isra.0+0x153/0x700 [ 12.139133] ? __switch_to+0x47/0xf50 [ 12.139161] ? __pfx_read_tsc+0x10/0x10 [ 12.139182] ? ktime_get_ts64+0x86/0x230 [ 12.139204] kunit_try_run_case+0x1a5/0x480 [ 12.139229] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.139250] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.139274] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.139295] ? __kthread_parkme+0x82/0x180 [ 12.139315] ? preempt_count_sub+0x50/0x80 [ 12.139337] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.139359] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.139425] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.139447] kthread+0x337/0x6f0 [ 12.139465] ? trace_preempt_on+0x20/0xc0 [ 12.139486] ? __pfx_kthread+0x10/0x10 [ 12.139505] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.139524] ? calculate_sigpending+0x7b/0xa0 [ 12.139548] ? __pfx_kthread+0x10/0x10 [ 12.139586] ret_from_fork+0x116/0x1d0 [ 12.139603] ? __pfx_kthread+0x10/0x10 [ 12.139624] ret_from_fork_asm+0x1a/0x30 [ 12.139684] </TASK> [ 12.139695] [ 12.152085] Allocated by task 224: [ 12.152544] kasan_save_stack+0x45/0x70 [ 12.152944] kasan_save_track+0x18/0x40 [ 12.153315] kasan_save_alloc_info+0x3b/0x50 [ 12.153741] __kasan_slab_alloc+0x91/0xa0 [ 12.154174] kmem_cache_alloc_noprof+0x123/0x3f0 [ 12.154649] kmem_cache_oob+0x157/0x530 [ 12.155057] kunit_try_run_case+0x1a5/0x480 [ 12.155434] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.155975] kthread+0x337/0x6f0 [ 12.156295] ret_from_fork+0x116/0x1d0 [ 12.156682] ret_from_fork_asm+0x1a/0x30 [ 12.157091] [ 12.157266] The buggy address belongs to the object at ffff888102599000 [ 12.157266] which belongs to the cache test_cache of size 200 [ 12.158385] The buggy address is located 0 bytes to the right of [ 12.158385] allocated 200-byte region [ffff888102599000, ffff8881025990c8) [ 12.159550] [ 12.159778] The buggy address belongs to the physical page: [ 12.160385] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102599 [ 12.161081] flags: 0x200000000000000(node=0|zone=2) [ 12.161355] page_type: f5(slab) [ 12.161705] raw: 0200000000000000 ffff888102596000 dead000000000122 0000000000000000 [ 12.162354] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 12.162814] page dumped because: kasan: bad access detected [ 12.163107] [ 12.163264] Memory state around the buggy address: [ 12.163753] ffff888102598f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.164467] ffff888102599000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.165166] >ffff888102599080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 12.165394] ^ [ 12.165587] ffff888102599100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.166280] ffff888102599180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.166949] ==================================================================