Skip to content

fs/quota: Fix potential spectre v1 gadgets

Jeremy Cline lkml stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2fs/quota: Replace XQM_MAXQUOTAS usage with MAXQUOTASfs/quota/quota.c include/linux/quota.h include/uapi/linux/dqblk_xfs.h+6 -192 replies
2/2fs/quota: Fix spectre gadget in do_quotactlfs/quota/quota.c+2 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] fs/quota: Fix potential spectre v1 gadgets

Hi folks,

This series unifies XQM_MAXQUOTAS with MAXQUOTAS, which were both being used to perform bounds checks on arrays, and then sanitizes 'type' so it can't be used in speculative out-of-bounds array access.

Jeremy Cline (2):
fs/quota: Replace XQM_MAXQUOTAS usage with MAXQUOTAS fs/quota: Fix spectre gadget in do_quotactl

 fs/quota/quota.c               | 14 +++++++-------
 include/linux/quota.h          |  8 +-------
 include/uapi/linux/dqblk_xfs.h |  5 -----
 3 files changed, 8 insertions(+), 19 deletions(-)
Signature · 1 line
2.17.1