public inbox for linux-crypto@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 6.12.y 0/2] backport to fix a race condition/UAF in padata_reorder
@ 2026-04-25  8:14 Bin Lan
  2026-04-25  8:14 ` [PATCH 6.12.y 1/2] padata: Fix pd UAF once and for all Bin Lan
  2026-04-25  8:14 ` [PATCH 6.12.y 2/2] padata: Remove comment for reorder_work Bin Lan
  0 siblings, 2 replies; 3+ messages in thread
From: Bin Lan @ 2026-04-25  8:14 UTC (permalink / raw)
  To: gregkh, sashal, stable
  Cc: steffen.klassert, daniel.m.jordan, linux-crypto, herbert, Bin Lan

After applying these patches to v6.12.y, the padata.c file matches the upstream 
version at commit 71203f68c774, with two exceptions:

1. cpumask_next_wrap API difference (line 310): The v6.12.y kernel still uses the 
old 4-argument form cpumask_next_wrap(cpu, pd->cpumask.pcpu, -1, false), 
whereas upstream uses the newer 2-argument form cpumask_next_wrap(cpu, pd->cpumask.pcpu).
These are functionally equivalent — upstream simply changed the API signature 
in a separate commit (dc5bb9b769c9), which is too invasive to backport.

2. Divide-by-zero guard in padata_mt_helper (after line 496): The v6.12.y 
doesn't include an extra check that forces chunk_size to at least 1 when 
the caller sets min_chunk to 0. This prevents a divide-by-zero panic. 

Thanks
Bin Lan

Herbert Xu (2):
  padata: Fix pd UAF once and for all
  padata: Remove comment for reorder_work

 include/linux/padata.h |   4 --
 kernel/padata.c        | 136 +++++++++++------------------------------
 2 files changed, 37 insertions(+), 103 deletions(-)

-- 
2.43.0



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-04-25  8:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-25  8:14 [PATCH 6.12.y 0/2] backport to fix a race condition/UAF in padata_reorder Bin Lan
2026-04-25  8:14 ` [PATCH 6.12.y 1/2] padata: Fix pd UAF once and for all Bin Lan
2026-04-25  8:14 ` [PATCH 6.12.y 2/2] padata: Remove comment for reorder_work Bin Lan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox