Date
July 19, 2025, 11:12 p.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 15.271530] ================================================================== [ 15.272223] BUG: KASAN: out-of-bounds in kmalloc_memmove_negative_size+0x154/0x2e0 [ 15.272302] Read of size 18446744073709551614 at addr fff00000c77cb304 by task kunit_try_catch/180 [ 15.273121] [ 15.273592] CPU: 1 UID: 0 PID: 180 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT [ 15.273751] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.273863] Hardware name: linux,dummy-virt (DT) [ 15.273962] Call trace: [ 15.274043] show_stack+0x20/0x38 (C) [ 15.274222] dump_stack_lvl+0x8c/0xd0 [ 15.274349] print_report+0x118/0x5d0 [ 15.274537] kasan_report+0xdc/0x128 [ 15.274595] kasan_check_range+0x100/0x1a8 [ 15.274921] __asan_memmove+0x3c/0x98 [ 15.275007] kmalloc_memmove_negative_size+0x154/0x2e0 [ 15.275059] kunit_try_run_case+0x170/0x3f0 [ 15.275117] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.275168] kthread+0x328/0x630 [ 15.275224] ret_from_fork+0x10/0x20 [ 15.275271] [ 15.275296] Allocated by task 180: [ 15.275336] kasan_save_stack+0x3c/0x68 [ 15.275376] kasan_save_track+0x20/0x40 [ 15.275414] kasan_save_alloc_info+0x40/0x58 [ 15.275452] __kasan_kmalloc+0xd4/0xd8 [ 15.275488] __kmalloc_cache_noprof+0x16c/0x3c0 [ 15.275525] kmalloc_memmove_negative_size+0xb0/0x2e0 [ 15.275585] kunit_try_run_case+0x170/0x3f0 [ 15.275623] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.275664] kthread+0x328/0x630 [ 15.276005] ret_from_fork+0x10/0x20 [ 15.276078] [ 15.276117] The buggy address belongs to the object at fff00000c77cb300 [ 15.276117] which belongs to the cache kmalloc-64 of size 64 [ 15.276433] The buggy address is located 4 bytes inside of [ 15.276433] 64-byte region [fff00000c77cb300, fff00000c77cb340) [ 15.276513] [ 15.276545] The buggy address belongs to the physical page: [ 15.276585] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1077cb [ 15.276770] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 15.276832] page_type: f5(slab) [ 15.276871] raw: 0bfffe0000000000 fff00000c00018c0 dead000000000122 0000000000000000 [ 15.277143] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 15.278584] page dumped because: kasan: bad access detected [ 15.278678] [ 15.279029] Memory state around the buggy address: [ 15.279092] fff00000c77cb200: 00 00 00 00 05 fc fc fc fc fc fc fc fc fc fc fc [ 15.279291] fff00000c77cb280: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 15.279366] >fff00000c77cb300: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 15.279737] ^ [ 15.279881] fff00000c77cb380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.280010] fff00000c77cb400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.280101] ==================================================================
[ 12.213105] ================================================================== [ 12.213784] BUG: KASAN: out-of-bounds in kmalloc_memmove_negative_size+0x171/0x330 [ 12.214141] Read of size 18446744073709551614 at addr ffff8881027e7004 by task kunit_try_catch/197 [ 12.214590] [ 12.214858] CPU: 1 UID: 0 PID: 197 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc6 #1 PREEMPT(voluntary) [ 12.214904] Tainted: [B]=BAD_PAGE, [N]=TEST [ 12.214915] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 12.214934] Call Trace: [ 12.214945] <TASK> [ 12.214958] dump_stack_lvl+0x73/0xb0 [ 12.214986] print_report+0xd1/0x610 [ 12.215021] ? __virt_addr_valid+0x1db/0x2d0 [ 12.215043] ? kmalloc_memmove_negative_size+0x171/0x330 [ 12.215066] ? kasan_complete_mode_report_info+0x2a/0x200 [ 12.215087] ? kmalloc_memmove_negative_size+0x171/0x330 [ 12.215131] kasan_report+0x141/0x180 [ 12.215153] ? kmalloc_memmove_negative_size+0x171/0x330 [ 12.215181] kasan_check_range+0x10c/0x1c0 [ 12.215203] __asan_memmove+0x27/0x70 [ 12.215222] kmalloc_memmove_negative_size+0x171/0x330 [ 12.215245] ? __pfx_kmalloc_memmove_negative_size+0x10/0x10 [ 12.215269] ? __schedule+0x10cc/0x2b60 [ 12.215292] ? __pfx_read_tsc+0x10/0x10 [ 12.215311] ? ktime_get_ts64+0x86/0x230 [ 12.215334] kunit_try_run_case+0x1a5/0x480 [ 12.215357] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.215399] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 12.215422] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 12.215443] ? __kthread_parkme+0x82/0x180 [ 12.215462] ? preempt_count_sub+0x50/0x80 [ 12.215483] ? __pfx_kunit_try_run_case+0x10/0x10 [ 12.215506] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.215528] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 12.215550] kthread+0x337/0x6f0 [ 12.215567] ? trace_preempt_on+0x20/0xc0 [ 12.215590] ? __pfx_kthread+0x10/0x10 [ 12.215609] ? _raw_spin_unlock_irq+0x47/0x80 [ 12.215629] ? calculate_sigpending+0x7b/0xa0 [ 12.215651] ? __pfx_kthread+0x10/0x10 [ 12.215671] ret_from_fork+0x116/0x1d0 [ 12.215688] ? __pfx_kthread+0x10/0x10 [ 12.215707] ret_from_fork_asm+0x1a/0x30 [ 12.215736] </TASK> [ 12.215746] [ 12.223166] Allocated by task 197: [ 12.223380] kasan_save_stack+0x45/0x70 [ 12.223583] kasan_save_track+0x18/0x40 [ 12.223796] kasan_save_alloc_info+0x3b/0x50 [ 12.224199] __kasan_kmalloc+0xb7/0xc0 [ 12.224605] __kmalloc_cache_noprof+0x189/0x420 [ 12.225028] kmalloc_memmove_negative_size+0xac/0x330 [ 12.225303] kunit_try_run_case+0x1a5/0x480 [ 12.225515] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 12.225832] kthread+0x337/0x6f0 [ 12.226021] ret_from_fork+0x116/0x1d0 [ 12.226297] ret_from_fork_asm+0x1a/0x30 [ 12.226903] [ 12.227001] The buggy address belongs to the object at ffff8881027e7000 [ 12.227001] which belongs to the cache kmalloc-64 of size 64 [ 12.227523] The buggy address is located 4 bytes inside of [ 12.227523] 64-byte region [ffff8881027e7000, ffff8881027e7040) [ 12.227951] [ 12.228032] The buggy address belongs to the physical page: [ 12.228202] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1027e7 [ 12.228442] flags: 0x200000000000000(node=0|zone=2) [ 12.228776] page_type: f5(slab) [ 12.228945] raw: 0200000000000000 ffff8881000418c0 dead000000000122 0000000000000000 [ 12.229322] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 12.229670] page dumped because: kasan: bad access detected [ 12.229930] [ 12.230021] Memory state around the buggy address: [ 12.230172] ffff8881027e6f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.230884] ffff8881027e6f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.231115] >ffff8881027e7000: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 12.231326] ^ [ 12.231440] ffff8881027e7080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.231763] ffff8881027e7100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 12.232134] ==================================================================