Date
June 26, 2025, 11:12 a.m.
Environment | |
---|---|
e850-96 | |
qemu-arm64 | |
qemu-x86_64 |
[ 28.596762] ================================================================== [ 28.606324] BUG: KASAN: out-of-bounds in kmalloc_memmove_negative_size+0x154/0x2e0 [ 28.613875] Read of size 18446744073709551614 at addr ffff000802e1ab04 by task kunit_try_catch/229 [ 28.622812] [ 28.624302] CPU: 0 UID: 0 PID: 229 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc3 #1 PREEMPT [ 28.624354] Tainted: [B]=BAD_PAGE, [N]=TEST [ 28.624372] Hardware name: WinLink E850-96 board (DT) [ 28.624394] Call trace: [ 28.624405] show_stack+0x20/0x38 (C) [ 28.624441] dump_stack_lvl+0x8c/0xd0 [ 28.624479] print_report+0x118/0x608 [ 28.624511] kasan_report+0xdc/0x128 [ 28.624538] kasan_check_range+0x100/0x1a8 [ 28.624570] __asan_memmove+0x3c/0x98 [ 28.624602] kmalloc_memmove_negative_size+0x154/0x2e0 [ 28.624641] kunit_try_run_case+0x170/0x3f0 [ 28.624679] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 28.624720] kthread+0x328/0x630 [ 28.624756] ret_from_fork+0x10/0x20 [ 28.624790] [ 28.691040] Allocated by task 229: [ 28.694430] kasan_save_stack+0x3c/0x68 [ 28.698245] kasan_save_track+0x20/0x40 [ 28.702065] kasan_save_alloc_info+0x40/0x58 [ 28.706318] __kasan_kmalloc+0xd4/0xd8 [ 28.710051] __kmalloc_cache_noprof+0x16c/0x3c0 [ 28.714565] kmalloc_memmove_negative_size+0xb0/0x2e0 [ 28.719599] kunit_try_run_case+0x170/0x3f0 [ 28.723766] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 28.729236] kthread+0x328/0x630 [ 28.732446] ret_from_fork+0x10/0x20 [ 28.736005] [ 28.737482] The buggy address belongs to the object at ffff000802e1ab00 [ 28.737482] which belongs to the cache kmalloc-64 of size 64 [ 28.749810] The buggy address is located 4 bytes inside of [ 28.749810] 64-byte region [ffff000802e1ab00, ffff000802e1ab40) [ 28.761265] [ 28.762745] The buggy address belongs to the physical page: [ 28.768301] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x882e1a [ 28.776285] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 28.782796] page_type: f5(slab) [ 28.785933] raw: 0bfffe0000000000 ffff0008000028c0 dead000000000122 0000000000000000 [ 28.793650] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 28.801368] page dumped because: kasan: bad access detected [ 28.806925] [ 28.808402] Memory state around the buggy address: [ 28.813181] ffff000802e1aa00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 28.820383] ffff000802e1aa80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 28.827589] >ffff000802e1ab00: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 28.834788] ^ [ 28.838004] ffff000802e1ab80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.845210] ffff000802e1ac00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.852410] ==================================================================
[ 18.070011] ================================================================== [ 18.070081] BUG: KASAN: out-of-bounds in kmalloc_memmove_negative_size+0x154/0x2e0 [ 18.070256] Read of size 18446744073709551614 at addr fff00000c6759d84 by task kunit_try_catch/182 [ 18.070358] [ 18.070389] CPU: 0 UID: 0 PID: 182 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc3 #1 PREEMPT [ 18.070698] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.070736] Hardware name: linux,dummy-virt (DT) [ 18.070774] Call trace: [ 18.071011] show_stack+0x20/0x38 (C) [ 18.071116] dump_stack_lvl+0x8c/0xd0 [ 18.071175] print_report+0x118/0x608 [ 18.071219] kasan_report+0xdc/0x128 [ 18.071262] kasan_check_range+0x100/0x1a8 [ 18.071308] __asan_memmove+0x3c/0x98 [ 18.071352] kmalloc_memmove_negative_size+0x154/0x2e0 [ 18.071461] kunit_try_run_case+0x170/0x3f0 [ 18.071528] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.071591] kthread+0x328/0x630 [ 18.071673] ret_from_fork+0x10/0x20 [ 18.071728] [ 18.071747] Allocated by task 182: [ 18.071773] kasan_save_stack+0x3c/0x68 [ 18.071876] kasan_save_track+0x20/0x40 [ 18.072048] kasan_save_alloc_info+0x40/0x58 [ 18.072099] __kasan_kmalloc+0xd4/0xd8 [ 18.072142] __kmalloc_cache_noprof+0x16c/0x3c0 [ 18.072282] kmalloc_memmove_negative_size+0xb0/0x2e0 [ 18.072332] kunit_try_run_case+0x170/0x3f0 [ 18.072371] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.072422] kthread+0x328/0x630 [ 18.072605] ret_from_fork+0x10/0x20 [ 18.072777] [ 18.072911] The buggy address belongs to the object at fff00000c6759d80 [ 18.072911] which belongs to the cache kmalloc-64 of size 64 [ 18.073291] The buggy address is located 4 bytes inside of [ 18.073291] 64-byte region [fff00000c6759d80, fff00000c6759dc0) [ 18.073443] [ 18.073559] The buggy address belongs to the physical page: [ 18.073683] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106759 [ 18.074016] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.074210] page_type: f5(slab) [ 18.074303] raw: 0bfffe0000000000 fff00000c00018c0 dead000000000122 0000000000000000 [ 18.074355] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 18.074533] page dumped because: kasan: bad access detected [ 18.074628] [ 18.074764] Memory state around the buggy address: [ 18.074893] fff00000c6759c80: 00 00 00 00 01 fc fc fc fc fc fc fc fc fc fc fc [ 18.074971] fff00000c6759d00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 18.075213] >fff00000c6759d80: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 18.075378] ^ [ 18.075456] fff00000c6759e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.075574] fff00000c6759e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.075616] ==================================================================
[ 11.084484] ================================================================== [ 11.086187] BUG: KASAN: out-of-bounds in kmalloc_memmove_negative_size+0x171/0x330 [ 11.087494] Read of size 18446744073709551614 at addr ffff888102f66b84 by task kunit_try_catch/199 [ 11.089060] [ 11.089312] CPU: 1 UID: 0 PID: 199 Comm: kunit_try_catch Tainted: G B N 6.15.4-rc3 #1 PREEMPT(voluntary) [ 11.089368] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.089380] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.089403] Call Trace: [ 11.089420] <TASK> [ 11.089443] dump_stack_lvl+0x73/0xb0 [ 11.089476] print_report+0xd1/0x650 [ 11.089500] ? __virt_addr_valid+0x1db/0x2d0 [ 11.089524] ? kmalloc_memmove_negative_size+0x171/0x330 [ 11.089545] ? kasan_complete_mode_report_info+0x2a/0x200 [ 11.089576] ? kmalloc_memmove_negative_size+0x171/0x330 [ 11.089620] kasan_report+0x141/0x180 [ 11.089645] ? kmalloc_memmove_negative_size+0x171/0x330 [ 11.089670] kasan_check_range+0x10c/0x1c0 [ 11.089690] __asan_memmove+0x27/0x70 [ 11.089710] kmalloc_memmove_negative_size+0x171/0x330 [ 11.089730] ? __pfx_kmalloc_memmove_negative_size+0x10/0x10 [ 11.089751] ? __schedule+0x10cc/0x2b60 [ 11.089775] ? __pfx_read_tsc+0x10/0x10 [ 11.089795] ? ktime_get_ts64+0x86/0x230 [ 11.089823] kunit_try_run_case+0x1a5/0x480 [ 11.089850] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.089871] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.089895] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.089929] ? __kthread_parkme+0x82/0x180 [ 11.089953] ? preempt_count_sub+0x50/0x80 [ 11.089979] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.090003] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.090026] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.090049] kthread+0x337/0x6f0 [ 11.090065] ? trace_preempt_on+0x20/0xc0 [ 11.090128] ? __pfx_kthread+0x10/0x10 [ 11.090147] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.090168] ? calculate_sigpending+0x7b/0xa0 [ 11.090202] ? __pfx_kthread+0x10/0x10 [ 11.090220] ret_from_fork+0x41/0x80 [ 11.090241] ? __pfx_kthread+0x10/0x10 [ 11.090259] ret_from_fork_asm+0x1a/0x30 [ 11.090291] </TASK> [ 11.090303] [ 11.105383] Allocated by task 199: [ 11.105547] kasan_save_stack+0x45/0x70 [ 11.105946] kasan_save_track+0x18/0x40 [ 11.106304] kasan_save_alloc_info+0x3b/0x50 [ 11.106839] __kasan_kmalloc+0xb7/0xc0 [ 11.107219] __kmalloc_cache_noprof+0x189/0x420 [ 11.107652] kmalloc_memmove_negative_size+0xac/0x330 [ 11.108156] kunit_try_run_case+0x1a5/0x480 [ 11.108574] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.109123] kthread+0x337/0x6f0 [ 11.109431] ret_from_fork+0x41/0x80 [ 11.109846] ret_from_fork_asm+0x1a/0x30 [ 11.110210] [ 11.110283] The buggy address belongs to the object at ffff888102f66b80 [ 11.110283] which belongs to the cache kmalloc-64 of size 64 [ 11.110801] The buggy address is located 4 bytes inside of [ 11.110801] 64-byte region [ffff888102f66b80, ffff888102f66bc0) [ 11.112047] [ 11.112255] The buggy address belongs to the physical page: [ 11.112912] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102f66 [ 11.113404] flags: 0x200000000000000(node=0|zone=2) [ 11.113584] page_type: f5(slab) [ 11.113758] raw: 0200000000000000 ffff8881000418c0 dead000000000122 0000000000000000 [ 11.114438] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 11.115348] page dumped because: kasan: bad access detected [ 11.116103] [ 11.116311] Memory state around the buggy address: [ 11.116479] ffff888102f66a80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 11.117203] ffff888102f66b00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 11.118249] >ffff888102f66b80: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 11.118724] ^ [ 11.119133] ffff888102f66c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.119744] ffff888102f66c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.120384] ==================================================================