Date
July 15, 2025, 11:09 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.183531] ================================================================== [ 15.183628] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x2a4/0x2f0 [ 15.183683] Write of size 1 at addr fff00000c7851f00 by task kunit_try_catch/145 [ 15.183738] [ 15.183798] CPU: 1 UID: 0 PID: 145 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 15.183880] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.183911] Hardware name: linux,dummy-virt (DT) [ 15.183967] Call trace: [ 15.183989] show_stack+0x20/0x38 (C) [ 15.184054] dump_stack_lvl+0x8c/0xd0 [ 15.184128] print_report+0x118/0x5d0 [ 15.184317] kasan_report+0xdc/0x128 [ 15.184482] __asan_report_store1_noabort+0x20/0x30 [ 15.184610] kmalloc_big_oob_right+0x2a4/0x2f0 [ 15.184675] kunit_try_run_case+0x170/0x3f0 [ 15.184724] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.184803] kthread+0x328/0x630 [ 15.184870] ret_from_fork+0x10/0x20 [ 15.184918] [ 15.184935] Allocated by task 145: [ 15.185091] kasan_save_stack+0x3c/0x68 [ 15.185176] kasan_save_track+0x20/0x40 [ 15.185356] kasan_save_alloc_info+0x40/0x58 [ 15.185449] __kasan_kmalloc+0xd4/0xd8 [ 15.185585] __kmalloc_cache_noprof+0x16c/0x3c0 [ 15.185696] kmalloc_big_oob_right+0xb8/0x2f0 [ 15.185743] kunit_try_run_case+0x170/0x3f0 [ 15.185803] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.185846] kthread+0x328/0x630 [ 15.186225] ret_from_fork+0x10/0x20 [ 15.186309] [ 15.186358] The buggy address belongs to the object at fff00000c7850000 [ 15.186358] which belongs to the cache kmalloc-8k of size 8192 [ 15.186631] The buggy address is located 0 bytes to the right of [ 15.186631] allocated 7936-byte region [fff00000c7850000, fff00000c7851f00) [ 15.186823] [ 15.186903] The buggy address belongs to the physical page: [ 15.186953] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107850 [ 15.187008] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 15.187384] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 15.187491] page_type: f5(slab) [ 15.187623] raw: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 15.187692] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 15.188005] head: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 15.188079] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 15.188127] head: 0bfffe0000000003 ffffc1ffc31e1401 00000000ffffffff 00000000ffffffff [ 15.188174] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 15.188224] page dumped because: kasan: bad access detected [ 15.188256] [ 15.188274] Memory state around the buggy address: [ 15.188356] fff00000c7851e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.188402] fff00000c7851e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.188443] >fff00000c7851f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.188485] ^ [ 15.188512] fff00000c7851f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.188563] fff00000c7852000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.188618] ==================================================================
[ 12.033920] ================================================================== [ 12.034417] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x316/0x370 [ 12.034651] Write of size 1 at addr ffff888103881f00 by task kunit_try_catch/161 [ 12.034902] [ 12.034986] CPU: 1 UID: 0 PID: 161 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 12.035028] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.035039] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.035057] Call Trace: [ 12.035068] <TASK> [ 12.035082] dump_stack_lvl+0x73/0xb0 [ 12.035108] print_report+0xd1/0x610 [ 12.035128] ? __virt_addr_valid+0x1db/0x2d0 [ 12.035149] ? kmalloc_big_oob_right+0x316/0x370 [ 12.035170] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.035191] ? kmalloc_big_oob_right+0x316/0x370 [ 12.035213] kasan_report+0x141/0x180 [ 12.035234] ? kmalloc_big_oob_right+0x316/0x370 [ 12.035259] __asan_report_store1_noabort+0x1b/0x30 [ 12.035283] kmalloc_big_oob_right+0x316/0x370 [ 12.035304] ? __pfx_kmalloc_big_oob_right+0x10/0x10 [ 12.035326] ? __schedule+0x10cc/0x2b60 [ 12.035347] ? __pfx_read_tsc+0x10/0x10 [ 12.035366] ? ktime_get_ts64+0x86/0x230 [ 12.035388] kunit_try_run_case+0x1a5/0x480 [ 12.035411] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.035433] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.035454] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.035477] ? __kthread_parkme+0x82/0x180 [ 12.035495] ? preempt_count_sub+0x50/0x80 [ 12.035518] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.035540] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.035563] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.035585] kthread+0x337/0x6f0 [ 12.035603] ? trace_preempt_on+0x20/0xc0 [ 12.035625] ? __pfx_kthread+0x10/0x10 [ 12.035644] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.035664] ? calculate_sigpending+0x7b/0xa0 [ 12.035687] ? __pfx_kthread+0x10/0x10 [ 12.035707] ret_from_fork+0x116/0x1d0 [ 12.035724] ? __pfx_kthread+0x10/0x10 [ 12.035743] ret_from_fork_asm+0x1a/0x30 [ 12.035808] </TASK> [ 12.035817] [ 12.043066] Allocated by task 161: [ 12.043199] kasan_save_stack+0x45/0x70 [ 12.043344] kasan_save_track+0x18/0x40 [ 12.043522] kasan_save_alloc_info+0x3b/0x50 [ 12.043807] __kasan_kmalloc+0xb7/0xc0 [ 12.043994] __kmalloc_cache_noprof+0x189/0x420 [ 12.044218] kmalloc_big_oob_right+0xa9/0x370 [ 12.044481] kunit_try_run_case+0x1a5/0x480 [ 12.044697] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.044963] kthread+0x337/0x6f0 [ 12.045131] ret_from_fork+0x116/0x1d0 [ 12.045285] ret_from_fork_asm+0x1a/0x30 [ 12.045628] [ 12.045702] The buggy address belongs to the object at ffff888103880000 [ 12.045702] which belongs to the cache kmalloc-8k of size 8192 [ 12.046081] The buggy address is located 0 bytes to the right of [ 12.046081] allocated 7936-byte region [ffff888103880000, ffff888103881f00) [ 12.046631] [ 12.046909] The buggy address belongs to the physical page: [ 12.047094] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103880 [ 12.047590] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 12.047902] flags: 0x200000000000040(head|node=0|zone=2) [ 12.048134] page_type: f5(slab) [ 12.048260] raw: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 12.048744] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 12.049116] head: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 12.049464] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 12.049699] head: 0200000000000003 ffffea00040e2001 00000000ffffffff 00000000ffffffff [ 12.049944] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 12.050193] page dumped because: kasan: bad access detected [ 12.050622] [ 12.050723] Memory state around the buggy address: [ 12.050963] ffff888103881e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.051290] ffff888103881e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 12.051681] >ffff888103881f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.052025] ^ [ 12.052182] ffff888103881f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.052534] ffff888103882000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.052774] ==================================================================