Date
July 24, 2025, 4:41 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 33.012513] ================================================================== [ 33.012594] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x344/0x430 [ 33.012664] Read of size 1 at addr fff00000c9a940c8 by task kunit_try_catch/238 [ 33.012713] [ 33.013289] CPU: 0 UID: 0 PID: 238 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7-next-20250724 #1 PREEMPT [ 33.013398] Tainted: [B]=BAD_PAGE, [N]=TEST [ 33.013425] Hardware name: linux,dummy-virt (DT) [ 33.014035] Call trace: [ 33.014089] show_stack+0x20/0x38 (C) [ 33.014209] dump_stack_lvl+0x8c/0xd0 [ 33.014261] print_report+0x118/0x5e8 [ 33.014308] kasan_report+0xdc/0x128 [ 33.014352] __asan_report_load1_noabort+0x20/0x30 [ 33.014466] kmem_cache_oob+0x344/0x430 [ 33.014513] kunit_try_run_case+0x170/0x3f0 [ 33.014612] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 33.014677] kthread+0x328/0x630 [ 33.014959] ret_from_fork+0x10/0x20 [ 33.015291] [ 33.015358] Allocated by task 238: [ 33.015494] kasan_save_stack+0x3c/0x68 [ 33.015596] kasan_save_track+0x20/0x40 [ 33.015666] kasan_save_alloc_info+0x40/0x58 [ 33.015845] __kasan_slab_alloc+0xa8/0xb0 [ 33.015889] kmem_cache_alloc_noprof+0x10c/0x398 [ 33.015931] kmem_cache_oob+0x12c/0x430 [ 33.015983] kunit_try_run_case+0x170/0x3f0 [ 33.016023] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 33.016448] kthread+0x328/0x630 [ 33.016583] ret_from_fork+0x10/0x20 [ 33.016671] [ 33.016836] The buggy address belongs to the object at fff00000c9a94000 [ 33.016836] which belongs to the cache test_cache of size 200 [ 33.017006] The buggy address is located 0 bytes to the right of [ 33.017006] allocated 200-byte region [fff00000c9a94000, fff00000c9a940c8) [ 33.017115] [ 33.017380] The buggy address belongs to the physical page: [ 33.017559] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109a94 [ 33.017755] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 33.017905] page_type: f5(slab) [ 33.018004] raw: 0bfffe0000000000 fff00000c58d7500 dead000000000122 0000000000000000 [ 33.018316] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 33.018485] page dumped because: kasan: bad access detected [ 33.018586] [ 33.018662] Memory state around the buggy address: [ 33.018742] fff00000c9a93f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.018896] fff00000c9a94000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 33.019070] >fff00000c9a94080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 33.019136] ^ [ 33.019181] fff00000c9a94100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.019224] fff00000c9a94180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.019265] ==================================================================
[ 27.510215] ================================================================== [ 27.511161] BUG: KASAN: slab-out-of-bounds in kmem_cache_oob+0x402/0x530 [ 27.511623] Read of size 1 at addr ffff88810546a0c8 by task kunit_try_catch/255 [ 27.512300] [ 27.512462] CPU: 0 UID: 0 PID: 255 Comm: kunit_try_catch Tainted: G B W N 6.16.0-rc7-next-20250724 #1 PREEMPT(voluntary) [ 27.512519] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST [ 27.512533] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 27.512556] Call Trace: [ 27.512570] <TASK> [ 27.512600] dump_stack_lvl+0x73/0xb0 [ 27.512632] print_report+0xd1/0x640 [ 27.512655] ? __virt_addr_valid+0x1db/0x2d0 [ 27.512679] ? kmem_cache_oob+0x402/0x530 [ 27.512701] ? kasan_complete_mode_report_info+0x2a/0x200 [ 27.512725] ? kmem_cache_oob+0x402/0x530 [ 27.512747] kasan_report+0x141/0x180 [ 27.512981] ? kmem_cache_oob+0x402/0x530 [ 27.513026] __asan_report_load1_noabort+0x18/0x20 [ 27.513052] kmem_cache_oob+0x402/0x530 [ 27.513073] ? trace_hardirqs_on+0x37/0xe0 [ 27.513098] ? __pfx_kmem_cache_oob+0x10/0x10 [ 27.513128] ? finish_task_switch.isra.0+0x153/0x700 [ 27.513150] ? __switch_to+0x47/0xf80 [ 27.513180] ? __pfx_read_tsc+0x10/0x10 [ 27.513201] ? ktime_get_ts64+0x86/0x230 [ 27.513226] kunit_try_run_case+0x1a5/0x480 [ 27.513252] ? __pfx_kunit_try_run_case+0x10/0x10 [ 27.513274] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 27.513299] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 27.513324] ? __kthread_parkme+0x82/0x180 [ 27.513343] ? preempt_count_sub+0x50/0x80 [ 27.513366] ? __pfx_kunit_try_run_case+0x10/0x10 [ 27.513389] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 27.513412] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 27.513434] kthread+0x337/0x6f0 [ 27.513454] ? trace_preempt_on+0x20/0xc0 [ 27.513475] ? __pfx_kthread+0x10/0x10 [ 27.513495] ? _raw_spin_unlock_irq+0x47/0x80 [ 27.513517] ? calculate_sigpending+0x7b/0xa0 [ 27.513540] ? __pfx_kthread+0x10/0x10 [ 27.513561] ret_from_fork+0x116/0x1d0 [ 27.513588] ? __pfx_kthread+0x10/0x10 [ 27.513608] ret_from_fork_asm+0x1a/0x30 [ 27.513639] </TASK> [ 27.513650] [ 27.520854] Allocated by task 255: [ 27.521047] kasan_save_stack+0x45/0x70 [ 27.521234] kasan_save_track+0x18/0x40 [ 27.521424] kasan_save_alloc_info+0x3b/0x50 [ 27.521603] __kasan_slab_alloc+0x91/0xa0 [ 27.521868] kmem_cache_alloc_noprof+0x123/0x3f0 [ 27.522097] kmem_cache_oob+0x157/0x530 [ 27.522262] kunit_try_run_case+0x1a5/0x480 [ 27.522402] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 27.522598] kthread+0x337/0x6f0 [ 27.522757] ret_from_fork+0x116/0x1d0 [ 27.523063] ret_from_fork_asm+0x1a/0x30 [ 27.523270] [ 27.523362] The buggy address belongs to the object at ffff88810546a000 [ 27.523362] which belongs to the cache test_cache of size 200 [ 27.523886] The buggy address is located 0 bytes to the right of [ 27.523886] allocated 200-byte region [ffff88810546a000, ffff88810546a0c8) [ 27.524421] [ 27.524511] The buggy address belongs to the physical page: [ 27.524696] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10546a [ 27.525018] flags: 0x200000000000000(node=0|zone=2) [ 27.525183] page_type: f5(slab) [ 27.525324] raw: 0200000000000000 ffff888101d87500 dead000000000122 0000000000000000 [ 27.525663] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 27.526079] page dumped because: kasan: bad access detected [ 27.526326] [ 27.526411] Memory state around the buggy address: [ 27.526642] ffff888105469f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.527004] ffff88810546a000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 27.527219] >ffff88810546a080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 27.527519] ^ [ 27.527846] ffff88810546a100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.528186] ffff88810546a180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.528468] ==================================================================