acrn-kernel/arch/x86
Christophe JAILLET d7e2be5da9 x86/signal: Fix the value returned by strict_sas_size()
[ Upstream commit ef6dfc4b23 ]

Functions used with __setup() return 1 when the argument has been
successfully parsed.

Reverse the returned value so that 1 is returned when kstrtobool() is
successful (i.e. returns 0).

My understanding of these __setup() functions is that returning 1 or 0
does not change much anyway - so this is more of a cleanup than a
functional fix.

I spot it and found it spurious while looking at something else.
Even if the output is not perfect, you'll get the idea with:

   $ git grep -B2 -A10 retu.*kstrtobool | grep __setup -B10

Fixes: 3aac3ebea0 ("x86/signal: Implement sigaltstack size validation")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/73882d43ebe420c9d8fb82d0560021722b243000.1673717552.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-03-10 09:32:53 +01:00
..
boot x86/sev: Add SEV-SNP guest feature negotiation support 2023-02-01 08:34:50 +01:00
coco
configs
crypto crypto: x86/ghash - fix unaligned access in ghash_setkey() 2023-03-10 09:32:51 +01:00
entry x86/vdso: Conditionally export __vdso_sgx_enter_enclave() 2022-12-21 17:48:01 +01:00
events x86/perf/zhaoxin: Add stepping check for ZXC 2023-03-10 09:32:45 +01:00
hyperv x86/hyperv: Remove unregister syscore call from Hyper-V cleanup 2022-12-31 13:32:56 +01:00
ia32
include x86/cpu: Add Lunar Lake M 2023-03-03 11:52:22 +01:00
kernel x86/signal: Fix the value returned by strict_sas_size() 2023-03-10 09:32:53 +01:00
kvm KVM: x86: fix deadlock for KVM_XEN_EVTCHN_RESET 2023-02-25 11:25:40 +01:00
lib x86/asm: Fix an assembler warning with current binutils 2023-01-24 07:24:31 +01:00
math-emu
mm x86/pat: Fix pat_x_mtrr_type() for MTRR disabled case 2023-01-18 11:58:22 +01:00
net
pci
platform
power
purgatory
ras
realmode x86/boot: Skip realmode init code when running as Xen PV guest 2022-12-31 13:32:16 +01:00
tools
um elfcore: Add a cprm parameter to elf_core_extra_{phdrs,data_size} 2023-01-18 11:58:12 +01:00
video
virt/vmx/tdx
xen x86/boot: Skip realmode init code when running as Xen PV guest 2022-12-31 13:32:16 +01:00
.gitignore
Kbuild
Kconfig x86/apic: Handle no CONFIG_X86_X2APIC on systems with x2APIC enabled by BIOS 2022-12-31 13:32:58 +01:00
Kconfig.assembler
Kconfig.cpu
Kconfig.debug
Makefile x86/build: Move '-mindirect-branch-cs-prefix' out of GCC-only block 2023-02-09 11:28:13 +01:00
Makefile.um
Makefile_32.cpu