Hay
Date
May 30, 2025, 4:14 a.m.

Environment
e850-96
qemu-arm64
qemu-x86_64

[   21.701946] ==================================================================
[   21.711094] BUG: KASAN: invalid-free in kfree+0x270/0x3c8
[   21.716471] Free of addr ffff000801bb8001 by task kunit_try_catch/194
[   21.722894] 
[   21.724380] CPU: 3 UID: 0 PID: 194 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250530 #1 PREEMPT 
[   21.724438] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.724453] Hardware name: WinLink E850-96 board (DT)
[   21.724474] Call trace:
[   21.724487]  show_stack+0x20/0x38 (C)
[   21.724525]  dump_stack_lvl+0x8c/0xd0
[   21.724564]  print_report+0x118/0x608
[   21.724600]  kasan_report_invalid_free+0xc0/0xe8
[   21.724635]  __kasan_kfree_large+0x5c/0xa8
[   21.724672]  free_large_kmalloc+0x64/0x190
[   21.724704]  kfree+0x270/0x3c8
[   21.724732]  kmalloc_large_invalid_free+0x108/0x270
[   21.724764]  kunit_try_run_case+0x170/0x3f0
[   21.724800]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.724838]  kthread+0x328/0x630
[   21.724867]  ret_from_fork+0x10/0x20
[   21.724901] 
[   21.796246] The buggy address belongs to the physical page:
[   21.801803] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x881bb8
[   21.809788] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   21.817425] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   21.824370] page_type: f8(unknown)
[   21.827764] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   21.835485] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   21.843213] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   21.851022] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   21.858836] head: 0bfffe0000000002 fffffdffe006ee01 00000000ffffffff 00000000ffffffff
[   21.866648] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   21.874454] page dumped because: kasan: bad access detected
[   21.880010] 
[   21.881485] Memory state around the buggy address:
[   21.886269]  ffff000801bb7f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   21.893468]  ffff000801bb7f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   21.900675] >ffff000801bb8000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   21.907873]                    ^
[   21.911089]  ffff000801bb8080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   21.918293]  ffff000801bb8100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   21.925497] ==================================================================

[   24.262200] ==================================================================
[   24.262384] BUG: KASAN: invalid-free in kfree+0x270/0x3c8
[   24.262533] Free of addr fff00000c77b0001 by task kunit_try_catch/151
[   24.262701] 
[   24.262960] CPU: 0 UID: 0 PID: 151 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250530 #1 PREEMPT 
[   24.263165] Tainted: [B]=BAD_PAGE, [N]=TEST
[   24.264085] Hardware name: linux,dummy-virt (DT)
[   24.264177] Call trace:
[   24.264253]  show_stack+0x20/0x38 (C)
[   24.264350]  dump_stack_lvl+0x8c/0xd0
[   24.264417]  print_report+0x118/0x608
[   24.264474]  kasan_report_invalid_free+0xc0/0xe8
[   24.264533]  __kasan_kfree_large+0x5c/0xa8
[   24.264588]  free_large_kmalloc+0x64/0x190
[   24.264642]  kfree+0x270/0x3c8
[   24.265240]  kmalloc_large_invalid_free+0x108/0x270
[   24.265477]  kunit_try_run_case+0x170/0x3f0
[   24.265799]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   24.265927]  kthread+0x328/0x630
[   24.266038]  ret_from_fork+0x10/0x20
[   24.266157] 
[   24.266749] The buggy address belongs to the physical page:
[   24.266987] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1077b0
[   24.267315] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   24.267455] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   24.267587] page_type: f8(unknown)
[   24.268503] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   24.269092] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   24.269234] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   24.269367] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   24.270002] head: 0bfffe0000000002 ffffc1ffc31dec01 00000000ffffffff 00000000ffffffff
[   24.270271] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   24.270751] page dumped because: kasan: bad access detected
[   24.271205] 
[   24.271452] Memory state around the buggy address:
[   24.271836]  fff00000c77aff00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   24.272174]  fff00000c77aff80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[   24.272290] >fff00000c77b0000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   24.272380]                    ^
[   24.272789]  fff00000c77b0080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   24.272890]  fff00000c77b0100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   24.272995] ==================================================================

[   17.084003] ==================================================================
[   17.085241] BUG: KASAN: invalid-free in kfree+0x274/0x3f0
[   17.085644] Free of addr ffff888102cc0001 by task kunit_try_catch/167
[   17.086368] 
[   17.086630] CPU: 0 UID: 0 PID: 167 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-next-20250530 #1 PREEMPT(voluntary) 
[   17.086764] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.086822] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   17.086883] Call Trace:
[   17.086926]  <TASK>
[   17.086975]  dump_stack_lvl+0x73/0xb0
[   17.087080]  print_report+0xd1/0x650
[   17.087185]  ? __virt_addr_valid+0x1db/0x2d0
[   17.087292]  ? kasan_addr_to_slab+0x11/0xa0
[   17.087358]  ? kfree+0x274/0x3f0
[   17.087422]  kasan_report_invalid_free+0x10a/0x130
[   17.087498]  ? kfree+0x274/0x3f0
[   17.087567]  ? kfree+0x274/0x3f0
[   17.087629]  __kasan_kfree_large+0x86/0xd0
[   17.087692]  free_large_kmalloc+0x4b/0x110
[   17.087733]  kfree+0x274/0x3f0
[   17.087764]  kmalloc_large_invalid_free+0x120/0x2b0
[   17.087840]  ? __pfx_kmalloc_large_invalid_free+0x10/0x10
[   17.087878]  ? __schedule+0x10cc/0x2b60
[   17.087915]  ? __pfx_read_tsc+0x10/0x10
[   17.087945]  ? ktime_get_ts64+0x86/0x230
[   17.087979]  kunit_try_run_case+0x1a5/0x480
[   17.088009]  ? __pfx_kunit_try_run_case+0x10/0x10
[   17.088036]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   17.088102]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   17.088141]  ? __kthread_parkme+0x82/0x180
[   17.088172]  ? preempt_count_sub+0x50/0x80
[   17.088205]  ? __pfx_kunit_try_run_case+0x10/0x10
[   17.088233]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   17.088268]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   17.088303]  kthread+0x337/0x6f0
[   17.088330]  ? trace_preempt_on+0x20/0xc0
[   17.088363]  ? __pfx_kthread+0x10/0x10
[   17.088392]  ? _raw_spin_unlock_irq+0x47/0x80
[   17.088423]  ? calculate_sigpending+0x7b/0xa0
[   17.088457]  ? __pfx_kthread+0x10/0x10
[   17.088486]  ret_from_fork+0x116/0x1d0
[   17.088511]  ? __pfx_kthread+0x10/0x10
[   17.088539]  ret_from_fork_asm+0x1a/0x30
[   17.088581]  </TASK>
[   17.088596] 
[   17.102993] The buggy address belongs to the physical page:
[   17.103515] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102cc0
[   17.104249] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   17.104905] flags: 0x200000000000040(head|node=0|zone=2)
[   17.105534] page_type: f8(unknown)
[   17.105962] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   17.106659] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   17.107464] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   17.108183] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   17.108846] head: 0200000000000002 ffffea00040b3001 00000000ffffffff 00000000ffffffff
[   17.109459] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   17.110157] page dumped because: kasan: bad access detected
[   17.110702] 
[   17.111017] Memory state around the buggy address:
[   17.111493]  ffff888102cbff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   17.112134]  ffff888102cbff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   17.112585] >ffff888102cc0000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.113161]                    ^
[   17.113581]  ffff888102cc0080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.114259]  ffff888102cc0100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.115140] ==================================================================