From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754670AbdESDgB (ORCPT ); Thu, 18 May 2017 23:36:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:48242 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753348AbdESDf7 (ORCPT ); Thu, 18 May 2017 23:35:59 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A16BA2399A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=mcgrof@kernel.org From: "Luis R. Rodriguez" To: viro@zeniv.linux.org.uk, akpm@linux-foundation.org, ebiederm@xmission.com, keescook@chromium.org, acme@redhat.com, mingo@kernel.org, mgorman@suse.de, subashab@codeaurora.org Cc: jeyu@redhat.com, rusty@rustcorp.com.au, swhiteho@redhat.com, deepa.kernel@gmail.com, matt@codeblueprint.co.uk, adobriyan@gmail.com, bp@suse.de, zlpnobody@gmail.com, dmitry.torokhov@gmail.com, shuah@kernel.org, torvalds@linux-foundation.org, linux@roeck-us.net, linux-kernel@vger.kernel.org, "Luis R. Rodriguez" Subject: [PATCH v3 0/5] sysctl: few fixes Date: Thu, 18 May 2017 20:35:49 -0700 Message-Id: <20170519033554.18592-1-mcgrof@kernel.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170211003614.6579-1-mcgrof@kernel.org> References: <20170211003614.6579-1-mcgrof@kernel.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I've been working on making kmod more deterministic, and as I did that I couldn't help but notice a few issues with sysctl. My end goal was just to fix unsigned int support, which back then was completely broken. Liping Zhang has sent up small atomic fixes, however it still missed yet one more fix and Alexey Dobriyan had also suggested to just drop array support given its complexity. I have inspected array support using Coccinelle and indeed its not that popular, so if in fact we can avoid it for new interfaces, I agree its best. I did develop a sysctl stress driver but will hold that off for another series. Luis R. Rodriguez (5): sysctl: fix lax sysctl_check_table() sanity check sysctl: kdoc'ify sysctl_writes_strict sysctl: fold sysctl_writes_strict checks into helper sysctl: simplify unsigned int support sysctl: add unsigned int range support fs/proc/proc_sysctl.c | 26 ++++- include/linux/sysctl.h | 3 + kernel/sysctl.c | 304 +++++++++++++++++++++++++++++++++++++++++++------ 3 files changed, 293 insertions(+), 40 deletions(-) -- 2.11.0