Date
July 4, 2025, 11:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 29.636000] ================================================================== [ 29.636066] BUG: KASAN: out-of-bounds in kmalloc_memmove_negative_size+0x154/0x2e0 [ 29.636118] Read of size 18446744073709551614 at addr fff00000c9b70584 by task kunit_try_catch/213 [ 29.636479] [ 29.636561] CPU: 0 UID: 0 PID: 213 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4-next-20250704 #1 PREEMPT [ 29.636650] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.636676] Hardware name: linux,dummy-virt (DT) [ 29.636707] Call trace: [ 29.636729] show_stack+0x20/0x38 (C) [ 29.636783] dump_stack_lvl+0x8c/0xd0 [ 29.637073] print_report+0x118/0x608 [ 29.637131] kasan_report+0xdc/0x128 [ 29.637177] kasan_check_range+0x100/0x1a8 [ 29.637222] __asan_memmove+0x3c/0x98 [ 29.637264] kmalloc_memmove_negative_size+0x154/0x2e0 [ 29.637351] kunit_try_run_case+0x170/0x3f0 [ 29.637400] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.637455] kthread+0x328/0x630 [ 29.637497] ret_from_fork+0x10/0x20 [ 29.637591] [ 29.637640] Allocated by task 213: [ 29.637668] kasan_save_stack+0x3c/0x68 [ 29.637710] kasan_save_track+0x20/0x40 [ 29.637749] kasan_save_alloc_info+0x40/0x58 [ 29.637785] __kasan_kmalloc+0xd4/0xd8 [ 29.637823] __kmalloc_cache_noprof+0x16c/0x3c0 [ 29.637947] kmalloc_memmove_negative_size+0xb0/0x2e0 [ 29.638178] kunit_try_run_case+0x170/0x3f0 [ 29.638417] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.638465] kthread+0x328/0x630 [ 29.638498] ret_from_fork+0x10/0x20 [ 29.638558] [ 29.638577] The buggy address belongs to the object at fff00000c9b70580 [ 29.638577] which belongs to the cache kmalloc-64 of size 64 [ 29.638672] The buggy address is located 4 bytes inside of [ 29.638672] 64-byte region [fff00000c9b70580, fff00000c9b705c0) [ 29.638731] [ 29.638751] The buggy address belongs to the physical page: [ 29.638783] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109b70 [ 29.638836] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 29.639010] page_type: f5(slab) [ 29.639147] raw: 0bfffe0000000000 fff00000c00018c0 dead000000000122 0000000000000000 [ 29.639224] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 29.639338] page dumped because: kasan: bad access detected [ 29.639421] [ 29.639441] Memory state around the buggy address: [ 29.639477] fff00000c9b70480: 00 00 00 00 01 fc fc fc fc fc fc fc fc fc fc fc [ 29.639560] fff00000c9b70500: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 29.639603] >fff00000c9b70580: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 29.639660] ^ [ 29.639690] fff00000c9b70600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.639732] fff00000c9b70680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.639884] ==================================================================
[ 25.102975] ================================================================== [ 25.104427] BUG: KASAN: out-of-bounds in kmalloc_memmove_negative_size+0x171/0x330 [ 25.105297] Read of size 18446744073709551614 at addr ffff888105aaa684 by task kunit_try_catch/229 [ 25.105885] [ 25.105991] CPU: 0 UID: 0 PID: 229 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4-next-20250704 #1 PREEMPT(voluntary) [ 25.106051] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.106066] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.106091] Call Trace: [ 25.106108] <TASK> [ 25.106131] dump_stack_lvl+0x73/0xb0 [ 25.106179] print_report+0xd1/0x650 [ 25.106207] ? __virt_addr_valid+0x1db/0x2d0 [ 25.106235] ? kmalloc_memmove_negative_size+0x171/0x330 [ 25.106263] ? kasan_complete_mode_report_info+0x2a/0x200 [ 25.106292] ? kmalloc_memmove_negative_size+0x171/0x330 [ 25.106341] kasan_report+0x141/0x180 [ 25.106366] ? kmalloc_memmove_negative_size+0x171/0x330 [ 25.106411] kasan_check_range+0x10c/0x1c0 [ 25.106437] __asan_memmove+0x27/0x70 [ 25.106463] kmalloc_memmove_negative_size+0x171/0x330 [ 25.106490] ? __pfx_kmalloc_memmove_negative_size+0x10/0x10 [ 25.106517] ? __schedule+0x10cc/0x2b60 [ 25.106547] ? __pfx_read_tsc+0x10/0x10 [ 25.106573] ? ktime_get_ts64+0x86/0x230 [ 25.106603] kunit_try_run_case+0x1a5/0x480 [ 25.106635] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.106663] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 25.106690] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.106717] ? __kthread_parkme+0x82/0x180 [ 25.106741] ? preempt_count_sub+0x50/0x80 [ 25.106768] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.106796] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.106825] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.106853] kthread+0x337/0x6f0 [ 25.106875] ? trace_preempt_on+0x20/0xc0 [ 25.106904] ? __pfx_kthread+0x10/0x10 [ 25.106928] ? _raw_spin_unlock_irq+0x47/0x80 [ 25.106954] ? calculate_sigpending+0x7b/0xa0 [ 25.106982] ? __pfx_kthread+0x10/0x10 [ 25.107006] ret_from_fork+0x116/0x1d0 [ 25.107028] ? __pfx_kthread+0x10/0x10 [ 25.107052] ret_from_fork_asm+0x1a/0x30 [ 25.107088] </TASK> [ 25.107103] [ 25.122269] Allocated by task 229: [ 25.122762] kasan_save_stack+0x45/0x70 [ 25.123221] kasan_save_track+0x18/0x40 [ 25.123654] kasan_save_alloc_info+0x3b/0x50 [ 25.124115] __kasan_kmalloc+0xb7/0xc0 [ 25.124519] __kmalloc_cache_noprof+0x189/0x420 [ 25.124690] kmalloc_memmove_negative_size+0xac/0x330 [ 25.124865] kunit_try_run_case+0x1a5/0x480 [ 25.125427] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.125968] kthread+0x337/0x6f0 [ 25.126309] ret_from_fork+0x116/0x1d0 [ 25.126719] ret_from_fork_asm+0x1a/0x30 [ 25.127115] [ 25.127332] The buggy address belongs to the object at ffff888105aaa680 [ 25.127332] which belongs to the cache kmalloc-64 of size 64 [ 25.127882] The buggy address is located 4 bytes inside of [ 25.127882] 64-byte region [ffff888105aaa680, ffff888105aaa6c0) [ 25.128250] [ 25.128329] The buggy address belongs to the physical page: [ 25.128896] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105aaa [ 25.129821] flags: 0x200000000000000(node=0|zone=2) [ 25.130357] page_type: f5(slab) [ 25.130680] raw: 0200000000000000 ffff8881000418c0 dead000000000122 0000000000000000 [ 25.131098] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 25.131913] page dumped because: kasan: bad access detected [ 25.132450] [ 25.132610] Memory state around the buggy address: [ 25.132835] ffff888105aaa580: 00 00 00 00 01 fc fc fc fc fc fc fc fc fc fc fc [ 25.133617] ffff888105aaa600: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 25.134059] >ffff888105aaa680: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 25.134588] ^ [ 25.134890] ffff888105aaa700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.135564] ffff888105aaa780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.136031] ==================================================================