Date
June 17, 2025, 3:40 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 21.200820] ================================================================== [ 21.201031] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8 [ 21.201531] Write of size 1 at addr fff00000c788e00a by task kunit_try_catch/148 [ 21.201648] [ 21.201746] CPU: 0 UID: 0 PID: 148 Comm: kunit_try_catch Tainted: G B N 6.15.3-rc1 #1 PREEMPT [ 21.202143] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.202205] Hardware name: linux,dummy-virt (DT) [ 21.202279] Call trace: [ 21.202362] show_stack+0x20/0x38 (C) [ 21.202495] dump_stack_lvl+0x8c/0xd0 [ 21.202609] print_report+0x118/0x608 [ 21.202717] kasan_report+0xdc/0x128 [ 21.202825] __asan_report_store1_noabort+0x20/0x30 [ 21.202950] kmalloc_large_oob_right+0x278/0x2b8 [ 21.203066] kunit_try_run_case+0x170/0x3f0 [ 21.203189] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.203321] kthread+0x328/0x630 [ 21.203441] ret_from_fork+0x10/0x20 [ 21.203557] [ 21.204083] The buggy address belongs to the physical page: [ 21.204196] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10788c [ 21.204480] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 21.204591] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 21.204749] page_type: f8(unknown) [ 21.204834] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 21.204934] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 21.205030] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 21.205134] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 21.205230] head: 0bfffe0000000002 ffffc1ffc31e2301 00000000ffffffff 00000000ffffffff [ 21.205344] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 21.205459] page dumped because: kasan: bad access detected [ 21.205534] [ 21.205578] Memory state around the buggy address: [ 21.205899] fff00000c788df00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 21.206000] fff00000c788df80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 21.206084] >fff00000c788e000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 21.206163] ^ [ 21.206228] fff00000c788e080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 21.206315] fff00000c788e100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 21.206404] ==================================================================
[ 18.011383] ================================================================== [ 18.012572] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2e9/0x330 [ 18.013393] Write of size 1 at addr ffff8881029f200a by task kunit_try_catch/166 [ 18.014761] [ 18.015520] CPU: 0 UID: 0 PID: 166 Comm: kunit_try_catch Tainted: G B N 6.15.3-rc1 #1 PREEMPT(voluntary) [ 18.015611] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.015632] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 18.015663] Call Trace: [ 18.015681] <TASK> [ 18.015707] dump_stack_lvl+0x73/0xb0 [ 18.015751] print_report+0xd1/0x650 [ 18.015788] ? __virt_addr_valid+0x1db/0x2d0 [ 18.015824] ? kmalloc_large_oob_right+0x2e9/0x330 [ 18.015858] ? kasan_addr_to_slab+0x11/0xa0 [ 18.015906] ? kmalloc_large_oob_right+0x2e9/0x330 [ 18.015943] kasan_report+0x141/0x180 [ 18.015978] ? kmalloc_large_oob_right+0x2e9/0x330 [ 18.016020] __asan_report_store1_noabort+0x1b/0x30 [ 18.016102] kmalloc_large_oob_right+0x2e9/0x330 [ 18.016180] ? __pfx_kmalloc_large_oob_right+0x10/0x10 [ 18.016257] ? __schedule+0x10cc/0x2b60 [ 18.016354] ? __pfx_read_tsc+0x10/0x10 [ 18.016420] ? ktime_get_ts64+0x86/0x230 [ 18.016548] kunit_try_run_case+0x1a5/0x480 [ 18.016639] ? __pfx_kunit_try_run_case+0x10/0x10 [ 18.016892] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 18.016934] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 18.017064] ? __kthread_parkme+0x82/0x180 [ 18.017153] ? preempt_count_sub+0x50/0x80 [ 18.017196] ? __pfx_kunit_try_run_case+0x10/0x10 [ 18.017234] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 18.017271] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 18.017336] kthread+0x337/0x6f0 [ 18.017366] ? trace_preempt_on+0x20/0xc0 [ 18.017405] ? __pfx_kthread+0x10/0x10 [ 18.017432] ? _raw_spin_unlock_irq+0x47/0x80 [ 18.017465] ? calculate_sigpending+0x7b/0xa0 [ 18.017498] ? __pfx_kthread+0x10/0x10 [ 18.017525] ret_from_fork+0x41/0x80 [ 18.017559] ? __pfx_kthread+0x10/0x10 [ 18.017588] ret_from_fork_asm+0x1a/0x30 [ 18.017634] </TASK> [ 18.017650] [ 18.036670] The buggy address belongs to the physical page: [ 18.037338] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1029f0 [ 18.037928] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 18.038725] flags: 0x200000000000040(head|node=0|zone=2) [ 18.039319] page_type: f8(unknown) [ 18.039665] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 18.040380] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 18.040917] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 18.041624] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 18.042312] head: 0200000000000002 ffffea00040a7c01 00000000ffffffff 00000000ffffffff [ 18.042789] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 18.043711] page dumped because: kasan: bad access detected [ 18.044261] [ 18.046212] Memory state around the buggy address: [ 18.046733] ffff8881029f1f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.047550] ffff8881029f1f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.048315] >ffff8881029f2000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 18.048791] ^ [ 18.049164] ffff8881029f2080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 18.049763] ffff8881029f2100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 18.051157] ==================================================================