Date
July 18, 2025, 1:09 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 31.603338] ================================================================== [ 31.603484] BUG: KASAN: out-of-bounds in kmalloc_memmove_negative_size+0x154/0x2e0 [ 31.603544] Read of size 18446744073709551614 at addr fff00000c9aa9d84 by task kunit_try_catch/211 [ 31.603675] [ 31.603741] CPU: 0 UID: 0 PID: 211 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250718 #1 PREEMPT [ 31.604089] Tainted: [B]=BAD_PAGE, [N]=TEST [ 31.604129] Hardware name: linux,dummy-virt (DT) [ 31.604289] Call trace: [ 31.604347] show_stack+0x20/0x38 (C) [ 31.604468] dump_stack_lvl+0x8c/0xd0 [ 31.604547] print_report+0x118/0x5e8 [ 31.604724] kasan_report+0xdc/0x128 [ 31.604818] kasan_check_range+0x100/0x1a8 [ 31.604963] __asan_memmove+0x3c/0x98 [ 31.605041] kmalloc_memmove_negative_size+0x154/0x2e0 [ 31.605465] kunit_try_run_case+0x170/0x3f0 [ 31.605536] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.605930] kthread+0x328/0x630 [ 31.606055] ret_from_fork+0x10/0x20 [ 31.606213] [ 31.606277] Allocated by task 211: [ 31.606348] kasan_save_stack+0x3c/0x68 [ 31.606475] kasan_save_track+0x20/0x40 [ 31.606561] kasan_save_alloc_info+0x40/0x58 [ 31.606921] __kasan_kmalloc+0xd4/0xd8 [ 31.607033] __kmalloc_cache_noprof+0x16c/0x3c0 [ 31.607121] kmalloc_memmove_negative_size+0xb0/0x2e0 [ 31.607288] kunit_try_run_case+0x170/0x3f0 [ 31.607377] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.607514] kthread+0x328/0x630 [ 31.607579] ret_from_fork+0x10/0x20 [ 31.607869] [ 31.607933] The buggy address belongs to the object at fff00000c9aa9d80 [ 31.607933] which belongs to the cache kmalloc-64 of size 64 [ 31.608098] The buggy address is located 4 bytes inside of [ 31.608098] 64-byte region [fff00000c9aa9d80, fff00000c9aa9dc0) [ 31.608214] [ 31.608305] The buggy address belongs to the physical page: [ 31.608374] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109aa9 [ 31.608533] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 31.608610] page_type: f5(slab) [ 31.608647] raw: 0bfffe0000000000 fff00000c00018c0 dead000000000122 0000000000000000 [ 31.609117] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 31.609194] page dumped because: kasan: bad access detected [ 31.609329] [ 31.609388] Memory state around the buggy address: [ 31.609501] fff00000c9aa9c80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 31.609567] fff00000c9aa9d00: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 31.609615] >fff00000c9aa9d80: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 31.609728] ^ [ 31.609787] fff00000c9aa9e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.609848] fff00000c9aa9e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.610096] ==================================================================
[ 25.014172] ================================================================== [ 25.014731] BUG: KASAN: out-of-bounds in kmalloc_memmove_negative_size+0x171/0x330 [ 25.015711] Read of size 18446744073709551614 at addr ffff888102b42584 by task kunit_try_catch/228 [ 25.016269] [ 25.016377] CPU: 1 UID: 0 PID: 228 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250718 #1 PREEMPT(voluntary) [ 25.016426] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.016437] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.016459] Call Trace: [ 25.016470] <TASK> [ 25.016487] dump_stack_lvl+0x73/0xb0 [ 25.016519] print_report+0xd1/0x640 [ 25.016541] ? __virt_addr_valid+0x1db/0x2d0 [ 25.016564] ? kmalloc_memmove_negative_size+0x171/0x330 [ 25.016587] ? kasan_complete_mode_report_info+0x2a/0x200 [ 25.016612] ? kmalloc_memmove_negative_size+0x171/0x330 [ 25.016655] kasan_report+0x141/0x180 [ 25.016677] ? kmalloc_memmove_negative_size+0x171/0x330 [ 25.016704] kasan_check_range+0x10c/0x1c0 [ 25.016727] __asan_memmove+0x27/0x70 [ 25.016749] kmalloc_memmove_negative_size+0x171/0x330 [ 25.016774] ? __pfx_kmalloc_memmove_negative_size+0x10/0x10 [ 25.016872] ? __schedule+0x10da/0x2b60 [ 25.016900] ? __pfx_read_tsc+0x10/0x10 [ 25.016922] ? ktime_get_ts64+0x86/0x230 [ 25.016946] kunit_try_run_case+0x1a5/0x480 [ 25.016970] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.016991] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 25.017024] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.017056] ? __kthread_parkme+0x82/0x180 [ 25.017076] ? preempt_count_sub+0x50/0x80 [ 25.017098] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.017121] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.017143] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.017165] kthread+0x337/0x6f0 [ 25.017184] ? trace_preempt_on+0x20/0xc0 [ 25.017220] ? __pfx_kthread+0x10/0x10 [ 25.017240] ? _raw_spin_unlock_irq+0x47/0x80 [ 25.017269] ? calculate_sigpending+0x7b/0xa0 [ 25.017293] ? __pfx_kthread+0x10/0x10 [ 25.017313] ret_from_fork+0x116/0x1d0 [ 25.017331] ? __pfx_kthread+0x10/0x10 [ 25.017350] ret_from_fork_asm+0x1a/0x30 [ 25.017380] </TASK> [ 25.017391] [ 25.024653] Allocated by task 228: [ 25.024781] kasan_save_stack+0x45/0x70 [ 25.024987] kasan_save_track+0x18/0x40 [ 25.025384] kasan_save_alloc_info+0x3b/0x50 [ 25.025570] __kasan_kmalloc+0xb7/0xc0 [ 25.025698] __kmalloc_cache_noprof+0x189/0x420 [ 25.026053] kmalloc_memmove_negative_size+0xac/0x330 [ 25.026303] kunit_try_run_case+0x1a5/0x480 [ 25.026506] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.026729] kthread+0x337/0x6f0 [ 25.026867] ret_from_fork+0x116/0x1d0 [ 25.027042] ret_from_fork_asm+0x1a/0x30 [ 25.027299] [ 25.027376] The buggy address belongs to the object at ffff888102b42580 [ 25.027376] which belongs to the cache kmalloc-64 of size 64 [ 25.028080] The buggy address is located 4 bytes inside of [ 25.028080] 64-byte region [ffff888102b42580, ffff888102b425c0) [ 25.028500] [ 25.028600] The buggy address belongs to the physical page: [ 25.028848] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b42 [ 25.029282] flags: 0x200000000000000(node=0|zone=2) [ 25.029510] page_type: f5(slab) [ 25.029672] raw: 0200000000000000 ffff8881000418c0 dead000000000122 0000000000000000 [ 25.029951] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 25.030253] page dumped because: kasan: bad access detected [ 25.030466] [ 25.030554] Memory state around the buggy address: [ 25.030742] ffff888102b42480: 00 00 00 00 01 fc fc fc fc fc fc fc fc fc fc fc [ 25.031022] ffff888102b42500: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 25.031393] >ffff888102b42580: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 25.031605] ^ [ 25.031715] ffff888102b42600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.031923] ffff888102b42680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.032128] ==================================================================