Re: [PATCH net-next v2] sections: global data can be in .bss

From
Arnd Bergmann <arnd@arndb.de>
Date
2021-11-22 14:39:41
Also in
linux-arch
Reply to
Antoine Tenart, 2021-11-22
On Mon, Nov 22, 2021 at 3:24 PM Antoine Tenart [off-list ref] wrote:
When checking an address is located in a global data section also check
for the .bss section as global variables initialized to 0 can be in
there (-fzero-initialized-in-bss).

This was found when looking at ensure_safe_net_sysctl which was failing
to detect non-init sysctl pointing to a global data section when the
data was in the .bss section.

Signed-off-by: Antoine Tenart <atenart@kernel.org>
Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
---

A few remarks:

- This still targets net-next but I added Arnd if he prefers to take it
  through the 'asm-generic' tree, now that is_kernel_core_data is in
  include/asm-generic/.
I have nothing else for asm-generic at the moment, please take
this through net-next.

Acked-by: Arnd Bergmann <arnd@arndb.de>
Thread (5 messages) 5 messages, 4 authors, last reply 2021-11-22
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help