Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5585510imu; Tue, 13 Nov 2018 08:42:53 -0800 (PST) X-Google-Smtp-Source: AJdET5dnttorYx6PYntd3Uhah40q9YUmARASulqFDaO3UhAyb1MwFg5jYFGFmzyvan8K3GC8x5MM X-Received: by 2002:a62:2fc7:: with SMTP id v190-v6mr5942358pfv.216.1542127373017; Tue, 13 Nov 2018 08:42:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542127372; cv=none; d=google.com; s=arc-20160816; b=tutWkhVeFSejY3FcNOHvKqmEHjew0F0CxmS+U62WiY/ejqdHkg+at8Gr3wBmHgLRRU zBmmlLmoKBCAeR150ZkwaJjxLJn6i4UTyrbL2xAXu6bjGrUN0+1//F/bBwG+FT6SDXrB KLBGYsvTizE/RWo82FvASabCKqpGy42xonHkjlSSzMmHegPma1snIRqR89bzDl79yo15 7waiCkphh4sjigxRNQdYwU2R4pF838Zm+EKAQcoaTJA+HxA/bhfPwn9hmO1oxA8kHyiN t4NZzID5ZCfIVZAsLuhOF9YoqTFWunEtDqWIOVRLSbA/WfPYBUwCoh3XLwIjR2a4/T3u 71AA== 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=CoxNICQzHZNFWigsZDHFmuop17ZNtJxo/bwfKeBsmHE=; b=nWSktE9h7i7idY04aG2f8gSLUhF4q0BuwBRAHHHgeSuXKqPOkUCazxXo/eLcqewant XE2C8BqcE7w6tE+JnzwcdqG0nwA5GIIXoo5ywaT7z9oWqxPXJKYvB2pbF0cOSjzRAQGz MMMkQFPyrva3bx9c71UN9kZCEz/rIdRaedlqDOPe6/S3V+c8zQ0kkCNp4B4YhgpCCVvI hD6J3YAMU7WzbGhNPfOCNdTBFVPz94UhGKyId6M8VOEOr3wqZ5AOeF6Ldk2y+iRfwJRc bjOa3GXr553EPIrFvZJ4jT/DSn7PaOIanc6mHY8sbbYm/NS5neWct+ETsAc9CkLr8lcb G2nw== 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 w32si20528131pga.337.2018.11.13.08.42.28; Tue, 13 Nov 2018 08:42:52 -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 S1731174AbeKNCkT (ORCPT + 99 others); Tue, 13 Nov 2018 21:40:19 -0500 Received: from mx1.redhat.com ([209.132.183.28]:40470 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728431AbeKNCkT (ORCPT ); Tue, 13 Nov 2018 21:40:19 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C1C143002501; Tue, 13 Nov 2018 16:41:27 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.43.17.31]) by smtp.corp.redhat.com (Postfix) with SMTP id 6FBF61019635; Tue, 13 Nov 2018 16:41:26 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Tue, 13 Nov 2018 17:41:27 +0100 (CET) Date: Tue, 13 Nov 2018 17:41:25 +0100 From: Oleg Nesterov To: Michal Hocko Cc: Andrew Morton , Ben Woodard , "Eric W. Biederman" , Kees Cook , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] exec: load_script: don't blindly truncate shebang string Message-ID: <20181113164125.GF30990@redhat.com> References: <20181112160931.GA28463@redhat.com> <20181113102741.GN15120@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181113102741.GN15120@dhcp22.suse.cz> User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.45]); Tue, 13 Nov 2018 16:41:27 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/13, Michal Hocko wrote: > > A bit cryptic to my taste Yeeees, because I didn't want to touch the code below. We need to cleanup the whole "parse bprm->buf" code, not only this part. > but it looks correct. I have tried to come up > with something more tasty but I am afraid it would be just a matter of > taste. > > Acked-by: Michal Hocko Thanks! Oleg.