Date
July 2, 2025, 11:10 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 31.464658] ================================================================== [ 31.464775] BUG: KASAN: invalid-free in kmem_cache_invalid_free+0x184/0x3c8 [ 31.464842] Free of addr fff00000c406c001 by task kunit_try_catch/244 [ 31.464886] [ 31.464937] CPU: 0 UID: 0 PID: 244 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4-next-20250702 #1 PREEMPT [ 31.465196] Tainted: [B]=BAD_PAGE, [N]=TEST [ 31.465633] Hardware name: linux,dummy-virt (DT) [ 31.465675] Call trace: [ 31.465954] show_stack+0x20/0x38 (C) [ 31.466345] dump_stack_lvl+0x8c/0xd0 [ 31.466418] print_report+0x118/0x608 [ 31.466845] kasan_report_invalid_free+0xc0/0xe8 [ 31.466913] check_slab_allocation+0xfc/0x108 [ 31.467329] __kasan_slab_pre_free+0x2c/0x48 [ 31.467906] kmem_cache_free+0xf0/0x468 [ 31.467977] kmem_cache_invalid_free+0x184/0x3c8 [ 31.468027] kunit_try_run_case+0x170/0x3f0 [ 31.468255] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.468319] kthread+0x328/0x630 [ 31.468750] ret_from_fork+0x10/0x20 [ 31.468800] [ 31.468820] Allocated by task 244: [ 31.469244] kasan_save_stack+0x3c/0x68 [ 31.469302] kasan_save_track+0x20/0x40 [ 31.469352] kasan_save_alloc_info+0x40/0x58 [ 31.469587] __kasan_slab_alloc+0xa8/0xb0 [ 31.469663] kmem_cache_alloc_noprof+0x10c/0x398 [ 31.469704] kmem_cache_invalid_free+0x12c/0x3c8 [ 31.469742] kunit_try_run_case+0x170/0x3f0 [ 31.470065] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 31.470120] kthread+0x328/0x630 [ 31.470390] ret_from_fork+0x10/0x20 [ 31.470566] [ 31.470588] The buggy address belongs to the object at fff00000c406c000 [ 31.470588] which belongs to the cache test_cache of size 200 [ 31.471045] The buggy address is located 1 bytes inside of [ 31.471045] 200-byte region [fff00000c406c000, fff00000c406c0c8) [ 31.471658] [ 31.471745] The buggy address belongs to the physical page: [ 31.471779] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10406c [ 31.472188] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 31.472361] page_type: f5(slab) [ 31.472405] raw: 0bfffe0000000000 fff00000c3fa2640 dead000000000122 0000000000000000 [ 31.472625] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 31.472943] page dumped because: kasan: bad access detected [ 31.473203] [ 31.473240] Memory state around the buggy address: [ 31.473274] fff00000c406bf00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 31.473607] fff00000c406bf80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 31.473653] >fff00000c406c000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 31.474002] ^ [ 31.474262] fff00000c406c080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 31.474420] fff00000c406c100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 31.474771] ==================================================================
[ 33.319020] ================================================================== [ 33.319194] BUG: KASAN: invalid-free in kmem_cache_invalid_free+0x184/0x3c8 [ 33.319277] Free of addr fff00000c9a51001 by task kunit_try_catch/242 [ 33.319628] [ 33.319700] CPU: 0 UID: 0 PID: 242 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4-next-20250702 #1 PREEMPT [ 33.319805] Tainted: [B]=BAD_PAGE, [N]=TEST [ 33.319970] Hardware name: linux,dummy-virt (DT) [ 33.320236] Call trace: [ 33.320284] show_stack+0x20/0x38 (C) [ 33.320382] dump_stack_lvl+0x8c/0xd0 [ 33.320579] print_report+0x118/0x608 [ 33.320765] kasan_report_invalid_free+0xc0/0xe8 [ 33.320848] check_slab_allocation+0xfc/0x108 [ 33.321001] __kasan_slab_pre_free+0x2c/0x48 [ 33.321086] kmem_cache_free+0xf0/0x468 [ 33.321341] kmem_cache_invalid_free+0x184/0x3c8 [ 33.321505] kunit_try_run_case+0x170/0x3f0 [ 33.321705] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 33.321900] kthread+0x328/0x630 [ 33.321982] ret_from_fork+0x10/0x20 [ 33.322337] [ 33.322491] Allocated by task 242: [ 33.322581] kasan_save_stack+0x3c/0x68 [ 33.322630] kasan_save_track+0x20/0x40 [ 33.322826] kasan_save_alloc_info+0x40/0x58 [ 33.323041] __kasan_slab_alloc+0xa8/0xb0 [ 33.323144] kmem_cache_alloc_noprof+0x10c/0x398 [ 33.323265] kmem_cache_invalid_free+0x12c/0x3c8 [ 33.323334] kunit_try_run_case+0x170/0x3f0 [ 33.323372] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 33.323732] kthread+0x328/0x630 [ 33.323893] ret_from_fork+0x10/0x20 [ 33.323944] [ 33.323966] The buggy address belongs to the object at fff00000c9a51000 [ 33.323966] which belongs to the cache test_cache of size 200 [ 33.324025] The buggy address is located 1 bytes inside of [ 33.324025] 200-byte region [fff00000c9a51000, fff00000c9a510c8) [ 33.324240] [ 33.324381] The buggy address belongs to the physical page: [ 33.324428] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x109a51 [ 33.324498] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 33.325044] page_type: f5(slab) [ 33.325171] raw: 0bfffe0000000000 fff00000c5c33140 dead000000000122 0000000000000000 [ 33.325267] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 33.325382] page dumped because: kasan: bad access detected [ 33.325453] [ 33.325515] Memory state around the buggy address: [ 33.325713] fff00000c9a50f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.325782] fff00000c9a50f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.325837] >fff00000c9a51000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 33.325976] ^ [ 33.326027] fff00000c9a51080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 33.326271] fff00000c9a51100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.326319] ==================================================================
[ 24.036295] ================================================================== [ 24.037139] BUG: KASAN: invalid-free in kmem_cache_invalid_free+0x1d8/0x460 [ 24.038013] Free of addr ffff888103b7c001 by task kunit_try_catch/260 [ 24.038482] [ 24.038671] CPU: 1 UID: 0 PID: 260 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4-next-20250702 #1 PREEMPT(voluntary) [ 24.038727] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.038741] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 24.038765] Call Trace: [ 24.038781] <TASK> [ 24.038803] dump_stack_lvl+0x73/0xb0 [ 24.038878] print_report+0xd1/0x650 [ 24.038902] ? __virt_addr_valid+0x1db/0x2d0 [ 24.038978] ? kasan_complete_mode_report_info+0x2a/0x200 [ 24.039003] ? kmem_cache_invalid_free+0x1d8/0x460 [ 24.039028] kasan_report_invalid_free+0x10a/0x130 [ 24.039051] ? kmem_cache_invalid_free+0x1d8/0x460 [ 24.039085] ? kmem_cache_invalid_free+0x1d8/0x460 [ 24.039109] check_slab_allocation+0x11f/0x130 [ 24.039130] __kasan_slab_pre_free+0x28/0x40 [ 24.039150] kmem_cache_free+0xed/0x420 [ 24.039204] ? kasan_save_track+0x18/0x40 [ 24.039225] ? kasan_save_stack+0x45/0x70 [ 24.039243] ? kmem_cache_invalid_free+0x1d8/0x460 [ 24.039266] ? kmem_cache_invalid_free+0x157/0x460 [ 24.039291] kmem_cache_invalid_free+0x1d8/0x460 [ 24.039314] ? __pfx_kmem_cache_invalid_free+0x10/0x10 [ 24.039337] ? finish_task_switch.isra.0+0x153/0x700 [ 24.039360] ? __switch_to+0x47/0xf50 [ 24.039389] ? __pfx_read_tsc+0x10/0x10 [ 24.039411] ? ktime_get_ts64+0x86/0x230 [ 24.039437] kunit_try_run_case+0x1a5/0x480 [ 24.039464] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.039487] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 24.039509] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 24.039531] ? __kthread_parkme+0x82/0x180 [ 24.039552] ? preempt_count_sub+0x50/0x80 [ 24.039574] ? __pfx_kunit_try_run_case+0x10/0x10 [ 24.039599] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.039623] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 24.039650] kthread+0x337/0x6f0 [ 24.039669] ? trace_preempt_on+0x20/0xc0 [ 24.039693] ? __pfx_kthread+0x10/0x10 [ 24.039713] ? _raw_spin_unlock_irq+0x47/0x80 [ 24.039738] ? calculate_sigpending+0x7b/0xa0 [ 24.039768] ? __pfx_kthread+0x10/0x10 [ 24.039790] ret_from_fork+0x116/0x1d0 [ 24.039808] ? __pfx_kthread+0x10/0x10 [ 24.039829] ret_from_fork_asm+0x1a/0x30 [ 24.039861] </TASK> [ 24.039875] [ 24.053285] Allocated by task 260: [ 24.053619] kasan_save_stack+0x45/0x70 [ 24.054024] kasan_save_track+0x18/0x40 [ 24.054642] kasan_save_alloc_info+0x3b/0x50 [ 24.055152] __kasan_slab_alloc+0x91/0xa0 [ 24.055690] kmem_cache_alloc_noprof+0x123/0x3f0 [ 24.056240] kmem_cache_invalid_free+0x157/0x460 [ 24.056633] kunit_try_run_case+0x1a5/0x480 [ 24.057033] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 24.057501] kthread+0x337/0x6f0 [ 24.057818] ret_from_fork+0x116/0x1d0 [ 24.058187] ret_from_fork_asm+0x1a/0x30 [ 24.058468] [ 24.058542] The buggy address belongs to the object at ffff888103b7c000 [ 24.058542] which belongs to the cache test_cache of size 200 [ 24.058880] The buggy address is located 1 bytes inside of [ 24.058880] 200-byte region [ffff888103b7c000, ffff888103b7c0c8) [ 24.059316] [ 24.059444] The buggy address belongs to the physical page: [ 24.059648] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x103b7c [ 24.060074] flags: 0x200000000000000(node=0|zone=2) [ 24.060247] page_type: f5(slab) [ 24.060461] raw: 0200000000000000 ffff88810190e500 dead000000000122 0000000000000000 [ 24.061260] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 24.061913] page dumped because: kasan: bad access detected [ 24.062327] [ 24.062414] Memory state around the buggy address: [ 24.062880] ffff888103b7bf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.063420] ffff888103b7bf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.063839] >ffff888103b7c000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 24.064398] ^ [ 24.064674] ffff888103b7c080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 24.065074] ffff888103b7c100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.065603] ==================================================================
[ 23.772130] ================================================================== [ 23.772536] BUG: KASAN: invalid-free in kmem_cache_invalid_free+0x1d8/0x460 [ 23.772776] Free of addr ffff8881057f9001 by task kunit_try_catch/259 [ 23.772974] [ 23.773063] CPU: 1 UID: 0 PID: 259 Comm: kunit_try_catch Tainted: G B N 6.16.0-rc4-next-20250702 #1 PREEMPT(voluntary) [ 23.773113] Tainted: [B]=BAD_PAGE, [N]=TEST [ 23.773126] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 23.773148] Call Trace: [ 23.773162] <TASK> [ 23.773184] dump_stack_lvl+0x73/0xb0 [ 23.773216] print_report+0xd1/0x650 [ 23.773238] ? __virt_addr_valid+0x1db/0x2d0 [ 23.773263] ? kasan_complete_mode_report_info+0x2a/0x200 [ 23.773287] ? kmem_cache_invalid_free+0x1d8/0x460 [ 23.773756] kasan_report_invalid_free+0x10a/0x130 [ 23.773792] ? kmem_cache_invalid_free+0x1d8/0x460 [ 23.773832] ? kmem_cache_invalid_free+0x1d8/0x460 [ 23.773855] check_slab_allocation+0x11f/0x130 [ 23.774097] __kasan_slab_pre_free+0x28/0x40 [ 23.774127] kmem_cache_free+0xed/0x420 [ 23.774164] ? kmem_cache_alloc_noprof+0x123/0x3f0 [ 23.774188] ? kmem_cache_invalid_free+0x1d8/0x460 [ 23.774225] kmem_cache_invalid_free+0x1d8/0x460 [ 23.774249] ? __pfx_kmem_cache_invalid_free+0x10/0x10 [ 23.774271] ? finish_task_switch.isra.0+0x153/0x700 [ 23.774295] ? __switch_to+0x47/0xf50 [ 23.774334] ? __pfx_read_tsc+0x10/0x10 [ 23.774357] ? ktime_get_ts64+0x86/0x230 [ 23.774383] kunit_try_run_case+0x1a5/0x480 [ 23.774409] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.774431] ? _raw_spin_lock_irqsave+0xa1/0x100 [ 23.774453] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 23.774494] ? __kthread_parkme+0x82/0x180 [ 23.774515] ? preempt_count_sub+0x50/0x80 [ 23.774537] ? __pfx_kunit_try_run_case+0x10/0x10 [ 23.774561] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.774584] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 23.774607] kthread+0x337/0x6f0 [ 23.774627] ? trace_preempt_on+0x20/0xc0 [ 23.774651] ? __pfx_kthread+0x10/0x10 [ 23.774690] ? _raw_spin_unlock_irq+0x47/0x80 [ 23.774713] ? calculate_sigpending+0x7b/0xa0 [ 23.774739] ? __pfx_kthread+0x10/0x10 [ 23.774759] ret_from_fork+0x116/0x1d0 [ 23.774778] ? __pfx_kthread+0x10/0x10 [ 23.774798] ret_from_fork_asm+0x1a/0x30 [ 23.774828] </TASK> [ 23.774842] [ 23.791058] Allocated by task 259: [ 23.791281] kasan_save_stack+0x45/0x70 [ 23.791526] kasan_save_track+0x18/0x40 [ 23.791657] kasan_save_alloc_info+0x3b/0x50 [ 23.791977] __kasan_slab_alloc+0x91/0xa0 [ 23.792288] kmem_cache_alloc_noprof+0x123/0x3f0 [ 23.792495] kmem_cache_invalid_free+0x157/0x460 [ 23.792698] kunit_try_run_case+0x1a5/0x480 [ 23.792955] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 23.793275] kthread+0x337/0x6f0 [ 23.793430] ret_from_fork+0x116/0x1d0 [ 23.793922] ret_from_fork_asm+0x1a/0x30 [ 23.794187] [ 23.794294] The buggy address belongs to the object at ffff8881057f9000 [ 23.794294] which belongs to the cache test_cache of size 200 [ 23.794817] The buggy address is located 1 bytes inside of [ 23.794817] 200-byte region [ffff8881057f9000, ffff8881057f90c8) [ 23.795220] [ 23.795290] The buggy address belongs to the physical page: [ 23.795876] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1057f9 [ 23.796214] flags: 0x200000000000000(node=0|zone=2) [ 23.796445] page_type: f5(slab) [ 23.797138] raw: 0200000000000000 ffff888101e2db40 dead000000000122 0000000000000000 [ 23.797419] raw: 0000000000000000 00000000800f000f 00000000f5000000 0000000000000000 [ 23.798189] page dumped because: kasan: bad access detected [ 23.798469] [ 23.798567] Memory state around the buggy address: [ 23.798923] ffff8881057f8f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.799216] ffff8881057f8f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.799896] >ffff8881057f9000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 23.800184] ^ [ 23.800344] ffff8881057f9080: 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc [ 23.801091] ffff8881057f9100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 23.801549] ==================================================================