Date
June 17, 2025, 3:40 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 21.703023] ================================================================== [ 21.703213] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x150/0x2f8 [ 21.703367] Write of size 2 at addr fff00000c794b177 by task kunit_try_catch/174 [ 21.703490] [ 21.704963] CPU: 0 UID: 0 PID: 174 Comm: kunit_try_catch Tainted: G B N 6.15.3-rc1 #1 PREEMPT [ 21.705241] Tainted: [B]=BAD_PAGE, [N]=TEST [ 21.705879] Hardware name: linux,dummy-virt (DT) [ 21.705977] Call trace: [ 21.706162] show_stack+0x20/0x38 (C) [ 21.706297] dump_stack_lvl+0x8c/0xd0 [ 21.706385] print_report+0x118/0x608 [ 21.706465] kasan_report+0xdc/0x128 [ 21.706593] kasan_check_range+0x100/0x1a8 [ 21.706695] __asan_memset+0x34/0x78 [ 21.706869] kmalloc_oob_memset_2+0x150/0x2f8 [ 21.706986] kunit_try_run_case+0x170/0x3f0 [ 21.707107] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.707239] kthread+0x328/0x630 [ 21.707347] ret_from_fork+0x10/0x20 [ 21.707484] [ 21.707561] Allocated by task 174: [ 21.707648] kasan_save_stack+0x3c/0x68 [ 21.707769] kasan_save_track+0x20/0x40 [ 21.707877] kasan_save_alloc_info+0x40/0x58 [ 21.708008] __kasan_kmalloc+0xd4/0xd8 [ 21.708135] __kmalloc_cache_noprof+0x16c/0x3c0 [ 21.708278] kmalloc_oob_memset_2+0xb0/0x2f8 [ 21.708390] kunit_try_run_case+0x170/0x3f0 [ 21.708483] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 21.708589] kthread+0x328/0x630 [ 21.708673] ret_from_fork+0x10/0x20 [ 21.708986] [ 21.709043] The buggy address belongs to the object at fff00000c794b100 [ 21.709043] which belongs to the cache kmalloc-128 of size 128 [ 21.709167] The buggy address is located 119 bytes inside of [ 21.709167] allocated 120-byte region [fff00000c794b100, fff00000c794b178) [ 21.709878] [ 21.710274] The buggy address belongs to the physical page: [ 21.710537] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10794b [ 21.711077] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 21.711525] page_type: f5(slab) [ 21.711719] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 21.711876] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 21.712312] page dumped because: kasan: bad access detected [ 21.712414] [ 21.712459] Memory state around the buggy address: [ 21.712543] fff00000c794b000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 21.713162] fff00000c794b080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.713353] >fff00000c794b100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 21.713466] ^ [ 21.713581] fff00000c794b180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.713904] fff00000c794b200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 21.713953] ==================================================================
[ 19.266864] ================================================================== [ 19.267960] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_memset_2+0x166/0x330 [ 19.268769] Write of size 2 at addr ffff888103096677 by task kunit_try_catch/192 [ 19.269963] [ 19.271398] CPU: 0 UID: 0 PID: 192 Comm: kunit_try_catch Tainted: G B N 6.15.3-rc1 #1 PREEMPT(voluntary) [ 19.271476] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.271497] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 19.271529] Call Trace: [ 19.271554] <TASK> [ 19.271580] dump_stack_lvl+0x73/0xb0 [ 19.271628] print_report+0xd1/0x650 [ 19.271666] ? __virt_addr_valid+0x1db/0x2d0 [ 19.271701] ? kmalloc_oob_memset_2+0x166/0x330 [ 19.271734] ? kasan_complete_mode_report_info+0x2a/0x200 [ 19.271768] ? kmalloc_oob_memset_2+0x166/0x330 [ 19.271802] kasan_report+0x141/0x180 [ 19.271836] ? kmalloc_oob_memset_2+0x166/0x330 [ 19.271888] kasan_check_range+0x10c/0x1c0 [ 19.271920] __asan_memset+0x27/0x50 [ 19.271950] kmalloc_oob_memset_2+0x166/0x330 [ 19.271985] ? __pfx_kmalloc_oob_memset_2+0x10/0x10 [ 19.272020] ? __schedule+0x10cc/0x2b60 [ 19.272210] ? __pfx_read_tsc+0x10/0x10 [ 19.272430] ? ktime_get_ts64+0x86/0x230 [ 19.272512] kunit_try_run_case+0x1a5/0x480 [ 19.272568] ? __pfx_kunit_try_run_case+0x10/0x10 [ 19.272605] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 19.272644] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 19.272678] ? __kthread_parkme+0x82/0x180 [ 19.272712] ? preempt_count_sub+0x50/0x80 [ 19.272750] ? __pfx_kunit_try_run_case+0x10/0x10 [ 19.272785] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 19.272819] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 19.272854] kthread+0x337/0x6f0 [ 19.272879] ? trace_preempt_on+0x20/0xc0 [ 19.272916] ? __pfx_kthread+0x10/0x10 [ 19.272942] ? _raw_spin_unlock_irq+0x47/0x80 [ 19.273028] ? calculate_sigpending+0x7b/0xa0 [ 19.273106] ? __pfx_kthread+0x10/0x10 [ 19.273138] ret_from_fork+0x41/0x80 [ 19.273172] ? __pfx_kthread+0x10/0x10 [ 19.273200] ret_from_fork_asm+0x1a/0x30 [ 19.273247] </TASK> [ 19.273264] [ 19.293522] Allocated by task 192: [ 19.294528] kasan_save_stack+0x45/0x70 [ 19.294941] kasan_save_track+0x18/0x40 [ 19.296094] kasan_save_alloc_info+0x3b/0x50 [ 19.296468] __kasan_kmalloc+0xb7/0xc0 [ 19.296839] __kmalloc_cache_noprof+0x189/0x420 [ 19.297664] kmalloc_oob_memset_2+0xac/0x330 [ 19.297994] kunit_try_run_case+0x1a5/0x480 [ 19.298492] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 19.298987] kthread+0x337/0x6f0 [ 19.299374] ret_from_fork+0x41/0x80 [ 19.299753] ret_from_fork_asm+0x1a/0x30 [ 19.301305] [ 19.301496] The buggy address belongs to the object at ffff888103096600 [ 19.301496] which belongs to the cache kmalloc-128 of size 128 [ 19.302718] The buggy address is located 119 bytes inside of [ 19.302718] allocated 120-byte region [ffff888103096600, ffff888103096678) [ 19.305180] [ 19.305366] The buggy address belongs to the physical page: [ 19.305935] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103096 [ 19.306841] flags: 0x200000000000000(node=0|zone=2) [ 19.307681] page_type: f5(slab) [ 19.308840] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 19.309561] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 19.310583] page dumped because: kasan: bad access detected [ 19.311339] [ 19.311721] Memory state around the buggy address: [ 19.312404] ffff888103096500: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 19.312943] ffff888103096580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.314474] >ffff888103096600: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 19.315540] ^ [ 19.316383] ffff888103096680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.317217] ffff888103096700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.317784] ==================================================================