]> git.baikalelectronics.ru Git - kernel.git/commit
binfmt_flat: Remove shared library support
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 20 Apr 2022 14:58:03 +0000 (09:58 -0500)
committerKees Cook <keescook@chromium.org>
Fri, 22 Apr 2022 17:57:18 +0000 (10:57 -0700)
commitc9b2969464c3bd51ab3bbb350a1fce98bfbd0afb
treed938de75733799abcbe223bcecc8b8cba0889c14
parentdb030d1fedb6aa4b3b49905bf5e6b8a52bb09458
binfmt_flat: Remove shared library support

In a recent discussion[1] it was reported that the binfmt_flat library
support was only ever used on m68k and even on m68k has not been used
in a very long time.

The structure of binfmt_flat is different from all of the other binfmt
implementations because of this shared library support and it made
life and code review more effort when I refactored the code in fs/exec.c.

Since in practice the code is dead remove the binfmt_flat shared library
support and make maintenance of the code easier.

[1] https://lkml.kernel.org/r/81788b56-5b15-7308-38c7-c7f2502c4e15@linux-m68k.org

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Acked-by: Vladimir Murzin <vladimir.murzin@arm.com> # ARM
Tested-by: Patrice Chotard <patrice.chotard@foss.st.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/87levzzts4.fsf_-_@email.froward.int.ebiederm.org
arch/arm/configs/lpc18xx_defconfig
arch/arm/configs/mps2_defconfig
arch/arm/configs/stm32_defconfig
arch/arm/configs/vf610m4_defconfig
arch/sh/configs/rsk7201_defconfig
arch/sh/configs/rsk7203_defconfig
arch/sh/configs/se7206_defconfig
fs/Kconfig.binfmt
fs/binfmt_flat.c