Hay
Date
May 15, 2025, 10:38 a.m.

Environment
e850-96

[   21.618143] ==================================================================
[   21.627354] BUG: KASAN: invalid-free in kfree+0x270/0x3c8
[   21.632735] Free of addr ffff000803498001 by task kunit_try_catch/195
[   21.639156] 
[   21.640642] CPU: 6 UID: 0 PID: 195 Comm: kunit_try_catch Tainted: G    B            N  6.15.0-rc6-next-20250515 #1 PREEMPT 
[   21.640699] Tainted: [B]=BAD_PAGE, [N]=TEST
[   21.640716] Hardware name: WinLink E850-96 board (DT)
[   21.640738] Call trace:
[   21.640750]  show_stack+0x20/0x38 (C)
[   21.640790]  dump_stack_lvl+0x8c/0xd0
[   21.640823]  print_report+0x118/0x608
[   21.640859]  kasan_report_invalid_free+0xc0/0xe8
[   21.640893]  __kasan_kfree_large+0x5c/0xa8
[   21.640927]  free_large_kmalloc+0x64/0x190
[   21.640957]  kfree+0x270/0x3c8
[   21.640984]  kmalloc_large_invalid_free+0x108/0x270
[   21.641015]  kunit_try_run_case+0x170/0x3f0
[   21.641047]  kunit_generic_run_threadfn_adapter+0x88/0x100
[   21.641083]  kthread+0x328/0x630
[   21.641119]  ret_from_fork+0x10/0x20
[   21.641151] 
[   21.712856] The buggy address belongs to the physical page:
[   21.718411] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x883498
[   21.726394] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
[   21.734034] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff)
[   21.740977] page_type: f8(unknown)
[   21.744374] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   21.752093] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   21.759821] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000
[   21.767631] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000
[   21.775444] head: 0bfffe0000000002 fffffdffe00d2601 00000000ffffffff 00000000ffffffff
[   21.783256] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
[   21.791063] page dumped because: kasan: bad access detected
[   21.796617] 
[   21.798092] Memory state around the buggy address:
[   21.802873]  ffff000803497f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   21.810076]  ffff000803497f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[   21.817282] >ffff000803498000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   21.824481]                    ^
[   21.827697]  ffff000803498080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   21.834902]  ffff000803498100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[   21.842104] ==================================================================