Date
July 19, 2025, 11:11 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.015957] ================================================================== [ 15.016017] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x2a4/0x2f0 [ 15.016067] Write of size 1 at addr fff00000c646df00 by task kunit_try_catch/145 [ 15.016117] [ 15.016150] CPU: 1 UID: 0 PID: 145 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 15.016248] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.016275] Hardware name: linux,dummy-virt (DT) [ 15.016305] Call trace: [ 15.016326] show_stack+0x20/0x38 (C) [ 15.016373] dump_stack_lvl+0x8c/0xd0 [ 15.016418] print_report+0x118/0x5d0 [ 15.016462] kasan_report+0xdc/0x128 [ 15.016520] __asan_report_store1_noabort+0x20/0x30 [ 15.017418] kmalloc_big_oob_right+0x2a4/0x2f0 [ 15.017488] kunit_try_run_case+0x170/0x3f0 [ 15.017558] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.017611] kthread+0x328/0x630 [ 15.017661] ret_from_fork+0x10/0x20 [ 15.017889] [ 15.017990] Allocated by task 145: [ 15.018176] kasan_save_stack+0x3c/0x68 [ 15.018445] kasan_save_track+0x20/0x40 [ 15.018494] kasan_save_alloc_info+0x40/0x58 [ 15.018833] __kasan_kmalloc+0xd4/0xd8 [ 15.018895] __kmalloc_cache_noprof+0x16c/0x3c0 [ 15.019014] kmalloc_big_oob_right+0xb8/0x2f0 [ 15.019114] kunit_try_run_case+0x170/0x3f0 [ 15.019314] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.019382] kthread+0x328/0x630 [ 15.019441] ret_from_fork+0x10/0x20 [ 15.019481] [ 15.019774] The buggy address belongs to the object at fff00000c646c000 [ 15.019774] which belongs to the cache kmalloc-8k of size 8192 [ 15.019908] The buggy address is located 0 bytes to the right of [ 15.019908] allocated 7936-byte region [fff00000c646c000, fff00000c646df00) [ 15.020035] [ 15.020148] The buggy address belongs to the physical page: [ 15.020185] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106468 [ 15.020316] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 15.020420] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 15.020482] page_type: f5(slab) [ 15.020816] raw: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 15.020878] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 15.021102] head: 0bfffe0000000040 fff00000c0002280 dead000000000122 0000000000000000 [ 15.021296] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 15.021413] head: 0bfffe0000000003 ffffc1ffc3191a01 00000000ffffffff 00000000ffffffff [ 15.021572] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 15.021751] page dumped because: kasan: bad access detected [ 15.021784] [ 15.021803] Memory state around the buggy address: [ 15.021978] fff00000c646de00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.022186] fff00000c646de80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.022255] >fff00000c646df00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.022360] ^ [ 15.022453] fff00000c646df80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.022544] fff00000c646e000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.022704] ==================================================================
[ 11.529749] ================================================================== [ 11.531258] BUG: KASAN: slab-out-of-bounds in kmalloc_big_oob_right+0x316/0x370 [ 11.531948] Write of size 1 at addr ffff888102aa5f00 by task kunit_try_catch/162 [ 11.532603] [ 11.532778] CPU: 1 UID: 0 PID: 162 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 11.532825] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.532836] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.532857] Call Trace: [ 11.532869] <TASK> [ 11.532885] dump_stack_lvl+0x73/0xb0 [ 11.532914] print_report+0xd1/0x610 [ 11.532934] ? __virt_addr_valid+0x1db/0x2d0 [ 11.532956] ? kmalloc_big_oob_right+0x316/0x370 [ 11.532977] ? kasan_complete_mode_report_info+0x2a/0x200 [ 11.532999] ? kmalloc_big_oob_right+0x316/0x370 [ 11.533021] kasan_report+0x141/0x180 [ 11.533041] ? kmalloc_big_oob_right+0x316/0x370 [ 11.533067] __asan_report_store1_noabort+0x1b/0x30 [ 11.533091] kmalloc_big_oob_right+0x316/0x370 [ 11.533113] ? __pfx_kmalloc_big_oob_right+0x10/0x10 [ 11.533135] ? __schedule+0x10cc/0x2b60 [ 11.533157] ? __pfx_read_tsc+0x10/0x10 [ 11.533178] ? ktime_get_ts64+0x86/0x230 [ 11.533202] kunit_try_run_case+0x1a5/0x480 [ 11.533226] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.533247] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.533270] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.533293] ? __kthread_parkme+0x82/0x180 [ 11.533313] ? preempt_count_sub+0x50/0x80 [ 11.533336] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.533359] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.533382] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.533405] kthread+0x337/0x6f0 [ 11.533423] ? trace_preempt_on+0x20/0xc0 [ 11.533445] ? __pfx_kthread+0x10/0x10 [ 11.533464] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.533484] ? calculate_sigpending+0x7b/0xa0 [ 11.533519] ? __pfx_kthread+0x10/0x10 [ 11.533539] ret_from_fork+0x116/0x1d0 [ 11.533556] ? __pfx_kthread+0x10/0x10 [ 11.533575] ret_from_fork_asm+0x1a/0x30 [ 11.533604] </TASK> [ 11.533614] [ 11.545191] Allocated by task 162: [ 11.545616] kasan_save_stack+0x45/0x70 [ 11.545959] kasan_save_track+0x18/0x40 [ 11.546382] kasan_save_alloc_info+0x3b/0x50 [ 11.546769] __kasan_kmalloc+0xb7/0xc0 [ 11.547107] __kmalloc_cache_noprof+0x189/0x420 [ 11.547530] kmalloc_big_oob_right+0xa9/0x370 [ 11.547913] kunit_try_run_case+0x1a5/0x480 [ 11.548332] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.548838] kthread+0x337/0x6f0 [ 11.549132] ret_from_fork+0x116/0x1d0 [ 11.549513] ret_from_fork_asm+0x1a/0x30 [ 11.549869] [ 11.550022] The buggy address belongs to the object at ffff888102aa4000 [ 11.550022] which belongs to the cache kmalloc-8k of size 8192 [ 11.551080] The buggy address is located 0 bytes to the right of [ 11.551080] allocated 7936-byte region [ffff888102aa4000, ffff888102aa5f00) [ 11.552339] [ 11.552512] The buggy address belongs to the physical page: [ 11.552996] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102aa0 [ 11.553351] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 11.553589] flags: 0x200000000000040(head|node=0|zone=2) [ 11.553769] page_type: f5(slab) [ 11.553891] raw: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 11.554129] raw: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 11.554801] head: 0200000000000040 ffff888100042280 dead000000000122 0000000000000000 [ 11.555655] head: 0000000000000000 0000000080020002 00000000f5000000 0000000000000000 [ 11.556567] head: 0200000000000003 ffffea00040aa801 00000000ffffffff 00000000ffffffff [ 11.557333] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 [ 11.558011] page dumped because: kasan: bad access detected [ 11.558569] [ 11.558732] Memory state around the buggy address: [ 11.559166] ffff888102aa5e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.559783] ffff888102aa5e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.560433] >ffff888102aa5f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.561050] ^ [ 11.561381] ffff888102aa5f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.561993] ffff888102aa6000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.562287] ==================================================================