Date
June 19, 2025, 12:07 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 30.637261] ================================================================== [ 30.637837] BUG: KASAN: out-of-bounds in kmalloc_memmove_negative_size+0x154/0x2e0 [ 30.638071] Read of size 18446744073709551614 at addr fff00000c76e3e84 by task kunit_try_catch/191 [ 30.638365] [ 30.638507] CPU: 1 UID: 0 PID: 191 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250619 #1 PREEMPT [ 30.638716] Tainted: [B]=BAD_PAGE, [N]=TEST [ 30.639049] Hardware name: linux,dummy-virt (DT) [ 30.639209] Call trace: [ 30.639279] show_stack+0x20/0x38 (C) [ 30.639401] dump_stack_lvl+0x8c/0xd0 [ 30.639528] print_report+0x118/0x608 [ 30.639667] kasan_report+0xdc/0x128 [ 30.639856] kasan_check_range+0x100/0x1a8 [ 30.640025] __asan_memmove+0x3c/0x98 [ 30.640177] kmalloc_memmove_negative_size+0x154/0x2e0 [ 30.640362] kunit_try_run_case+0x170/0x3f0 [ 30.640533] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.640708] kthread+0x328/0x630 [ 30.640814] ret_from_fork+0x10/0x20 [ 30.640997] [ 30.641069] Allocated by task 191: [ 30.641167] kasan_save_stack+0x3c/0x68 [ 30.641308] kasan_save_track+0x20/0x40 [ 30.641435] kasan_save_alloc_info+0x40/0x58 [ 30.641568] __kasan_kmalloc+0xd4/0xd8 [ 30.641700] __kmalloc_cache_noprof+0x16c/0x3c0 [ 30.641833] kmalloc_memmove_negative_size+0xb0/0x2e0 [ 30.641944] kunit_try_run_case+0x170/0x3f0 [ 30.642031] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.642162] kthread+0x328/0x630 [ 30.642238] ret_from_fork+0x10/0x20 [ 30.642323] [ 30.642369] The buggy address belongs to the object at fff00000c76e3e80 [ 30.642369] which belongs to the cache kmalloc-64 of size 64 [ 30.642524] The buggy address is located 4 bytes inside of [ 30.642524] 64-byte region [fff00000c76e3e80, fff00000c76e3ec0) [ 30.642689] [ 30.642741] The buggy address belongs to the physical page: [ 30.642813] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1076e3 [ 30.642989] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 30.643111] page_type: f5(slab) [ 30.643199] raw: 0bfffe0000000000 fff00000c00018c0 dead000000000122 0000000000000000 [ 30.643325] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 30.643434] page dumped because: kasan: bad access detected [ 30.643520] [ 30.643564] Memory state around the buggy address: [ 30.643642] fff00000c76e3d80: 00 00 00 00 01 fc fc fc fc fc fc fc fc fc fc fc [ 30.643745] fff00000c76e3e00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 30.643827] >fff00000c76e3e80: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 30.643957] ^ [ 30.644029] fff00000c76e3f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.644142] fff00000c76e3f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.644243] ==================================================================
[ 27.115685] ================================================================== [ 27.116286] BUG: KASAN: out-of-bounds in kmalloc_memmove_negative_size+0x171/0x330 [ 27.116986] Read of size 18446744073709551614 at addr ffff8881024d4e84 by task kunit_try_catch/209 [ 27.117531] [ 27.117744] CPU: 1 UID: 0 PID: 209 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc2-next-20250619 #1 PREEMPT(voluntary) [ 27.117852] Tainted: [B]=BAD_PAGE, [N]=TEST [ 27.117876] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 27.117931] Call Trace: [ 27.117961] <TASK> [ 27.117998] dump_stack_lvl+0x73/0xb0 [ 27.118071] print_report+0xd1/0x650 [ 27.118134] ? __virt_addr_valid+0x1db/0x2d0 [ 27.118184] ? kmalloc_memmove_negative_size+0x171/0x330 [ 27.118225] ? kasan_complete_mode_report_info+0x2a/0x200 [ 27.118272] ? kmalloc_memmove_negative_size+0x171/0x330 [ 27.118402] kasan_report+0x141/0x180 [ 27.118449] ? kmalloc_memmove_negative_size+0x171/0x330 [ 27.118515] kasan_check_range+0x10c/0x1c0 [ 27.118561] __asan_memmove+0x27/0x70 [ 27.118608] kmalloc_memmove_negative_size+0x171/0x330 [ 27.118684] ? __pfx_kmalloc_memmove_negative_size+0x10/0x10 [ 27.118749] ? __schedule+0x10cc/0x2b60 [ 27.118801] ? __pfx_read_tsc+0x10/0x10 [ 27.118846] ? ktime_get_ts64+0x86/0x230 [ 27.118899] kunit_try_run_case+0x1a5/0x480 [ 27.118950] ? __pfx_kunit_try_run_case+0x10/0x10 [ 27.119034] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 27.119077] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 27.119138] ? __kthread_parkme+0x82/0x180 [ 27.119179] ? preempt_count_sub+0x50/0x80 [ 27.119221] ? __pfx_kunit_try_run_case+0x10/0x10 [ 27.119267] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 27.119313] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 27.119385] kthread+0x337/0x6f0 [ 27.119427] ? trace_preempt_on+0x20/0xc0 [ 27.119473] ? __pfx_kthread+0x10/0x10 [ 27.119526] ? _raw_spin_unlock_irq+0x47/0x80 [ 27.119565] ? calculate_sigpending+0x7b/0xa0 [ 27.119606] ? __pfx_kthread+0x10/0x10 [ 27.119635] ret_from_fork+0x116/0x1d0 [ 27.119658] ? __pfx_kthread+0x10/0x10 [ 27.119680] ret_from_fork_asm+0x1a/0x30 [ 27.119712] </TASK> [ 27.119726] [ 27.131911] Allocated by task 209: [ 27.132043] kasan_save_stack+0x45/0x70 [ 27.132840] kasan_save_track+0x18/0x40 [ 27.133577] kasan_save_alloc_info+0x3b/0x50 [ 27.134308] __kasan_kmalloc+0xb7/0xc0 [ 27.134680] __kmalloc_cache_noprof+0x189/0x420 [ 27.135350] kmalloc_memmove_negative_size+0xac/0x330 [ 27.135925] kunit_try_run_case+0x1a5/0x480 [ 27.136577] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 27.137305] kthread+0x337/0x6f0 [ 27.137524] ret_from_fork+0x116/0x1d0 [ 27.137873] ret_from_fork_asm+0x1a/0x30 [ 27.138461] [ 27.138914] The buggy address belongs to the object at ffff8881024d4e80 [ 27.138914] which belongs to the cache kmalloc-64 of size 64 [ 27.139713] The buggy address is located 4 bytes inside of [ 27.139713] 64-byte region [ffff8881024d4e80, ffff8881024d4ec0) [ 27.140542] [ 27.140747] The buggy address belongs to the physical page: [ 27.141700] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1024d4 [ 27.142410] flags: 0x200000000000000(node=0|zone=2) [ 27.142773] page_type: f5(slab) [ 27.143542] raw: 0200000000000000 ffff8881000418c0 dead000000000122 0000000000000000 [ 27.143835] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 27.144758] page dumped because: kasan: bad access detected [ 27.145449] [ 27.145996] Memory state around the buggy address: [ 27.146540] ffff8881024d4d80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 27.147148] ffff8881024d4e00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 27.147511] >ffff8881024d4e80: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 27.148279] ^ [ 27.148453] ffff8881024d4f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.149257] ffff8881024d4f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.150203] ==================================================================