Date
July 5, 2025, 11:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 18.113848] ================================================================== [ 18.113916] BUG: KASAN: out-of-bounds in kmalloc_memmove_negative_size+0x154/0x2e0 [ 18.113965] Read of size 18446744073709551614 at addr fff00000c65bea04 by task kunit_try_catch/180 [ 18.114041] [ 18.114072] CPU: 0 UID: 0 PID: 180 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT [ 18.114164] Tainted: [B]=BAD_PAGE, [N]=TEST [ 18.114189] Hardware name: linux,dummy-virt (DT) [ 18.114219] Call trace: [ 18.114241] show_stack+0x20/0x38 (C) [ 18.114288] dump_stack_lvl+0x8c/0xd0 [ 18.114332] print_report+0x118/0x608 [ 18.114386] kasan_report+0xdc/0x128 [ 18.114431] kasan_check_range+0x100/0x1a8 [ 18.114486] __asan_memmove+0x3c/0x98 [ 18.114528] kmalloc_memmove_negative_size+0x154/0x2e0 [ 18.114581] kunit_try_run_case+0x170/0x3f0 [ 18.114626] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.114683] kthread+0x328/0x630 [ 18.114732] ret_from_fork+0x10/0x20 [ 18.114777] [ 18.114796] Allocated by task 180: [ 18.114822] kasan_save_stack+0x3c/0x68 [ 18.114860] kasan_save_track+0x20/0x40 [ 18.114896] kasan_save_alloc_info+0x40/0x58 [ 18.114934] __kasan_kmalloc+0xd4/0xd8 [ 18.114970] __kmalloc_cache_noprof+0x16c/0x3c0 [ 18.115211] kmalloc_memmove_negative_size+0xb0/0x2e0 [ 18.115254] kunit_try_run_case+0x170/0x3f0 [ 18.115294] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 18.115335] kthread+0x328/0x630 [ 18.115367] ret_from_fork+0x10/0x20 [ 18.115403] [ 18.115423] The buggy address belongs to the object at fff00000c65bea00 [ 18.115423] which belongs to the cache kmalloc-64 of size 64 [ 18.115862] The buggy address is located 4 bytes inside of [ 18.115862] 64-byte region [fff00000c65bea00, fff00000c65bea40) [ 18.116007] [ 18.116121] The buggy address belongs to the physical page: [ 18.116250] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1065be [ 18.116378] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 18.116456] page_type: f5(slab) [ 18.116493] raw: 0bfffe0000000000 fff00000c00018c0 dead000000000122 0000000000000000 [ 18.116542] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 18.116678] page dumped because: kasan: bad access detected [ 18.116714] [ 18.116907] Memory state around the buggy address: [ 18.117079] fff00000c65be900: 00 00 00 00 01 fc fc fc fc fc fc fc fc fc fc fc [ 18.117258] fff00000c65be980: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 18.117440] >fff00000c65bea00: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 18.117525] ^ [ 18.117554] fff00000c65bea80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.117595] fff00000c65beb00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 18.117635] ==================================================================
[ 13.777475] ================================================================== [ 13.778560] BUG: KASAN: out-of-bounds in kmalloc_memmove_negative_size+0x171/0x330 [ 13.778988] Read of size 18446744073709551614 at addr ffff8881029fb104 by task kunit_try_catch/198 [ 13.779540] [ 13.779660] CPU: 1 UID: 0 PID: 198 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4 #1 PREEMPT(voluntary) [ 13.779716] Tainted: [B]=BAD_PAGE, [N]=TEST [ 13.779731] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 13.779756] Call Trace: [ 13.779772] <TASK> [ 13.779808] dump_stack_lvl+0x73/0xb0 [ 13.779860] print_report+0xd1/0x650 [ 13.779887] ? __virt_addr_valid+0x1db/0x2d0 [ 13.779914] ? kmalloc_memmove_negative_size+0x171/0x330 [ 13.779942] ? kasan_complete_mode_report_info+0x2a/0x200 [ 13.779966] ? kmalloc_memmove_negative_size+0x171/0x330 [ 13.780016] kasan_report+0x141/0x180 [ 13.780042] ? kmalloc_memmove_negative_size+0x171/0x330 [ 13.780101] kasan_check_range+0x10c/0x1c0 [ 13.780390] __asan_memmove+0x27/0x70 [ 13.780423] kmalloc_memmove_negative_size+0x171/0x330 [ 13.780451] ? __pfx_kmalloc_memmove_negative_size+0x10/0x10 [ 13.780480] ? __schedule+0x10cc/0x2b60 [ 13.780507] ? __pfx_read_tsc+0x10/0x10 [ 13.780530] ? ktime_get_ts64+0x86/0x230 [ 13.780557] kunit_try_run_case+0x1a5/0x480 [ 13.780586] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.780610] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 13.780638] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 13.780664] ? __kthread_parkme+0x82/0x180 [ 13.780688] ? preempt_count_sub+0x50/0x80 [ 13.780715] ? __pfx_kunit_try_run_case+0x10/0x10 [ 13.780742] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.780767] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 13.780818] kthread+0x337/0x6f0 [ 13.780840] ? trace_preempt_on+0x20/0xc0 [ 13.780867] ? __pfx_kthread+0x10/0x10 [ 13.780890] ? _raw_spin_unlock_irq+0x47/0x80 [ 13.780914] ? calculate_sigpending+0x7b/0xa0 [ 13.780940] ? __pfx_kthread+0x10/0x10 [ 13.780964] ret_from_fork+0x116/0x1d0 [ 13.780985] ? __pfx_kthread+0x10/0x10 [ 13.781007] ret_from_fork_asm+0x1a/0x30 [ 13.781041] </TASK> [ 13.781056] [ 13.789737] Allocated by task 198: [ 13.789935] kasan_save_stack+0x45/0x70 [ 13.790204] kasan_save_track+0x18/0x40 [ 13.790444] kasan_save_alloc_info+0x3b/0x50 [ 13.790684] __kasan_kmalloc+0xb7/0xc0 [ 13.790911] __kmalloc_cache_noprof+0x189/0x420 [ 13.791214] kmalloc_memmove_negative_size+0xac/0x330 [ 13.791412] kunit_try_run_case+0x1a5/0x480 [ 13.791577] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 13.791785] kthread+0x337/0x6f0 [ 13.791984] ret_from_fork+0x116/0x1d0 [ 13.792410] ret_from_fork_asm+0x1a/0x30 [ 13.792644] [ 13.792753] The buggy address belongs to the object at ffff8881029fb100 [ 13.792753] which belongs to the cache kmalloc-64 of size 64 [ 13.793451] The buggy address is located 4 bytes inside of [ 13.793451] 64-byte region [ffff8881029fb100, ffff8881029fb140) [ 13.794029] [ 13.794150] The buggy address belongs to the physical page: [ 13.794410] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1029fb [ 13.794743] flags: 0x200000000000000(node=0|zone=2) [ 13.794943] page_type: f5(slab) [ 13.795128] raw: 0200000000000000 ffff8881000418c0 dead000000000122 0000000000000000 [ 13.795521] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 13.795969] page dumped because: kasan: bad access detected [ 13.796436] [ 13.796526] Memory state around the buggy address: [ 13.796804] ffff8881029fb000: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 13.797264] ffff8881029fb080: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 13.797614] >ffff8881029fb100: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 13.797904] ^ [ 13.798036] ffff8881029fb180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.798484] ffff8881029fb200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 13.798853] ==================================================================