Date
July 22, 2025, 5:13 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 30.428056] ================================================================== [ 30.428374] BUG: KASAN: out-of-bounds in kmalloc_memmove_negative_size+0x154/0x2e0 [ 30.428686] Read of size 18446744073709551614 at addr fff00000c923d004 by task kunit_try_catch/211 [ 30.429083] [ 30.429138] CPU: 1 UID: 0 PID: 211 Comm: kunit_try_catch Tainted: G B W N 6.16.0-rc7-next-20250722 #1 PREEMPT [ 30.429233] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST [ 30.429263] Hardware name: linux,dummy-virt (DT) [ 30.429510] Call trace: [ 30.429562] show_stack+0x20/0x38 (C) [ 30.429711] dump_stack_lvl+0x8c/0xd0 [ 30.429799] print_report+0x118/0x5e8 [ 30.430014] kasan_report+0xdc/0x128 [ 30.430360] kasan_check_range+0x100/0x1a8 [ 30.430452] __asan_memmove+0x3c/0x98 [ 30.430527] kmalloc_memmove_negative_size+0x154/0x2e0 [ 30.430598] kunit_try_run_case+0x170/0x3f0 [ 30.430770] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.431142] kthread+0x328/0x630 [ 30.431213] ret_from_fork+0x10/0x20 [ 30.431360] [ 30.431420] Allocated by task 211: [ 30.431555] kasan_save_stack+0x3c/0x68 [ 30.431652] kasan_save_track+0x20/0x40 [ 30.431994] kasan_save_alloc_info+0x40/0x58 [ 30.432064] __kasan_kmalloc+0xd4/0xd8 [ 30.432147] __kmalloc_cache_noprof+0x16c/0x3c0 [ 30.432268] kmalloc_memmove_negative_size+0xb0/0x2e0 [ 30.432398] kunit_try_run_case+0x170/0x3f0 [ 30.432477] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.432532] kthread+0x328/0x630 [ 30.432773] ret_from_fork+0x10/0x20 [ 30.432852] [ 30.432873] The buggy address belongs to the object at fff00000c923d000 [ 30.432873] which belongs to the cache kmalloc-64 of size 64 [ 30.433331] The buggy address is located 4 bytes inside of [ 30.433331] 64-byte region [fff00000c923d000, fff00000c923d040) [ 30.433461] [ 30.433541] The buggy address belongs to the physical page: [ 30.433716] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10923d [ 30.433905] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 30.434060] page_type: f5(slab) [ 30.434133] raw: 0bfffe0000000000 fff00000c00018c0 dead000000000122 0000000000000000 [ 30.434249] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 30.434338] page dumped because: kasan: bad access detected [ 30.434418] [ 30.434499] Memory state around the buggy address: [ 30.434565] fff00000c923cf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.434642] fff00000c923cf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.434733] >fff00000c923d000: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 30.434778] ^ [ 30.435121] fff00000c923d080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.435212] fff00000c923d100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.435314] ==================================================================
[ 25.300667] ================================================================== [ 25.301324] BUG: KASAN: out-of-bounds in kmalloc_memmove_negative_size+0x171/0x330 [ 25.301871] Read of size 18446744073709551614 at addr ffff88810496f784 by task kunit_try_catch/228 [ 25.302738] [ 25.302999] CPU: 0 UID: 0 PID: 228 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc7-next-20250722 #1 PREEMPT(voluntary) [ 25.303053] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.303066] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.303086] Call Trace: [ 25.303101] <TASK> [ 25.303116] dump_stack_lvl+0x73/0xb0 [ 25.303147] print_report+0xd1/0x640 [ 25.303338] ? __virt_addr_valid+0x1db/0x2d0 [ 25.303372] ? kmalloc_memmove_negative_size+0x171/0x330 [ 25.303399] ? kasan_complete_mode_report_info+0x2a/0x200 [ 25.303426] ? kmalloc_memmove_negative_size+0x171/0x330 [ 25.303474] kasan_report+0x141/0x180 [ 25.303498] ? kmalloc_memmove_negative_size+0x171/0x330 [ 25.303527] kasan_check_range+0x10c/0x1c0 [ 25.303551] __asan_memmove+0x27/0x70 [ 25.303575] kmalloc_memmove_negative_size+0x171/0x330 [ 25.303600] ? __pfx_kmalloc_memmove_negative_size+0x10/0x10 [ 25.303627] ? __pfx_kmalloc_memmove_negative_size+0x10/0x10 [ 25.303656] kunit_try_run_case+0x1a5/0x480 [ 25.303681] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.303704] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 25.303729] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.303754] ? __kthread_parkme+0x82/0x180 [ 25.303773] ? preempt_count_sub+0x50/0x80 [ 25.303796] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.303820] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.303855] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.303879] kthread+0x337/0x6f0 [ 25.303898] ? trace_preempt_on+0x20/0xc0 [ 25.303921] ? __pfx_kthread+0x10/0x10 [ 25.303942] ? _raw_spin_unlock_irq+0x47/0x80 [ 25.303966] ? calculate_sigpending+0x7b/0xa0 [ 25.303989] ? __pfx_kthread+0x10/0x10 [ 25.304010] ret_from_fork+0x116/0x1d0 [ 25.304029] ? __pfx_kthread+0x10/0x10 [ 25.304050] ret_from_fork_asm+0x1a/0x30 [ 25.304080] </TASK> [ 25.304092] [ 25.315887] Allocated by task 228: [ 25.316100] kasan_save_stack+0x45/0x70 [ 25.316399] kasan_save_track+0x18/0x40 [ 25.316839] kasan_save_alloc_info+0x3b/0x50 [ 25.317365] __kasan_kmalloc+0xb7/0xc0 [ 25.317771] __kmalloc_cache_noprof+0x189/0x420 [ 25.318034] kmalloc_memmove_negative_size+0xac/0x330 [ 25.318391] kunit_try_run_case+0x1a5/0x480 [ 25.318777] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.319122] kthread+0x337/0x6f0 [ 25.319380] ret_from_fork+0x116/0x1d0 [ 25.319767] ret_from_fork_asm+0x1a/0x30 [ 25.320018] [ 25.320301] The buggy address belongs to the object at ffff88810496f780 [ 25.320301] which belongs to the cache kmalloc-64 of size 64 [ 25.321004] The buggy address is located 4 bytes inside of [ 25.321004] 64-byte region [ffff88810496f780, ffff88810496f7c0) [ 25.321493] [ 25.321604] The buggy address belongs to the physical page: [ 25.321913] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10496f [ 25.322352] flags: 0x200000000000000(node=0|zone=2) [ 25.322724] page_type: f5(slab) [ 25.322909] raw: 0200000000000000 ffff8881000418c0 dead000000000122 0000000000000000 [ 25.323256] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 25.323666] page dumped because: kasan: bad access detected [ 25.323930] [ 25.324062] Memory state around the buggy address: [ 25.324330] ffff88810496f680: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 25.324763] ffff88810496f700: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 25.325105] >ffff88810496f780: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 25.325432] ^ [ 25.325554] ffff88810496f800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.326046] ffff88810496f880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.326420] ==================================================================