Date
June 2, 2025, 2:13 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.739116] ================================================================== [ 18.739872] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x144/0x2d0 [ 18.740773] Write of size 128 at addr fff00000c5a72900 by task kunit_try_catch/160 [ 18.741914] [ 18.742395] CPU: 1 UID: 0 PID: 160 Comm: kunit_try_catch Tainted: G B N 6.14.10-rc1 #1 [ 18.742604] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.742660] Hardware name: linux,dummy-virt (DT) [ 18.742729] Call trace: [ 18.742774] show_stack+0x20/0x38 (C) [ 18.742895] dump_stack_lvl+0x8c/0xd0 [ 18.742988] print_report+0x118/0x608 [ 18.743085] kasan_report+0xdc/0x128 [ 18.743405] kasan_check_range+0x100/0x1a8 [ 18.743474] __asan_memset+0x34/0x78 [ 18.743523] kmalloc_oob_in_memset+0x144/0x2d0 [ 18.743574] kunit_try_run_case+0x170/0x3f0 [ 18.743627] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.743682] kthread+0x318/0x620 [ 18.743732] ret_from_fork+0x10/0x20 [ 18.743786] [ 18.749580] Allocated by task 160: [ 18.749876] kasan_save_stack+0x3c/0x68 [ 18.750781] kasan_save_track+0x20/0x40 [ 18.751427] kasan_save_alloc_info+0x40/0x58 [ 18.751849] __kasan_kmalloc+0xd4/0xd8 [ 18.752440] __kmalloc_cache_noprof+0x16c/0x3c0 [ 18.753025] kmalloc_oob_in_memset+0xb0/0x2d0 [ 18.753539] kunit_try_run_case+0x170/0x3f0 [ 18.753879] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.754558] kthread+0x318/0x620 [ 18.755115] ret_from_fork+0x10/0x20 [ 18.755715] [ 18.756127] The buggy address belongs to the object at fff00000c5a72900 [ 18.756127] which belongs to the cache kmalloc-128 of size 128 [ 18.757081] The buggy address is located 0 bytes inside of [ 18.757081] allocated 120-byte region [fff00000c5a72900, fff00000c5a72978) [ 18.758612] [ 18.759089] The buggy address belongs to the physical page: [ 18.759482] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105a72 [ 18.759759] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.759964] page_type: f5(slab) [ 18.760113] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 18.760360] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 18.760572] page dumped because: kasan: bad access detected [ 18.760745] [ 18.760842] Memory state around the buggy address: [ 18.761001] fff00000c5a72800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 18.761274] fff00000c5a72880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.761594] >fff00000c5a72900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 18.761918] ^ [ 18.762265] fff00000c5a72980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.762853] fff00000c5a72a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.763423] ==================================================================
[ 12.744757] ================================================================== [ 12.745206] BUG: KASAN: slab-out-of-bounds in kmalloc_oob_in_memset+0x160/0x320 [ 12.745496] Write of size 128 at addr ffff888101bd1900 by task kunit_try_catch/178 [ 12.745885] [ 12.746000] CPU: 1 UID: 0 PID: 178 Comm: kunit_try_catch Tainted: G B N 6.14.10-rc1 #1 [ 12.746051] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.746062] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.746082] Call Trace: [ 12.746094] <TASK> [ 12.746110] dump_stack_lvl+0x73/0xb0 [ 12.746134] print_report+0xd1/0x650 [ 12.746155] ? __virt_addr_valid+0x1db/0x2d0 [ 12.746177] ? kmalloc_oob_in_memset+0x160/0x320 [ 12.746197] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.746221] ? kmalloc_oob_in_memset+0x160/0x320 [ 12.746242] kasan_report+0x140/0x180 [ 12.746262] ? kmalloc_oob_in_memset+0x160/0x320 [ 12.746288] kasan_check_range+0x10c/0x1c0 [ 12.746312] __asan_memset+0x27/0x50 [ 12.746335] kmalloc_oob_in_memset+0x160/0x320 [ 12.746357] ? __pfx_kmalloc_oob_in_memset+0x10/0x10 [ 12.746381] ? __pfx_kmalloc_oob_in_memset+0x10/0x10 [ 12.746406] kunit_try_run_case+0x1a6/0x480 [ 12.746429] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.746450] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 12.746474] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.746498] ? __kthread_parkme+0x82/0x160 [ 12.746519] ? preempt_count_sub+0x50/0x80 [ 12.746544] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.746568] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.746596] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.746621] kthread+0x324/0x6e0 [ 12.746641] ? trace_preempt_on+0x20/0xc0 [ 12.746663] ? __pfx_kthread+0x10/0x10 [ 12.746685] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.746706] ? calculate_sigpending+0x7b/0xa0 [ 12.746727] ? __pfx_kthread+0x10/0x10 [ 12.746748] ret_from_fork+0x41/0x80 [ 12.746766] ? __pfx_kthread+0x10/0x10 [ 12.746788] ret_from_fork_asm+0x1a/0x30 [ 12.746818] </TASK> [ 12.746828] [ 12.753217] Allocated by task 178: [ 12.753353] kasan_save_stack+0x45/0x70 [ 12.753551] kasan_save_track+0x18/0x40 [ 12.753750] kasan_save_alloc_info+0x3b/0x50 [ 12.753958] __kasan_kmalloc+0xb7/0xc0 [ 12.754165] __kmalloc_cache_noprof+0x18a/0x420 [ 12.754392] kmalloc_oob_in_memset+0xad/0x320 [ 12.754685] kunit_try_run_case+0x1a6/0x480 [ 12.754895] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.755130] kthread+0x324/0x6e0 [ 12.755250] ret_from_fork+0x41/0x80 [ 12.755430] ret_from_fork_asm+0x1a/0x30 [ 12.755904] [ 12.756027] The buggy address belongs to the object at ffff888101bd1900 [ 12.756027] which belongs to the cache kmalloc-128 of size 128 [ 12.756507] The buggy address is located 0 bytes inside of [ 12.756507] allocated 120-byte region [ffff888101bd1900, ffff888101bd1978) [ 12.757006] [ 12.757089] The buggy address belongs to the physical page: [ 12.757613] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101bd1 [ 12.757953] flags: 0x200000000000000(node=0|zone=2) [ 12.758167] page_type: f5(slab) [ 12.758340] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 12.759706] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 12.760056] page dumped because: kasan: bad access detected [ 12.760291] [ 12.760372] Memory state around the buggy address: [ 12.760935] ffff888101bd1800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 12.761233] ffff888101bd1880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.761534] >ffff888101bd1900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc [ 12.761904] ^ [ 12.762218] ffff888101bd1980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.762509] ffff888101bd1a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.763308] ==================================================================