netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net: use designated initializers
@ 2016-12-17  0:58 Kees Cook
  2016-12-17 16:57 ` David Miller
  0 siblings, 1 reply; 3+ messages in thread
From: Kees Cook @ 2016-12-17  0:58 UTC (permalink / raw)
  To: linux-kernel; +Cc: David S. Miller, linux-decnet-user, netdev

Prepare to mark sensitive kernel structures for randomization by making
sure they're using designated initializers. These were identified during
allyesconfig builds of x86, arm, and arm64, with most initializer fixes
extracted from grsecurity.

Signed-off-by: Kees Cook <keescook@chromium.org>
---
 net/decnet/dn_dev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/decnet/dn_dev.c b/net/decnet/dn_dev.c
index b2c26b081134..41f803e35da3 100644
--- a/net/decnet/dn_dev.c
+++ b/net/decnet/dn_dev.c
@@ -201,7 +201,7 @@ static struct dn_dev_sysctl_table {
 		.extra1 = &min_t3,
 		.extra2 = &max_t3
 	},
-	{0}
+	{ }
 	},
 };
 
-- 
2.7.4


-- 
Kees Cook
Nexus Security

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-12-17 21:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-17  0:58 [PATCH] net: use designated initializers Kees Cook
2016-12-17 16:57 ` David Miller
2016-12-17 21:33   ` Kees Cook

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).