Date
June 2, 2025, 2:11 p.m.
Environment | |
---|---|
e850-96 | |
qemu-arm64 | |
qemu-x86_64 |
[ 31.549704] ================================================================== [ 31.549887] BUG: KASAN: double-free in kmem_cache_double_free+0x190/0x3c8 [ 31.550017] Free of addr ffff000801dd4000 by task kunit_try_catch/256 [ 31.551416] [ 31.552904] CPU: 6 UID: 0 PID: 256 Comm: kunit_try_catch Tainted: G B N 6.15.1-rc1 #1 PREEMPT [ 31.552958] Tainted: [B]=BAD_PAGE, [N]=TEST [ 31.552977] Hardware name: WinLink E850-96 board (DT) [ 31.552999] Call trace: [ 31.553013] show_stack+0x20/0x38 (C) [ 31.553049] dump_stack_lvl+0x8c/0xd0 [ 31.553081] print_report+0x118/0x608 [ 31.553113] kasan_report_invalid_free+0xc0/0xe8 [ 31.553147] check_slab_allocation+0xd4/0x108 [ 31.553177] __kasan_slab_pre_free+0x2c/0x48 [ 31.553208] kmem_cache_free+0xf0/0x468 [ 31.553239] kmem_cache_double_free+0x190/0x3c8 [ 31.553273] kunit_try_run_case+0x170/0x3f0 [ 31.553309] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.553350] kthread+0x328/0x630 [ 31.553387] ret_from_fork+0x10/0x20 [ 31.553425] [ 31.624765] Allocated by task 256: [ 31.628151] kasan_save_stack+0x3c/0x68 [ 31.631969] kasan_save_track+0x20/0x40 [ 31.635790] kasan_save_alloc_info+0x40/0x58 [ 31.640042] __kasan_slab_alloc+0xa8/0xb0 [ 31.644035] kmem_cache_alloc_noprof+0x10c/0x398 [ 31.648635] kmem_cache_double_free+0x12c/0x3c8 [ 31.653149] kunit_try_run_case+0x170/0x3f0 [ 31.657315] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.662784] kthread+0x328/0x630 [ 31.665997] ret_from_fork+0x10/0x20 [ 31.669555] [ 31.671032] Freed by task 256: [ 31.674071] kasan_save_stack+0x3c/0x68 [ 31.677888] kasan_save_track+0x20/0x40 [ 31.681708] kasan_save_free_info+0x4c/0x78 [ 31.685874] __kasan_slab_free+0x6c/0x98 [ 31.689782] kmem_cache_free+0x260/0x468 [ 31.693687] kmem_cache_double_free+0x140/0x3c8 [ 31.698200] kunit_try_run_case+0x170/0x3f0 [ 31.702367] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.707836] kthread+0x328/0x630 [ 31.711047] ret_from_fork+0x10/0x20 [ 31.714606] [ 31.716084] The buggy address belongs to the object at ffff000801dd4000 [ 31.716084] which belongs to the cache test_cache of size 200 [ 31.728498] The buggy address is located 0 bytes inside of [ 31.728498] 200-byte region [ffff000801dd4000, ffff000801dd40c8) [ 31.740040] [ 31.741520] The buggy address belongs to the physical page: [ 31.747076] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x881dd4 [ 31.755061] head: order:1 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 31.762700] flags: 0xbfffe0000000040(head|node=0|zone=2|lastcpupid=0x1ffff) [ 31.769642] page_type: f5(slab) [ 31.772780] raw: 0bfffe0000000040 ffff000801dd2000 dead000000000122 0000000000000000 [ 31.780498] raw: 0000000000000000 00000000801f001f 00000000f5000000 0000000000000000 [ 31.788224] head: 0bfffe0000000040 ffff000801dd2000 dead000000000122 0000000000000000 [ 31.796035] head: 0000000000000000 00000000801f001f 00000000f5000000 0000000000000000 [ 31.803848] head: 0bfffe0000000001 fffffdffe0077501 00000000ffffffff 00000000ffffffff [ 31.811661] head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000002 [ 31.819466] page dumped because: kasan: bad access detected [ 31.825021] [ 31.826497] Memory state around the buggy address: [ 31.831279] ffff000801dd3f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.838480] ffff000801dd3f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.845686] >ffff000801dd4000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 31.852887] ^ [ 31.856101] ffff000801dd4080: fb fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc [ 31.863306] ffff000801dd4100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.870508] ==================================================================
[ 19.655830] ================================================================== [ 19.655909] BUG: KASAN: double-free in kmem_cache_double_free+0x190/0x3c8 [ 19.656245] Free of addr fff00000c3f3d000 by task kunit_try_catch/212 [ 19.656289] [ 19.656426] CPU: 1 UID: 0 PID: 212 Comm: kunit_try_catch Tainted: G B W N 6.15.1-rc1 #1 PREEMPT [ 19.656546] Tainted: [B]=BAD_PAGE, [W]=WARN, [N]=TEST [ 19.656576] Hardware name: linux,dummy-virt (DT) [ 19.656843] Call trace: [ 19.656868] show_stack+0x20/0x38 (C) [ 19.656923] dump_stack_lvl+0x8c/0xd0 [ 19.656972] print_report+0x118/0x608 [ 19.657031] kasan_report_invalid_free+0xc0/0xe8 [ 19.657081] check_slab_allocation+0xd4/0x108 [ 19.657129] __kasan_slab_pre_free+0x2c/0x48 [ 19.657178] kmem_cache_free+0xf0/0x468 [ 19.657369] kmem_cache_double_free+0x190/0x3c8 [ 19.657442] kunit_try_run_case+0x170/0x3f0 [ 19.657506] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.659665] kthread+0x328/0x630 [ 19.659747] ret_from_fork+0x10/0x20 [ 19.659815] [ 19.659836] Allocated by task 212: [ 19.659869] kasan_save_stack+0x3c/0x68 [ 19.659949] kasan_save_track+0x20/0x40 [ 19.660006] kasan_save_alloc_info+0x40/0x58 [ 19.660049] __kasan_slab_alloc+0xa8/0xb0 [ 19.660085] kmem_cache_alloc_noprof+0x10c/0x398 [ 19.660127] kmem_cache_double_free+0x12c/0x3c8 [ 19.660171] kunit_try_run_case+0x170/0x3f0 [ 19.660216] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.660263] kthread+0x328/0x630 [ 19.660300] ret_from_fork+0x10/0x20 [ 19.660337] [ 19.660365] Freed by task 212: [ 19.660393] kasan_save_stack+0x3c/0x68 [ 19.660430] kasan_save_track+0x20/0x40 [ 19.660467] kasan_save_free_info+0x4c/0x78 [ 19.662370] __kasan_slab_free+0x6c/0x98 [ 19.662429] kmem_cache_free+0x260/0x468 [ 19.662484] kmem_cache_double_free+0x140/0x3c8 [ 19.662529] kunit_try_run_case+0x170/0x3f0 [ 19.662765] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 19.662848] kthread+0x328/0x630 [ 19.663334] ret_from_fork+0x10/0x20 [ 19.663423] [ 19.663447] The buggy address belongs to the object at fff00000c3f3d000 [ 19.663447] which belongs to the cache test_cache of size 200 [ 19.663517] The buggy address is located 0 bytes inside of [ 19.663517] 200-byte region [fff00000c3f3d000, fff00000c3f3d0c8) [ 19.663612] [ 19.663670] The buggy address belongs to the physical page: [ 19.663737] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103f3d [ 19.664079] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 19.664156] page_type: f5(slab) [ 19.664251] raw: 0bfffe0000000000 fff00000c586f640 dead000000000122 0000000000000000 [ 19.664324] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 19.664416] page dumped because: kasan: bad access detected [ 19.664479] [ 19.664500] Memory state around the buggy address: [ 19.664741] fff00000c3f3cf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.664820] fff00000c3f3cf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.664891] >fff00000c3f3d000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 19.664993] ^ [ 19.665052] fff00000c3f3d080: fb fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc [ 19.665278] fff00000c3f3d100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 19.665321] ==================================================================
[ 17.474722] ================================================================== [ 17.475428] BUG: KASAN: double-free in kmem_cache_double_free+0x1e5/0x480 [ 17.475684] Free of addr ffff888101dfe000 by task kunit_try_catch/230 [ 17.475846] [ 17.475940] CPU: 1 UID: 0 PID: 230 Comm: kunit_try_catch Tainted: G B N 6.15.1-rc1 #1 PREEMPT(voluntary) [ 17.476003] Tainted: [B]=BAD_PAGE, [N]=TEST [ 17.476018] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 17.476043] Call Trace: [ 17.476059] <TASK> [ 17.476083] dump_stack_lvl+0x73/0xb0 [ 17.476129] print_report+0xd1/0x650 [ 17.476156] ? __virt_addr_valid+0x1db/0x2d0 [ 17.476185] ? kasan_complete_mode_report_info+0x64/0x200 [ 17.476209] ? kmem_cache_double_free+0x1e5/0x480 [ 17.476232] kasan_report_invalid_free+0x10a/0x130 [ 17.476259] ? kmem_cache_double_free+0x1e5/0x480 [ 17.476284] ? kmem_cache_double_free+0x1e5/0x480 [ 17.476306] check_slab_allocation+0x101/0x130 [ 17.476330] __kasan_slab_pre_free+0x28/0x40 [ 17.476353] kmem_cache_free+0xed/0x420 [ 17.476377] ? kmem_cache_alloc_noprof+0x123/0x3f0 [ 17.476400] ? kmem_cache_double_free+0x1e5/0x480 [ 17.476425] kmem_cache_double_free+0x1e5/0x480 [ 17.476447] ? __pfx_kmem_cache_double_free+0x10/0x10 [ 17.476469] ? finish_task_switch.isra.0+0x153/0x700 [ 17.476496] ? __switch_to+0x5d9/0xf60 [ 17.476518] ? dequeue_task_fair+0x166/0x4e0 [ 17.476547] ? __pfx_read_tsc+0x10/0x10 [ 17.476570] ? ktime_get_ts64+0x86/0x230 [ 17.476598] kunit_try_run_case+0x1a5/0x480 [ 17.476625] ? __pfx_kunit_try_run_case+0x10/0x10 [ 17.476648] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 17.476673] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 17.476697] ? __kthread_parkme+0x82/0x180 [ 17.476721] ? preempt_count_sub+0x50/0x80 [ 17.476759] ? __pfx_kunit_try_run_case+0x10/0x10 [ 17.476789] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 17.476814] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 17.476839] kthread+0x337/0x6f0 [ 17.476858] ? trace_preempt_on+0x20/0xc0 [ 17.476885] ? __pfx_kthread+0x10/0x10 [ 17.476905] ? _raw_spin_unlock_irq+0x47/0x80 [ 17.476928] ? calculate_sigpending+0x7b/0xa0 [ 17.476952] ? __pfx_kthread+0x10/0x10 [ 17.476973] ret_from_fork+0x41/0x80 [ 17.477000] ? __pfx_kthread+0x10/0x10 [ 17.477144] ret_from_fork_asm+0x1a/0x30 [ 17.477232] </TASK> [ 17.477254] [ 17.485528] Allocated by task 230: [ 17.485832] kasan_save_stack+0x45/0x70 [ 17.486137] kasan_save_track+0x18/0x40 [ 17.486428] kasan_save_alloc_info+0x3b/0x50 [ 17.487286] __kasan_slab_alloc+0x91/0xa0 [ 17.487967] kmem_cache_alloc_noprof+0x123/0x3f0 [ 17.488989] kmem_cache_double_free+0x14f/0x480 [ 17.489695] kunit_try_run_case+0x1a5/0x480 [ 17.489860] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 17.490243] kthread+0x337/0x6f0 [ 17.490772] ret_from_fork+0x41/0x80 [ 17.491068] ret_from_fork_asm+0x1a/0x30 [ 17.491297] [ 17.491370] Freed by task 230: [ 17.491757] kasan_save_stack+0x45/0x70 [ 17.492002] kasan_save_track+0x18/0x40 [ 17.492291] kasan_save_free_info+0x3f/0x60 [ 17.492567] __kasan_slab_free+0x56/0x70 [ 17.492797] kmem_cache_free+0x249/0x420 [ 17.493061] kmem_cache_double_free+0x16a/0x480 [ 17.493467] kunit_try_run_case+0x1a5/0x480 [ 17.493757] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 17.494006] kthread+0x337/0x6f0 [ 17.494687] ret_from_fork+0x41/0x80 [ 17.494929] ret_from_fork_asm+0x1a/0x30 [ 17.495138] [ 17.495240] The buggy address belongs to the object at ffff888101dfe000 [ 17.495240] which belongs to the cache test_cache of size 200 [ 17.495721] The buggy address is located 0 bytes inside of [ 17.495721] 200-byte region [ffff888101dfe000, ffff888101dfe0c8) [ 17.496400] [ 17.496555] The buggy address belongs to the physical page: [ 17.496778] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x101dfe [ 17.497262] flags: 0x200000000000000(node=0|zone=2) [ 17.497548] page_type: f5(slab) [ 17.497792] raw: 0200000000000000 ffff88810166d8c0 dead000000000122 0000000000000000 [ 17.498359] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 17.499041] page dumped because: kasan: bad access detected [ 17.499444] [ 17.499542] Memory state around the buggy address: [ 17.499697] ffff888101dfdf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.500083] ffff888101dfdf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.500401] >ffff888101dfe000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 17.500868] ^ [ 17.501138] ffff888101dfe080: fb fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc [ 17.501622] ffff888101dfe100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 17.501851] ==================================================================