Date
July 17, 2025, 10:12 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 29.630304] ================================================================== [ 29.630406] BUG: KASAN: out-of-bounds in kmalloc_memmove_negative_size+0x154/0x2e0 [ 29.630631] Read of size 18446744073709551614 at addr fff00000c9b1c484 by task kunit_try_catch/211 [ 29.630730] [ 29.630925] CPU: 1 UID: 0 PID: 211 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250717 #1 PREEMPT [ 29.631029] Tainted: [B]=BAD_PAGE, [N]=TEST [ 29.631128] Hardware name: linux,dummy-virt (DT) [ 29.631163] Call trace: [ 29.631193] show_stack+0x20/0x38 (C) [ 29.631246] dump_stack_lvl+0x8c/0xd0 [ 29.631390] print_report+0x118/0x5d0 [ 29.631441] kasan_report+0xdc/0x128 [ 29.631484] kasan_check_range+0x100/0x1a8 [ 29.631538] __asan_memmove+0x3c/0x98 [ 29.631581] kmalloc_memmove_negative_size+0x154/0x2e0 [ 29.631634] kunit_try_run_case+0x170/0x3f0 [ 29.631941] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.632073] kthread+0x328/0x630 [ 29.632118] ret_from_fork+0x10/0x20 [ 29.632312] [ 29.632405] Allocated by task 211: [ 29.632696] kasan_save_stack+0x3c/0x68 [ 29.632860] kasan_save_track+0x20/0x40 [ 29.632941] kasan_save_alloc_info+0x40/0x58 [ 29.633131] __kasan_kmalloc+0xd4/0xd8 [ 29.633242] __kmalloc_cache_noprof+0x16c/0x3c0 [ 29.633355] kmalloc_memmove_negative_size+0xb0/0x2e0 [ 29.633402] kunit_try_run_case+0x170/0x3f0 [ 29.633450] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 29.633783] kthread+0x328/0x630 [ 29.633963] ret_from_fork+0x10/0x20 [ 29.634048] [ 29.634179] The buggy address belongs to the object at fff00000c9b1c480 [ 29.634179] which belongs to the cache kmalloc-64 of size 64 [ 29.634415] The buggy address is located 4 bytes inside of [ 29.634415] 64-byte region [fff00000c9b1c480, fff00000c9b1c4c0) [ 29.634637] [ 29.634716] The buggy address belongs to the physical page: [ 29.634857] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109b1c [ 29.634952] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 29.635094] page_type: f5(slab) [ 29.635211] raw: 0bfffe0000000000 fff00000c00018c0 dead000000000122 0000000000000000 [ 29.635289] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 29.635716] page dumped because: kasan: bad access detected [ 29.635788] [ 29.635882] Memory state around the buggy address: [ 29.635973] fff00000c9b1c380: 00 00 00 00 01 fc fc fc fc fc fc fc fc fc fc fc [ 29.636046] fff00000c9b1c400: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 29.636202] >fff00000c9b1c480: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 29.636268] ^ [ 29.636410] fff00000c9b1c500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.636595] fff00000c9b1c580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 29.636675] ==================================================================
[ 25.849854] ================================================================== [ 25.850326] BUG: KASAN: out-of-bounds in kmalloc_memmove_negative_size+0x171/0x330 [ 25.850618] Read of size 18446744073709551614 at addr ffff888106086384 by task kunit_try_catch/229 [ 25.851393] [ 25.851510] CPU: 1 UID: 0 PID: 229 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250717 #1 PREEMPT(voluntary) [ 25.851559] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.851570] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.851590] Call Trace: [ 25.851602] <TASK> [ 25.851615] dump_stack_lvl+0x73/0xb0 [ 25.851645] print_report+0xd1/0x610 [ 25.851666] ? __virt_addr_valid+0x1db/0x2d0 [ 25.851688] ? kmalloc_memmove_negative_size+0x171/0x330 [ 25.851711] ? kasan_complete_mode_report_info+0x2a/0x200 [ 25.851737] ? kmalloc_memmove_negative_size+0x171/0x330 [ 25.851781] kasan_report+0x141/0x180 [ 25.851802] ? kmalloc_memmove_negative_size+0x171/0x330 [ 25.851831] kasan_check_range+0x10c/0x1c0 [ 25.851853] __asan_memmove+0x27/0x70 [ 25.851876] kmalloc_memmove_negative_size+0x171/0x330 [ 25.851899] ? __pfx_kmalloc_memmove_negative_size+0x10/0x10 [ 25.851923] ? __schedule+0x10c6/0x2b60 [ 25.851945] ? __pfx_read_tsc+0x10/0x10 [ 25.851965] ? ktime_get_ts64+0x86/0x230 [ 25.851988] kunit_try_run_case+0x1a5/0x480 [ 25.852011] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.852032] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 25.852053] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.852075] ? __kthread_parkme+0x82/0x180 [ 25.852114] ? preempt_count_sub+0x50/0x80 [ 25.852137] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.852159] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.852180] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.852202] kthread+0x337/0x6f0 [ 25.852220] ? trace_preempt_on+0x20/0xc0 [ 25.852244] ? __pfx_kthread+0x10/0x10 [ 25.852317] ? _raw_spin_unlock_irq+0x47/0x80 [ 25.852340] ? calculate_sigpending+0x7b/0xa0 [ 25.852362] ? __pfx_kthread+0x10/0x10 [ 25.852383] ret_from_fork+0x116/0x1d0 [ 25.852401] ? __pfx_kthread+0x10/0x10 [ 25.852421] ret_from_fork_asm+0x1a/0x30 [ 25.852452] </TASK> [ 25.852463] [ 25.859766] Allocated by task 229: [ 25.859988] kasan_save_stack+0x45/0x70 [ 25.860194] kasan_save_track+0x18/0x40 [ 25.860714] kasan_save_alloc_info+0x3b/0x50 [ 25.860884] __kasan_kmalloc+0xb7/0xc0 [ 25.861009] __kmalloc_cache_noprof+0x189/0x420 [ 25.861172] kmalloc_memmove_negative_size+0xac/0x330 [ 25.861634] kunit_try_run_case+0x1a5/0x480 [ 25.861833] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.862085] kthread+0x337/0x6f0 [ 25.862234] ret_from_fork+0x116/0x1d0 [ 25.862407] ret_from_fork_asm+0x1a/0x30 [ 25.862590] [ 25.862677] The buggy address belongs to the object at ffff888106086380 [ 25.862677] which belongs to the cache kmalloc-64 of size 64 [ 25.863146] The buggy address is located 4 bytes inside of [ 25.863146] 64-byte region [ffff888106086380, ffff8881060863c0) [ 25.863575] [ 25.863670] The buggy address belongs to the physical page: [ 25.863904] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106086 [ 25.864215] flags: 0x200000000000000(node=0|zone=2) [ 25.864502] page_type: f5(slab) [ 25.864670] raw: 0200000000000000 ffff8881000418c0 dead000000000122 0000000000000000 [ 25.864944] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 25.865218] page dumped because: kasan: bad access detected [ 25.865580] [ 25.865656] Memory state around the buggy address: [ 25.865890] ffff888106086280: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 25.866126] ffff888106086300: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 25.866333] >ffff888106086380: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 25.866536] ^ [ 25.866643] ffff888106086400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.866946] ffff888106086480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.867254] ==================================================================