Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4257587imu; Mon, 12 Nov 2018 08:11:17 -0800 (PST) X-Google-Smtp-Source: AJdET5c77IItzEbOLr9OdkGl7F6AeAPv2tCbhj6HJuHjqAS/rwT+eEYp8SJ89s2FYbmer7gFu4gC X-Received: by 2002:a65:62da:: with SMTP id m26mr1341910pgv.278.1542039077769; Mon, 12 Nov 2018 08:11:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542039077; cv=none; d=google.com; s=arc-20160816; b=lSkUsCBqCLFv0VnxDmekrOyQLDqInhvNDQAfndohXFnO5naw07aKw8IFETinpfQiKF cQqnp6f47ZUR58JrbQdoNxloaxV0E9nwnLMfJ6zccIBfrDZ7Ralr0g8Lq5D+5xFzWSVj eN3K+Mj8ycbsdgCbYDdZPC8JcMvczANJxwy3KpTsYUhtmn1N1ktIUN31RjaTEyfI/UTG 0k27dGudqN5Pd2i2zLh+LIP35vMtjlQQ1JLOKZ+fWa7OuWOswxUp9PwB5F2sdIJQfk/K x2rXavhV9TeaK6tEeKRoOHpUqDbpfyRl1fV2qDh93bv52P/3wjcthgr88ZjTTi1J17vf dlLw== 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=/fZT1glnJZjUJrxstujEhqIub8fk6Skhzdna9e/HewY=; b=VdT4qgk5yaTCc0rKD6B1HoAw4/dkPPx6OQua2EjevFAvy5KTIDkrHHoBW0I3Q9q2Ah WcnuiKUfy2cvlsIaPsLqyz+yGcc/xT2C21vNNkYIMj5umckqXOfoRlUCLN5NtMLwflsZ lrRG46upIv4s622N49oKja3IV5lGzAohnxZNbpD1YHc8T9sFEeIC7idAl8zHyli1GVri 0WMQUzHQINis8HFaydaSKEM9lrPIK41FHo/nU+gAvm2eP1lsjxFGFjsEheD47oUQvYza ab2Jxm1mlfM0/f/zXXS/r+zJ9qK3qWLD1kLK8G2gXx9Hfx66kXIV1Y7hhvzrRMM9A+03 pYtQ== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h80-v6si14991529pfj.112.2018.11.12.08.10.49; Mon, 12 Nov 2018 08:11:17 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730135AbeKMCDw (ORCPT + 99 others); Mon, 12 Nov 2018 21:03:52 -0500 Received: from mx1.redhat.com ([209.132.183.28]:40608 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726385AbeKMCDw (ORCPT ); Mon, 12 Nov 2018 21:03:52 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3011C307D91D; Mon, 12 Nov 2018 16:09:59 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.43.17.31]) by smtp.corp.redhat.com (Postfix) with SMTP id AD942620CF; Mon, 12 Nov 2018 16:09:57 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Mon, 12 Nov 2018 17:09:58 +0100 (CET) Date: Mon, 12 Nov 2018 17:09:56 +0100 From: Oleg Nesterov To: Andrew Morton Cc: Ben Woodard , "Eric W. Biederman" , Kees Cook , Michal Hocko , linux-kernel@vger.kernel.org Subject: [PATCH 2/2] exec: increase BINPRM_BUF_SIZE to 256 Message-ID: <20181112160956.GA28472@redhat.com> References: <20181112160931.GA28463@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181112160931.GA28463@redhat.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.48]); Mon, 12 Nov 2018 16:09:59 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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