Date
July 22, 2025, 5:13 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 30.788745] ================================================================== [ 30.788809] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x344/0x430 [ 30.789002] Read of size 1 at addr fff00000c925e0c8 by task kunit_try_catch/238 [ 30.789058] [ 30.790011] CPU: 1 UID: 0 PID: 238 Comm: kunit_try_catch Tainted: G B W N 6.16.0-rc7-next-20250722 #1 PREEMPT [ 30.790139] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST [ 30.790198] Hardware name: linux,dummy-virt (DT) [ 30.790274] Call trace: [ 30.790298] show_stack+0x20/0x38 (C) [ 30.790538] dump_stack_lvl+0x8c/0xd0 [ 30.790598] print_report+0x118/0x5e8 [ 30.790717] kasan_report+0xdc/0x128 [ 30.791159] __asan_report_load1_noabort+0x20/0x30 [ 30.791259] kmem_cache_oob+0x344/0x430 [ 30.791570] kunit_try_run_case+0x170/0x3f0 [ 30.791774] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.791984] kthread+0x328/0x630 [ 30.792064] ret_from_fork+0x10/0x20 [ 30.792242] [ 30.792281] Allocated by task 238: [ 30.792309] kasan_save_stack+0x3c/0x68 [ 30.792615] kasan_save_track+0x20/0x40 [ 30.792688] kasan_save_alloc_info+0x40/0x58 [ 30.792782] __kasan_slab_alloc+0xa8/0xb0 [ 30.792926] kmem_cache_alloc_noprof+0x10c/0x398 [ 30.792968] kmem_cache_oob+0x12c/0x430 [ 30.793309] kunit_try_run_case+0x170/0x3f0 [ 30.793458] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.793575] kthread+0x328/0x630 [ 30.793951] ret_from_fork+0x10/0x20 [ 30.794045] [ 30.794097] The buggy address belongs to the object at fff00000c925e000 [ 30.794097] which belongs to the cache test_cache of size 200 [ 30.794257] The buggy address is located 0 bytes to the right of [ 30.794257] allocated 200-byte region [fff00000c925e000, fff00000c925e0c8) [ 30.794352] [ 30.794673] The buggy address belongs to the physical page: [ 30.794740] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10925e [ 30.795115] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 30.795213] page_type: f5(slab) [ 30.795350] raw: 0bfffe0000000000 fff00000c3f36780 dead000000000122 0000000000000000 [ 30.795436] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 30.795763] page dumped because: kasan: bad access detected [ 30.795847] [ 30.795921] Memory state around the buggy address: [ 30.796012] fff00000c925df80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 30.796166] fff00000c925e000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 30.796240] >fff00000c925e080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 30.796279] ^ [ 30.796490] fff00000c925e100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.796670] fff00000c925e180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.796723] ==================================================================
[ 25.741070] ================================================================== [ 25.741797] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x402/0x530 [ 25.742113] Read of size 1 at addr ffff88810497b0c8 by task kunit_try_catch/255 [ 25.742903] [ 25.743042] CPU: 0 UID: 0 PID: 255 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7-next-20250722 #1 PREEMPT(voluntary) [ 25.743096] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.743109] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.743130] Call Trace: [ 25.743144] <TASK> [ 25.743161] dump_stack_lvl+0x73/0xb0 [ 25.743194] print_report+0xd1/0x640 [ 25.743217] ? __virt_addr_valid+0x1db/0x2d0 [ 25.743242] ? kmem_cache_oob+0x402/0x530 [ 25.743265] ? kasan_complete_mode_report_info+0x2a/0x200 [ 25.743292] ? kmem_cache_oob+0x402/0x530 [ 25.743315] kasan_report+0x141/0x180 [ 25.743337] ? kmem_cache_oob+0x402/0x530 [ 25.743364] __asan_report_load1_noabort+0x18/0x20 [ 25.743390] kmem_cache_oob+0x402/0x530 [ 25.743412] ? trace_hardirqs_on+0x37/0xe0 [ 25.743436] ? __pfx_kmem_cache_oob+0x10/0x10 [ 25.743643] ? finish_task_switch.isra.0+0x153/0x700 [ 25.743673] ? __switch_to+0x47/0xf80 [ 25.743729] ? __pfx_read_tsc+0x10/0x10 [ 25.743787] ? ktime_get_ts64+0x86/0x230 [ 25.743816] kunit_try_run_case+0x1a5/0x480 [ 25.743852] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.743875] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 25.743902] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.743927] ? __kthread_parkme+0x82/0x180 [ 25.743948] ? preempt_count_sub+0x50/0x80 [ 25.743972] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.743997] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.744021] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.744045] kthread+0x337/0x6f0 [ 25.744066] ? trace_preempt_on+0x20/0xc0 [ 25.744088] ? __pfx_kthread+0x10/0x10 [ 25.744109] ? _raw_spin_unlock_irq+0x47/0x80 [ 25.744133] ? calculate_sigpending+0x7b/0xa0 [ 25.744157] ? __pfx_kthread+0x10/0x10 [ 25.744189] ret_from_fork+0x116/0x1d0 [ 25.744209] ? __pfx_kthread+0x10/0x10 [ 25.744230] ret_from_fork_asm+0x1a/0x30 [ 25.744262] </TASK> [ 25.744273] [ 25.756372] Allocated by task 255: [ 25.757256] kasan_save_stack+0x45/0x70 [ 25.757503] kasan_save_track+0x18/0x40 [ 25.757680] kasan_save_alloc_info+0x3b/0x50 [ 25.757871] __kasan_slab_alloc+0x91/0xa0 [ 25.758037] kmem_cache_alloc_noprof+0x123/0x3f0 [ 25.758595] kmem_cache_oob+0x157/0x530 [ 25.758802] kunit_try_run_case+0x1a5/0x480 [ 25.758997] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.759550] kthread+0x337/0x6f0 [ 25.759933] ret_from_fork+0x116/0x1d0 [ 25.760097] ret_from_fork_asm+0x1a/0x30 [ 25.760602] [ 25.760874] The buggy address belongs to the object at ffff88810497b000 [ 25.760874] which belongs to the cache test_cache of size 200 [ 25.761959] The buggy address is located 0 bytes to the right of [ 25.761959] allocated 200-byte region [ffff88810497b000, ffff88810497b0c8) [ 25.763304] [ 25.763412] The buggy address belongs to the physical page: [ 25.763895] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10497b [ 25.764483] flags: 0x200000000000000(node=0|zone=2) [ 25.764967] page_type: f5(slab) [ 25.765295] raw: 0200000000000000 ffff888101653640 dead000000000122 0000000000000000 [ 25.765958] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 25.766580] page dumped because: kasan: bad access detected [ 25.766822] [ 25.766918] Memory state around the buggy address: [ 25.767107] ffff88810497af80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.768155] ffff88810497b000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 25.768692] >ffff88810497b080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 25.769238] ^ [ 25.769696] ffff88810497b100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.769989] ffff88810497b180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.770745] ==================================================================