Date
May 12, 2025, 11:48 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 16.300858] ================================================================== [ 16.300993] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8 [ 16.301407] Write of size 1 at addr fff00000c78de00a by task kunit_try_catch/146 [ 16.301627] [ 16.301830] CPU: 1 UID: 0 PID: 146 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250512 #1 PREEMPT [ 16.302364] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.302425] Hardware name: linux,dummy-virt (DT) [ 16.302790] Call trace: [ 16.302955] show_stack+0x20/0x38 (C) [ 16.303365] dump_stack_lvl+0x8c/0xd0 [ 16.303470] print_report+0x118/0x608 [ 16.304311] kasan_report+0xdc/0x128 [ 16.304456] __asan_report_store1_noabort+0x20/0x30 [ 16.304560] kmalloc_large_oob_right+0x278/0x2b8 [ 16.304657] kunit_try_run_case+0x170/0x3f0 [ 16.304767] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 16.304910] kthread+0x328/0x630 [ 16.305031] ret_from_fork+0x10/0x20 [ 16.305165] [ 16.305242] The buggy address belongs to the physical page: [ 16.305337] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1078dc [ 16.305489] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 16.305617] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 16.305773] page_type: f8(unknown) [ 16.305852] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 16.305966] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 16.306077] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 16.306165] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 16.306261] head: 0bfffe0000000002 ffffc1ffc31e3701 00000000ffffffff 00000000ffffffff [ 16.306356] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 16.306436] page dumped because: kasan: bad access detected [ 16.306506] [ 16.306546] Memory state around the buggy address: [ 16.306623] fff00000c78ddf00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.307538] fff00000c78ddf80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 16.307679] >fff00000c78de000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 16.307743] ^ [ 16.307826] fff00000c78de080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 16.307905] fff00000c78de100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 16.307999] ==================================================================
[ 15.843021] ================================================================== [ 15.846446] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2e9/0x330 [ 15.847220] Write of size 1 at addr ffff88810299200a by task kunit_try_catch/163 [ 15.850627] [ 15.850973] CPU: 1 UID: 0 PID: 163 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc6-next-20250512 #1 PREEMPT(voluntary) [ 15.851499] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.851533] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 15.851629] Call Trace: [ 15.851693] <TASK> [ 15.851734] dump_stack_lvl+0x73/0xb0 [ 15.851814] print_report+0xd1/0x650 [ 15.851857] ? __virt_addr_valid+0x1db/0x2d0 [ 15.851902] ? kmalloc_large_oob_right+0x2e9/0x330 [ 15.851942] ? kasan_addr_to_slab+0x11/0xa0 [ 15.851980] ? kmalloc_large_oob_right+0x2e9/0x330 [ 15.852020] kasan_report+0x141/0x180 [ 15.852306] ? kmalloc_large_oob_right+0x2e9/0x330 [ 15.852363] __asan_report_store1_noabort+0x1b/0x30 [ 15.852404] kmalloc_large_oob_right+0x2e9/0x330 [ 15.852444] ? __pfx_kmalloc_large_oob_right+0x10/0x10 [ 15.852483] ? __schedule+0x10cc/0x2b60 [ 15.852524] ? __pfx_read_tsc+0x10/0x10 [ 15.852560] ? ktime_get_ts64+0x86/0x230 [ 15.852605] kunit_try_run_case+0x1a5/0x480 [ 15.852650] ? __pfx_kunit_try_run_case+0x10/0x10 [ 15.852722] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 15.852763] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 15.852802] ? __kthread_parkme+0x82/0x180 [ 15.852842] ? preempt_count_sub+0x50/0x80 [ 15.852889] ? __pfx_kunit_try_run_case+0x10/0x10 [ 15.852933] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 15.852975] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 15.853015] kthread+0x337/0x6f0 [ 15.853179] ? trace_preempt_on+0x20/0xc0 [ 15.853231] ? __pfx_kthread+0x10/0x10 [ 15.853287] ? _raw_spin_unlock_irq+0x47/0x80 [ 15.853562] ? calculate_sigpending+0x7b/0xa0 [ 15.853615] ? __pfx_kthread+0x10/0x10 [ 15.853690] ret_from_fork+0x116/0x1d0 [ 15.853733] ? __pfx_kthread+0x10/0x10 [ 15.853773] ret_from_fork_asm+0x1a/0x30 [ 15.853834] </TASK> [ 15.853859] [ 15.881291] The buggy address belongs to the physical page: [ 15.881617] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102990 [ 15.881972] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 15.883029] flags: 0x200000000000040(head|node=0|zone=2) [ 15.883915] page_type: f8(unknown) [ 15.885832] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 15.886929] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 15.887549] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 15.887887] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 15.888311] head: 0200000000000002 ffffea00040a6401 00000000ffffffff 00000000ffffffff [ 15.890170] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 15.891969] page dumped because: kasan: bad access detected [ 15.892929] [ 15.893133] Memory state around the buggy address: [ 15.893960] ffff888102991f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.894280] ffff888102991f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 15.895447] >ffff888102992000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 15.895762] ^ [ 15.896108] ffff888102992080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 15.896529] ffff888102992100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 15.896834] ==================================================================