Date
June 17, 2025, 6:35 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.483224] ================================================================== [ 17.483297] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x344/0x430 [ 17.484115] Read of size 1 at addr fff00000c50100c8 by task kunit_try_catch/216 [ 17.484389] [ 17.484444] CPU: 1 UID: 0 PID: 216 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250617 #1 PREEMPT [ 17.484770] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.484814] Hardware name: linux,dummy-virt (DT) [ 17.484865] Call trace: [ 17.484892] show_stack+0x20/0x38 (C) [ 17.485157] dump_stack_lvl+0x8c/0xd0 [ 17.485373] print_report+0x118/0x608 [ 17.485742] kasan_report+0xdc/0x128 [ 17.485999] __asan_report_load1_noabort+0x20/0x30 [ 17.486230] kmem_cache_oob+0x344/0x430 [ 17.486290] kunit_try_run_case+0x170/0x3f0 [ 17.486527] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.486787] kthread+0x328/0x630 [ 17.487050] ret_from_fork+0x10/0x20 [ 17.487199] [ 17.487294] Allocated by task 216: [ 17.487545] kasan_save_stack+0x3c/0x68 [ 17.487702] kasan_save_track+0x20/0x40 [ 17.487904] kasan_save_alloc_info+0x40/0x58 [ 17.487993] __kasan_slab_alloc+0xa8/0xb0 [ 17.488105] kmem_cache_alloc_noprof+0x10c/0x398 [ 17.488286] kmem_cache_oob+0x12c/0x430 [ 17.488344] kunit_try_run_case+0x170/0x3f0 [ 17.488522] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.488749] kthread+0x328/0x630 [ 17.488831] ret_from_fork+0x10/0x20 [ 17.488870] [ 17.489027] The buggy address belongs to the object at fff00000c5010000 [ 17.489027] which belongs to the cache test_cache of size 200 [ 17.489282] The buggy address is located 0 bytes to the right of [ 17.489282] allocated 200-byte region [fff00000c5010000, fff00000c50100c8) [ 17.489358] [ 17.489578] The buggy address belongs to the physical page: [ 17.489766] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105010 [ 17.489858] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.490114] page_type: f5(slab) [ 17.490276] raw: 0bfffe0000000000 fff00000c115d500 dead000000000122 0000000000000000 [ 17.490402] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 17.490595] page dumped because: kasan: bad access detected [ 17.490814] [ 17.490864] Memory state around the buggy address: [ 17.490941] fff00000c500ff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.491060] fff00000c5010000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.491134] >fff00000c5010080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 17.491180] ^ [ 17.491334] fff00000c5010100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.491625] fff00000c5010180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.492021] ==================================================================
[ 19.024606] ================================================================== [ 19.025658] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x402/0x530 [ 19.026163] Read of size 1 at addr ffff8881033a80c8 by task kunit_try_catch/234 [ 19.026942] [ 19.027176] CPU: 0 UID: 0 PID: 234 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250617 #1 PREEMPT(voluntary) [ 19.027331] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.027369] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 19.027425] Call Trace: [ 19.027464] <TASK> [ 19.027531] dump_stack_lvl+0x73/0xb0 [ 19.027783] print_report+0xd1/0x650 [ 19.027878] ? __virt_addr_valid+0x1db/0x2d0 [ 19.027978] ? kmem_cache_oob+0x402/0x530 [ 19.028075] ? kasan_complete_mode_report_info+0x2a/0x200 [ 19.028146] ? kmem_cache_oob+0x402/0x530 [ 19.028250] kasan_report+0x141/0x180 [ 19.028339] ? kmem_cache_oob+0x402/0x530 [ 19.028426] __asan_report_load1_noabort+0x18/0x20 [ 19.028517] kmem_cache_oob+0x402/0x530 [ 19.028590] ? trace_hardirqs_on+0x37/0xe0 [ 19.028630] ? __pfx_kmem_cache_oob+0x10/0x10 [ 19.028662] ? finish_task_switch.isra.0+0x153/0x700 [ 19.028692] ? __switch_to+0x47/0xf50 [ 19.028730] ? __pfx_read_tsc+0x10/0x10 [ 19.028759] ? ktime_get_ts64+0x86/0x230 [ 19.028792] kunit_try_run_case+0x1a5/0x480 [ 19.028826] ? __pfx_kunit_try_run_case+0x10/0x10 [ 19.028885] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 19.028918] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 19.028955] ? __kthread_parkme+0x82/0x180 [ 19.028982] ? preempt_count_sub+0x50/0x80 [ 19.029012] ? __pfx_kunit_try_run_case+0x10/0x10 [ 19.029045] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 19.029075] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 19.029106] kthread+0x337/0x6f0 [ 19.029132] ? trace_preempt_on+0x20/0xc0 [ 19.029162] ? __pfx_kthread+0x10/0x10 [ 19.029189] ? _raw_spin_unlock_irq+0x47/0x80 [ 19.029231] ? calculate_sigpending+0x7b/0xa0 [ 19.029309] ? __pfx_kthread+0x10/0x10 [ 19.029373] ret_from_fork+0x116/0x1d0 [ 19.029404] ? __pfx_kthread+0x10/0x10 [ 19.029433] ret_from_fork_asm+0x1a/0x30 [ 19.029475] </TASK> [ 19.029491] [ 19.046913] Allocated by task 234: [ 19.047677] kasan_save_stack+0x45/0x70 [ 19.048016] kasan_save_track+0x18/0x40 [ 19.048296] kasan_save_alloc_info+0x3b/0x50 [ 19.048812] __kasan_slab_alloc+0x91/0xa0 [ 19.049323] kmem_cache_alloc_noprof+0x123/0x3f0 [ 19.049821] kmem_cache_oob+0x157/0x530 [ 19.050158] kunit_try_run_case+0x1a5/0x480 [ 19.050573] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 19.051188] kthread+0x337/0x6f0 [ 19.052257] ret_from_fork+0x116/0x1d0 [ 19.052868] ret_from_fork_asm+0x1a/0x30 [ 19.053443] [ 19.053784] The buggy address belongs to the object at ffff8881033a8000 [ 19.053784] which belongs to the cache test_cache of size 200 [ 19.055088] The buggy address is located 0 bytes to the right of [ 19.055088] allocated 200-byte region [ffff8881033a8000, ffff8881033a80c8) [ 19.056423] [ 19.057096] The buggy address belongs to the physical page: [ 19.057552] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1033a8 [ 19.058162] flags: 0x200000000000000(node=0|zone=2) [ 19.058711] page_type: f5(slab) [ 19.059005] raw: 0200000000000000 ffff8881017f1140 dead000000000122 0000000000000000 [ 19.059724] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 19.061086] page dumped because: kasan: bad access detected [ 19.061713] [ 19.061938] Memory state around the buggy address: [ 19.062388] ffff8881033a7f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.062947] ffff8881033a8000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 19.063499] >ffff8881033a8080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 19.064124] ^ [ 19.065012] ffff8881033a8100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.065643] ffff8881033a8180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.066157] ==================================================================