android_kernel_motorola_sm6375/arch
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Eric W. Biederman 33933af45d binfmt: Move install_exec_creds after setup_new_exec to match binfmt_elf
[ Upstream commit e7f7785449a1f459a4a3ca92f82f56fb054dd2b9 ]

In 2016 Linus moved install_exec_creds immediately after
setup_new_exec, in binfmt_elf as a cleanup and as part of closing a
potential information leak.

Perform the same cleanup for the other binary formats.

Different binary formats doing the same things the same way makes exec
easier to reason about and easier to maintain.

Greg Ungerer reports:
> I tested the the whole series on non-MMU m68k and non-MMU arm
> (exercising binfmt_flat) and it all tested out with no problems,
> so for the binfmt_flat changes:
Tested-by: Greg Ungerer <gerg@linux-m68k.org>

Ref: 9f834ec18d ("binfmt_elf: switch to new creds when switching to new mm")
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Greg Ungerer <gerg@linux-m68k.org>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Stable-dep-of: e7f703ff2507 ("binfmt: Fix error return code in load_elf_fdpic_binary()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-01-18 11:41:46 +01:00
..
alpha alpha: fix syscall entry in !AUDUT_SYSCALL case 2023-01-18 11:40:53 +01:00
arc arc: iounmap() arg is volatile 2022-11-03 23:56:54 +09:00
arm ARM: mmp: fix timer_read delay 2023-01-18 11:40:52 +01:00
arm64 arm64: dts: qcom: sdm850-lenovo-yoga-c630: correct I2C12 pins drive strength 2023-01-18 11:41:46 +01:00
c6x
csky
h8300
hexagon
ia64
m68k
microblaze
mips MIPS: OCTEON: warn only once if deprecated link status is being used 2023-01-18 11:40:58 +01:00
nds32
nios2 nios2: add FORCE for vmlinuz.gz 2022-12-08 11:22:59 +01:00
openrisc
parisc parisc: Avoid printing the hardware path twice 2022-11-10 17:57:56 +01:00
powerpc powerpc/rtas: avoid scheduling in rtas_os_term() 2023-01-18 11:41:43 +01:00
riscv RISC-V: vdso: Do not add missing symbols to version section in linker script 2022-12-08 11:22:57 +01:00
s390 KVM: s390: vsie: Fix the initialization of the epoch extension (epdx) field 2022-12-14 11:30:43 +01:00
sh sh: machvec: Use char[] for section boundaries 2022-10-26 13:22:21 +02:00
sparc
um UM: cpuinfo: Fix a warning for CONFIG_CPUMASK_OFFSTACK 2022-10-26 13:22:16 +02:00
unicore32
x86 binfmt: Move install_exec_creds after setup_new_exec to match binfmt_elf 2023-01-18 11:41:46 +01:00
xtensa
.gitignore
Kconfig