Date
July 3, 2025, 10:10 a.m.
Environment | |
---|---|
dragonboard-845c | |
qemu-arm64 | |
qemu-x86_64 |
[ 40.932742] ================================================================== [ 40.944997] BUG: KASAN: slab-out-of-bounds in kmalloc_memmove_invalid_size+0x154/0x2e0 [ 40.953019] Read of size 64 at addr ffff000098090384 by task kunit_try_catch/291 [ 40.960517] [ 40.962046] CPU: 4 UID: 0 PID: 291 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4-next-20250703 #1 PREEMPT [ 40.962077] Tainted: [B]=BAD_PAGE, [N]=TEST [ 40.962085] Hardware name: Thundercomm Dragonboard 845c (DT) [ 40.962097] Call trace: [ 40.962104] show_stack+0x20/0x38 (C) [ 40.962123] dump_stack_lvl+0x8c/0xd0 [ 40.962144] print_report+0x118/0x608 [ 40.962162] kasan_report+0xdc/0x128 [ 40.962181] kasan_check_range+0x100/0x1a8 [ 40.962201] __asan_memmove+0x3c/0x98 [ 40.962215] kmalloc_memmove_invalid_size+0x154/0x2e0 [ 40.962234] kunit_try_run_case+0x170/0x3f0 [ 40.962253] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 40.962274] kthread+0x328/0x630 [ 40.962288] ret_from_fork+0x10/0x20 [ 40.962305] [ 41.031831] Allocated by task 291: [ 41.035286] kasan_save_stack+0x3c/0x68 [ 41.039185] kasan_save_track+0x20/0x40 [ 41.043080] kasan_save_alloc_info+0x40/0x58 [ 41.047416] __kasan_kmalloc+0xd4/0xd8 [ 41.051234] __kmalloc_cache_noprof+0x16c/0x3c0 [ 41.055837] kmalloc_memmove_invalid_size+0xb0/0x2e0 [ 41.060872] kunit_try_run_case+0x170/0x3f0 [ 41.065124] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 41.070690] kthread+0x328/0x630 [ 41.073975] ret_from_fork+0x10/0x20 [ 41.077609] [ 41.079141] The buggy address belongs to the object at ffff000098090380 [ 41.079141] which belongs to the cache kmalloc-64 of size 64 [ 41.091620] The buggy address is located 4 bytes inside of [ 41.091620] allocated 64-byte region [ffff000098090380, ffff0000980903c0) [ 41.104106] [ 41.105631] The buggy address belongs to the physical page: [ 41.111273] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x118090 [ 41.119377] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 41.125997] page_type: f5(slab) [ 41.129194] raw: 0bfffe0000000000 ffff0000800028c0 dead000000000122 0000000000000000 [ 41.137036] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 41.144875] page dumped because: kasan: bad access detected [ 41.150523] [ 41.152053] Memory state around the buggy address: [ 41.156908] ffff000098090280: 00 00 00 00 03 fc fc fc fc fc fc fc fc fc fc fc [ 41.164225] ffff000098090300: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 41.171532] >ffff000098090380: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 41.178842] ^ [ 41.184226] ffff000098090400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 41.191543] ffff000098090480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 41.198854] ==================================================================
[ 31.175165] ================================================================== [ 31.175236] BUG: KASAN: slab-out-of-bounds in kmalloc_memmove_invalid_size+0x154/0x2e0 [ 31.175296] Read of size 64 at addr fff00000c5a6ae84 by task kunit_try_catch/214 [ 31.175730] [ 31.175781] CPU: 0 UID: 0 PID: 214 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4-next-20250703 #1 PREEMPT [ 31.176154] Tainted: [B]=BAD_PAGE, [N]=TEST [ 31.176244] Hardware name: linux,dummy-virt (DT) [ 31.176301] Call trace: [ 31.176354] show_stack+0x20/0x38 (C) [ 31.176527] dump_stack_lvl+0x8c/0xd0 [ 31.176733] print_report+0x118/0x608 [ 31.176904] kasan_report+0xdc/0x128 [ 31.177026] kasan_check_range+0x100/0x1a8 [ 31.177204] __asan_memmove+0x3c/0x98 [ 31.177560] kmalloc_memmove_invalid_size+0x154/0x2e0 [ 31.177688] kunit_try_run_case+0x170/0x3f0 [ 31.177990] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.178189] kthread+0x328/0x630 [ 31.178652] ret_from_fork+0x10/0x20 [ 31.179045] [ 31.179227] Allocated by task 214: [ 31.179352] kasan_save_stack+0x3c/0x68 [ 31.179605] kasan_save_track+0x20/0x40 [ 31.179830] kasan_save_alloc_info+0x40/0x58 [ 31.179920] __kasan_kmalloc+0xd4/0xd8 [ 31.180174] __kmalloc_cache_noprof+0x16c/0x3c0 [ 31.180364] kmalloc_memmove_invalid_size+0xb0/0x2e0 [ 31.180581] kunit_try_run_case+0x170/0x3f0 [ 31.180846] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.180953] kthread+0x328/0x630 [ 31.181067] ret_from_fork+0x10/0x20 [ 31.181126] [ 31.181177] The buggy address belongs to the object at fff00000c5a6ae80 [ 31.181177] which belongs to the cache kmalloc-64 of size 64 [ 31.181517] The buggy address is located 4 bytes inside of [ 31.181517] allocated 64-byte region [fff00000c5a6ae80, fff00000c5a6aec0) [ 31.181916] [ 31.181961] The buggy address belongs to the physical page: [ 31.182135] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105a6a [ 31.182195] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 31.182812] page_type: f5(slab) [ 31.182875] raw: 0bfffe0000000000 fff00000c00018c0 dead000000000122 0000000000000000 [ 31.183051] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 31.183397] page dumped because: kasan: bad access detected [ 31.183445] [ 31.183848] Memory state around the buggy address: [ 31.183910] fff00000c5a6ad80: 00 00 00 00 00 01 fc fc fc fc fc fc fc fc fc fc [ 31.184082] fff00000c5a6ae00: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 31.184336] >fff00000c5a6ae80: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 31.184466] ^ [ 31.184591] fff00000c5a6af00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.184684] fff00000c5a6af80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.184724] ==================================================================
[ 23.351414] ================================================================== [ 23.351907] BUG: KASAN: slab-out-of-bounds in kmalloc_memmove_invalid_size+0x16f/0x330 [ 23.352212] Read of size 64 at addr ffff888105abc984 by task kunit_try_catch/231 [ 23.352575] [ 23.352654] CPU: 0 UID: 0 PID: 231 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4-next-20250703 #1 PREEMPT(voluntary) [ 23.352699] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.352711] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 23.352847] Call Trace: [ 23.352861] <TASK> [ 23.352877] dump_stack_lvl+0x73/0xb0 [ 23.352905] print_report+0xd1/0x650 [ 23.352926] ? __virt_addr_valid+0x1db/0x2d0 [ 23.352949] ? kmalloc_memmove_invalid_size+0x16f/0x330 [ 23.352973] ? kasan_complete_mode_report_info+0x2a/0x200 [ 23.353007] ? kmalloc_memmove_invalid_size+0x16f/0x330 [ 23.353031] kasan_report+0x141/0x180 [ 23.353054] ? kmalloc_memmove_invalid_size+0x16f/0x330 [ 23.353083] kasan_check_range+0x10c/0x1c0 [ 23.353106] __asan_memmove+0x27/0x70 [ 23.353129] kmalloc_memmove_invalid_size+0x16f/0x330 [ 23.353242] ? __pfx_kmalloc_memmove_invalid_size+0x10/0x10 [ 23.353268] ? __schedule+0x10cc/0x2b60 [ 23.353293] ? __pfx_read_tsc+0x10/0x10 [ 23.353319] ? ktime_get_ts64+0x86/0x230 [ 23.353344] kunit_try_run_case+0x1a5/0x480 [ 23.353369] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.353392] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 23.353412] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 23.353437] ? __kthread_parkme+0x82/0x180 [ 23.353471] ? preempt_count_sub+0x50/0x80 [ 23.353493] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.353518] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.353541] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 23.353565] kthread+0x337/0x6f0 [ 23.353584] ? trace_preempt_on+0x20/0xc0 [ 23.353606] ? __pfx_kthread+0x10/0x10 [ 23.353626] ? _raw_spin_unlock_irq+0x47/0x80 [ 23.353650] ? calculate_sigpending+0x7b/0xa0 [ 23.353673] ? __pfx_kthread+0x10/0x10 [ 23.353694] ret_from_fork+0x116/0x1d0 [ 23.353714] ? __pfx_kthread+0x10/0x10 [ 23.353734] ret_from_fork_asm+0x1a/0x30 [ 23.353764] </TASK> [ 23.353775] [ 23.361106] Allocated by task 231: [ 23.361861] kasan_save_stack+0x45/0x70 [ 23.362360] kasan_save_track+0x18/0x40 [ 23.362503] kasan_save_alloc_info+0x3b/0x50 [ 23.363081] __kasan_kmalloc+0xb7/0xc0 [ 23.363693] __kmalloc_cache_noprof+0x189/0x420 [ 23.364028] kmalloc_memmove_invalid_size+0xac/0x330 [ 23.364389] kunit_try_run_case+0x1a5/0x480 [ 23.364602] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.364832] kthread+0x337/0x6f0 [ 23.364972] ret_from_fork+0x116/0x1d0 [ 23.365132] ret_from_fork_asm+0x1a/0x30 [ 23.365665] [ 23.365762] The buggy address belongs to the object at ffff888105abc980 [ 23.365762] which belongs to the cache kmalloc-64 of size 64 [ 23.366836] The buggy address is located 4 bytes inside of [ 23.366836] allocated 64-byte region [ffff888105abc980, ffff888105abc9c0) [ 23.367719] [ 23.367817] The buggy address belongs to the physical page: [ 23.368044] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x105abc [ 23.368749] flags: 0x200000000000000(node=0|zone=2) [ 23.369104] page_type: f5(slab) [ 23.369669] raw: 0200000000000000 ffff8881000418c0 dead000000000122 0000000000000000 [ 23.370001] raw: 0000000000000000 0000000080200020 00000000f5000000 0000000000000000 [ 23.370761] page dumped because: kasan: bad access detected [ 23.371118] [ 23.371474] Memory state around the buggy address: [ 23.371695] ffff888105abc880: 00 00 00 00 00 01 fc fc fc fc fc fc fc fc fc fc [ 23.371980] ffff888105abc900: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc [ 23.372639] >ffff888105abc980: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc [ 23.373131] ^ [ 23.373608] ffff888105abca00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.374081] ffff888105abca80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.374463] ==================================================================