Skip to contentSkip to conversation

net: use designated initializers

PATCH Applied Kees Cook 2 participants 3 messages Dec 17, 2016

Subsystems (2)
lore
Share & tools
lore

Kees Cook

author
#0 lore raw

PATCH 1/1 net: use designated initializers

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.

---
 net/decnet/dn_dev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/decnet/dn_dev.c +1 -1
index b2c26b081134..41f803e35da3 100644
@@ -201,7 +201,7 @@ static struct dn_dev_sysctl_table {
 		.extra1 = &min_t3,
 		.extra2 = &max_t3
 	},
-	{0}
+	{ }
 	},
 };
 
Signature · 6 lines
2.7.4


-- 
Kees Cook
Nexus Security
maintainer Applied
#1 lore raw

From: Kees Cook <[email protected]>
Date: Fri, 16 Dec 2016 16:58:58 -0800

Quoted 6 lines

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.

Applied, although "decnet: " would have been a much better subsystem prefix.

author
#2 lore raw
Quoted 8 lines · David Miller

From: Kees Cook <[email protected]>
Date: Fri, 16 Dec 2016 16:58:58 -0800

Quoted 5 lines

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.

Quoted 4 lines
Quoted 1 line

Applied, although "decnet: " would have been a much better subsystem prefix.

Thanks! Yeah, I had corrected that in my tree already in case there was a v2 needed. I was working off an auto-splitting script that I taught to guess at prefixes by looking at commit logs. It didn't work very well. ;) We need another field in MAINTAINERS. :)

-Kees

Signature · 2 lines
Kees Cook
Nexus Security