Date
July 22, 2025, 2:40 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 17.301458] ================================================================== [ 17.301528] BUG: KASAN: out-of-bounds in kmalloc_memmove_negative_size+0x154/0x2e0 [ 17.301870] Read of size 18446744073709551614 at addr fff00000c3e99a04 by task kunit_try_catch/182 [ 17.302216] [ 17.302258] CPU: 0 UID: 0 PID: 182 Comm: kunit_try_catch Tainted: G B N 6.15.8-rc1 #1 PREEMPT [ 17.302387] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.302413] Hardware name: linux,dummy-virt (DT) [ 17.302463] Call trace: [ 17.302503] show_stack+0x20/0x38 (C) [ 17.302595] dump_stack_lvl+0x8c/0xd0 [ 17.302664] print_report+0x118/0x5d0 [ 17.302708] kasan_report+0xdc/0x128 [ 17.302813] kasan_check_range+0x100/0x1a8 [ 17.302878] __asan_memmove+0x3c/0x98 [ 17.303117] kmalloc_memmove_negative_size+0x154/0x2e0 [ 17.303384] kunit_try_run_case+0x170/0x3f0 [ 17.303489] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.303581] kthread+0x328/0x630 [ 17.303891] ret_from_fork+0x10/0x20 [ 17.304071] [ 17.304131] Allocated by task 182: [ 17.305144] kasan_save_stack+0x3c/0x68 [ 17.305193] kasan_save_track+0x20/0x40 [ 17.305243] kasan_save_alloc_info+0x40/0x58 [ 17.305301] __kasan_kmalloc+0xd4/0xd8 [ 17.305339] __kmalloc_cache_noprof+0x16c/0x3c0 [ 17.305380] kmalloc_memmove_negative_size+0xb0/0x2e0 [ 17.305443] kunit_try_run_case+0x170/0x3f0 [ 17.305482] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.305550] kthread+0x328/0x630 [ 17.305586] ret_from_fork+0x10/0x20 [ 17.305633] [ 17.305662] The buggy address belongs to the object at fff00000c3e99a00 [ 17.305662] which belongs to the cache kmalloc-64 of size 64 [ 17.305720] The buggy address is located 4 bytes inside of [ 17.305720] 64-byte region [fff00000c3e99a00, fff00000c3e99a40) [ 17.305791] [ 17.305812] The buggy address belongs to the physical page: [ 17.305843] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103e99 [ 17.305914] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 17.305963] page_type: f5(slab) [ 17.306016] raw: 0bfffe0000000000 fff00000c00018c0 dead000000000122 0000000000000000 [ 17.306065] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 17.306104] page dumped because: kasan: bad access detected [ 17.306138] [ 17.306156] Memory state around the buggy address: [ 17.306197] fff00000c3e99900: 00 00 00 00 01 fc fc fc fc fc fc fc fc fc fc fc [ 17.306240] fff00000c3e99980: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 17.307115] >fff00000c3e99a00: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 17.307182] ^ [ 17.307223] fff00000c3e99a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.307274] fff00000c3e99b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.307351] ==================================================================
[ 11.281301] ================================================================== [ 11.282511] BUG: KASAN: out-of-bounds in kmalloc_memmove_negative_size+0x171/0x330 [ 11.282989] Read of size 18446744073709551614 at addr ffff888103075d84 by task kunit_try_catch/200 [ 11.283319] [ 11.283552] CPU: 0 UID: 0 PID: 200 Comm: kunit_try_catch Tainted: G B N 6.15.8-rc1 #1 PREEMPT(voluntary) [ 11.283616] Tainted: [B]=BAD_PAGE, [N]=TEST [ 11.283628] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 11.283657] Call Trace: [ 11.283670] <TASK> [ 11.283689] dump_stack_lvl+0x73/0xb0 [ 11.283741] print_report+0xd1/0x610 [ 11.283764] ? __virt_addr_valid+0x1db/0x2d0 [ 11.283799] ? kmalloc_memmove_negative_size+0x171/0x330 [ 11.283819] ? kasan_complete_mode_report_info+0x2a/0x200 [ 11.283841] ? kmalloc_memmove_negative_size+0x171/0x330 [ 11.283905] kasan_report+0x141/0x180 [ 11.283928] ? kmalloc_memmove_negative_size+0x171/0x330 [ 11.283953] kasan_check_range+0x10c/0x1c0 [ 11.283983] __asan_memmove+0x27/0x70 [ 11.284004] kmalloc_memmove_negative_size+0x171/0x330 [ 11.284026] ? __pfx_kmalloc_memmove_negative_size+0x10/0x10 [ 11.284060] ? __schedule+0x10c6/0x2b60 [ 11.284084] ? __pfx_read_tsc+0x10/0x10 [ 11.284105] ? ktime_get_ts64+0x86/0x230 [ 11.284131] kunit_try_run_case+0x1a5/0x480 [ 11.284154] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.284172] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 11.284193] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 11.284216] ? __kthread_parkme+0x82/0x180 [ 11.284246] ? preempt_count_sub+0x50/0x80 [ 11.284272] ? __pfx_kunit_try_run_case+0x10/0x10 [ 11.284291] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.284313] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 11.284335] kthread+0x337/0x6f0 [ 11.284370] ? trace_preempt_on+0x20/0xc0 [ 11.284403] ? __pfx_kthread+0x10/0x10 [ 11.284420] ? _raw_spin_unlock_irq+0x47/0x80 [ 11.284441] ? calculate_sigpending+0x7b/0xa0 [ 11.284473] ? __pfx_kthread+0x10/0x10 [ 11.284490] ret_from_fork+0x41/0x80 [ 11.284511] ? __pfx_kthread+0x10/0x10 [ 11.284528] ret_from_fork_asm+0x1a/0x30 [ 11.284559] </TASK> [ 11.284570] [ 11.296588] Allocated by task 200: [ 11.296827] kasan_save_stack+0x45/0x70 [ 11.297196] kasan_save_track+0x18/0x40 [ 11.297609] kasan_save_alloc_info+0x3b/0x50 [ 11.298169] __kasan_kmalloc+0xb7/0xc0 [ 11.298564] __kmalloc_cache_noprof+0x189/0x420 [ 11.299032] kmalloc_memmove_negative_size+0xac/0x330 [ 11.299249] kunit_try_run_case+0x1a5/0x480 [ 11.299433] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 11.299984] kthread+0x337/0x6f0 [ 11.300318] ret_from_fork+0x41/0x80 [ 11.300699] ret_from_fork_asm+0x1a/0x30 [ 11.301052] [ 11.301125] The buggy address belongs to the object at ffff888103075d80 [ 11.301125] which belongs to the cache kmalloc-64 of size 64 [ 11.301609] The buggy address is located 4 bytes inside of [ 11.301609] 64-byte region [ffff888103075d80, ffff888103075dc0) [ 11.302662] [ 11.302820] The buggy address belongs to the physical page: [ 11.303566] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103075 [ 11.304350] flags: 0x200000000000000(node=0|zone=2) [ 11.304615] page_type: f5(slab) [ 11.304740] raw: 0200000000000000 ffff8881000418c0 dead000000000122 0000000000000000 [ 11.304976] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 11.305200] page dumped because: kasan: bad access detected [ 11.305765] [ 11.305982] Memory state around the buggy address: [ 11.306427] ffff888103075c80: 00 00 00 00 01 fc fc fc fc fc fc fc fc fc fc fc [ 11.307260] ffff888103075d00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 11.308043] >ffff888103075d80: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 11.308805] ^ [ 11.309360] ffff888103075e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.309792] ffff888103075e80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 11.310428] ==================================================================