Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add check for CONFIG_MITIGATION_RFDS #116

Closed
wryMitts opened this issue Mar 14, 2024 · 1 comment
Closed

Add check for CONFIG_MITIGATION_RFDS #116

wryMitts opened this issue Mar 14, 2024 · 1 comment
Labels
new_feature A new feature of the tool

Comments

@wryMitts
Copy link

Hello, please consider these new options

Intel's hardware vulnurability for Atom cores; Register File Data Sampling.

https://www.intel.com/content/www/us/en/security-center/advisory/intel-sa-00898.html

Merged by Torvalds

Kconfig

+config MITIGATION_RFDS
+	bool "RFDS Mitigation"
+	depends on CPU_SUP_INTEL
+	default y
+	help
+	  Enable mitigation for Register File Data Sampling (RFDS) by default.
+	  RFDS is a hardware vulnerability which affects Intel Atom CPUs. It
+	  allows unprivileged speculative access to stale data previously
+	  stored in floating point, vector and integer registers.
+	  See also <file:Documentation/admin-guide/hw-vuln/reg-file-data-sampling.rst>
+

Boot flags:

+	reg_file_data_sampling=
+			[X86] Controls mitigation for Register File Data
+			Sampling (RFDS) vulnerability. RFDS is a CPU
+			vulnerability which may allow userspace to infer
+			kernel data values previously stored in floating point
+			registers, vector registers, or integer registers.
+			RFDS only affects Intel Atom processors.
+
+			on:	Turns ON the mitigation.
+			off:	Turns OFF the mitigation.
+
+			This parameter overrides the compile time default set
+			by CONFIG_MITIGATION_RFDS. Mitigation cannot be
+			disabled when other VERW based mitigations (like MDS)
+			are enabled. In order to disable RFDS mitigation all
+			VERW based mitigations need to be disabled.
+
+			For details see:
+			Documentation/admin-guide/hw-vuln/reg-file-data-sampling.rst
+

Selected automatically by boot command mitigations=auto per this line: https://github.com/torvalds/linux/blob/master/arch/x86/kernel/cpu/bugs.c#L504

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0e33cf955f07e3991e45109cb3e29fbc9ca51d06

@a13xp0p0v a13xp0p0v added the new_feature A new feature of the tool label Mar 17, 2024
a13xp0p0v added a commit that referenced this issue Jun 2, 2024
@a13xp0p0v
Copy link
Owner

Implemented in da9b911

Done, closing.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new_feature A new feature of the tool
Projects
None yet
Development

No branches or pull requests

2 participants