Date
May 30, 2025, 4:14 a.m.
Environment | |
---|---|
e850-96 | |
qemu-arm64 | |
qemu-x86_64 | |
x15 |
[ 28.700136] ================================================================== [ 28.709771] BUG: KASAN: out-of-bounds in kmalloc_memmove_negative_size+0x154/0x2e0 [ 28.717322] Read of size 18446744073709551614 at addr ffff000800c2e084 by task kunit_try_catch/224 [ 28.726261] [ 28.727746] CPU: 5 UID: 0 PID: 224 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250530 #1 PREEMPT [ 28.727799] Tainted: [B]=BAD_PAGE, [N]=TEST [ 28.727816] Hardware name: WinLink E850-96 board (DT) [ 28.727835] Call trace: [ 28.727848] show_stack+0x20/0x38 (C) [ 28.727884] dump_stack_lvl+0x8c/0xd0 [ 28.727921] print_report+0x118/0x608 [ 28.727959] kasan_report+0xdc/0x128 [ 28.727991] kasan_check_range+0x100/0x1a8 [ 28.728026] __asan_memmove+0x3c/0x98 [ 28.728056] kmalloc_memmove_negative_size+0x154/0x2e0 [ 28.728092] kunit_try_run_case+0x170/0x3f0 [ 28.728127] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 28.728168] kthread+0x328/0x630 [ 28.728197] ret_from_fork+0x10/0x20 [ 28.728231] [ 28.795357] Allocated by task 224: [ 28.798744] kasan_save_stack+0x3c/0x68 [ 28.802562] kasan_save_track+0x20/0x40 [ 28.806383] kasan_save_alloc_info+0x40/0x58 [ 28.810634] __kasan_kmalloc+0xd4/0xd8 [ 28.814367] __kmalloc_cache_noprof+0x15c/0x3c0 [ 28.818881] kmalloc_memmove_negative_size+0xb0/0x2e0 [ 28.823915] kunit_try_run_case+0x170/0x3f0 [ 28.828082] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 28.833551] kthread+0x328/0x630 [ 28.836762] ret_from_fork+0x10/0x20 [ 28.840321] [ 28.841800] The buggy address belongs to the object at ffff000800c2e080 [ 28.841800] which belongs to the cache kmalloc-64 of size 64 [ 28.854125] The buggy address is located 4 bytes inside of [ 28.854125] 64-byte region [ffff000800c2e080, ffff000800c2e0c0) [ 28.865581] [ 28.867059] The buggy address belongs to the physical page: [ 28.872616] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x880c2e [ 28.880603] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 28.887109] page_type: f5(slab) [ 28.890247] raw: 0bfffe0000000000 ffff0008000028c0 dead000000000122 0000000000000000 [ 28.897966] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 28.905686] page dumped because: kasan: bad access detected [ 28.911242] [ 28.912716] Memory state around the buggy address: [ 28.917496] ffff000800c2df80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.924699] ffff000800c2e000: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 28.931904] >ffff000800c2e080: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 28.939105] ^ [ 28.942320] ffff000800c2e100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.949525] ffff000800c2e180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.956726] ==================================================================
[ 24.949112] ================================================================== [ 24.949350] BUG: KASAN: out-of-bounds in kmalloc_memmove_negative_size+0x154/0x2e0 [ 24.949533] Read of size 18446744073709551614 at addr fff00000c77e7384 by task kunit_try_catch/181 [ 24.949750] [ 24.949842] CPU: 0 UID: 0 PID: 181 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250530 #1 PREEMPT [ 24.950046] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.950111] Hardware name: linux,dummy-virt (DT) [ 24.950189] Call trace: [ 24.950277] show_stack+0x20/0x38 (C) [ 24.950489] dump_stack_lvl+0x8c/0xd0 [ 24.950623] print_report+0x118/0x608 [ 24.950837] kasan_report+0xdc/0x128 [ 24.951279] kasan_check_range+0x100/0x1a8 [ 24.951422] __asan_memmove+0x3c/0x98 [ 24.951530] kmalloc_memmove_negative_size+0x154/0x2e0 [ 24.951648] kunit_try_run_case+0x170/0x3f0 [ 24.952210] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 24.953168] kthread+0x328/0x630 [ 24.953903] ret_from_fork+0x10/0x20 [ 24.954028] [ 24.954073] Allocated by task 181: [ 24.954868] kasan_save_stack+0x3c/0x68 [ 24.955122] kasan_save_track+0x20/0x40 [ 24.955253] kasan_save_alloc_info+0x40/0x58 [ 24.955366] __kasan_kmalloc+0xd4/0xd8 [ 24.955563] __kmalloc_cache_noprof+0x15c/0x3c0 [ 24.955936] kmalloc_memmove_negative_size+0xb0/0x2e0 [ 24.956040] kunit_try_run_case+0x170/0x3f0 [ 24.956518] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 24.957669] kthread+0x328/0x630 [ 24.958375] ret_from_fork+0x10/0x20 [ 24.959180] [ 24.959244] The buggy address belongs to the object at fff00000c77e7380 [ 24.959244] which belongs to the cache kmalloc-64 of size 64 [ 24.959372] The buggy address is located 4 bytes inside of [ 24.959372] 64-byte region [fff00000c77e7380, fff00000c77e73c0) [ 24.959530] [ 24.959582] The buggy address belongs to the physical page: [ 24.959862] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1077e7 [ 24.960401] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 24.960523] page_type: f5(slab) [ 24.960721] raw: 0bfffe0000000000 fff00000c00018c0 dead000000000122 0000000000000000 [ 24.961023] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 24.961146] page dumped because: kasan: bad access detected [ 24.961263] [ 24.961308] Memory state around the buggy address: [ 24.961382] fff00000c77e7280: 00 00 00 00 01 fc fc fc fc fc fc fc fc fc fc fc [ 24.961555] fff00000c77e7300: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 24.961810] >fff00000c77e7380: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 24.961985] ^ [ 24.962076] fff00000c77e7400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.962445] fff00000c77e7480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.962583] ==================================================================
[ 18.430767] ================================================================== [ 18.431814] BUG: KASAN: out-of-bounds in kmalloc_memmove_negative_size+0x171/0x330 [ 18.432579] Read of size 18446744073709551614 at addr ffff8881022c8b84 by task kunit_try_catch/197 [ 18.433347] [ 18.433628] CPU: 1 UID: 0 PID: 197 Comm: kunit_try_catch Tainted: G B N 6.15.0-next-20250530 #1 PREEMPT(voluntary) [ 18.433755] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.433794] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 18.433851] Call Trace: [ 18.433890] <TASK> [ 18.433938] dump_stack_lvl+0x73/0xb0 [ 18.434039] print_report+0xd1/0x650 [ 18.434208] ? __virt_addr_valid+0x1db/0x2d0 [ 18.434297] ? kmalloc_memmove_negative_size+0x171/0x330 [ 18.434376] ? kasan_complete_mode_report_info+0x2a/0x200 [ 18.434447] ? kmalloc_memmove_negative_size+0x171/0x330 [ 18.434558] kasan_report+0x141/0x180 [ 18.434719] ? kmalloc_memmove_negative_size+0x171/0x330 [ 18.434811] kasan_check_range+0x10c/0x1c0 [ 18.434848] __asan_memmove+0x27/0x70 [ 18.434878] kmalloc_memmove_negative_size+0x171/0x330 [ 18.434914] ? __pfx_kmalloc_memmove_negative_size+0x10/0x10 [ 18.434953] ? __pfx_kmalloc_memmove_negative_size+0x10/0x10 [ 18.434997] kunit_try_run_case+0x1a5/0x480 [ 18.435058] ? __pfx_kunit_try_run_case+0x10/0x10 [ 18.435087] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 18.435124] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 18.435159] ? __kthread_parkme+0x82/0x180 [ 18.435229] ? preempt_count_sub+0x50/0x80 [ 18.435296] ? __pfx_kunit_try_run_case+0x10/0x10 [ 18.435326] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 18.435361] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 18.435395] kthread+0x337/0x6f0 [ 18.435421] ? trace_preempt_on+0x20/0xc0 [ 18.435453] ? __pfx_kthread+0x10/0x10 [ 18.435481] ? _raw_spin_unlock_irq+0x47/0x80 [ 18.435513] ? calculate_sigpending+0x7b/0xa0 [ 18.435546] ? __pfx_kthread+0x10/0x10 [ 18.435575] ret_from_fork+0x116/0x1d0 [ 18.435600] ? __pfx_kthread+0x10/0x10 [ 18.435628] ret_from_fork_asm+0x1a/0x30 [ 18.435669] </TASK> [ 18.435683] [ 18.456637] Allocated by task 197: [ 18.457187] kasan_save_stack+0x45/0x70 [ 18.457597] kasan_save_track+0x18/0x40 [ 18.458350] kasan_save_alloc_info+0x3b/0x50 [ 18.458750] __kasan_kmalloc+0xb7/0xc0 [ 18.459884] __kmalloc_cache_noprof+0x189/0x420 [ 18.460445] kmalloc_memmove_negative_size+0xac/0x330 [ 18.461082] kunit_try_run_case+0x1a5/0x480 [ 18.461705] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 18.462430] kthread+0x337/0x6f0 [ 18.462771] ret_from_fork+0x116/0x1d0 [ 18.463151] ret_from_fork_asm+0x1a/0x30 [ 18.463493] [ 18.463730] The buggy address belongs to the object at ffff8881022c8b80 [ 18.463730] which belongs to the cache kmalloc-64 of size 64 [ 18.464701] The buggy address is located 4 bytes inside of [ 18.464701] 64-byte region [ffff8881022c8b80, ffff8881022c8bc0) [ 18.466008] [ 18.466453] The buggy address belongs to the physical page: [ 18.467077] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1022c8 [ 18.467900] flags: 0x200000000000000(node=0|zone=2) [ 18.468544] page_type: f5(slab) [ 18.468985] raw: 0200000000000000 ffff8881000418c0 dead000000000122 0000000000000000 [ 18.469818] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 18.470774] page dumped because: kasan: bad access detected [ 18.471431] [ 18.471692] Memory state around the buggy address: [ 18.472136] ffff8881022c8a80: 00 00 00 00 01 fc fc fc fc fc fc fc fc fc fc fc [ 18.472917] ffff8881022c8b00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 18.473729] >ffff8881022c8b80: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 18.474455] ^ [ 18.474889] ffff8881022c8c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.475921] ffff8881022c8c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.476639] ==================================================================
[ 55.253387] ================================================================== [ 55.264862] BUG: KASAN: out-of-bounds in kmalloc_memmove_negative_size+0x1b4/0x360 [ 55.272491] Read of size 4294967294 at addr cc796f84 by task kunit_try_catch/232 [ 55.279937] [ 55.281433] CPU: 0 UID: 0 PID: 232 Comm: kunit_try_catch Tainted: G B W N 6.15.0-next-20250530 #1 NONE [ 55.281463] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST [ 55.281494] Hardware name: Generic DRA74X (Flattened Device Tree) [ 55.281494] Call trace: [ 55.281494] unwind_backtrace from show_stack+0x18/0x1c [ 55.281524] show_stack from dump_stack_lvl+0x70/0x90 [ 55.281555] dump_stack_lvl from print_report+0x158/0x528 [ 55.281585] print_report from kasan_report+0xdc/0x118 [ 55.281585] kasan_report from kasan_check_range+0x14c/0x198 [ 55.281616] kasan_check_range from __asan_memmove+0x28/0x68 [ 55.281646] __asan_memmove from kmalloc_memmove_negative_size+0x1b4/0x360 [ 55.281677] kmalloc_memmove_negative_size from kunit_try_run_case+0x22c/0x5a8 [ 55.281707] kunit_try_run_case from kunit_generic_run_threadfn_adapter+0xc4/0x128 [ 55.281738] kunit_generic_run_threadfn_adapter from kthread+0x464/0x810 [ 55.281738] kthread from ret_from_fork+0x14/0x20 [ 55.281768] Exception stack(0xf22c3fb0 to 0xf22c3ff8) [ 55.281768] 3fa0: 00000000 00000000 00000000 00000000 [ 55.281799] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 55.281829] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000 [ 55.281829] [ 55.401184] Allocated by task 232: [ 55.404632] kasan_save_track+0x30/0x5c [ 55.408477] __kasan_kmalloc+0x8c/0x94 [ 55.412261] kmalloc_memmove_negative_size+0xd0/0x360 [ 55.417358] kunit_try_run_case+0x22c/0x5a8 [ 55.421569] kunit_generic_run_threadfn_adapter+0xc4/0x128 [ 55.427093] kthread+0x464/0x810 [ 55.430358] ret_from_fork+0x14/0x20 [ 55.433959] [ 55.435455] The buggy address belongs to the object at cc796f80 [ 55.435455] which belongs to the cache kmalloc-64 of size 64 [ 55.447174] The buggy address is located 4 bytes inside of [ 55.447174] 64-byte region [cc796f80, cc796fc0) [ 55.457336] [ 55.458831] The buggy address belongs to the physical page: [ 55.464447] page: refcount:0 mapcount:0 mapping:00000000 index:0x0 pfn:0x8c796 [ 55.471710] flags: 0x0(zone=0) [ 55.474792] page_type: f5(slab) [ 55.477966] raw: 00000000 c7001300 00000122 00000000 00000000 80200020 f5000000 00000000 [ 55.486114] raw: 00000000 [ 55.488739] page dumped because: kasan: bad access detected [ 55.494354] [ 55.495849] Memory state around the buggy address: [ 55.500671] cc796e80: 00 04 fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 55.507232] cc796f00: 00 04 fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 55.513824] >cc796f80: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 55.520385] ^ [ 55.522949] cc797000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 55.529510] cc797080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 55.536071] ==================================================================