Hay
Date
June 2, 2025, 2:11 p.m.

Environment
e850-96
qemu-arm64
qemu-x86_64

[   19.500953] ==================================================================
[   19.510253] BUG: KASAN: invalid-free in kfree+0x270/0x3c8
[   19.515633] Free of addr ffff0008031f8001 by task kunit_try_catch/197
[   19.522054] 
[   19.523540] CPU: 5 UID: 0 PID: 197 Comm: kunit_try_catch Tainted: G    B            N  6.15.1-rc1 #1 PREEMPT 
[   19.523596] Tainted: [B]=BAD_PAGE, [N]=TEST
[   19.523612] Hardware name: WinLink E850-96 board (DT)
[   19.523633] Call trace:
[   19.523648]  show_stack+0x20/0x38 (C)
[   19.523681]  dump_stack_lvl+0x8c/0xd0
[   19.523714]  print_report+0x118/0x608
[   19.523745]  kasan_report_invalid_free+0xc0/0xe8
[   19.523776]  __kasan_kfree_large+0x5c/0xa8
[   19.523807]  free_large_kmalloc+0x64/0x190
[   19.523840]  kfree+0x270/0x3c8
[   19.523870]  kmalloc_large_invalid_free+0x108/0x270
[   19.523906]  kunit_try_run_case+0x170/0x3f0
[   19.523940]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   19.523980]  kthread+0x328/0x630
[   19.524015]  ret_from_fork+0x10/0x20
[   19.524052] 
[   19.594539] The buggy address belongs to the physical page:
[   19.600097] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x8831f8
[   19.608081] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   19.615718] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   19.622660] page_type: f8(unknown)
[   19.626060] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   19.633777] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   19.641504] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   19.649315] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   19.657128] head: 0bfffe0000000002 fffffdffe00c7e01 00000000ffffffff 00000000ffffffff
[   19.664941] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   19.672746] page dumped because: kasan: bad access detected
[   19.678301] 
[   19.679778] Memory state around the buggy address:
[   19.684559]  ffff0008031f7f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   19.691760]  ffff0008031f7f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   19.698966] >ffff0008031f8000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.706166]                    ^
[   19.709381]  ffff0008031f8080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.716586]  ffff0008031f8100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   19.723790] ==================================================================

[   17.462044] ==================================================================
[   17.462130] BUG: KASAN: invalid-free in kfree+0x270/0x3c8
[   17.462199] Free of addr fff00000c65a4001 by task kunit_try_catch/153
[   17.462242] 
[   17.462276] CPU: 1 UID: 0 PID: 153 Comm: kunit_try_catch Tainted: G    B            N  6.15.1-rc1 #1 PREEMPT 
[   17.466248] Tainted: [B]=BAD_PAGE, [N]=TEST
[   17.466285] Hardware name: linux,dummy-virt (DT)
[   17.466317] Call trace:
[   17.466342]  show_stack+0x20/0x38 (C)
[   17.466672]  dump_stack_lvl+0x8c/0xd0
[   17.466727]  print_report+0x118/0x608
[   17.467284]  kasan_report_invalid_free+0xc0/0xe8
[   17.467369]  __kasan_kfree_large+0x5c/0xa8
[   17.467422]  free_large_kmalloc+0x64/0x190
[   17.467474]  kfree+0x270/0x3c8
[   17.467520]  kmalloc_large_invalid_free+0x108/0x270
[   17.467572]  kunit_try_run_case+0x170/0x3f0
[   17.467623]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   17.467679]  kthread+0x328/0x630
[   17.467725]  ret_from_fork+0x10/0x20
[   17.467774] 
[   17.467795] The buggy address belongs to the physical page:
[   17.467828] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1065a4
[   17.467881] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   17.467927] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   17.467981] page_type: f8(unknown)
[   17.468021] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   17.468069] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   17.468117] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   17.468163] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   17.468210] head: 0bfffe0000000002 ffffc1ffc3196901 00000000ffffffff 00000000ffffffff
[   17.468257] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   17.468295] page dumped because: kasan: bad access detected
[   17.468324] 
[   17.468342] Memory state around the buggy address:
[   17.468385]  fff00000c65a3f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   17.468427]  fff00000c65a3f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   17.468468] >fff00000c65a4000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.468505]                    ^
[   17.468533]  fff00000c65a4080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.468574]  fff00000c65a4100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   17.468624] ==================================================================

[   15.809006] ==================================================================
[   15.810151] BUG: KASAN: invalid-free in kfree+0x274/0x3f0
[   15.810970] Free of addr ffff8881025a4001 by task kunit_try_catch/171
[   15.811700] 
[   15.812008] CPU: 1 UID: 0 PID: 171 Comm: kunit_try_catch Tainted: G    B            N  6.15.1-rc1 #1 PREEMPT(voluntary) 
[   15.812152] Tainted: [B]=BAD_PAGE, [N]=TEST
[   15.812203] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
[   15.812254] Call Trace:
[   15.812290]  <TASK>
[   15.812334]  dump_stack_lvl+0x73/0xb0
[   15.812416]  print_report+0xd1/0x650
[   15.812468]  ? __virt_addr_valid+0x1db/0x2d0
[   15.812525]  ? kasan_addr_to_slab+0x11/0xa0
[   15.812571]  ? kfree+0x274/0x3f0
[   15.812608]  kasan_report_invalid_free+0x10a/0x130
[   15.812654]  ? kfree+0x274/0x3f0
[   15.812698]  ? kfree+0x274/0x3f0
[   15.812735]  __kasan_kfree_large+0x86/0xd0
[   15.812798]  free_large_kmalloc+0x4b/0x110
[   15.812846]  kfree+0x274/0x3f0
[   15.812896]  kmalloc_large_invalid_free+0x120/0x2b0
[   15.812959]  ? __pfx_kmalloc_large_invalid_free+0x10/0x10
[   15.813027]  ? __schedule+0x10cc/0x2b30
[   15.813071]  ? __pfx_read_tsc+0x10/0x10
[   15.813106]  ? ktime_get_ts64+0x86/0x230
[   15.813159]  kunit_try_run_case+0x1a5/0x480
[   15.813203]  ? __pfx_kunit_try_run_case+0x10/0x10
[   15.813235]  ? _raw_spin_lock_irqsave+0xa1/0x100
[   15.813273]  ? _raw_spin_unlock_irqrestore+0x5f/0x90
[   15.813309]  ? __kthread_parkme+0x82/0x180
[   15.813347]  ? preempt_count_sub+0x50/0x80
[   15.813391]  ? __pfx_kunit_try_run_case+0x10/0x10
[   15.813426]  kunit_generic_run_threadfn_adapter+0x85/0xf0
[   15.813459]  ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10
[   15.813492]  kthread+0x337/0x6f0
[   15.813518]  ? trace_preempt_on+0x20/0xc0
[   15.813557]  ? __pfx_kthread+0x10/0x10
[   15.813587]  ? _raw_spin_unlock_irq+0x47/0x80
[   15.813622]  ? calculate_sigpending+0x7b/0xa0
[   15.813656]  ? __pfx_kthread+0x10/0x10
[   15.813687]  ret_from_fork+0x41/0x80
[   15.813722]  ? __pfx_kthread+0x10/0x10
[   15.813771]  ret_from_fork_asm+0x1a/0x30
[   15.813825]  </TASK>
[   15.813849] 
[   15.828009] The buggy address belongs to the physical page:
[   15.828351] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1025a4
[   15.829172] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   15.830517] flags: 0x200000000000040(head|node=0|zone=2)
[   15.830770] page_type: f8(unknown)
[   15.831150] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   15.831896] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   15.832845] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000
[   15.833189] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   15.833591] head: 0200000000000002 ffffea0004096901 00000000ffffffff 00000000ffffffff
[   15.834042] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   15.834600] page dumped because: kasan: bad access detected
[   15.835515] 
[   15.835802] Memory state around the buggy address:
[   15.836112]  ffff8881025a3f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   15.837261]  ffff8881025a3f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   15.837589] >ffff8881025a4000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   15.838035]                    ^
[   15.838336]  ffff8881025a4080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   15.839081]  ffff8881025a4100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   15.839847] ==================================================================