From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757135AbaCRRVT (ORCPT ); Tue, 18 Mar 2014 13:21:19 -0400 Received: from smtp.outflux.net ([198.145.64.163]:51983 "EHLO smtp.outflux.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757056AbaCRRVM (ORCPT ); Tue, 18 Mar 2014 13:21:12 -0400 From: Kees Cook To: Andrew Morton Cc: Ingo Molnar , Peter Zijlstra , Rik van Riel , Mel Gorman , Aaron Tomlin , Andrew Shewmaker , Li Zefan , Dario Faggioli , Andi Kleen , Dave Hansen , Wanpeng Li , "David S. Miller" , Benjamin Herrenschmidt , Eric Dumazet , Willem de Bruijn , Frederic Weisbecker , Pavel Emelyanov , linux-kernel@vger.kernel.org, Kees Cook Subject: [PATCH 0/2] sysctl: fix incorrect write position handling Date: Tue, 18 Mar 2014 10:17:58 -0700 Message-Id: <1395163080-6290-1-git-send-email-keescook@chromium.org> X-Mailer: git-send-email 1.7.9.5 X-HELO: www.outflux.net Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This creates a series of tests designed to examine the behavior of sysctl write behavior, and corrects some unexpected side-effects of the current file offset handling when writing sysctls. Namely, short appends don't work and multiple writes (with incremented file position) rewrite the sysctl string contents. -Kees