Date
July 2, 2025, 11:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.708743] ================================================================== [ 18.708813] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x344/0x430 [ 18.709766] Read of size 1 at addr fff00000c70820c8 by task kunit_try_catch/207 [ 18.710106] [ 18.710149] CPU: 0 UID: 0 PID: 207 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 18.711003] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.711069] Hardware name: linux,dummy-virt (DT) [ 18.711331] Call trace: [ 18.711362] show_stack+0x20/0x38 (C) [ 18.711834] dump_stack_lvl+0x8c/0xd0 [ 18.712095] print_report+0x118/0x608 [ 18.712182] kasan_report+0xdc/0x128 [ 18.712380] __asan_report_load1_noabort+0x20/0x30 [ 18.712431] kmem_cache_oob+0x344/0x430 [ 18.712477] kunit_try_run_case+0x170/0x3f0 [ 18.713078] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.713453] kthread+0x328/0x630 [ 18.713520] ret_from_fork+0x10/0x20 [ 18.713572] [ 18.713965] Allocated by task 207: [ 18.714120] kasan_save_stack+0x3c/0x68 [ 18.714296] kasan_save_track+0x20/0x40 [ 18.714380] kasan_save_alloc_info+0x40/0x58 [ 18.714418] __kasan_slab_alloc+0xa8/0xb0 [ 18.714456] kmem_cache_alloc_noprof+0x10c/0x398 [ 18.714958] kmem_cache_oob+0x12c/0x430 [ 18.715097] kunit_try_run_case+0x170/0x3f0 [ 18.715403] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.715467] kthread+0x328/0x630 [ 18.715509] ret_from_fork+0x10/0x20 [ 18.715545] [ 18.715565] The buggy address belongs to the object at fff00000c7082000 [ 18.715565] which belongs to the cache test_cache of size 200 [ 18.715635] The buggy address is located 0 bytes to the right of [ 18.715635] allocated 200-byte region [fff00000c7082000, fff00000c70820c8) [ 18.716462] [ 18.716490] The buggy address belongs to the physical page: [ 18.716658] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107082 [ 18.716721] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.716774] page_type: f5(slab) [ 18.716816] raw: 0bfffe0000000000 fff00000ffe7af00 dead000000000122 0000000000000000 [ 18.716866] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 18.716905] page dumped because: kasan: bad access detected [ 18.716937] [ 18.716955] Memory state around the buggy address: [ 18.717842] fff00000c7081f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 18.718094] fff00000c7082000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.718141] >fff00000c7082080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 18.718657] ^ [ 18.718704] fff00000c7082100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.718748] fff00000c7082180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.718787] ==================================================================
[ 12.044665] ================================================================== [ 12.045168] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x402/0x530 [ 12.045472] Read of size 1 at addr ffff88810397a0c8 by task kunit_try_catch/226 [ 12.046888] [ 12.047143] CPU: 1 UID: 0 PID: 226 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 12.047192] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.047204] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.047258] Call Trace: [ 12.047270] <TASK> [ 12.047289] dump_stack_lvl+0x73/0xb0 [ 12.047335] print_report+0xd1/0x650 [ 12.047358] ? __virt_addr_valid+0x1db/0x2d0 [ 12.047392] ? kmem_cache_oob+0x402/0x530 [ 12.047413] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.047434] ? kmem_cache_oob+0x402/0x530 [ 12.047455] kasan_report+0x141/0x180 [ 12.047475] ? kmem_cache_oob+0x402/0x530 [ 12.047501] __asan_report_load1_noabort+0x18/0x20 [ 12.047524] kmem_cache_oob+0x402/0x530 [ 12.047546] ? __pfx_kmem_cache_oob+0x10/0x10 [ 12.047567] ? sysvec_apic_timer_interrupt+0x50/0x90 [ 12.047596] ? __pfx_kmem_cache_oob+0x10/0x10 [ 12.047621] kunit_try_run_case+0x1a5/0x480 [ 12.047647] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.047667] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.047694] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.047715] ? __kthread_parkme+0x82/0x180 [ 12.047735] ? preempt_count_sub+0x50/0x80 [ 12.047760] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.047782] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.047804] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.047825] kthread+0x337/0x6f0 [ 12.047843] ? trace_preempt_on+0x20/0xc0 [ 12.047867] ? __pfx_kthread+0x10/0x10 [ 12.047886] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.047906] ? calculate_sigpending+0x7b/0xa0 [ 12.047929] ? __pfx_kthread+0x10/0x10 [ 12.047949] ret_from_fork+0x116/0x1d0 [ 12.047968] ? __pfx_kthread+0x10/0x10 [ 12.047986] ret_from_fork_asm+0x1a/0x30 [ 12.048016] </TASK> [ 12.048028] [ 12.059530] Allocated by task 226: [ 12.059725] kasan_save_stack+0x45/0x70 [ 12.060036] kasan_save_track+0x18/0x40 [ 12.060186] kasan_save_alloc_info+0x3b/0x50 [ 12.060460] __kasan_slab_alloc+0x91/0xa0 [ 12.060783] kmem_cache_alloc_noprof+0x123/0x3f0 [ 12.061270] kmem_cache_oob+0x157/0x530 [ 12.061508] kunit_try_run_case+0x1a5/0x480 [ 12.061695] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.062248] kthread+0x337/0x6f0 [ 12.062453] ret_from_fork+0x116/0x1d0 [ 12.062641] ret_from_fork_asm+0x1a/0x30 [ 12.062994] [ 12.063071] The buggy address belongs to the object at ffff88810397a000 [ 12.063071] which belongs to the cache test_cache of size 200 [ 12.063628] The buggy address is located 0 bytes to the right of [ 12.063628] allocated 200-byte region [ffff88810397a000, ffff88810397a0c8) [ 12.064362] [ 12.064493] The buggy address belongs to the physical page: [ 12.064928] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10397a [ 12.065615] flags: 0x200000000000000(node=0|zone=2) [ 12.066119] page_type: f5(slab) [ 12.066358] raw: 0200000000000000 ffff888100fae500 dead000000000122 0000000000000000 [ 12.066910] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 12.067331] page dumped because: kasan: bad access detected [ 12.067851] [ 12.067967] Memory state around the buggy address: [ 12.068169] ffff888103979f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.068508] ffff88810397a000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.069158] >ffff88810397a080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 12.069430] ^ [ 12.069740] ffff88810397a100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.070353] ffff88810397a180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.070755] ==================================================================