Date
July 5, 2025, 11:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.550815] ================================================================== [ 18.550884] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x344/0x430 [ 18.550939] Read of size 1 at addr fff00000c65cb0c8 by task kunit_try_catch/207 [ 18.551344] [ 18.551390] CPU: 0 UID: 0 PID: 207 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 18.551538] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.551757] Hardware name: linux,dummy-virt (DT) [ 18.551794] Call trace: [ 18.551818] show_stack+0x20/0x38 (C) [ 18.551870] dump_stack_lvl+0x8c/0xd0 [ 18.551952] print_report+0x118/0x608 [ 18.552302] kasan_report+0xdc/0x128 [ 18.552439] __asan_report_load1_noabort+0x20/0x30 [ 18.552489] kmem_cache_oob+0x344/0x430 [ 18.552534] kunit_try_run_case+0x170/0x3f0 [ 18.552634] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.552866] kthread+0x328/0x630 [ 18.552920] ret_from_fork+0x10/0x20 [ 18.552969] [ 18.552998] Allocated by task 207: [ 18.553028] kasan_save_stack+0x3c/0x68 [ 18.553099] kasan_save_track+0x20/0x40 [ 18.553140] kasan_save_alloc_info+0x40/0x58 [ 18.553498] __kasan_slab_alloc+0xa8/0xb0 [ 18.553570] kmem_cache_alloc_noprof+0x10c/0x398 [ 18.553610] kmem_cache_oob+0x12c/0x430 [ 18.553647] kunit_try_run_case+0x170/0x3f0 [ 18.553684] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.553725] kthread+0x328/0x630 [ 18.553757] ret_from_fork+0x10/0x20 [ 18.553818] [ 18.553917] The buggy address belongs to the object at fff00000c65cb000 [ 18.553917] which belongs to the cache test_cache of size 200 [ 18.554212] The buggy address is located 0 bytes to the right of [ 18.554212] allocated 200-byte region [fff00000c65cb000, fff00000c65cb0c8) [ 18.554353] [ 18.554446] The buggy address belongs to the physical page: [ 18.554494] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1065cb [ 18.554604] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.554654] page_type: f5(slab) [ 18.554692] raw: 0bfffe0000000000 fff00000c595db40 dead000000000122 0000000000000000 [ 18.554826] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 18.554987] page dumped because: kasan: bad access detected [ 18.555019] [ 18.555036] Memory state around the buggy address: [ 18.555139] fff00000c65caf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.556077] fff00000c65cb000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.556227] >fff00000c65cb080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 18.556412] ^ [ 18.556451] fff00000c65cb100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.556640] fff00000c65cb180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.556941] ==================================================================
[ 14.322385] ================================================================== [ 14.323142] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x402/0x530 [ 14.323889] Read of size 1 at addr ffff888102a020c8 by task kunit_try_catch/225 [ 14.324712] [ 14.324893] CPU: 1 UID: 0 PID: 225 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 14.324949] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.324964] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.324991] Call Trace: [ 14.325008] <TASK> [ 14.325030] dump_stack_lvl+0x73/0xb0 [ 14.325068] print_report+0xd1/0x650 [ 14.325108] ? __virt_addr_valid+0x1db/0x2d0 [ 14.325135] ? kmem_cache_oob+0x402/0x530 [ 14.325161] ? kasan_complete_mode_report_info+0x2a/0x200 [ 14.325186] ? kmem_cache_oob+0x402/0x530 [ 14.325211] kasan_report+0x141/0x180 [ 14.325236] ? kmem_cache_oob+0x402/0x530 [ 14.325267] __asan_report_load1_noabort+0x18/0x20 [ 14.325293] kmem_cache_oob+0x402/0x530 [ 14.325319] ? __pfx_kmem_cache_oob+0x10/0x10 [ 14.325348] ? sysvec_apic_timer_interrupt+0x50/0x90 [ 14.325382] ? __pfx_kmem_cache_oob+0x10/0x10 [ 14.325411] kunit_try_run_case+0x1a5/0x480 [ 14.325439] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.325463] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.325490] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.325515] ? __kthread_parkme+0x82/0x180 [ 14.325538] ? preempt_count_sub+0x50/0x80 [ 14.325565] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.325591] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.325616] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.325641] kthread+0x337/0x6f0 [ 14.325664] ? trace_preempt_on+0x20/0xc0 [ 14.325691] ? __pfx_kthread+0x10/0x10 [ 14.325714] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.325737] ? calculate_sigpending+0x7b/0xa0 [ 14.325764] ? __pfx_kthread+0x10/0x10 [ 14.325799] ret_from_fork+0x116/0x1d0 [ 14.325822] ? __pfx_kthread+0x10/0x10 [ 14.325844] ret_from_fork_asm+0x1a/0x30 [ 14.325879] </TASK> [ 14.325892] [ 14.339652] Allocated by task 225: [ 14.339892] kasan_save_stack+0x45/0x70 [ 14.340234] kasan_save_track+0x18/0x40 [ 14.340482] kasan_save_alloc_info+0x3b/0x50 [ 14.340746] __kasan_slab_alloc+0x91/0xa0 [ 14.340992] kmem_cache_alloc_noprof+0x123/0x3f0 [ 14.341488] kmem_cache_oob+0x157/0x530 [ 14.341666] kunit_try_run_case+0x1a5/0x480 [ 14.341862] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.342769] kthread+0x337/0x6f0 [ 14.343017] ret_from_fork+0x116/0x1d0 [ 14.343705] ret_from_fork_asm+0x1a/0x30 [ 14.343968] [ 14.344082] The buggy address belongs to the object at ffff888102a02000 [ 14.344082] which belongs to the cache test_cache of size 200 [ 14.344733] The buggy address is located 0 bytes to the right of [ 14.344733] allocated 200-byte region [ffff888102a02000, ffff888102a020c8) [ 14.345982] [ 14.346239] The buggy address belongs to the physical page: [ 14.346694] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102a02 [ 14.347334] flags: 0x200000000000000(node=0|zone=2) [ 14.347611] page_type: f5(slab) [ 14.347808] raw: 0200000000000000 ffff888101a64a00 dead000000000122 0000000000000000 [ 14.348074] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 14.348573] page dumped because: kasan: bad access detected [ 14.348895] [ 14.349000] Memory state around the buggy address: [ 14.349801] ffff888102a01f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.350106] ffff888102a02000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 14.350701] >ffff888102a02080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 14.351212] ^ [ 14.351499] ffff888102a02100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.351881] ffff888102a02180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.352503] ==================================================================