Date
July 16, 2025, 12:11 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 30.702449] ================================================================== [ 30.702841] BUG: KASAN: out-of-bounds in kmalloc_memmove_negative_size+0x154/0x2e0 [ 30.702978] Read of size 18446744073709551614 at addr fff00000c637a904 by task kunit_try_catch/211 [ 30.703096] [ 30.703137] CPU: 0 UID: 0 PID: 211 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250716 #1 PREEMPT [ 30.703225] Tainted: [B]=BAD_PAGE, [N]=TEST [ 30.703251] Hardware name: linux,dummy-virt (DT) [ 30.703449] Call trace: [ 30.703484] show_stack+0x20/0x38 (C) [ 30.703567] dump_stack_lvl+0x8c/0xd0 [ 30.703733] print_report+0x118/0x5d0 [ 30.703821] kasan_report+0xdc/0x128 [ 30.703894] kasan_check_range+0x100/0x1a8 [ 30.704050] __asan_memmove+0x3c/0x98 [ 30.704197] kmalloc_memmove_negative_size+0x154/0x2e0 [ 30.704294] kunit_try_run_case+0x170/0x3f0 [ 30.704402] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.704633] kthread+0x328/0x630 [ 30.704796] ret_from_fork+0x10/0x20 [ 30.704930] [ 30.704991] Allocated by task 211: [ 30.705133] kasan_save_stack+0x3c/0x68 [ 30.705209] kasan_save_track+0x20/0x40 [ 30.705246] kasan_save_alloc_info+0x40/0x58 [ 30.705597] __kasan_kmalloc+0xd4/0xd8 [ 30.705747] __kmalloc_cache_noprof+0x16c/0x3c0 [ 30.706060] kmalloc_memmove_negative_size+0xb0/0x2e0 [ 30.706137] kunit_try_run_case+0x170/0x3f0 [ 30.706193] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.706239] kthread+0x328/0x630 [ 30.706273] ret_from_fork+0x10/0x20 [ 30.706310] [ 30.706330] The buggy address belongs to the object at fff00000c637a900 [ 30.706330] which belongs to the cache kmalloc-64 of size 64 [ 30.706441] The buggy address is located 4 bytes inside of [ 30.706441] 64-byte region [fff00000c637a900, fff00000c637a940) [ 30.706784] [ 30.707068] The buggy address belongs to the physical page: [ 30.707200] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10637a [ 30.707279] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 30.707352] page_type: f5(slab) [ 30.707543] raw: 0bfffe0000000000 fff00000c00018c0 dead000000000122 0000000000000000 [ 30.707736] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 30.707840] page dumped because: kasan: bad access detected [ 30.707888] [ 30.707918] Memory state around the buggy address: [ 30.707960] fff00000c637a800: 00 00 00 00 01 fc fc fc fc fc fc fc fc fc fc fc [ 30.708006] fff00000c637a880: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 30.708316] >fff00000c637a900: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 30.708453] ^ [ 30.708680] fff00000c637a980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.708812] fff00000c637aa00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.709023] ==================================================================
[ 23.446609] ================================================================== [ 23.447417] BUG: KASAN: out-of-bounds in kmalloc_memmove_negative_size+0x171/0x330 [ 23.447795] Read of size 18446744073709551614 at addr ffff8881053a9284 by task kunit_try_catch/229 [ 23.448435] [ 23.448667] CPU: 0 UID: 0 PID: 229 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6-next-20250716 #1 PREEMPT(voluntary) [ 23.448722] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.448735] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 23.448756] Call Trace: [ 23.448860] <TASK> [ 23.448879] dump_stack_lvl+0x73/0xb0 [ 23.448912] print_report+0xd1/0x610 [ 23.448934] ? __virt_addr_valid+0x1db/0x2d0 [ 23.448960] ? kmalloc_memmove_negative_size+0x171/0x330 [ 23.448983] ? kasan_complete_mode_report_info+0x2a/0x200 [ 23.449008] ? kmalloc_memmove_negative_size+0x171/0x330 [ 23.449053] kasan_report+0x141/0x180 [ 23.449074] ? kmalloc_memmove_negative_size+0x171/0x330 [ 23.449102] kasan_check_range+0x10c/0x1c0 [ 23.449124] __asan_memmove+0x27/0x70 [ 23.449147] kmalloc_memmove_negative_size+0x171/0x330 [ 23.449171] ? __pfx_kmalloc_memmove_negative_size+0x10/0x10 [ 23.449195] ? __schedule+0x10c6/0x2b60 [ 23.449218] ? __pfx_read_tsc+0x10/0x10 [ 23.449241] ? ktime_get_ts64+0x86/0x230 [ 23.449267] kunit_try_run_case+0x1a5/0x480 [ 23.449305] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.449326] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 23.449349] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 23.449370] ? __kthread_parkme+0x82/0x180 [ 23.449391] ? preempt_count_sub+0x50/0x80 [ 23.449415] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.449437] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.449463] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 23.449489] kthread+0x337/0x6f0 [ 23.449508] ? trace_preempt_on+0x20/0xc0 [ 23.449532] ? __pfx_kthread+0x10/0x10 [ 23.449552] ? _raw_spin_unlock_irq+0x47/0x80 [ 23.449587] ? calculate_sigpending+0x7b/0xa0 [ 23.449611] ? __pfx_kthread+0x10/0x10 [ 23.449633] ret_from_fork+0x116/0x1d0 [ 23.449652] ? __pfx_kthread+0x10/0x10 [ 23.449671] ret_from_fork_asm+0x1a/0x30 [ 23.449703] </TASK> [ 23.449714] [ 23.458925] Allocated by task 229: [ 23.459100] kasan_save_stack+0x45/0x70 [ 23.459509] kasan_save_track+0x18/0x40 [ 23.459750] kasan_save_alloc_info+0x3b/0x50 [ 23.460065] __kasan_kmalloc+0xb7/0xc0 [ 23.460243] __kmalloc_cache_noprof+0x189/0x420 [ 23.460623] kmalloc_memmove_negative_size+0xac/0x330 [ 23.460931] kunit_try_run_case+0x1a5/0x480 [ 23.461231] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.461496] kthread+0x337/0x6f0 [ 23.461664] ret_from_fork+0x116/0x1d0 [ 23.461978] ret_from_fork_asm+0x1a/0x30 [ 23.462158] [ 23.462411] The buggy address belongs to the object at ffff8881053a9280 [ 23.462411] which belongs to the cache kmalloc-64 of size 64 [ 23.462948] The buggy address is located 4 bytes inside of [ 23.462948] 64-byte region [ffff8881053a9280, ffff8881053a92c0) [ 23.463540] [ 23.463729] The buggy address belongs to the physical page: [ 23.464081] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1053a9 [ 23.464522] flags: 0x200000000000000(node=0|zone=2) [ 23.464758] page_type: f5(slab) [ 23.465073] raw: 0200000000000000 ffff8881000418c0 dead000000000122 0000000000000000 [ 23.465479] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 23.465967] page dumped because: kasan: bad access detected [ 23.466153] [ 23.466243] Memory state around the buggy address: [ 23.466448] ffff8881053a9180: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 23.466788] ffff8881053a9200: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 23.467356] >ffff8881053a9280: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 23.467720] ^ [ 23.467886] ffff8881053a9300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.468320] ffff8881053a9380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.468708] ==================================================================