Date
July 1, 2025, 12:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.115892] ================================================================== [ 17.116169] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x2a4/0x2f0 [ 17.116314] Write of size 1 at addr fff00000c78c9f00 by task kunit_try_catch/144 [ 17.116367] [ 17.116497] CPU: 1 UID: 0 PID: 144 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 17.116582] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.116607] Hardware name: linux,dummy-virt (DT) [ 17.116657] Call trace: [ 17.116886] show_stack+0x20/0x38 (C) [ 17.116980] dump_stack_lvl+0x8c/0xd0 [ 17.117103] print_report+0x118/0x608 [ 17.117226] kasan_report+0xdc/0x128 [ 17.117271] __asan_report_store1_noabort+0x20/0x30 [ 17.117554] kmalloc_big_oob_right+0x2a4/0x2f0 [ 17.117740] kunit_try_run_case+0x170/0x3f0 [ 17.117833] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.117887] kthread+0x328/0x630 [ 17.117944] ret_from_fork+0x10/0x20 [ 17.117992] [ 17.118036] Allocated by task 144: [ 17.118083] kasan_save_stack+0x3c/0x68 [ 17.118138] kasan_save_track+0x20/0x40 [ 17.118175] kasan_save_alloc_info+0x40/0x58 [ 17.118492] __kasan_kmalloc+0xd4/0xd8 [ 17.118545] __kmalloc_cache_noprof+0x16c/0x3c0 [ 17.118611] kmalloc_big_oob_right+0xb8/0x2f0 [ 17.118666] kunit_try_run_case+0x170/0x3f0 [ 17.118737] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.118780] kthread+0x328/0x630 [ 17.118994] ret_from_fork+0x10/0x20 [ 17.119170] [ 17.119337] The buggy address belongs to the object at fff00000c78c8000 [ 17.119337] which belongs to the cache kmalloc-8k of size 8192 [ 17.119419] The buggy address is located 0 bytes to the right of [ 17.119419] allocated 7936-byte region [fff00000c78c8000, fff00000c78c9f00) [ 17.119602] [ 17.119630] The buggy address belongs to the physical page: [ 17.119663] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1078c8 [ 17.119938] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 17.120010] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 17.120438] page_type: f5(slab) [ 17.120551] raw: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 17.120602] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 17.120913] head: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 17.121088] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 17.121210] head: 0bfffe0000000003 ffffc1ffc31e3201 00000000ffffffff 00000000ffffffff [ 17.121260] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 17.121469] page dumped because: kasan: bad access detected [ 17.121647] [ 17.121680] Memory state around the buggy address: [ 17.121735] fff00000c78c9e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.121778] fff00000c78c9e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.121820] >fff00000c78c9f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.121857] ^ [ 17.121884] fff00000c78c9f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.121925] fff00000c78ca000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.121975] ==================================================================
[ 10.942009] ================================================================== [ 10.942863] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x316/0x370 [ 10.943660] Write of size 1 at addr ffff888102985f00 by task kunit_try_catch/161 [ 10.944104] [ 10.944465] CPU: 0 UID: 0 PID: 161 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 10.944510] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.944522] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.944541] Call Trace: [ 10.944553] <TASK> [ 10.944693] dump_stack_lvl+0x73/0xb0 [ 10.944729] print_report+0xd1/0x650 [ 10.944752] ? __virt_addr_valid+0x1db/0x2d0 [ 10.944775] ? kmalloc_big_oob_right+0x316/0x370 [ 10.944796] ? kasan_complete_mode_report_info+0x2a/0x200 [ 10.944817] ? kmalloc_big_oob_right+0x316/0x370 [ 10.944839] kasan_report+0x141/0x180 [ 10.944860] ? kmalloc_big_oob_right+0x316/0x370 [ 10.944886] __asan_report_store1_noabort+0x1b/0x30 [ 10.944905] kmalloc_big_oob_right+0x316/0x370 [ 10.944926] ? __pfx_kmalloc_big_oob_right+0x10/0x10 [ 10.944948] ? __schedule+0x10cc/0x2b60 [ 10.944968] ? __pfx_read_tsc+0x10/0x10 [ 10.944988] ? ktime_get_ts64+0x86/0x230 [ 10.945011] kunit_try_run_case+0x1a5/0x480 [ 10.945044] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.945065] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.945085] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.945106] ? __kthread_parkme+0x82/0x180 [ 10.945124] ? preempt_count_sub+0x50/0x80 [ 10.945435] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.945470] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.945493] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.945515] kthread+0x337/0x6f0 [ 10.945533] ? trace_preempt_on+0x20/0xc0 [ 10.945556] ? __pfx_kthread+0x10/0x10 [ 10.945575] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.945595] ? calculate_sigpending+0x7b/0xa0 [ 10.945617] ? __pfx_kthread+0x10/0x10 [ 10.945637] ret_from_fork+0x116/0x1d0 [ 10.945654] ? __pfx_kthread+0x10/0x10 [ 10.945673] ret_from_fork_asm+0x1a/0x30 [ 10.945701] </TASK> [ 10.945712] [ 10.956791] Allocated by task 161: [ 10.957494] kasan_save_stack+0x45/0x70 [ 10.957709] kasan_save_track+0x18/0x40 [ 10.957900] kasan_save_alloc_info+0x3b/0x50 [ 10.958104] __kasan_kmalloc+0xb7/0xc0 [ 10.958669] __kmalloc_cache_noprof+0x189/0x420 [ 10.958988] kmalloc_big_oob_right+0xa9/0x370 [ 10.959404] kunit_try_run_case+0x1a5/0x480 [ 10.959798] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.960367] kthread+0x337/0x6f0 [ 10.960508] ret_from_fork+0x116/0x1d0 [ 10.960957] ret_from_fork_asm+0x1a/0x30 [ 10.961324] [ 10.961427] The buggy address belongs to the object at ffff888102984000 [ 10.961427] which belongs to the cache kmalloc-8k of size 8192 [ 10.961932] The buggy address is located 0 bytes to the right of [ 10.961932] allocated 7936-byte region [ffff888102984000, ffff888102985f00) [ 10.963045] [ 10.963205] The buggy address belongs to the physical page: [ 10.963742] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102980 [ 10.964422] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 10.964822] flags: 0x200000000000040(head|node=0|zone=2) [ 10.965382] page_type: f5(slab) [ 10.965520] raw: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 10.966194] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 10.967411] head: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 10.967705] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 10.967963] head: 0200000000000003 ffffea00040a6001 00000000ffffffff 00000000ffffffff [ 10.968225] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 10.968453] page dumped because: kasan: bad access detected [ 10.968621] [ 10.968692] Memory state around the buggy address: [ 10.968847] ffff888102985e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.969734] ffff888102985e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.970860] >ffff888102985f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.971957] ^ [ 10.972652] ffff888102985f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.973882] ffff888102986000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 10.975073] ==================================================================