mbox series

[v2,0/3] padata: fix UAF issues

Message ID 20250110061639.1280907-1-chenridong@huaweicloud.com (mailing list archive)
Headers show
Series padata: fix UAF issues | expand

Message

Chen Ridong Jan. 10, 2025, 6:16 a.m. UTC
From: Chen Ridong <chenridong@huawei.com>

Fix UAF issues for padata.

---
v1->v2:
 - use synchronize_rcu to fix UAF for padata_reorder.
 - add patch to avoid UAF for 'reorder_work'

Chen Ridong (3):
  padata: add pd get/put refcnt helper
  padata: fix UAF in padata_reorder
  padata: avoid UAF for reorder_work

 kernel/padata.c | 43 +++++++++++++++++++++++++++++++++++--------
 1 file changed, 35 insertions(+), 8 deletions(-)

Comments

Herbert Xu Jan. 19, 2025, 4:45 a.m. UTC | #1
On Fri, Jan 10, 2025 at 06:16:36AM +0000, Chen Ridong wrote:
> From: Chen Ridong <chenridong@huawei.com>
> 
> Fix UAF issues for padata.
> 
> ---
> v1->v2:
>  - use synchronize_rcu to fix UAF for padata_reorder.
>  - add patch to avoid UAF for 'reorder_work'
> 
> Chen Ridong (3):
>   padata: add pd get/put refcnt helper
>   padata: fix UAF in padata_reorder
>   padata: avoid UAF for reorder_work
> 
>  kernel/padata.c | 43 +++++++++++++++++++++++++++++++++++--------
>  1 file changed, 35 insertions(+), 8 deletions(-)
> 
> -- 
> 2.34.1

All applied.  Thanks.