Skip to content

ext4: fix spectre v1 gadgets

Jeremy Cline linux-ext4 lkml stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ext4: super: Fix spectre gadget in ext4_quota_onfs/ext4/super.c+2 -04 replies
2/3ext4: super: Fix spectre gadgets in ext4_quota_{read,write,off}fs/ext4/super.c+14 -40 replies
3/3ext4: mballoc: Fix spectre gadget in ext4_mb_simple_scan_groupfs/ext4/mballoc.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/3] ext4: fix spectre v1 gadgets

Hi folks,

This patch set fixes a few Spectre v1 gadgets in ext4 detected with the help of Smatch.

Note that because the speculation window is large, the policy is to stop the speculative out-of-bounds load and not worry if the attack can be completed with a dependent load or store[0].

[0] https://marc.info/?l=linux-kernel&m=152449131114778

Jeremy Cline (3):
ext4: super: Fix spectre gadget in ext4_quota_on
ext4: super: Fix spectre gadgets in ext4_quota_{read,write,off}
ext4: mballoc: Fix spectre gadget in ext4_mb_simple_scan_group

 fs/ext4/mballoc.c |  2 ++
 fs/ext4/super.c   | 20 ++++++++++++++++----
 2 files changed, 18 insertions(+), 4 deletions(-)
Signature · 1 line
2.17.1