Date
June 2, 2025, 2:11 p.m.
Environment | |
---|---|
e850-96 | |
qemu-arm64 | |
qemu-x86_64 |
[ 26.740219] ================================================================== [ 26.750510] BUG: KASAN: slab-out-of-bounds in kmalloc_memmove_invalid_size+0x154/0x2e0 [ 26.758404] Read of size 64 at addr ffff000800c2d184 by task kunit_try_catch/229 [ 26.765784] [ 26.767270] CPU: 5 UID: 0 PID: 229 Comm: kunit_try_catch Tainted: G B N 6.15.1-rc1 #1 PREEMPT [ 26.767329] Tainted: [B]=BAD_PAGE, [N]=TEST [ 26.767344] Hardware name: WinLink E850-96 board (DT) [ 26.767365] Call trace: [ 26.767378] show_stack+0x20/0x38 (C) [ 26.767411] dump_stack_lvl+0x8c/0xd0 [ 26.767444] print_report+0x118/0x608 [ 26.767475] kasan_report+0xdc/0x128 [ 26.767502] kasan_check_range+0x100/0x1a8 [ 26.767536] __asan_memmove+0x3c/0x98 [ 26.767566] kmalloc_memmove_invalid_size+0x154/0x2e0 [ 26.767603] kunit_try_run_case+0x170/0x3f0 [ 26.767639] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 26.767678] kthread+0x328/0x630 [ 26.767710] ret_from_fork+0x10/0x20 [ 26.767745] [ 26.833925] Allocated by task 229: [ 26.837311] kasan_save_stack+0x3c/0x68 [ 26.841128] kasan_save_track+0x20/0x40 [ 26.844949] kasan_save_alloc_info+0x40/0x58 [ 26.849201] __kasan_kmalloc+0xd4/0xd8 [ 26.852934] __kmalloc_cache_noprof+0x16c/0x3c0 [ 26.857448] kmalloc_memmove_invalid_size+0xb0/0x2e0 [ 26.862395] kunit_try_run_case+0x170/0x3f0 [ 26.866562] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 26.872030] kthread+0x328/0x630 [ 26.875242] ret_from_fork+0x10/0x20 [ 26.878801] [ 26.880280] The buggy address belongs to the object at ffff000800c2d180 [ 26.880280] which belongs to the cache kmalloc-64 of size 64 [ 26.892606] The buggy address is located 4 bytes inside of [ 26.892606] allocated 64-byte region [ffff000800c2d180, ffff000800c2d1c0) [ 26.904929] [ 26.906407] The buggy address belongs to the physical page: [ 26.911965] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x880c2d [ 26.919950] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 26.926459] page_type: f5(slab) [ 26.929596] raw: 0bfffe0000000000 ffff0008000028c0 dead000000000122 0000000000000000 [ 26.937314] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 26.945034] page dumped because: kasan: bad access detected [ 26.950587] [ 26.952064] Memory state around the buggy address: [ 26.956846] ffff000800c2d080: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 26.964046] ffff000800c2d100: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 26.971253] >ffff000800c2d180: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 26.978452] ^ [ 26.983753] ffff000800c2d200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.990956] ffff000800c2d280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 26.998158] ==================================================================
[ 19.116792] ================================================================== [ 19.116856] BUG: KASAN: slab-out-of-bounds in kmalloc_memmove_invalid_size+0x154/0x2e0 [ 19.117131] Read of size 64 at addr fff00000c3fb2884 by task kunit_try_catch/185 [ 19.117197] [ 19.117247] CPU: 1 UID: 0 PID: 185 Comm: kunit_try_catch Tainted: G B W N 6.15.1-rc1 #1 PREEMPT [ 19.117568] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST [ 19.117599] Hardware name: linux,dummy-virt (DT) [ 19.117892] Call trace: [ 19.118715] show_stack+0x20/0x38 (C) [ 19.119223] dump_stack_lvl+0x8c/0xd0 [ 19.119295] print_report+0x118/0x608 [ 19.119395] kasan_report+0xdc/0x128 [ 19.119620] kasan_check_range+0x100/0x1a8 [ 19.119742] __asan_memmove+0x3c/0x98 [ 19.119790] kmalloc_memmove_invalid_size+0x154/0x2e0 [ 19.119876] kunit_try_run_case+0x170/0x3f0 [ 19.120313] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.120423] kthread+0x328/0x630 [ 19.120494] ret_from_fork+0x10/0x20 [ 19.120909] [ 19.120950] Allocated by task 185: [ 19.120980] kasan_save_stack+0x3c/0x68 [ 19.121051] kasan_save_track+0x20/0x40 [ 19.121130] kasan_save_alloc_info+0x40/0x58 [ 19.121911] __kasan_kmalloc+0xd4/0xd8 [ 19.122171] __kmalloc_cache_noprof+0x16c/0x3c0 [ 19.122239] kmalloc_memmove_invalid_size+0xb0/0x2e0 [ 19.122319] kunit_try_run_case+0x170/0x3f0 [ 19.122404] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.122479] kthread+0x328/0x630 [ 19.122709] ret_from_fork+0x10/0x20 [ 19.122749] [ 19.122770] The buggy address belongs to the object at fff00000c3fb2880 [ 19.122770] which belongs to the cache kmalloc-64 of size 64 [ 19.122829] The buggy address is located 4 bytes inside of [ 19.122829] allocated 64-byte region [fff00000c3fb2880, fff00000c3fb28c0) [ 19.123306] [ 19.123389] The buggy address belongs to the physical page: [ 19.123452] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103fb2 [ 19.123518] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 19.123771] page_type: f5(slab) [ 19.123826] raw: 0bfffe0000000000 fff00000c00018c0 dead000000000122 0000000000000000 [ 19.123876] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 19.123948] page dumped because: kasan: bad access detected [ 19.124017] [ 19.124064] Memory state around the buggy address: [ 19.124655] fff00000c3fb2780: 00 00 00 00 00 01 fc fc fc fc fc fc fc fc fc fc [ 19.124733] fff00000c3fb2800: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 19.125041] >fff00000c3fb2880: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 19.125285] ^ [ 19.125486] fff00000c3fb2900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.125583] fff00000c3fb2980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.125659] ==================================================================
[ 16.809225] ================================================================== [ 16.810272] BUG: KASAN: slab-out-of-bounds in kmalloc_memmove_invalid_size+0x16f/0x330 [ 16.810700] Read of size 64 at addr ffff888102b2bd84 by task kunit_try_catch/203 [ 16.811047] [ 16.811219] CPU: 0 UID: 0 PID: 203 Comm: kunit_try_catch Tainted: G B N 6.15.1-rc1 #1 PREEMPT(voluntary) [ 16.811334] Tainted: [B]=BAD_PAGE, [N]=TEST [ 16.811362] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 16.811395] Call Trace: [ 16.811415] <TASK> [ 16.811441] dump_stack_lvl+0x73/0xb0 [ 16.811482] print_report+0xd1/0x650 [ 16.811516] ? __virt_addr_valid+0x1db/0x2d0 [ 16.811557] ? kmalloc_memmove_invalid_size+0x16f/0x330 [ 16.811660] ? kasan_complete_mode_report_info+0x2a/0x200 [ 16.811702] ? kmalloc_memmove_invalid_size+0x16f/0x330 [ 16.811743] kasan_report+0x141/0x180 [ 16.811798] ? kmalloc_memmove_invalid_size+0x16f/0x330 [ 16.811848] kasan_check_range+0x10c/0x1c0 [ 16.811882] __asan_memmove+0x27/0x70 [ 16.811914] kmalloc_memmove_invalid_size+0x16f/0x330 [ 16.811953] ? __pfx_kmalloc_memmove_invalid_size+0x10/0x10 [ 16.811993] ? __schedule+0x10cc/0x2b30 [ 16.812028] ? __pfx_read_tsc+0x10/0x10 [ 16.812062] ? ktime_get_ts64+0x86/0x230 [ 16.812115] kunit_try_run_case+0x1a5/0x480 [ 16.812161] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.812196] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 16.812237] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 16.812274] ? __kthread_parkme+0x82/0x180 [ 16.812309] ? preempt_count_sub+0x50/0x80 [ 16.812351] ? __pfx_kunit_try_run_case+0x10/0x10 [ 16.812391] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.812432] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 16.812474] kthread+0x337/0x6f0 [ 16.812505] ? trace_preempt_on+0x20/0xc0 [ 16.812554] ? __pfx_kthread+0x10/0x10 [ 16.812596] ? _raw_spin_unlock_irq+0x47/0x80 [ 16.812643] ? calculate_sigpending+0x7b/0xa0 [ 16.812693] ? __pfx_kthread+0x10/0x10 [ 16.812736] ret_from_fork+0x41/0x80 [ 16.812800] ? __pfx_kthread+0x10/0x10 [ 16.812845] ret_from_fork_asm+0x1a/0x30 [ 16.812916] </TASK> [ 16.812944] [ 16.828076] Allocated by task 203: [ 16.828327] kasan_save_stack+0x45/0x70 [ 16.828623] kasan_save_track+0x18/0x40 [ 16.829301] kasan_save_alloc_info+0x3b/0x50 [ 16.829993] __kasan_kmalloc+0xb7/0xc0 [ 16.830553] __kmalloc_cache_noprof+0x189/0x420 [ 16.830908] kmalloc_memmove_invalid_size+0xac/0x330 [ 16.831294] kunit_try_run_case+0x1a5/0x480 [ 16.831781] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 16.832071] kthread+0x337/0x6f0 [ 16.832903] ret_from_fork+0x41/0x80 [ 16.833096] ret_from_fork_asm+0x1a/0x30 [ 16.833250] [ 16.833343] The buggy address belongs to the object at ffff888102b2bd80 [ 16.833343] which belongs to the cache kmalloc-64 of size 64 [ 16.835318] The buggy address is located 4 bytes inside of [ 16.835318] allocated 64-byte region [ffff888102b2bd80, ffff888102b2bdc0) [ 16.836287] [ 16.836544] The buggy address belongs to the physical page: [ 16.837166] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102b2b [ 16.838000] flags: 0x200000000000000(node=0|zone=2) [ 16.838574] page_type: f5(slab) [ 16.838925] raw: 0200000000000000 ffff8881000418c0 dead000000000122 0000000000000000 [ 16.839230] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 16.839561] page dumped because: kasan: bad access detected [ 16.840042] [ 16.840280] Memory state around the buggy address: [ 16.840921] ffff888102b2bc80: 00 00 00 00 00 01 fc fc fc fc fc fc fc fc fc fc [ 16.841482] ffff888102b2bd00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 16.842207] >ffff888102b2bd80: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 16.842863] ^ [ 16.843501] ffff888102b2be00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.843808] ffff888102b2be80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 16.844897] ==================================================================