Date
July 8, 2025, 4:38 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.633555] ================================================================== [ 17.633659] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x278/0x2b8 [ 17.633853] Write of size 1 at addr fff00000c5d3200a by task kunit_try_catch/148 [ 17.634170] [ 17.634204] CPU: 1 UID: 0 PID: 148 Comm: kunit_try_catch Tainted: G B N 6.15.6-rc1 #1 PREEMPT [ 17.634285] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.634365] Hardware name: linux,dummy-virt (DT) [ 17.634604] Call trace: [ 17.634632] show_stack+0x20/0x38 (C) [ 17.635014] dump_stack_lvl+0x8c/0xd0 [ 17.635154] print_report+0x118/0x608 [ 17.635202] kasan_report+0xdc/0x128 [ 17.635445] __asan_report_store1_noabort+0x20/0x30 [ 17.635495] kmalloc_large_oob_right+0x278/0x2b8 [ 17.635544] kunit_try_run_case+0x170/0x3f0 [ 17.635591] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.635643] kthread+0x328/0x630 [ 17.635739] ret_from_fork+0x10/0x20 [ 17.636078] [ 17.636142] The buggy address belongs to the physical page: [ 17.636173] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105d30 [ 17.636602] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 17.636649] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 17.636710] page_type: f8(unknown) [ 17.636748] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 17.636796] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 17.636844] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 17.637241] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 17.637389] head: 0bfffe0000000002 ffffc1ffc3174c01 00000000ffffffff 00000000ffffffff [ 17.637437] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 17.637475] page dumped because: kasan: bad access detected [ 17.637507] [ 17.637525] Memory state around the buggy address: [ 17.637566] fff00000c5d31f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.637608] fff00000c5d31f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.637933] >fff00000c5d32000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 17.637973] ^ [ 17.638281] fff00000c5d32080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 17.638331] fff00000c5d32100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 17.638381] ==================================================================
[ 10.674657] ================================================================== [ 10.675067] BUG: KASAN: slab-out-of-bounds in kmalloc_large_oob_right+0x2e9/0x330 [ 10.675657] Write of size 1 at addr ffff888102d6600a by task kunit_try_catch/166 [ 10.676283] [ 10.676413] CPU: 1 UID: 0 PID: 166 Comm: kunit_try_catch Tainted: G B N 6.15.6-rc1 #1 PREEMPT(voluntary) [ 10.676493] Tainted: [B]=BAD_PAGE, [N]=TEST [ 10.676521] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 10.676573] Call Trace: [ 10.676585] <TASK> [ 10.676601] dump_stack_lvl+0x73/0xb0 [ 10.676627] print_report+0xd1/0x650 [ 10.676665] ? __virt_addr_valid+0x1db/0x2d0 [ 10.676687] ? kmalloc_large_oob_right+0x2e9/0x330 [ 10.676709] ? kasan_addr_to_slab+0x11/0xa0 [ 10.676731] ? kmalloc_large_oob_right+0x2e9/0x330 [ 10.676754] kasan_report+0x141/0x180 [ 10.676805] ? kmalloc_large_oob_right+0x2e9/0x330 [ 10.676833] __asan_report_store1_noabort+0x1b/0x30 [ 10.676898] kmalloc_large_oob_right+0x2e9/0x330 [ 10.676921] ? __pfx_kmalloc_large_oob_right+0x10/0x10 [ 10.676945] ? __schedule+0x10cc/0x2b60 [ 10.677072] ? __pfx_read_tsc+0x10/0x10 [ 10.677094] ? ktime_get_ts64+0x86/0x230 [ 10.677119] kunit_try_run_case+0x1a5/0x480 [ 10.677141] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.677160] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 10.677184] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 10.677208] ? __kthread_parkme+0x82/0x180 [ 10.677230] ? preempt_count_sub+0x50/0x80 [ 10.677255] ? __pfx_kunit_try_run_case+0x10/0x10 [ 10.677275] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 10.677299] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 10.677322] kthread+0x337/0x6f0 [ 10.677339] ? trace_preempt_on+0x20/0xc0 [ 10.677362] ? __pfx_kthread+0x10/0x10 [ 10.677380] ? _raw_spin_unlock_irq+0x47/0x80 [ 10.677403] ? calculate_sigpending+0x7b/0xa0 [ 10.677424] ? __pfx_kthread+0x10/0x10 [ 10.677443] ret_from_fork+0x41/0x80 [ 10.677463] ? __pfx_kthread+0x10/0x10 [ 10.677481] ret_from_fork_asm+0x1a/0x30 [ 10.677522] </TASK> [ 10.677532] [ 10.686266] The buggy address belongs to the physical page: [ 10.686506] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102d64 [ 10.687092] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 10.687626] flags: 0x200000000000040(head|node=0|zone=2) [ 10.687906] page_type: f8(unknown) [ 10.688040] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 10.688534] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 10.689167] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 10.689686] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 10.690019] head: 0200000000000002 ffffea00040b5901 00000000ffffffff 00000000ffffffff [ 10.690346] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 10.690822] page dumped because: kasan: bad access detected [ 10.691151] [ 10.691254] Memory state around the buggy address: [ 10.691498] ffff888102d65f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.691780] ffff888102d65f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 10.692209] >ffff888102d66000: 00 02 fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 10.692535] ^ [ 10.692706] ffff888102d66080: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 10.693139] ffff888102d66100: fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe fe [ 10.693455] ==================================================================