Date
Dec. 9, 2024, 6:35 a.m.
Environment | |
---|---|
qemu-arm64 | |
qemu-x86_64 |
[ 25.044100] ================================================================== [ 25.044998] BUG: KASAN: slab-use-after-free in ksize_uaf+0x548/0x600 [ 25.045610] Read of size 1 at addr fff00000c6484878 by task kunit_try_catch/184 [ 25.046465] [ 25.046893] CPU: 0 UID: 0 PID: 184 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc2-next-20241209 #1 [ 25.048028] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.048627] Hardware name: linux,dummy-virt (DT) [ 25.049429] Call trace: [ 25.049896] show_stack+0x20/0x38 (C) [ 25.050520] dump_stack_lvl+0x8c/0xd0 [ 25.051223] print_report+0x118/0x5e0 [ 25.051776] kasan_report+0xc8/0x118 [ 25.052332] __asan_report_load1_noabort+0x20/0x30 [ 25.053229] ksize_uaf+0x548/0x600 [ 25.054086] kunit_try_run_case+0x14c/0x3d0 [ 25.054772] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 25.055473] kthread+0x24c/0x2d0 [ 25.055965] ret_from_fork+0x10/0x20 [ 25.056484] [ 25.057210] Allocated by task 184: [ 25.057654] kasan_save_stack+0x3c/0x68 [ 25.058484] kasan_save_track+0x20/0x40 [ 25.059247] kasan_save_alloc_info+0x40/0x58 [ 25.059719] __kasan_kmalloc+0xd4/0xd8 [ 25.060331] __kmalloc_cache_noprof+0x15c/0x3c0 [ 25.061055] ksize_uaf+0xb8/0x600 [ 25.061581] kunit_try_run_case+0x14c/0x3d0 [ 25.062194] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 25.062862] kthread+0x24c/0x2d0 [ 25.063601] ret_from_fork+0x10/0x20 [ 25.064363] [ 25.064688] Freed by task 184: [ 25.065146] kasan_save_stack+0x3c/0x68 [ 25.065818] kasan_save_track+0x20/0x40 [ 25.066408] kasan_save_free_info+0x4c/0x78 [ 25.067485] __kasan_slab_free+0x6c/0x98 [ 25.068020] kfree+0x114/0x3c8 [ 25.068410] ksize_uaf+0x11c/0x600 [ 25.068855] kunit_try_run_case+0x14c/0x3d0 [ 25.069290] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 25.070277] kthread+0x24c/0x2d0 [ 25.071623] ret_from_fork+0x10/0x20 [ 25.072070] [ 25.072494] The buggy address belongs to the object at fff00000c6484800 [ 25.072494] which belongs to the cache kmalloc-128 of size 128 [ 25.073829] The buggy address is located 120 bytes inside of [ 25.073829] freed 128-byte region [fff00000c6484800, fff00000c6484880) [ 25.075457] [ 25.075791] The buggy address belongs to the physical page: [ 25.076359] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106484 [ 25.077307] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 25.078062] page_type: f5(slab) [ 25.078583] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 25.079913] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 25.080884] page dumped because: kasan: bad access detected [ 25.081472] [ 25.081789] Memory state around the buggy address: [ 25.082430] fff00000c6484700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc [ 25.083185] fff00000c6484780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.083970] >fff00000c6484800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.084880] ^ [ 25.086081] fff00000c6484880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.086823] fff00000c6484900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.087683] ================================================================== [ 24.953475] ================================================================== [ 24.954512] BUG: KASAN: slab-use-after-free in ksize_uaf+0x168/0x600 [ 24.955259] Read of size 1 at addr fff00000c6484800 by task kunit_try_catch/184 [ 24.956007] [ 24.956309] CPU: 0 UID: 0 PID: 184 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc2-next-20241209 #1 [ 24.957648] Tainted: [B]=BAD_PAGE, [N]=TEST [ 24.958284] Hardware name: linux,dummy-virt (DT) [ 24.959296] Call trace: [ 24.959581] show_stack+0x20/0x38 (C) [ 24.960056] dump_stack_lvl+0x8c/0xd0 [ 24.960488] print_report+0x118/0x5e0 [ 24.960949] kasan_report+0xc8/0x118 [ 24.961784] __kasan_check_byte+0x54/0x70 [ 24.963236] ksize+0x30/0x88 [ 24.963823] ksize_uaf+0x168/0x600 [ 24.964197] kunit_try_run_case+0x14c/0x3d0 [ 24.964917] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 24.965604] kthread+0x24c/0x2d0 [ 24.966174] ret_from_fork+0x10/0x20 [ 24.966717] [ 24.967388] Allocated by task 184: [ 24.967877] kasan_save_stack+0x3c/0x68 [ 24.968428] kasan_save_track+0x20/0x40 [ 24.969047] kasan_save_alloc_info+0x40/0x58 [ 24.969547] __kasan_kmalloc+0xd4/0xd8 [ 24.970154] __kmalloc_cache_noprof+0x15c/0x3c0 [ 24.970780] ksize_uaf+0xb8/0x600 [ 24.971625] kunit_try_run_case+0x14c/0x3d0 [ 24.972196] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 24.972896] kthread+0x24c/0x2d0 [ 24.973420] ret_from_fork+0x10/0x20 [ 24.973928] [ 24.974231] Freed by task 184: [ 24.974645] kasan_save_stack+0x3c/0x68 [ 24.975638] kasan_save_track+0x20/0x40 [ 24.976151] kasan_save_free_info+0x4c/0x78 [ 24.976789] __kasan_slab_free+0x6c/0x98 [ 24.977355] kfree+0x114/0x3c8 [ 24.977914] ksize_uaf+0x11c/0x600 [ 24.978417] kunit_try_run_case+0x14c/0x3d0 [ 24.979464] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 24.980155] kthread+0x24c/0x2d0 [ 24.980661] ret_from_fork+0x10/0x20 [ 24.981136] [ 24.981455] The buggy address belongs to the object at fff00000c6484800 [ 24.981455] which belongs to the cache kmalloc-128 of size 128 [ 24.982680] The buggy address is located 0 bytes inside of [ 24.982680] freed 128-byte region [fff00000c6484800, fff00000c6484880) [ 24.984267] [ 24.984574] The buggy address belongs to the physical page: [ 24.985275] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106484 [ 24.986154] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 24.986951] page_type: f5(slab) [ 24.987363] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 24.988544] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 24.989356] page dumped because: kasan: bad access detected [ 24.990014] [ 24.990330] Memory state around the buggy address: [ 24.991210] fff00000c6484700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc [ 24.992078] fff00000c6484780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.992885] >fff00000c6484800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 24.993653] ^ [ 24.994073] fff00000c6484880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.995140] fff00000c6484900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 24.995837] ================================================================== [ 24.997256] ================================================================== [ 24.999080] BUG: KASAN: slab-use-after-free in ksize_uaf+0x59c/0x600 [ 24.999822] Read of size 1 at addr fff00000c6484800 by task kunit_try_catch/184 [ 25.000642] [ 25.001804] CPU: 0 UID: 0 PID: 184 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc2-next-20241209 #1 [ 25.003543] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.004013] Hardware name: linux,dummy-virt (DT) [ 25.004542] Call trace: [ 25.004977] show_stack+0x20/0x38 (C) [ 25.005481] dump_stack_lvl+0x8c/0xd0 [ 25.006121] print_report+0x118/0x5e0 [ 25.006665] kasan_report+0xc8/0x118 [ 25.007581] __asan_report_load1_noabort+0x20/0x30 [ 25.008285] ksize_uaf+0x59c/0x600 [ 25.008823] kunit_try_run_case+0x14c/0x3d0 [ 25.009518] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 25.010273] kthread+0x24c/0x2d0 [ 25.010828] ret_from_fork+0x10/0x20 [ 25.011622] [ 25.011942] Allocated by task 184: [ 25.012390] kasan_save_stack+0x3c/0x68 [ 25.013308] kasan_save_track+0x20/0x40 [ 25.013999] kasan_save_alloc_info+0x40/0x58 [ 25.014587] __kasan_kmalloc+0xd4/0xd8 [ 25.015127] __kmalloc_cache_noprof+0x15c/0x3c0 [ 25.015666] ksize_uaf+0xb8/0x600 [ 25.016327] kunit_try_run_case+0x14c/0x3d0 [ 25.016931] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 25.018100] kthread+0x24c/0x2d0 [ 25.018556] ret_from_fork+0x10/0x20 [ 25.019605] [ 25.020024] Freed by task 184: [ 25.020585] kasan_save_stack+0x3c/0x68 [ 25.021145] kasan_save_track+0x20/0x40 [ 25.021665] kasan_save_free_info+0x4c/0x78 [ 25.022228] __kasan_slab_free+0x6c/0x98 [ 25.022785] kfree+0x114/0x3c8 [ 25.023615] ksize_uaf+0x11c/0x600 [ 25.024127] kunit_try_run_case+0x14c/0x3d0 [ 25.024692] kunit_generic_run_threadfn_adapter+0x88/0x100 [ 25.025350] kthread+0x24c/0x2d0 [ 25.025570] ret_from_fork+0x10/0x20 [ 25.025902] [ 25.026264] The buggy address belongs to the object at fff00000c6484800 [ 25.026264] which belongs to the cache kmalloc-128 of size 128 [ 25.028332] The buggy address is located 0 bytes inside of [ 25.028332] freed 128-byte region [fff00000c6484800, fff00000c6484880) [ 25.029371] [ 25.029606] The buggy address belongs to the physical page: [ 25.030550] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x106484 [ 25.032075] flags: 0xbfffe0000000000(node=0|zone=2|lastcpupid=0x1ffff) [ 25.032978] page_type: f5(slab) [ 25.033516] raw: 0bfffe0000000000 fff00000c0001a00 dead000000000122 0000000000000000 [ 25.034444] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 25.035779] page dumped because: kasan: bad access detected [ 25.036349] [ 25.036572] Memory state around the buggy address: [ 25.037067] fff00000c6484700: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc [ 25.037739] fff00000c6484780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.038609] >fff00000c6484800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.040075] ^ [ 25.040514] fff00000c6484880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.041407] fff00000c6484900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.042349] ==================================================================
[ 25.106973] ================================================================== [ 25.108378] BUG: KASAN: slab-use-after-free in ksize_uaf+0x600/0x6c0 [ 25.109638] Read of size 1 at addr ffff888102409100 by task kunit_try_catch/203 [ 25.110815] [ 25.111153] CPU: 1 UID: 0 PID: 203 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc2-next-20241209 #1 [ 25.112475] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.113358] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.115509] Call Trace: [ 25.115967] <TASK> [ 25.116188] dump_stack_lvl+0x73/0xb0 [ 25.116761] print_report+0xd1/0x640 [ 25.117255] ? __virt_addr_valid+0x1db/0x2d0 [ 25.117639] ? kasan_complete_mode_report_info+0x64/0x200 [ 25.118553] kasan_report+0x102/0x140 [ 25.119003] ? ksize_uaf+0x600/0x6c0 [ 25.119335] ? ksize_uaf+0x600/0x6c0 [ 25.120456] __asan_report_load1_noabort+0x18/0x20 [ 25.120998] ksize_uaf+0x600/0x6c0 [ 25.121575] ? __pfx_ksize_uaf+0x10/0x10 [ 25.122028] ? __schedule+0xc70/0x27e0 [ 25.122372] ? __pfx_read_tsc+0x10/0x10 [ 25.122975] ? ktime_get_ts64+0x86/0x230 [ 25.123427] kunit_try_run_case+0x1b3/0x490 [ 25.123863] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.124598] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 25.124968] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.125584] ? __kthread_parkme+0x82/0x160 [ 25.126210] ? preempt_count_sub+0x50/0x80 [ 25.126765] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.127951] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.128549] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.129405] kthread+0x257/0x310 [ 25.129834] ? __pfx_kthread+0x10/0x10 [ 25.130362] ret_from_fork+0x41/0x80 [ 25.130678] ? __pfx_kthread+0x10/0x10 [ 25.131285] ret_from_fork_asm+0x1a/0x30 [ 25.131642] </TASK> [ 25.131900] [ 25.132315] Allocated by task 203: [ 25.132614] kasan_save_stack+0x3d/0x60 [ 25.133146] kasan_save_track+0x18/0x40 [ 25.133671] kasan_save_alloc_info+0x3b/0x50 [ 25.134265] __kasan_kmalloc+0xb7/0xc0 [ 25.134671] __kmalloc_cache_noprof+0x184/0x410 [ 25.135338] ksize_uaf+0xab/0x6c0 [ 25.136436] kunit_try_run_case+0x1b3/0x490 [ 25.136742] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.137356] kthread+0x257/0x310 [ 25.137641] ret_from_fork+0x41/0x80 [ 25.138188] ret_from_fork_asm+0x1a/0x30 [ 25.138667] [ 25.138858] Freed by task 203: [ 25.139088] kasan_save_stack+0x3d/0x60 [ 25.139525] kasan_save_track+0x18/0x40 [ 25.140062] kasan_save_free_info+0x3f/0x60 [ 25.140604] __kasan_slab_free+0x56/0x70 [ 25.141021] kfree+0x123/0x3f0 [ 25.142456] ksize_uaf+0x12d/0x6c0 [ 25.142857] kunit_try_run_case+0x1b3/0x490 [ 25.143737] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.144696] kthread+0x257/0x310 [ 25.146117] ret_from_fork+0x41/0x80 [ 25.146510] ret_from_fork_asm+0x1a/0x30 [ 25.147331] [ 25.147531] The buggy address belongs to the object at ffff888102409100 [ 25.147531] which belongs to the cache kmalloc-128 of size 128 [ 25.149098] The buggy address is located 0 bytes inside of [ 25.149098] freed 128-byte region [ffff888102409100, ffff888102409180) [ 25.150153] [ 25.150486] The buggy address belongs to the physical page: [ 25.150927] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102409 [ 25.151979] flags: 0x200000000000000(node=0|zone=2) [ 25.152361] page_type: f5(slab) [ 25.152872] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 25.153878] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 25.154814] page dumped because: kasan: bad access detected [ 25.155381] [ 25.155717] Memory state around the buggy address: [ 25.156203] ffff888102409000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.157035] ffff888102409080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.157830] >ffff888102409100: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.158477] ^ [ 25.158739] ffff888102409180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.160058] ffff888102409200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.160989] ================================================================== [ 25.162053] ================================================================== [ 25.162689] BUG: KASAN: slab-use-after-free in ksize_uaf+0x5e6/0x6c0 [ 25.163166] Read of size 1 at addr ffff888102409178 by task kunit_try_catch/203 [ 25.164864] [ 25.165081] CPU: 1 UID: 0 PID: 203 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc2-next-20241209 #1 [ 25.165952] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.166448] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.167163] Call Trace: [ 25.167534] <TASK> [ 25.167736] dump_stack_lvl+0x73/0xb0 [ 25.168455] print_report+0xd1/0x640 [ 25.168784] ? __virt_addr_valid+0x1db/0x2d0 [ 25.169239] ? kasan_complete_mode_report_info+0x64/0x200 [ 25.170838] kasan_report+0x102/0x140 [ 25.171352] ? ksize_uaf+0x5e6/0x6c0 [ 25.171667] ? ksize_uaf+0x5e6/0x6c0 [ 25.172137] __asan_report_load1_noabort+0x18/0x20 [ 25.172698] ksize_uaf+0x5e6/0x6c0 [ 25.173063] ? __pfx_ksize_uaf+0x10/0x10 [ 25.173539] ? __schedule+0xc70/0x27e0 [ 25.173921] ? __pfx_read_tsc+0x10/0x10 [ 25.174556] ? ktime_get_ts64+0x86/0x230 [ 25.175083] kunit_try_run_case+0x1b3/0x490 [ 25.175669] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.176150] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 25.176598] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.177824] ? __kthread_parkme+0x82/0x160 [ 25.178286] ? preempt_count_sub+0x50/0x80 [ 25.178991] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.179654] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.180316] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.180725] kthread+0x257/0x310 [ 25.181108] ? __pfx_kthread+0x10/0x10 [ 25.181724] ret_from_fork+0x41/0x80 [ 25.182139] ? __pfx_kthread+0x10/0x10 [ 25.182740] ret_from_fork_asm+0x1a/0x30 [ 25.183861] </TASK> [ 25.184186] [ 25.184497] Allocated by task 203: [ 25.184949] kasan_save_stack+0x3d/0x60 [ 25.185568] kasan_save_track+0x18/0x40 [ 25.185941] kasan_save_alloc_info+0x3b/0x50 [ 25.186573] __kasan_kmalloc+0xb7/0xc0 [ 25.187058] __kmalloc_cache_noprof+0x184/0x410 [ 25.187647] ksize_uaf+0xab/0x6c0 [ 25.188035] kunit_try_run_case+0x1b3/0x490 [ 25.188569] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.189139] kthread+0x257/0x310 [ 25.189443] ret_from_fork+0x41/0x80 [ 25.189826] ret_from_fork_asm+0x1a/0x30 [ 25.190890] [ 25.191057] Freed by task 203: [ 25.191485] kasan_save_stack+0x3d/0x60 [ 25.191963] kasan_save_track+0x18/0x40 [ 25.192599] kasan_save_free_info+0x3f/0x60 [ 25.193073] __kasan_slab_free+0x56/0x70 [ 25.193597] kfree+0x123/0x3f0 [ 25.193904] ksize_uaf+0x12d/0x6c0 [ 25.194483] kunit_try_run_case+0x1b3/0x490 [ 25.194902] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.196261] kthread+0x257/0x310 [ 25.196570] ret_from_fork+0x41/0x80 [ 25.197062] ret_from_fork_asm+0x1a/0x30 [ 25.197649] [ 25.197886] The buggy address belongs to the object at ffff888102409100 [ 25.197886] which belongs to the cache kmalloc-128 of size 128 [ 25.198826] The buggy address is located 120 bytes inside of [ 25.198826] freed 128-byte region [ffff888102409100, ffff888102409180) [ 25.200027] [ 25.200396] The buggy address belongs to the physical page: [ 25.201053] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102409 [ 25.202570] flags: 0x200000000000000(node=0|zone=2) [ 25.203094] page_type: f5(slab) [ 25.203614] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 25.204522] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 25.205255] page dumped because: kasan: bad access detected [ 25.205792] [ 25.206111] Memory state around the buggy address: [ 25.207195] ffff888102409000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.207977] ffff888102409080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.208998] >ffff888102409100: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.209819] ^ [ 25.210563] ffff888102409180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.210929] ffff888102409200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.212623] ================================================================== [ 25.044424] ================================================================== [ 25.045668] BUG: KASAN: slab-use-after-free in ksize_uaf+0x19e/0x6c0 [ 25.046199] Read of size 1 at addr ffff888102409100 by task kunit_try_catch/203 [ 25.047155] [ 25.048493] CPU: 1 UID: 0 PID: 203 Comm: kunit_try_catch Tainted: G B N 6.13.0-rc2-next-20241209 #1 [ 25.050350] Tainted: [B]=BAD_PAGE, [N]=TEST [ 25.050752] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 25.052615] Call Trace: [ 25.053347] <TASK> [ 25.053579] dump_stack_lvl+0x73/0xb0 [ 25.054405] print_report+0xd1/0x640 [ 25.054843] ? __virt_addr_valid+0x1db/0x2d0 [ 25.055453] ? kasan_complete_mode_report_info+0x64/0x200 [ 25.056281] kasan_report+0x102/0x140 [ 25.056720] ? ksize_uaf+0x19e/0x6c0 [ 25.057992] ? ksize_uaf+0x19e/0x6c0 [ 25.058702] ? ksize_uaf+0x19e/0x6c0 [ 25.059510] __kasan_check_byte+0x3d/0x50 [ 25.060214] ksize+0x20/0x60 [ 25.060628] ksize_uaf+0x19e/0x6c0 [ 25.061118] ? __pfx_ksize_uaf+0x10/0x10 [ 25.061643] ? __schedule+0xc70/0x27e0 [ 25.062238] ? __pfx_read_tsc+0x10/0x10 [ 25.062745] ? ktime_get_ts64+0x86/0x230 [ 25.064260] kunit_try_run_case+0x1b3/0x490 [ 25.064697] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.065106] ? _raw_spin_lock_irqsave+0xa2/0x110 [ 25.065603] ? _raw_spin_unlock_irqrestore+0x5f/0x90 [ 25.066134] ? __kthread_parkme+0x82/0x160 [ 25.066764] ? preempt_count_sub+0x50/0x80 [ 25.067454] ? __pfx_kunit_try_run_case+0x10/0x10 [ 25.068003] ? __pfx_kunit_generic_run_threadfn_adapter+0x10/0x10 [ 25.069024] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.069598] kthread+0x257/0x310 [ 25.070334] ? __pfx_kthread+0x10/0x10 [ 25.070944] ret_from_fork+0x41/0x80 [ 25.071223] ? __pfx_kthread+0x10/0x10 [ 25.071741] ret_from_fork_asm+0x1a/0x30 [ 25.072634] </TASK> [ 25.073006] [ 25.073737] Allocated by task 203: [ 25.074345] kasan_save_stack+0x3d/0x60 [ 25.074824] kasan_save_track+0x18/0x40 [ 25.075489] kasan_save_alloc_info+0x3b/0x50 [ 25.075691] __kasan_kmalloc+0xb7/0xc0 [ 25.075923] __kmalloc_cache_noprof+0x184/0x410 [ 25.076974] ksize_uaf+0xab/0x6c0 [ 25.077965] kunit_try_run_case+0x1b3/0x490 [ 25.078393] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.079491] kthread+0x257/0x310 [ 25.079986] ret_from_fork+0x41/0x80 [ 25.080425] ret_from_fork_asm+0x1a/0x30 [ 25.081080] [ 25.081239] Freed by task 203: [ 25.081608] kasan_save_stack+0x3d/0x60 [ 25.082146] kasan_save_track+0x18/0x40 [ 25.082797] kasan_save_free_info+0x3f/0x60 [ 25.083585] __kasan_slab_free+0x56/0x70 [ 25.084033] kfree+0x123/0x3f0 [ 25.085057] ksize_uaf+0x12d/0x6c0 [ 25.085423] kunit_try_run_case+0x1b3/0x490 [ 25.085931] kunit_generic_run_threadfn_adapter+0x85/0xf0 [ 25.086709] kthread+0x257/0x310 [ 25.087107] ret_from_fork+0x41/0x80 [ 25.087754] ret_from_fork_asm+0x1a/0x30 [ 25.088235] [ 25.088654] The buggy address belongs to the object at ffff888102409100 [ 25.088654] which belongs to the cache kmalloc-128 of size 128 [ 25.090315] The buggy address is located 0 bytes inside of [ 25.090315] freed 128-byte region [ffff888102409100, ffff888102409180) [ 25.091883] [ 25.092172] The buggy address belongs to the physical page: [ 25.092679] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x102409 [ 25.093623] flags: 0x200000000000000(node=0|zone=2) [ 25.094188] page_type: f5(slab) [ 25.094670] raw: 0200000000000000 ffff888100041a00 dead000000000122 0000000000000000 [ 25.095446] raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000 [ 25.096152] page dumped because: kasan: bad access detected [ 25.097154] [ 25.097831] Memory state around the buggy address: [ 25.098900] ffff888102409000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.099881] ffff888102409080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.100499] >ffff888102409100: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 25.101189] ^ [ 25.101614] ffff888102409180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.103108] ffff888102409200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 25.104141] ==================================================================