[PATCH -next] arm64: Constify struct kobj_type
Will Deacon
will at kernel.org
Tue Aug 27 08:56:20 PDT 2024
On Mon, 26 Aug 2024 23:12:50 +0800, Huang Xiaojia wrote:
> 'struct kobj_type' is not modified. It is only used in kobject_init()
> which takes a 'const struct kobj_type *ktype' parameter.
>
> Constifying this structure moves some data to a read-only section,
> so increase over all security.
>
> On a x86_64, compiled with arm defconfig:
> Before:
> ======
> text data bss dec hex filename
> 5602 548 352 6502 1966 arch/arm64/kernel/cpuinfo.o
>
> [...]
Applied to arm64 (for-next/misc), thanks!
[1/1] arm64: Constify struct kobj_type
https://git.kernel.org/arm64/c/684fbd42d323
Cheers,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
More information about the linux-arm-kernel
mailing list