Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1543876

[PATCH] net/x25: use designated initializers

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Kees Cook <keescook@chromium.org>
Newsgroups linux.kernel
Subject [PATCH] net/x25: use designated initializers
Date Sat, 17 Dec 2016 02:10:01 +0100
Message-ID <sPbFD-2GI-5@gated-at.bofh.it> (permalink)
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=MIeg6kOuCMdVfuo9LjJs2drPgcyusla2AEX1pMTedRw=; b=nR1hutRaC7IZ7qO3koBkmPD9LRhQBqM1Ot4arK4TontsUEHbvmmY9FJRzbLD3WQeK2 8pXqpwlvkvL2pWDnohd4BDvWxaN9KpOHZv3knOXLoyYUY8gsFSk0VhJqUNnA5wo10vAz nPnDuo2ueSGVjI3gop6wM7E5OU2iDn33ZXaBA=
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=MIeg6kOuCMdVfuo9LjJs2drPgcyusla2AEX1pMTedRw=; b=ZVETHLWlCG+UPZWwyQ41FRhDKZ7r6pGDtH2XynV78wMPHhw0sBpUlbYn/e0CheO6Su c6upm61mDRcHYTQURJkysza3irnPnjjQT1HzD8Vrax3qwJHlvxzFMRWTE7uQRX4MxiDW Gl4pfXZliU+mKKjC8U9YKHvBbPfQ1Hd7xzgP0e211Q7K/BMsN5QUoeav9U2uqIWb183w K1Lg9BKO8BO82Vx3cbvMJNgHMoU0MQjXxCnOsqgarqmq2FBzCmuM+66lVKTzwzq4F7Kk LKXA5+fIVGQoliCZQ9yOibgEvAX/qOu0EIirZNIDkvyA/jd3tYjGF27UgcxQ8JV18abq Lw5Q==
X-Gm-Message-State AKaTC016Fyt7rucjtt1TcjhxGNupBh/y7NOPTw291b855PmP1u6F3ib8UUCYEeMaaQZPvFTD
X-Received by 10.84.134.131 with SMTP id 3mr12645197plh.89.1481936619837; Fri, 16 Dec 2016 17:03:39 -0800 (PST)
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 30
Organization linux.* mail to news gateway
X-Original-Cc Andrew Hendry <andrew.hendry@gmail.com>, "David S. Miller" <davem@davemloft.net>, linux-x25@vger.kernel.org, netdev@vger.kernel.org
X-Original-Date Fri, 16 Dec 2016 17:03:39 -0800
X-Original-Message-ID <20161217010339.GA140529@beast>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1543876

Show key headers only | View raw


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/x25/sysctl_net_x25.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/x25/sysctl_net_x25.c b/net/x25/sysctl_net_x25.c
index 43239527a205..a06dfe143c67 100644
--- a/net/x25/sysctl_net_x25.c
+++ b/net/x25/sysctl_net_x25.c
@@ -70,7 +70,7 @@ static struct ctl_table x25_table[] = {
 		.mode = 	0644,
 		.proc_handler = proc_dointvec,
 	},
-	{ 0, },
+	{ },
 };
 
 void __init x25_register_sysctl(void)
-- 
2.7.4


-- 
Kees Cook
Nexus Security

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

[PATCH] net/x25: use designated initializers Kees Cook <keescook@chromium.org> - 2016-12-17 02:10 +0100
  Re: [PATCH] net/x25: use designated initializers David Miller <davem@davemloft.net> - 2016-12-17 18:00 +0100

csiph-web