Date
June 23, 2025, 1:39 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 24.097075] ================================================================== [ 24.097724] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8 [ 24.098206] Write of size 1 at addr fff00000c641e00a by task kunit_try_catch/148 [ 24.098334] [ 24.098430] CPU: 0 UID: 0 PID: 148 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc1 #1 PREEMPT [ 24.100171] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.100615] Hardware name: linux,dummy-virt (DT) [ 24.100731] Call trace: [ 24.101097] show_stack+0x20/0x38 (C) [ 24.101713] dump_stack_lvl+0x8c/0xd0 [ 24.102025] print_report+0x118/0x608 [ 24.102176] kasan_report+0xdc/0x128 [ 24.102283] __asan_report_store1_noabort+0x20/0x30 [ 24.102592] kmalloc_large_oob_right+0x278/0x2b8 [ 24.103006] kunit_try_run_case+0x170/0x3f0 [ 24.103906] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 24.104359] kthread+0x328/0x630 [ 24.104713] ret_from_fork+0x10/0x20 [ 24.105223] [ 24.105596] The buggy address belongs to the physical page: [ 24.105678] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10641c [ 24.105834] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 24.105956] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 24.106648] page_type: f8(unknown) [ 24.106818] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 24.106936] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 24.107093] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 24.107225] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 24.107360] head: 0bfffe0000000002 ffffc1ffc3190701 00000000ffffffff 00000000ffffffff [ 24.107615] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 24.107739] page dumped because: kasan: bad access detected [ 24.107865] [ 24.107914] Memory state around the buggy address: [ 24.108022] fff00000c641df00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.108118] fff00000c641df80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.108207] >fff00000c641e000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 24.108288] ^ [ 24.108353] fff00000c641e080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 24.108464] fff00000c641e100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 24.108545] ==================================================================
[ 16.182587] ================================================================== [ 16.183418] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2e9/0x330 [ 16.184784] Write of size 1 at addr ffff88810a0a600a by task kunit_try_catch/167 [ 16.186124] [ 16.186369] CPU: 1 UID: 0 PID: 167 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc1 #1 PREEMPT(voluntary) [ 16.186487] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.186523] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 16.186574] Call Trace: [ 16.186629] <TASK> [ 16.186671] dump_stack_lvl+0x73/0xb0 [ 16.186743] print_report+0xd1/0x650 [ 16.186816] ? __virt_addr_valid+0x1db/0x2d0 [ 16.186884] ? kmalloc_large_oob_right+0x2e9/0x330 [ 16.186954] ? kasan_addr_to_slab+0x11/0xa0 [ 16.187045] ? kmalloc_large_oob_right+0x2e9/0x330 [ 16.187130] kasan_report+0x141/0x180 [ 16.187187] ? kmalloc_large_oob_right+0x2e9/0x330 [ 16.187264] __asan_report_store1_noabort+0x1b/0x30 [ 16.187303] kmalloc_large_oob_right+0x2e9/0x330 [ 16.187338] ? __pfx_kmalloc_large_oob_right+0x10/0x10 [ 16.187372] ? __schedule+0x10cc/0x2b60 [ 16.187405] ? __pfx_read_tsc+0x10/0x10 [ 16.187433] ? ktime_get_ts64+0x86/0x230 [ 16.187468] kunit_try_run_case+0x1a5/0x480 [ 16.187504] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.187535] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 16.187567] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 16.187621] ? __kthread_parkme+0x82/0x180 [ 16.187699] ? preempt_count_sub+0x50/0x80 [ 16.187758] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.187794] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.187829] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 16.187861] kthread+0x337/0x6f0 [ 16.187883] ? trace_preempt_on+0x20/0xc0 [ 16.187915] ? __pfx_kthread+0x10/0x10 [ 16.187938] ? _raw_spin_unlock_irq+0x47/0x80 [ 16.187967] ? calculate_sigpending+0x7b/0xa0 [ 16.187995] ? __pfx_kthread+0x10/0x10 [ 16.188018] ret_from_fork+0x41/0x80 [ 16.188048] ? __pfx_kthread+0x10/0x10 [ 16.188073] ret_from_fork_asm+0x1a/0x30 [ 16.188113] </TASK> [ 16.188126] [ 16.204541] The buggy address belongs to the physical page: [ 16.205432] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10a0a4 [ 16.206363] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 16.207121] flags: 0x200000000000040(head|node=0|zone=2) [ 16.207756] page_type: f8(unknown) [ 16.208058] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 16.209118] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 16.209816] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 16.210460] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 16.211084] head: 0200000000000002 ffffea0004282901 00000000ffffffff 00000000ffffffff [ 16.211779] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 16.212454] page dumped because: kasan: bad access detected [ 16.213179] [ 16.213438] Memory state around the buggy address: [ 16.214029] ffff88810a0a5f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.214555] ffff88810a0a5f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.215356] >ffff88810a0a6000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 16.216112] ^ [ 16.216487] ffff88810a0a6080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 16.217414] ffff88810a0a6100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 16.218192] ==================================================================