Date
July 5, 2025, 5:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.060223] ================================================================== [ 18.060290] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8 [ 18.060336] Write of size 1 at addr fff00000c65c200a by task kunit_try_catch/146 [ 18.060383] [ 18.060412] CPU: 1 UID: 0 PID: 146 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 18.060488] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.060528] Hardware name: linux,dummy-virt (DT) [ 18.060558] Call trace: [ 18.060579] show_stack+0x20/0x38 (C) [ 18.060624] dump_stack_lvl+0x8c/0xd0 [ 18.060682] print_report+0x118/0x608 [ 18.060727] kasan_report+0xdc/0x128 [ 18.060779] __asan_report_store1_noabort+0x20/0x30 [ 18.060824] kmalloc_large_oob_right+0x278/0x2b8 [ 18.061504] kunit_try_run_case+0x170/0x3f0 [ 18.061554] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.061604] kthread+0x328/0x630 [ 18.061644] ret_from_fork+0x10/0x20 [ 18.061689] [ 18.061722] The buggy address belongs to the physical page: [ 18.061751] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1065c0 [ 18.061983] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 18.062036] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 18.062130] page_type: f8(unknown) [ 18.062216] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 18.062321] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 18.062442] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 18.062505] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 18.062552] head: 0bfffe0000000002 ffffc1ffc3197001 00000000ffffffff 00000000ffffffff [ 18.062598] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 18.062635] page dumped because: kasan: bad access detected [ 18.062664] [ 18.062681] Memory state around the buggy address: [ 18.062735] fff00000c65c1f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.062801] fff00000c65c1f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.062841] >fff00000c65c2000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 18.062971] ^ [ 18.063030] fff00000c65c2080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 18.063108] fff00000c65c2100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 18.063195] ==================================================================
[ 11.079291] ================================================================== [ 11.079785] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2e9/0x330 [ 11.080106] Write of size 1 at addr ffff88810390e00a by task kunit_try_catch/164 [ 11.080425] [ 11.080572] CPU: 1 UID: 0 PID: 164 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 11.080614] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.080640] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.080661] Call Trace: [ 11.080673] <TASK> [ 11.080688] dump_stack_lvl+0x73/0xb0 [ 11.080716] print_report+0xd1/0x650 [ 11.080738] ? __virt_addr_valid+0x1db/0x2d0 [ 11.080759] ? kmalloc_large_oob_right+0x2e9/0x330 [ 11.080780] ? kasan_addr_to_slab+0x11/0xa0 [ 11.080800] ? kmalloc_large_oob_right+0x2e9/0x330 [ 11.080822] kasan_report+0x141/0x180 [ 11.080843] ? kmalloc_large_oob_right+0x2e9/0x330 [ 11.080869] __asan_report_store1_noabort+0x1b/0x30 [ 11.080889] kmalloc_large_oob_right+0x2e9/0x330 [ 11.080910] ? __pfx_kmalloc_large_oob_right+0x10/0x10 [ 11.080933] ? __schedule+0x10cc/0x2b60 [ 11.080954] ? __pfx_read_tsc+0x10/0x10 [ 11.080973] ? ktime_get_ts64+0x86/0x230 [ 11.080995] kunit_try_run_case+0x1a5/0x480 [ 11.081018] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.081039] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.081061] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.081083] ? __kthread_parkme+0x82/0x180 [ 11.081102] ? preempt_count_sub+0x50/0x80 [ 11.081124] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.081148] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.081169] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.081204] kthread+0x337/0x6f0 [ 11.081223] ? trace_preempt_on+0x20/0xc0 [ 11.081245] ? __pfx_kthread+0x10/0x10 [ 11.081265] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.081285] ? calculate_sigpending+0x7b/0xa0 [ 11.081307] ? __pfx_kthread+0x10/0x10 [ 11.081328] ret_from_fork+0x116/0x1d0 [ 11.081345] ? __pfx_kthread+0x10/0x10 [ 11.081364] ret_from_fork_asm+0x1a/0x30 [ 11.081399] </TASK> [ 11.081410] [ 11.091555] The buggy address belongs to the physical page: [ 11.091822] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10390c [ 11.092150] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 11.092650] flags: 0x200000000000040(head|node=0|zone=2) [ 11.093078] page_type: f8(unknown) [ 11.093406] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 11.093898] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 11.094323] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 11.094912] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 11.095227] head: 0200000000000002 ffffea00040e4301 00000000ffffffff 00000000ffffffff [ 11.095523] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 11.096029] page dumped because: kasan: bad access detected [ 11.096501] [ 11.096740] Memory state around the buggy address: [ 11.097141] ffff88810390df00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.097859] ffff88810390df80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 11.098185] >ffff88810390e000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 11.098880] ^ [ 11.099339] ffff88810390e080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 11.099830] ffff88810390e100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 11.100430] ==================================================================