Re: [PATCH v5 32/36] x86/boot/compressed: Reorganize zero-size section asserts

2020-08-21 Thread Kees Cook
On Sat, Aug 01, 2020 at 01:12:25PM -0400, Arvind Sankar wrote: > Actually, moving it to the end also requires marking it INFO or > stripping it out when creating the bzImage. Otherwise we get back to > that old problem of materializing .bss/.pgtable in the bzImage. Yeah -- I wonder what the best

Re: [PATCH v5 32/36] x86/boot/compressed: Reorganize zero-size section asserts

2020-08-21 Thread Kees Cook
On Fri, Jul 31, 2020 at 09:47:55PM -0400, Arvind Sankar wrote: > On Fri, Jul 31, 2020 at 04:08:16PM -0700, Kees Cook wrote: > > For readability, move the zero-sized sections to the end after DISCARDS > > and mark them NOLOAD for good measure. > > > > Signed-off-by: Kees Cook > > --- > >

Re: [PATCH v5 32/36] x86/boot/compressed: Reorganize zero-size section asserts

2020-08-01 Thread Arvind Sankar
On Fri, Jul 31, 2020 at 10:36:00PM -0700, Kees Cook wrote: > On Fri, Jul 31, 2020 at 10:53:25PM -0400, Arvind Sankar wrote: > > On Fri, Jul 31, 2020 at 09:47:55PM -0400, Arvind Sankar wrote: > > > On Fri, Jul 31, 2020 at 04:08:16PM -0700, Kees Cook wrote: > > > > For readability, move the

Re: [PATCH v5 32/36] x86/boot/compressed: Reorganize zero-size section asserts

2020-08-01 Thread Arvind Sankar
On Fri, Jul 31, 2020 at 10:35:14PM -0700, Kees Cook wrote: > On Fri, Jul 31, 2020 at 09:47:55PM -0400, Arvind Sankar wrote: > > On Fri, Jul 31, 2020 at 04:08:16PM -0700, Kees Cook wrote: > > > For readability, move the zero-sized sections to the end after DISCARDS > > > and mark them NOLOAD for

Re: [PATCH v5 32/36] x86/boot/compressed: Reorganize zero-size section asserts

2020-07-31 Thread Kees Cook
On Fri, Jul 31, 2020 at 10:53:25PM -0400, Arvind Sankar wrote: > On Fri, Jul 31, 2020 at 09:47:55PM -0400, Arvind Sankar wrote: > > On Fri, Jul 31, 2020 at 04:08:16PM -0700, Kees Cook wrote: > > > For readability, move the zero-sized sections to the end after DISCARDS > > > and mark them NOLOAD

Re: [PATCH v5 32/36] x86/boot/compressed: Reorganize zero-size section asserts

2020-07-31 Thread Kees Cook
On Fri, Jul 31, 2020 at 09:47:55PM -0400, Arvind Sankar wrote: > On Fri, Jul 31, 2020 at 04:08:16PM -0700, Kees Cook wrote: > > For readability, move the zero-sized sections to the end after DISCARDS > > and mark them NOLOAD for good measure. > > > > Signed-off-by: Kees Cook > > --- > >

Re: [PATCH v5 32/36] x86/boot/compressed: Reorganize zero-size section asserts

2020-07-31 Thread Arvind Sankar
On Fri, Jul 31, 2020 at 09:47:55PM -0400, Arvind Sankar wrote: > On Fri, Jul 31, 2020 at 04:08:16PM -0700, Kees Cook wrote: > > For readability, move the zero-sized sections to the end after DISCARDS > > and mark them NOLOAD for good measure. > > > > Signed-off-by: Kees Cook > > --- > >

Re: [PATCH v5 32/36] x86/boot/compressed: Reorganize zero-size section asserts

2020-07-31 Thread Arvind Sankar
On Fri, Jul 31, 2020 at 04:08:16PM -0700, Kees Cook wrote: > For readability, move the zero-sized sections to the end after DISCARDS > and mark them NOLOAD for good measure. > > Signed-off-by: Kees Cook > --- > arch/x86/boot/compressed/vmlinux.lds.S | 42 +++--- > 1 file

[PATCH v5 32/36] x86/boot/compressed: Reorganize zero-size section asserts

2020-07-31 Thread Kees Cook
For readability, move the zero-sized sections to the end after DISCARDS and mark them NOLOAD for good measure. Signed-off-by: Kees Cook --- arch/x86/boot/compressed/vmlinux.lds.S | 42 +++--- 1 file changed, 25 insertions(+), 17 deletions(-) diff --git