Date
July 11, 2025, 10:11 a.m.
Environment | |
---|---|
e850-96 | |
qemu-arm64 | |
qemu-x86_64 |
[ 45.710346] ================================================================== [ 45.719937] BUG: KASAN: out-of-bounds in kmalloc_memmove_negative_size+0x154/0x2e0 [ 45.727486] Read of size 18446744073709551614 at addr ffff0008081c9284 by task kunit_try_catch/264 [ 45.736425] [ 45.737912] CPU: 4 UID: 0 PID: 264 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250711 #1 PREEMPT [ 45.737972] Tainted: [B]=BAD_PAGE, [N]=TEST [ 45.737989] Hardware name: WinLink E850-96 board (DT) [ 45.738012] Call trace: [ 45.738025] show_stack+0x20/0x38 (C) [ 45.738059] dump_stack_lvl+0x8c/0xd0 [ 45.738092] print_report+0x118/0x5d0 [ 45.738121] kasan_report+0xdc/0x128 [ 45.738148] kasan_check_range+0x100/0x1a8 [ 45.738181] __asan_memmove+0x3c/0x98 [ 45.738215] kmalloc_memmove_negative_size+0x154/0x2e0 [ 45.738249] kunit_try_run_case+0x170/0x3f0 [ 45.738288] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 45.738322] kthread+0x328/0x630 [ 45.738352] ret_from_fork+0x10/0x20 [ 45.738388] [ 45.805868] Allocated by task 264: [ 45.809257] kasan_save_stack+0x3c/0x68 [ 45.813073] kasan_save_track+0x20/0x40 [ 45.816893] kasan_save_alloc_info+0x40/0x58 [ 45.821146] __kasan_kmalloc+0xd4/0xd8 [ 45.824879] __kmalloc_cache_noprof+0x16c/0x3c0 [ 45.829393] kmalloc_memmove_negative_size+0xb0/0x2e0 [ 45.834427] kunit_try_run_case+0x170/0x3f0 [ 45.838594] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 45.844063] kthread+0x328/0x630 [ 45.847274] ret_from_fork+0x10/0x20 [ 45.850833] [ 45.852311] The buggy address belongs to the object at ffff0008081c9280 [ 45.852311] which belongs to the cache kmalloc-64 of size 64 [ 45.864638] The buggy address is located 4 bytes inside of [ 45.864638] 64-byte region [ffff0008081c9280, ffff0008081c92c0) [ 45.876093] [ 45.877572] The buggy address belongs to the physical page: [ 45.883128] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x8881c9 [ 45.891113] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 45.897622] page_type: f5(slab) [ 45.900758] raw: 0bfffe0000000000 ffff0008000028c0 dead000000000122 0000000000000000 [ 45.908478] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 45.916197] page dumped because: kasan: bad access detected [ 45.921752] [ 45.923228] Memory state around the buggy address: [ 45.928008] ffff0008081c9180: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 45.935212] ffff0008081c9200: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 45.942417] >ffff0008081c9280: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 45.949616] ^ [ 45.952832] ffff0008081c9300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 45.960037] ffff0008081c9380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 45.967238] ==================================================================
[ 30.453675] ================================================================== [ 30.454252] BUG: KASAN: out-of-bounds in kmalloc_memmove_negative_size+0x154/0x2e0 [ 30.454375] Read of size 18446744073709551614 at addr fff00000c9ac9584 by task kunit_try_catch/211 [ 30.454468] [ 30.454507] CPU: 1 UID: 0 PID: 211 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250711 #1 PREEMPT [ 30.454985] Tainted: [B]=BAD_PAGE, [N]=TEST [ 30.455067] Hardware name: linux,dummy-virt (DT) [ 30.455099] Call trace: [ 30.455131] show_stack+0x20/0x38 (C) [ 30.455299] dump_stack_lvl+0x8c/0xd0 [ 30.455357] print_report+0x118/0x5d0 [ 30.455401] kasan_report+0xdc/0x128 [ 30.455442] kasan_check_range+0x100/0x1a8 [ 30.455487] __asan_memmove+0x3c/0x98 [ 30.455541] kmalloc_memmove_negative_size+0x154/0x2e0 [ 30.455591] kunit_try_run_case+0x170/0x3f0 [ 30.455990] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.456096] kthread+0x328/0x630 [ 30.456314] ret_from_fork+0x10/0x20 [ 30.456445] [ 30.456463] Allocated by task 211: [ 30.456592] kasan_save_stack+0x3c/0x68 [ 30.456635] kasan_save_track+0x20/0x40 [ 30.457009] kasan_save_alloc_info+0x40/0x58 [ 30.457106] __kasan_kmalloc+0xd4/0xd8 [ 30.457199] __kmalloc_cache_noprof+0x16c/0x3c0 [ 30.457242] kmalloc_memmove_negative_size+0xb0/0x2e0 [ 30.457284] kunit_try_run_case+0x170/0x3f0 [ 30.457343] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 30.457468] kthread+0x328/0x630 [ 30.457500] ret_from_fork+0x10/0x20 [ 30.457535] [ 30.457557] The buggy address belongs to the object at fff00000c9ac9580 [ 30.457557] which belongs to the cache kmalloc-64 of size 64 [ 30.457742] The buggy address is located 4 bytes inside of [ 30.457742] 64-byte region [fff00000c9ac9580, fff00000c9ac95c0) [ 30.457802] [ 30.457825] The buggy address belongs to the physical page: [ 30.457855] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109ac9 [ 30.458257] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 30.458311] page_type: f5(slab) [ 30.458364] raw: 0bfffe0000000000 fff00000c00018c0 dead000000000122 0000000000000000 [ 30.458745] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 30.458790] page dumped because: kasan: bad access detected [ 30.458822] [ 30.458840] Memory state around the buggy address: [ 30.458874] fff00000c9ac9480: 00 00 00 00 01 fc fc fc fc fc fc fc fc fc fc fc [ 30.458916] fff00000c9ac9500: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 30.459197] >fff00000c9ac9580: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 30.459241] ^ [ 30.459281] fff00000c9ac9600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.459511] fff00000c9ac9680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 30.459577] ==================================================================
[ 23.946507] ================================================================== [ 23.947187] BUG: KASAN: out-of-bounds in kmalloc_memmove_negative_size+0x171/0x330 [ 23.947857] Read of size 18446744073709551614 at addr ffff88810579bd84 by task kunit_try_catch/230 [ 23.948752] [ 23.948881] CPU: 1 UID: 0 PID: 230 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc5-next-20250711 #1 PREEMPT(voluntary) [ 23.948939] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.948952] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 23.948974] Call Trace: [ 23.948990] <TASK> [ 23.949010] dump_stack_lvl+0x73/0xb0 [ 23.949045] print_report+0xd1/0x610 [ 23.949156] ? __virt_addr_valid+0x1db/0x2d0 [ 23.949186] ? kmalloc_memmove_negative_size+0x171/0x330 [ 23.949210] ? kasan_complete_mode_report_info+0x2a/0x200 [ 23.949249] ? kmalloc_memmove_negative_size+0x171/0x330 [ 23.949303] kasan_report+0x141/0x180 [ 23.949328] ? kmalloc_memmove_negative_size+0x171/0x330 [ 23.949356] kasan_check_range+0x10c/0x1c0 [ 23.949380] __asan_memmove+0x27/0x70 [ 23.949403] kmalloc_memmove_negative_size+0x171/0x330 [ 23.949509] ? __pfx_kmalloc_memmove_negative_size+0x10/0x10 [ 23.949534] ? __schedule+0x10cc/0x2b60 [ 23.949559] ? __pfx_read_tsc+0x10/0x10 [ 23.949581] ? ktime_get_ts64+0x86/0x230 [ 23.949607] kunit_try_run_case+0x1a5/0x480 [ 23.949632] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.949651] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 23.949675] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 23.949697] ? __kthread_parkme+0x82/0x180 [ 23.949719] ? preempt_count_sub+0x50/0x80 [ 23.949755] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.949776] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.949800] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 23.949824] kthread+0x337/0x6f0 [ 23.949845] ? trace_preempt_on+0x20/0xc0 [ 23.949869] ? __pfx_kthread+0x10/0x10 [ 23.949890] ? _raw_spin_unlock_irq+0x47/0x80 [ 23.949912] ? calculate_sigpending+0x7b/0xa0 [ 23.949937] ? __pfx_kthread+0x10/0x10 [ 23.949959] ret_from_fork+0x116/0x1d0 [ 23.949977] ? __pfx_kthread+0x10/0x10 [ 23.949998] ret_from_fork_asm+0x1a/0x30 [ 23.950029] </TASK> [ 23.950041] [ 23.960559] Allocated by task 230: [ 23.960902] kasan_save_stack+0x45/0x70 [ 23.961057] kasan_save_track+0x18/0x40 [ 23.961243] kasan_save_alloc_info+0x3b/0x50 [ 23.961699] __kasan_kmalloc+0xb7/0xc0 [ 23.961895] __kmalloc_cache_noprof+0x189/0x420 [ 23.962100] kmalloc_memmove_negative_size+0xac/0x330 [ 23.962683] kunit_try_run_case+0x1a5/0x480 [ 23.962905] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.963122] kthread+0x337/0x6f0 [ 23.963476] ret_from_fork+0x116/0x1d0 [ 23.963660] ret_from_fork_asm+0x1a/0x30 [ 23.963847] [ 23.963938] The buggy address belongs to the object at ffff88810579bd80 [ 23.963938] which belongs to the cache kmalloc-64 of size 64 [ 23.964410] The buggy address is located 4 bytes inside of [ 23.964410] 64-byte region [ffff88810579bd80, ffff88810579bdc0) [ 23.965184] [ 23.965417] The buggy address belongs to the physical page: [ 23.965804] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10579b [ 23.966129] flags: 0x200000000000000(node=0|zone=2) [ 23.966480] page_type: f5(slab) [ 23.966647] raw: 0200000000000000 ffff8881000418c0 dead000000000122 0000000000000000 [ 23.966985] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 23.967678] page dumped because: kasan: bad access detected [ 23.967934] [ 23.968015] Memory state around the buggy address: [ 23.968229] ffff88810579bc80: 00 00 00 00 01 fc fc fc fc fc fc fc fc fc fc fc [ 23.968624] ffff88810579bd00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 23.968941] >ffff88810579bd80: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 23.969228] ^ [ 23.969482] ffff88810579be00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.969780] ffff88810579be80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.970065] ==================================================================