From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755116AbdKIWVU (ORCPT ); Thu, 9 Nov 2017 17:21:20 -0500 Received: from mx1.redhat.com ([209.132.183.28]:43024 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753917AbdKIWVT (ORCPT ); Thu, 9 Nov 2017 17:21:19 -0500 Date: Thu, 9 Nov 2017 16:21:17 -0600 From: Josh Poimboeuf To: Randy Dunlap Cc: LKML , Linux FS Devel , Al Viro , Andrew Morton , Shankara Pailoor , Michael Kerrisk Subject: Re: [RFC PATCH] fs/pipe.c: implement minimum pipe size for arg==0 Message-ID: <20171109222117.st6hnkzw6hsn462w@treble> References: <20171109214507.p6q5xpdmmiqd47uo@treble> <6f9f4e86-9102-a8a1-7c6a-8586f47be044@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <6f9f4e86-9102-a8a1-7c6a-8586f47be044@infradead.org> User-Agent: Mutt/1.6.0.1 (2016-04-01) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Thu, 09 Nov 2017 22:21:19 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 09, 2017 at 02:09:03PM -0800, Randy Dunlap wrote: > > Searching through lkml, it looks like there have been four attempts to > > fix this issue in the last year or so, but none of them have been > > merged. It would be nice to finally get a fix in. > > > > I agree with the patch, though I would argue that the fix belongs in > > round_pipe_size() so that other callers don't get the same bug. > > Hi Josh, > > Yes, I debated with myself on where to put the patch. I made it more local > instead of global just to have less accidental impact. > > > Andrew has these 4 patches from Joe Lawrence in mmotm: > > pipe-add-proc_dopipe_max_size-to-safely-assign-pipe_max_size.patch > pipe-avoid-round_pipe_size-nr_pages-overflow-on-32-bit.patch > pipe-match-pipe_max_size-data-type-with-procfs.patch > sysctl-check-for-uint_max-before-unsigned-int-min-max.patch > > > Hopefully they can be merged soon. > I blame people who travel a lot. ;) Ah, I missed Joe's patches (and neglected to check linux-next). Thanks! -- Josh