Date
July 4, 2025, 3:11 p.m.
Environment | |
---|---|
e850-96 | |
qemu-arm64 | |
qemu-x86_64 |
[ 26.520076] ================================================================== [ 26.529700] BUG: KASAN: out-of-bounds in kmalloc_memmove_negative_size+0x154/0x2e0 [ 26.537249] Read of size 18446744073709551614 at addr ffff0008049a1484 by task kunit_try_catch/229 [ 26.546191] [ 26.547676] CPU: 3 UID: 0 PID: 229 Comm: kunit_try_catch Tainted: G B N 6.15.5-rc2 #1 PREEMPT [ 26.547733] Tainted: [B]=BAD_PAGE, [N]=TEST [ 26.547750] Hardware name: WinLink E850-96 board (DT) [ 26.547772] Call trace: [ 26.547786] show_stack+0x20/0x38 (C) [ 26.547822] dump_stack_lvl+0x8c/0xd0 [ 26.547862] print_report+0x118/0x608 [ 26.547896] kasan_report+0xdc/0x128 [ 26.547925] kasan_check_range+0x100/0x1a8 [ 26.547957] __asan_memmove+0x3c/0x98 [ 26.547988] kmalloc_memmove_negative_size+0x154/0x2e0 [ 26.548022] kunit_try_run_case+0x170/0x3f0 [ 26.548060] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 26.548099] kthread+0x328/0x630 [ 26.548135] ret_from_fork+0x10/0x20 [ 26.548172] [ 26.614418] Allocated by task 229: [ 26.617806] kasan_save_stack+0x3c/0x68 [ 26.621621] kasan_save_track+0x20/0x40 [ 26.625441] kasan_save_alloc_info+0x40/0x58 [ 26.629694] __kasan_kmalloc+0xd4/0xd8 [ 26.633426] __kmalloc_cache_noprof+0x16c/0x3c0 [ 26.637940] kmalloc_memmove_negative_size+0xb0/0x2e0 [ 26.642976] kunit_try_run_case+0x170/0x3f0 [ 26.647141] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 26.652610] kthread+0x328/0x630 [ 26.655822] ret_from_fork+0x10/0x20 [ 26.659381] [ 26.660859] The buggy address belongs to the object at ffff0008049a1480 [ 26.660859] which belongs to the cache kmalloc-64 of size 64 [ 26.673187] The buggy address is located 4 bytes inside of [ 26.673187] 64-byte region [ffff0008049a1480, ffff0008049a14c0) [ 26.684641] [ 26.686119] The buggy address belongs to the physical page: [ 26.691676] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x8849a1 [ 26.699660] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 26.706170] page_type: f5(slab) [ 26.709308] raw: 0bfffe0000000000 ffff0008000028c0 dead000000000122 0000000000000000 [ 26.717026] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 26.724747] page dumped because: kasan: bad access detected [ 26.730300] [ 26.731775] Memory state around the buggy address: [ 26.736556] ffff0008049a1380: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 26.743760] ffff0008049a1400: 00 00 00 00 01 fc fc fc fc fc fc fc fc fc fc fc [ 26.750966] >ffff0008049a1480: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 26.758164] ^ [ 26.761380] ffff0008049a1500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.768584] ffff0008049a1580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.775787] ==================================================================
[ 15.629799] ================================================================== [ 15.629921] BUG: KASAN: out-of-bounds in kmalloc_memmove_negative_size+0x154/0x2e0 [ 15.630017] Read of size 18446744073709551614 at addr fff00000c636b384 by task kunit_try_catch/185 [ 15.630154] [ 15.630222] CPU: 0 UID: 0 PID: 185 Comm: kunit_try_catch Tainted: G B N 6.15.5-rc2 #1 PREEMPT [ 15.630527] Tainted: [B]=BAD_PAGE, [N]=TEST [ 15.630578] Hardware name: linux,dummy-virt (DT) [ 15.630619] Call trace: [ 15.630660] show_stack+0x20/0x38 (C) [ 15.630826] dump_stack_lvl+0x8c/0xd0 [ 15.630928] print_report+0x118/0x608 [ 15.631103] kasan_report+0xdc/0x128 [ 15.631146] kasan_check_range+0x100/0x1a8 [ 15.631190] __asan_memmove+0x3c/0x98 [ 15.631250] kmalloc_memmove_negative_size+0x154/0x2e0 [ 15.631302] kunit_try_run_case+0x170/0x3f0 [ 15.631348] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.631399] kthread+0x328/0x630 [ 15.631527] ret_from_fork+0x10/0x20 [ 15.631613] [ 15.631738] Allocated by task 185: [ 15.631783] kasan_save_stack+0x3c/0x68 [ 15.631957] kasan_save_track+0x20/0x40 [ 15.632029] kasan_save_alloc_info+0x40/0x58 [ 15.632248] __kasan_kmalloc+0xd4/0xd8 [ 15.632470] __kmalloc_cache_noprof+0x16c/0x3c0 [ 15.632519] kmalloc_memmove_negative_size+0xb0/0x2e0 [ 15.633178] kunit_try_run_case+0x170/0x3f0 [ 15.633444] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 15.633504] kthread+0x328/0x630 [ 15.633684] ret_from_fork+0x10/0x20 [ 15.633794] [ 15.633898] The buggy address belongs to the object at fff00000c636b380 [ 15.633898] which belongs to the cache kmalloc-64 of size 64 [ 15.634217] The buggy address is located 4 bytes inside of [ 15.634217] 64-byte region [fff00000c636b380, fff00000c636b3c0) [ 15.634303] [ 15.634430] The buggy address belongs to the physical page: [ 15.634526] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10636b [ 15.634786] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 15.634949] page_type: f5(slab) [ 15.635016] raw: 0bfffe0000000000 fff00000c00018c0 dead000000000122 0000000000000000 [ 15.635157] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 15.635274] page dumped because: kasan: bad access detected [ 15.635580] [ 15.635751] Memory state around the buggy address: [ 15.635859] fff00000c636b280: 00 00 00 00 01 fc fc fc fc fc fc fc fc fc fc fc [ 15.636105] fff00000c636b300: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 15.636518] >fff00000c636b380: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 15.636656] ^ [ 15.636761] fff00000c636b400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.636812] fff00000c636b480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 15.636850] ==================================================================
[ 14.488550] ================================================================== [ 14.489181] BUG: KASAN: out-of-bounds in kmalloc_memmove_negative_size+0x171/0x330 [ 14.490683] Read of size 18446744073709551614 at addr ffff8881029f1004 by task kunit_try_catch/201 [ 14.491122] [ 14.491422] CPU: 1 UID: 0 PID: 201 Comm: kunit_try_catch Tainted: G B N 6.15.5-rc2 #1 PREEMPT(voluntary) [ 14.491526] Tainted: [B]=BAD_PAGE, [N]=TEST [ 14.491553] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 14.491600] Call Trace: [ 14.491622] <TASK> [ 14.491649] dump_stack_lvl+0x73/0xb0 [ 14.491694] print_report+0xd1/0x650 [ 14.491720] ? __virt_addr_valid+0x1db/0x2d0 [ 14.491747] ? kmalloc_memmove_negative_size+0x171/0x330 [ 14.491781] ? kasan_complete_mode_report_info+0x2a/0x200 [ 14.491817] ? kmalloc_memmove_negative_size+0x171/0x330 [ 14.491852] kasan_report+0x141/0x180 [ 14.491893] ? kmalloc_memmove_negative_size+0x171/0x330 [ 14.491946] kasan_check_range+0x10c/0x1c0 [ 14.491991] __asan_memmove+0x27/0x70 [ 14.492037] kmalloc_memmove_negative_size+0x171/0x330 [ 14.492081] ? __pfx_kmalloc_memmove_negative_size+0x10/0x10 [ 14.492125] ? __schedule+0x10cc/0x2b60 [ 14.492174] ? __pfx_read_tsc+0x10/0x10 [ 14.492218] ? ktime_get_ts64+0x86/0x230 [ 14.492276] kunit_try_run_case+0x1a5/0x480 [ 14.492331] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.492392] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 14.492446] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 14.492497] ? __kthread_parkme+0x82/0x180 [ 14.492531] ? preempt_count_sub+0x50/0x80 [ 14.492559] ? __pfx_kunit_try_run_case+0x10/0x10 [ 14.492584] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.492608] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 14.492633] kthread+0x337/0x6f0 [ 14.492651] ? trace_preempt_on+0x20/0xc0 [ 14.492677] ? __pfx_kthread+0x10/0x10 [ 14.492696] ? _raw_spin_unlock_irq+0x47/0x80 [ 14.492717] ? calculate_sigpending+0x7b/0xa0 [ 14.492741] ? __pfx_kthread+0x10/0x10 [ 14.492761] ret_from_fork+0x41/0x80 [ 14.492782] ? __pfx_kthread+0x10/0x10 [ 14.492801] ret_from_fork_asm+0x1a/0x30 [ 14.492835] </TASK> [ 14.492847] [ 14.505184] Allocated by task 201: [ 14.505677] kasan_save_stack+0x45/0x70 [ 14.506056] kasan_save_track+0x18/0x40 [ 14.506413] kasan_save_alloc_info+0x3b/0x50 [ 14.506707] __kasan_kmalloc+0xb7/0xc0 [ 14.507037] __kmalloc_cache_noprof+0x189/0x420 [ 14.507489] kmalloc_memmove_negative_size+0xac/0x330 [ 14.507693] kunit_try_run_case+0x1a5/0x480 [ 14.508116] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 14.508497] kthread+0x337/0x6f0 [ 14.508828] ret_from_fork+0x41/0x80 [ 14.509042] ret_from_fork_asm+0x1a/0x30 [ 14.509371] [ 14.509563] The buggy address belongs to the object at ffff8881029f1000 [ 14.509563] which belongs to the cache kmalloc-64 of size 64 [ 14.510226] The buggy address is located 4 bytes inside of [ 14.510226] 64-byte region [ffff8881029f1000, ffff8881029f1040) [ 14.510832] [ 14.511050] The buggy address belongs to the physical page: [ 14.511542] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1029f1 [ 14.512051] flags: 0x200000000000000(node=0|zone=2) [ 14.512461] page_type: f5(slab) [ 14.512737] raw: 0200000000000000 ffff8881000418c0 dead000000000122 0000000000000000 [ 14.513298] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 14.513904] page dumped because: kasan: bad access detected [ 14.514200] [ 14.514401] Memory state around the buggy address: [ 14.514818] ffff8881029f0f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.515318] ffff8881029f0f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.515695] >ffff8881029f1000: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 14.516193] ^ [ 14.516521] ffff8881029f1080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.516963] ffff8881029f1100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 14.517438] ==================================================================