Date
June 24, 2025, 11:37 a.m.
Environment | |
---|---|
dragonboard-845c | |
qemu-arm64 | |
qemu-x86_64 |
[ 31.269289] ================================================================== [ 31.280409] BUG: KASAN: invalid-free in kfree+0x270/0x3c8 [ 31.285892] Free of addr ffff000086418001 by task kunit_try_catch/248 [ 31.292418] [ 31.293952] CPU: 3 UID: 0 PID: 248 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250624 #1 PREEMPT [ 31.293981] Tainted: [B]=BAD_PAGE, [N]=TEST [ 31.293990] Hardware name: Thundercomm Dragonboard 845c (DT) [ 31.294002] Call trace: [ 31.294009] show_stack+0x20/0x38 (C) [ 31.294028] dump_stack_lvl+0x8c/0xd0 [ 31.294050] print_report+0x118/0x608 [ 31.294069] kasan_report_invalid_free+0xc0/0xe8 [ 31.294091] __kasan_kfree_large+0x5c/0xa8 [ 31.294111] free_large_kmalloc+0x68/0x150 [ 31.294129] kfree+0x270/0x3c8 [ 31.294145] kmalloc_large_invalid_free+0x108/0x270 [ 31.294163] kunit_try_run_case+0x170/0x3f0 [ 31.294182] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.294205] kthread+0x328/0x630 [ 31.294220] ret_from_fork+0x10/0x20 [ 31.294237] [ 31.368222] The buggy address belongs to the physical page: [ 31.373868] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106418 [ 31.381973] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 31.389731] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 31.396788] page_type: f8(unknown) [ 31.400258] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 31.408105] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 31.415951] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 31.423883] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 31.431815] head: 0bfffe0000000002 fffffdffc2190601 00000000ffffffff 00000000ffffffff [ 31.439748] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 31.447675] page dumped because: kasan: bad access detected [ 31.453320] [ 31.454850] Memory state around the buggy address: [ 31.459709] ffff000086417f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.467023] ffff000086417f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.474338] >ffff000086418000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 31.481650] ^ [ 31.484933] ffff000086418080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 31.492247] ffff000086418100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 31.499559] ==================================================================
[ 32.552677] ================================================================== [ 32.552807] BUG: KASAN: invalid-free in kfree+0x270/0x3c8 [ 32.552937] Free of addr fff00000c7758001 by task kunit_try_catch/161 [ 32.553049] [ 32.553132] CPU: 0 UID: 0 PID: 161 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250624 #1 PREEMPT [ 32.553331] Tainted: [B]=BAD_PAGE, [N]=TEST [ 32.553394] Hardware name: linux,dummy-virt (DT) [ 32.553466] Call trace: [ 32.553530] show_stack+0x20/0x38 (C) [ 32.553652] dump_stack_lvl+0x8c/0xd0 [ 32.553787] print_report+0x118/0x608 [ 32.553922] kasan_report_invalid_free+0xc0/0xe8 [ 32.554044] __kasan_kfree_large+0x5c/0xa8 [ 32.554160] free_large_kmalloc+0x68/0x150 [ 32.554272] kfree+0x270/0x3c8 [ 32.554386] kmalloc_large_invalid_free+0x108/0x270 [ 32.554513] kunit_try_run_case+0x170/0x3f0 [ 32.554630] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 32.554755] kthread+0x328/0x630 [ 32.554864] ret_from_fork+0x10/0x20 [ 32.555017] [ 32.555075] The buggy address belongs to the physical page: [ 32.555208] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x107758 [ 32.555343] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 32.555465] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 32.555607] page_type: f8(unknown) [ 32.555751] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 32.555869] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 32.556023] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 32.556154] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 32.556282] head: 0bfffe0000000002 ffffc1ffc31dd601 00000000ffffffff 00000000ffffffff [ 32.556406] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 32.556529] page dumped because: kasan: bad access detected [ 32.556683] [ 32.556798] Memory state around the buggy address: [ 32.556964] fff00000c7757f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 32.557071] fff00000c7757f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 32.557186] >fff00000c7758000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 32.557355] ^ [ 32.557435] fff00000c7758080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 32.557540] fff00000c7758100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 32.557698] ==================================================================
[ 28.181467] ================================================================== [ 28.182151] BUG: KASAN: invalid-free in kfree+0x274/0x3f0 [ 28.183140] Free of addr ffff888102d60001 by task kunit_try_catch/180 [ 28.183905] [ 28.184076] CPU: 0 UID: 0 PID: 180 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc3-next-20250624 #1 PREEMPT(voluntary) [ 28.184223] Tainted: [B]=BAD_PAGE, [N]=TEST [ 28.184258] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 28.184302] Call Trace: [ 28.184331] <TASK> [ 28.184369] dump_stack_lvl+0x73/0xb0 [ 28.184442] print_report+0xd1/0x650 [ 28.184495] ? __virt_addr_valid+0x1db/0x2d0 [ 28.184566] ? kasan_addr_to_slab+0x11/0xa0 [ 28.184618] ? kfree+0x274/0x3f0 [ 28.184674] kasan_report_invalid_free+0x10a/0x130 [ 28.184742] ? kfree+0x274/0x3f0 [ 28.184806] ? kfree+0x274/0x3f0 [ 28.184855] __kasan_kfree_large+0x86/0xd0 [ 28.184900] free_large_kmalloc+0x52/0x110 [ 28.184932] kfree+0x274/0x3f0 [ 28.184965] kmalloc_large_invalid_free+0x120/0x2b0 [ 28.184996] ? __pfx_kmalloc_large_invalid_free+0x10/0x10 [ 28.185029] ? __pfx_kmalloc_large_invalid_free+0x10/0x10 [ 28.185075] kunit_try_run_case+0x1a5/0x480 [ 28.185144] ? __pfx_kunit_try_run_case+0x10/0x10 [ 28.185185] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 28.185220] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 28.185253] ? __kthread_parkme+0x82/0x180 [ 28.185281] ? preempt_count_sub+0x50/0x80 [ 28.185312] ? __pfx_kunit_try_run_case+0x10/0x10 [ 28.185343] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 28.185374] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 28.185404] kthread+0x337/0x6f0 [ 28.185429] ? trace_preempt_on+0x20/0xc0 [ 28.185459] ? __pfx_kthread+0x10/0x10 [ 28.185485] ? _raw_spin_unlock_irq+0x47/0x80 [ 28.185514] ? calculate_sigpending+0x7b/0xa0 [ 28.185564] ? __pfx_kthread+0x10/0x10 [ 28.185593] ret_from_fork+0x116/0x1d0 [ 28.185619] ? __pfx_kthread+0x10/0x10 [ 28.185660] ret_from_fork_asm+0x1a/0x30 [ 28.185701] </TASK> [ 28.185716] [ 28.201741] The buggy address belongs to the physical page: [ 28.202333] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102d60 [ 28.203159] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 28.203857] flags: 0x200000000000040(head|node=0|zone=2) [ 28.204492] page_type: f8(unknown) [ 28.205017] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 28.205836] raw: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 28.206440] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 28.207419] head: 0000000000000000 0000000000000000 00000000f8000000 0000000000000000 [ 28.207950] head: 0200000000000002 ffffea00040b5801 00000000ffffffff 00000000ffffffff [ 28.208675] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 28.209357] page dumped because: kasan: bad access detected [ 28.209880] [ 28.210082] Memory state around the buggy address: [ 28.210726] ffff888102d5ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.211112] ffff888102d5ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.211755] >ffff888102d60000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 28.212254] ^ [ 28.212699] ffff888102d60080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 28.213341] ffff888102d60100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 28.214200] ==================================================================