Date
April 22, 2025, 11:09 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 | |
rk3399-rock-pi-4b |
[ 17.382214] ================================================================== [ 17.382437] BUG: KASAN: invalid-free in kfree+0x270/0x3c8 [ 17.382609] Free of addr fff00000c6bbc001 by task kunit_try_catch/152 [ 17.382741] [ 17.382814] CPU: 1 UID: 0 PID: 152 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc3 #1 PREEMPT [ 17.383068] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.383154] Hardware name: linux,dummy-virt (DT) [ 17.383247] Call trace: [ 17.383341] show_stack+0x20/0x38 (C) [ 17.383438] dump_stack_lvl+0x8c/0xd0 [ 17.383541] print_report+0x118/0x608 [ 17.383863] kasan_report_invalid_free+0xc0/0xe8 [ 17.384129] __kasan_kfree_large+0x5c/0xa8 [ 17.384244] free_large_kmalloc+0x64/0x190 [ 17.384386] kfree+0x270/0x3c8 [ 17.384896] kmalloc_large_invalid_free+0x108/0x270 [ 17.385098] kunit_try_run_case+0x170/0x3f0 [ 17.385326] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 17.385474] kthread+0x328/0x630 [ 17.386065] ret_from_fork+0x10/0x20 [ 17.386678] [ 17.386953] The buggy address belongs to the physical page: [ 17.387236] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106bbc [ 17.387429] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 17.387760] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 17.387916] page_type: f8(unknown) [ 17.387999] raw: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 17.388102] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 17.388768] head: 0bfffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 17.389136] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 17.389320] head: 0bfffe0000000002 ffffc1ffc31aef01 00000000ffffffff 00000000ffffffff [ 17.389582] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 17.389742] page dumped because: kasan: bad access detected [ 17.389831] [ 17.389870] Memory state around the buggy address: [ 17.389939] fff00000c6bbbf00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 17.390574] fff00000c6bbbf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 17.390743] >fff00000c6bbc000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.390831] ^ [ 17.390892] fff00000c6bbc080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.391042] fff00000c6bbc100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.391266] ==================================================================
[ 17.046693] ================================================================== [ 17.047694] BUG: KASAN: invalid-free in kfree+0x274/0x3f0 [ 17.047928] Free of addr ffff8881028a0001 by task kunit_try_catch/170 [ 17.048150] [ 17.048256] CPU: 1 UID: 0 PID: 170 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc3 #1 PREEMPT(voluntary) [ 17.048316] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.048332] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 17.048359] Call Trace: [ 17.048374] <TASK> [ 17.048395] dump_stack_lvl+0x73/0xb0 [ 17.048430] print_report+0xd1/0x650 [ 17.048461] ? __virt_addr_valid+0x1db/0x2d0 [ 17.048491] ? kasan_addr_to_slab+0x11/0xa0 [ 17.048565] ? kfree+0x274/0x3f0 [ 17.048632] kasan_report_invalid_free+0x10a/0x130 [ 17.048707] ? kfree+0x274/0x3f0 [ 17.048778] ? kfree+0x274/0x3f0 [ 17.048840] __kasan_kfree_large+0x86/0xd0 [ 17.048914] free_large_kmalloc+0x4b/0x110 [ 17.048994] kfree+0x274/0x3f0 [ 17.049062] ? kmalloc_large_invalid_free+0x8f/0x2b0 [ 17.049140] kmalloc_large_invalid_free+0x120/0x2b0 [ 17.049213] ? __pfx_kmalloc_large_invalid_free+0x10/0x10 [ 17.049283] ? __schedule+0x10cc/0x2b30 [ 17.049355] ? __pfx_read_tsc+0x10/0x10 [ 17.049416] ? ktime_get_ts64+0x86/0x230 [ 17.049487] kunit_try_run_case+0x1a5/0x480 [ 17.049733] ? __pfx_kunit_try_run_case+0x10/0x10 [ 17.049807] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 17.049882] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 17.049959] ? __kthread_parkme+0x82/0x180 [ 17.050030] ? preempt_count_sub+0x50/0x80 [ 17.050110] ? __pfx_kunit_try_run_case+0x10/0x10 [ 17.050188] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 17.050265] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 17.050335] kthread+0x337/0x6f0 [ 17.050394] ? trace_preempt_on+0x20/0xc0 [ 17.050447] ? __pfx_kthread+0x10/0x10 [ 17.050581] ? _raw_spin_unlock_irq+0x47/0x80 [ 17.050648] ? calculate_sigpending+0x7b/0xa0 [ 17.050680] ? __pfx_kthread+0x10/0x10 [ 17.050711] ret_from_fork+0x41/0x80 [ 17.050739] ? __pfx_kthread+0x10/0x10 [ 17.050769] ret_from_fork_asm+0x1a/0x30 [ 17.050813] </TASK> [ 17.050826] [ 17.069456] The buggy address belongs to the physical page: [ 17.069967] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1028a0 [ 17.071244] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 17.072312] flags: 0x200000000000040(head|node=0|zone=2) [ 17.072769] page_type: f8(unknown) [ 17.073803] raw: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 17.074423] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 17.075371] head: 0200000000000040 0000000000000000 dead000000000122 0000000000000000 [ 17.076231] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 17.077055] head: 0200000000000002 ffffea00040a2801 00000000ffffffff 00000000ffffffff [ 17.077788] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 17.078037] page dumped because: kasan: bad access detected [ 17.078218] [ 17.078298] Memory state around the buggy address: [ 17.079081] ffff88810289ff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.079932] ffff88810289ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.080520] >ffff8881028a0000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.081236] ^ [ 17.081711] ffff8881028a0080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.082281] ffff8881028a0100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 17.082900] ==================================================================
[ 19.209947] ================================================================== [ 19.210983] BUG: KASAN: invalid-free in kfree+0x270/0x3c8 [ 19.211511] Free of addr ffff000001a94001 by task kunit_try_catch/208 [ 19.212107] [ 19.212269] CPU: 3 UID: 0 PID: 208 Comm: kunit_try_catch Tainted: G B N 6.15.0-rc3 #1 PREEMPT [ 19.212317] Tainted: [B]=BAD_PAGE, [N]=TEST [ 19.212331] Hardware name: Radxa ROCK Pi 4B (DT) [ 19.212347] Call trace: [ 19.212359] show_stack+0x20/0x38 (C) [ 19.212390] dump_stack_lvl+0x8c/0xd0 [ 19.212421] print_report+0x118/0x608 [ 19.212451] kasan_report_invalid_free+0xc0/0xe8 [ 19.212482] __kasan_kfree_large+0x5c/0xa8 [ 19.212511] free_large_kmalloc+0x64/0x190 [ 19.212546] kfree+0x270/0x3c8 [ 19.212576] kmalloc_large_invalid_free+0x108/0x270 [ 19.212613] kunit_try_run_case+0x170/0x3f0 [ 19.212647] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.212686] kthread+0x328/0x630 [ 19.212719] ret_from_fork+0x10/0x20 [ 19.212751] [ 19.219068] The buggy address belongs to the physical page: [ 19.219588] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1a94 [ 19.220312] head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 19.221016] flags: 0x3fffe0000000040(head|node=0|zone=0|lastcpupid=0x1ffff) [ 19.221666] page_type: f8(unknown) [ 19.222001] raw: 03fffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 19.222716] raw: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 19.223431] head: 03fffe0000000040 0000000000000000 dead000000000122 0000000000000000 [ 19.224153] head: 0000000000000000 0000000000000000 00000001f8000000 0000000000000000 [ 19.224875] head: 03fffe0000000002 fffffdffc006a501 00000000ffffffff 00000000ffffffff [ 19.225598] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004 [ 19.226314] page dumped because: kasan: bad access detected [ 19.226828] [ 19.226980] Memory state around the buggy address: [ 19.227429] ffff000001a93f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 19.228095] ffff000001a93f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 19.228760] >ffff000001a94000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 19.229421] ^ [ 19.229733] ffff000001a94080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 19.230398] ffff000001a94100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 19.231060] ==================================================================