Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5182491imu; Tue, 13 Nov 2018 02:30:20 -0800 (PST) X-Google-Smtp-Source: AJdET5fZHRnKioZF3Eu+QxVcnH+EWZTB3eg/0S9+rbG9EJIv8sCXRrd0debr2+X8BYe6M5wb3XbH X-Received: by 2002:a17:902:7d89:: with SMTP id a9mr4024036plm.242.1542105019962; Tue, 13 Nov 2018 02:30:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542105019; cv=none; d=google.com; s=arc-20160816; b=z2KY1tgOFZtkrxYcFazIO/ovv0l79HX4s4pa8XmzH8Cm2/q1qxQoLu5kWhvI/HiHNx L3on25/t1tpPQ1+1O7G4y/+3e9s79sx+aQZTXjYGten6b6XxwOcGf1IUjhkJFZcx8EQI XA1cm0MgnHQHNjaaZcC6NawKDnNfqeef0CLpQQ7dkURfKHl7OwMFLlLffjPiss6x6/K/ SmrHLWKiNrg158KR/iWWUUlCrTW+T3X0JLU6Ly33yLmz0ScWxjnomFRRCKIkRJ1C/5N+ 8W2O3n92JIiWpjJw9HflnjfM2AMUFtJnnW0ppPpfPSa9TxgIh/Yjojbc/0xvLDhGYS52 sbww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=kpQDtrER7yh5D19rLzd7ABP9qqXebNaubh8wdsfsZgw=; b=RREFIIXe6xmTJuYr0xd+CprhN9I3wCZzd5JGTib11OsJENryNG6dmnqeatcBD2Cl9/ y7zqsa3r5Oa08IwNzdfihgCJ6xf9LagCzZ/WROSgQBWLa6sKAhhdFIx+vkXBMDwXwkA/ 9Qk2WR4q4PvKBCpXyQC79lTWYjNbv79whmGXkcNT1S9dpJtdyE3yR8ztBqahQ7VIw/EL Yyhfdo2HGxIDTKfqlLiWOPZ8atLCjuAqoPrbjg7JEoSa/nmikzrRLzWzSJOhY0DQlnkb mpfYPzzOWS1K3R3nCdiDwwdaq5hncqnb51RcN8TYTdRInGWtmfadcI2gxrz4rnI4+psh lhxA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p33-v6si13696540pld.155.2018.11.13.02.30.03; Tue, 13 Nov 2018 02:30:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732315AbeKMU07 (ORCPT + 99 others); Tue, 13 Nov 2018 15:26:59 -0500 Received: from mx2.suse.de ([195.135.220.15]:58488 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731276AbeKMU07 (ORCPT ); Tue, 13 Nov 2018 15:26:59 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id C85B6B6CE; Tue, 13 Nov 2018 10:29:29 +0000 (UTC) Date: Tue, 13 Nov 2018 11:29:29 +0100 From: Michal Hocko To: Oleg Nesterov Cc: Andrew Morton , Ben Woodard , "Eric W. Biederman" , Kees Cook , linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] exec: increase BINPRM_BUF_SIZE to 256 Message-ID: <20181113102929.GO15120@dhcp22.suse.cz> References: <20181112160931.GA28463@redhat.com> <20181112160956.GA28472@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181112160956.GA28472@redhat.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 12-11-18 17:09:56, Oleg Nesterov wrote: > Large enterprise clients often times run applications out of networked > file systems where the IT mandated layout of project volumes can end up > leading to paths that are longer than 128 characters. Bumping this up to > the next order of two solves this problem in all but the most egregious > case while still fitting into a 512b slab. > > Reported-by: Ben Woodard > Signed-off-by: Oleg Nesterov Acked-by: Michal Hocko Increasing it to a larger value wouldn't hurt but I wouldn't bind it to the page size because the layout might change and result in higher order request. > --- > include/uapi/linux/binfmts.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/uapi/linux/binfmts.h b/include/uapi/linux/binfmts.h > index 4abad03..689025d 100644 > --- a/include/uapi/linux/binfmts.h > +++ b/include/uapi/linux/binfmts.h > @@ -16,6 +16,6 @@ struct pt_regs; > #define MAX_ARG_STRINGS 0x7FFFFFFF > > /* sizeof(linux_binprm->buf) */ > -#define BINPRM_BUF_SIZE 128 > +#define BINPRM_BUF_SIZE 256 > > #endif /* _UAPI_LINUX_BINFMTS_H */ > -- > 2.5.0 > > -- Michal Hocko SUSE Labs