Date
June 17, 2025, 6:35 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.617264] ================================================================== [ 16.617330] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x2a4/0x2f0 [ 16.617406] Write of size 1 at addr fff00000c6055f00 by task kunit_try_catch/153 [ 16.617542] [ 16.617757] CPU: 1 UID: 0 PID: 153 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250617 #1 PREEMPT [ 16.617881] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.617909] Hardware name: linux,dummy-virt (DT) [ 16.617953] Call trace: [ 16.617983] show_stack+0x20/0x38 (C) [ 16.618064] dump_stack_lvl+0x8c/0xd0 [ 16.618115] print_report+0x118/0x608 [ 16.618285] kasan_report+0xdc/0x128 [ 16.618390] __asan_report_store1_noabort+0x20/0x30 [ 16.618502] kmalloc_big_oob_right+0x2a4/0x2f0 [ 16.618616] kunit_try_run_case+0x170/0x3f0 [ 16.618715] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.618813] kthread+0x328/0x630 [ 16.618875] ret_from_fork+0x10/0x20 [ 16.618960] [ 16.618980] Allocated by task 153: [ 16.619009] kasan_save_stack+0x3c/0x68 [ 16.619295] kasan_save_track+0x20/0x40 [ 16.619371] kasan_save_alloc_info+0x40/0x58 [ 16.619453] __kasan_kmalloc+0xd4/0xd8 [ 16.619545] __kmalloc_cache_noprof+0x16c/0x3c0 [ 16.619650] kmalloc_big_oob_right+0xb8/0x2f0 [ 16.619699] kunit_try_run_case+0x170/0x3f0 [ 16.619738] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.619907] kthread+0x328/0x630 [ 16.620095] ret_from_fork+0x10/0x20 [ 16.620185] [ 16.620224] The buggy address belongs to the object at fff00000c6054000 [ 16.620224] which belongs to the cache kmalloc-8k of size 8192 [ 16.620300] The buggy address is located 0 bytes to the right of [ 16.620300] allocated 7936-byte region [fff00000c6054000, fff00000c6055f00) [ 16.620395] [ 16.620441] The buggy address belongs to the physical page: [ 16.620476] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106050 [ 16.620657] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 16.620851] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 16.620970] page_type: f5(slab) [ 16.621036] raw: 0bfffe0000000040 fff00000c0002280 dead000000000100 dead000000000122 [ 16.621103] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 16.621162] head: 0bfffe0000000040 fff00000c0002280 dead000000000100 dead000000000122 [ 16.621211] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 16.621269] head: 0bfffe0000000003 ffffc1ffc3181401 00000000ffffffff 00000000ffffffff [ 16.621317] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 16.621356] page dumped because: kasan: bad access detected [ 16.621387] [ 16.621405] Memory state around the buggy address: [ 16.621451] fff00000c6055e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.621493] fff00000c6055e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.621537] >fff00000c6055f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.621589] ^ [ 16.621625] fff00000c6055f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.621675] fff00000c6056000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.621724] ==================================================================
[ 16.904652] ================================================================== [ 16.905768] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x316/0x370 [ 16.906476] Write of size 1 at addr ffff8881039e1f00 by task kunit_try_catch/171 [ 16.907061] [ 16.907343] CPU: 0 UID: 0 PID: 171 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250617 #1 PREEMPT(voluntary) [ 16.907582] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.907716] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 16.907928] Call Trace: [ 16.907994] <TASK> [ 16.908046] dump_stack_lvl+0x73/0xb0 [ 16.908131] print_report+0xd1/0x650 [ 16.908202] ? __virt_addr_valid+0x1db/0x2d0 [ 16.908330] ? kmalloc_big_oob_right+0x316/0x370 [ 16.908398] ? kasan_complete_mode_report_info+0x2a/0x200 [ 16.908471] ? kmalloc_big_oob_right+0x316/0x370 [ 16.908556] kasan_report+0x141/0x180 [ 16.908591] ? kmalloc_big_oob_right+0x316/0x370 [ 16.908630] __asan_report_store1_noabort+0x1b/0x30 [ 16.908666] kmalloc_big_oob_right+0x316/0x370 [ 16.908697] ? __pfx_kmalloc_big_oob_right+0x10/0x10 [ 16.908729] ? __schedule+0x10cc/0x2b60 [ 16.908758] ? __pfx_read_tsc+0x10/0x10 [ 16.908788] ? ktime_get_ts64+0x86/0x230 [ 16.908823] kunit_try_run_case+0x1a5/0x480 [ 16.908889] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.908922] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 16.908952] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 16.908988] ? __kthread_parkme+0x82/0x180 [ 16.909018] ? preempt_count_sub+0x50/0x80 [ 16.909050] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.909082] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.909114] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 16.909145] kthread+0x337/0x6f0 [ 16.909171] ? trace_preempt_on+0x20/0xc0 [ 16.909204] ? __pfx_kthread+0x10/0x10 [ 16.909275] ? _raw_spin_unlock_irq+0x47/0x80 [ 16.909366] ? calculate_sigpending+0x7b/0xa0 [ 16.909408] ? __pfx_kthread+0x10/0x10 [ 16.909439] ret_from_fork+0x116/0x1d0 [ 16.909466] ? __pfx_kthread+0x10/0x10 [ 16.909495] ret_from_fork_asm+0x1a/0x30 [ 16.909537] </TASK> [ 16.909553] [ 16.929214] Allocated by task 171: [ 16.929538] kasan_save_stack+0x45/0x70 [ 16.930732] kasan_save_track+0x18/0x40 [ 16.931321] kasan_save_alloc_info+0x3b/0x50 [ 16.931712] __kasan_kmalloc+0xb7/0xc0 [ 16.932439] __kmalloc_cache_noprof+0x189/0x420 [ 16.933330] kmalloc_big_oob_right+0xa9/0x370 [ 16.933980] kunit_try_run_case+0x1a5/0x480 [ 16.934777] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.935177] kthread+0x337/0x6f0 [ 16.935519] ret_from_fork+0x116/0x1d0 [ 16.935866] ret_from_fork_asm+0x1a/0x30 [ 16.936254] [ 16.936443] The buggy address belongs to the object at ffff8881039e0000 [ 16.936443] which belongs to the cache kmalloc-8k of size 8192 [ 16.938379] The buggy address is located 0 bytes to the right of [ 16.938379] allocated 7936-byte region [ffff8881039e0000, ffff8881039e1f00) [ 16.939424] [ 16.939655] The buggy address belongs to the physical page: [ 16.940152] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1039e0 [ 16.940827] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 16.941529] flags: 0x200000000000040(head|node=0|zone=2) [ 16.942024] page_type: f5(slab) [ 16.942548] raw: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 16.943145] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 16.943882] head: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 16.944658] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 16.945428] head: 0200000000000003 ffffea00040e7801 00000000ffffffff 00000000ffffffff [ 16.945975] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 16.946737] page dumped because: kasan: bad access detected [ 16.947157] [ 16.947565] Memory state around the buggy address: [ 16.947995] ffff8881039e1e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.948709] ffff8881039e1e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.949380] >ffff8881039e1f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.950043] ^ [ 16.950714] ffff8881039e1f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.951415] ffff8881039e2000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.951992] ==================================================================