]>
Commit | Line | Data |
---|---|---|
6e61041f ME |
1 | // SPDX-License-Identifier: GPL-2.0+ |
2 | // | |
3 | // Security related flags and so on. | |
4 | // | |
5 | // Copyright 2018, Michael Ellerman, IBM Corporation. | |
6 | ||
7 | #include <linux/kernel.h> | |
ffd22047 ME |
8 | #include <linux/device.h> |
9 | ||
6e61041f ME |
10 | #include <asm/security_features.h> |
11 | ||
12 | ||
13 | unsigned long powerpc_security_features __read_mostly = \ | |
14 | SEC_FTR_L1D_FLUSH_HV | \ | |
15 | SEC_FTR_L1D_FLUSH_PR | \ | |
16 | SEC_FTR_BNDS_CHK_SPEC_BAR | \ | |
17 | SEC_FTR_FAVOUR_SECURITY; | |
ffd22047 ME |
18 | |
19 | ||
20 | ssize_t cpu_show_meltdown(struct device *dev, struct device_attribute *attr, char *buf) | |
21 | { | |
22 | if (rfi_flush) | |
23 | return sprintf(buf, "Mitigation: RFI Flush\n"); | |
24 | ||
25 | return sprintf(buf, "Vulnerable\n"); | |
26 | } |