Date
July 9, 2025, 12:11 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 20.067007] ================================================================== [ 20.067100] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x344/0x430 [ 20.067164] Read of size 1 at addr fff00000c64590c8 by task kunit_try_catch/208 [ 20.067235] [ 20.067630] CPU: 1 UID: 0 PID: 208 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT [ 20.068163] Tainted: [B]=BAD_PAGE, [N]=TEST [ 20.068555] Hardware name: linux,dummy-virt (DT) [ 20.068752] Call trace: [ 20.068792] show_stack+0x20/0x38 (C) [ 20.068915] dump_stack_lvl+0x8c/0xd0 [ 20.069004] print_report+0x118/0x608 [ 20.069107] kasan_report+0xdc/0x128 [ 20.069547] __asan_report_load1_noabort+0x20/0x30 [ 20.069639] kmem_cache_oob+0x344/0x430 [ 20.069747] kunit_try_run_case+0x170/0x3f0 [ 20.069845] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.069941] kthread+0x328/0x630 [ 20.070080] ret_from_fork+0x10/0x20 [ 20.070135] [ 20.070153] Allocated by task 208: [ 20.070193] kasan_save_stack+0x3c/0x68 [ 20.070479] kasan_save_track+0x20/0x40 [ 20.070694] kasan_save_alloc_info+0x40/0x58 [ 20.070820] __kasan_slab_alloc+0xa8/0xb0 [ 20.070878] kmem_cache_alloc_noprof+0x10c/0x398 [ 20.070943] kmem_cache_oob+0x12c/0x430 [ 20.071070] kunit_try_run_case+0x170/0x3f0 [ 20.071111] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 20.071310] kthread+0x328/0x630 [ 20.071668] ret_from_fork+0x10/0x20 [ 20.071736] [ 20.071820] The buggy address belongs to the object at fff00000c6459000 [ 20.071820] which belongs to the cache test_cache of size 200 [ 20.071918] The buggy address is located 0 bytes to the right of [ 20.071918] allocated 200-byte region [fff00000c6459000, fff00000c64590c8) [ 20.072023] [ 20.072726] The buggy address belongs to the physical page: [ 20.072793] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106459 [ 20.072910] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 20.073003] page_type: f5(slab) [ 20.073067] raw: 0bfffe0000000000 fff00000c471a3c0 dead000000000122 0000000000000000 [ 20.074135] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 20.074201] page dumped because: kasan: bad access detected [ 20.074342] [ 20.074365] Memory state around the buggy address: [ 20.074409] fff00000c6458f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.074771] fff00000c6459000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 20.074866] >fff00000c6459080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 20.074954] ^ [ 20.075025] fff00000c6459100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.075140] fff00000c6459180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 20.075198] ==================================================================
[ 13.327462] ================================================================== [ 13.328127] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x402/0x530 [ 13.328496] Read of size 1 at addr ffff888102ab10c8 by task kunit_try_catch/224 [ 13.328775] [ 13.328877] CPU: 1 UID: 0 PID: 224 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5 #1 PREEMPT(voluntary) [ 13.328924] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.328948] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.329261] Call Trace: [ 13.329274] <TASK> [ 13.329293] dump_stack_lvl+0x73/0xb0 [ 13.329345] print_report+0xd1/0x650 [ 13.329370] ? __virt_addr_valid+0x1db/0x2d0 [ 13.329394] ? kmem_cache_oob+0x402/0x530 [ 13.329417] ? kasan_complete_mode_report_info+0x2a/0x200 [ 13.329440] ? kmem_cache_oob+0x402/0x530 [ 13.329462] kasan_report+0x141/0x180 [ 13.329483] ? kmem_cache_oob+0x402/0x530 [ 13.329510] __asan_report_load1_noabort+0x18/0x20 [ 13.329535] kmem_cache_oob+0x402/0x530 [ 13.329556] ? trace_hardirqs_on+0x37/0xe0 [ 13.329580] ? __pfx_kmem_cache_oob+0x10/0x10 [ 13.329602] ? finish_task_switch.isra.0+0x153/0x700 [ 13.329626] ? __switch_to+0x47/0xf50 [ 13.329654] ? __pfx_read_tsc+0x10/0x10 [ 13.329675] ? ktime_get_ts64+0x86/0x230 [ 13.329700] kunit_try_run_case+0x1a5/0x480 [ 13.329726] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.329748] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.329772] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.329796] ? __kthread_parkme+0x82/0x180 [ 13.329817] ? preempt_count_sub+0x50/0x80 [ 13.329839] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.329863] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.329888] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.329913] kthread+0x337/0x6f0 [ 13.329944] ? trace_preempt_on+0x20/0xc0 [ 13.329978] ? __pfx_kthread+0x10/0x10 [ 13.329998] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.330019] ? calculate_sigpending+0x7b/0xa0 [ 13.330043] ? __pfx_kthread+0x10/0x10 [ 13.330064] ret_from_fork+0x116/0x1d0 [ 13.330082] ? __pfx_kthread+0x10/0x10 [ 13.330102] ret_from_fork_asm+0x1a/0x30 [ 13.330134] </TASK> [ 13.330145] [ 13.341492] Allocated by task 224: [ 13.341680] kasan_save_stack+0x45/0x70 [ 13.342126] kasan_save_track+0x18/0x40 [ 13.342454] kasan_save_alloc_info+0x3b/0x50 [ 13.342679] __kasan_slab_alloc+0x91/0xa0 [ 13.343094] kmem_cache_alloc_noprof+0x123/0x3f0 [ 13.343415] kmem_cache_oob+0x157/0x530 [ 13.343593] kunit_try_run_case+0x1a5/0x480 [ 13.343923] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.344185] kthread+0x337/0x6f0 [ 13.344800] ret_from_fork+0x116/0x1d0 [ 13.345062] ret_from_fork_asm+0x1a/0x30 [ 13.345456] [ 13.345557] The buggy address belongs to the object at ffff888102ab1000 [ 13.345557] which belongs to the cache test_cache of size 200 [ 13.346331] The buggy address is located 0 bytes to the right of [ 13.346331] allocated 200-byte region [ffff888102ab1000, ffff888102ab10c8) [ 13.347009] [ 13.347222] The buggy address belongs to the physical page: [ 13.347522] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102ab1 [ 13.347998] flags: 0x200000000000000(node=0|zone=2) [ 13.348499] page_type: f5(slab) [ 13.348759] raw: 0200000000000000 ffff888100929a00 dead000000000122 0000000000000000 [ 13.349417] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 13.349748] page dumped because: kasan: bad access detected [ 13.350160] [ 13.350258] Memory state around the buggy address: [ 13.350537] ffff888102ab0f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.351153] ffff888102ab1000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 13.351573] >ffff888102ab1080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 13.351849] ^ [ 13.352443] ffff888102ab1100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.352743] ffff888102ab1180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.353269] ==================================================================