Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp825168imj; Fri, 15 Feb 2019 07:25:38 -0800 (PST) X-Google-Smtp-Source: AHgI3IYFFNlA2p5QiRRgS4iy0TdNV+i2kqsfwbvnPEztxgb0BO5ZTBIw/f9SWFZ3cf8DXj5q6/Zj X-Received: by 2002:a63:2a89:: with SMTP id q131mr9498771pgq.216.1550244338533; Fri, 15 Feb 2019 07:25:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550244338; cv=none; d=google.com; s=arc-20160816; b=FiCUPCvNubfJuri2Ftli46xxRATeFyyzZ2RYPnh6lamLQXg+Tt/nUaEtQ9ZSVmtYwv MIWy943dDgfCpjAFAodaG+VuloFJaQd5yHuDRM2J7UAw5VYZ/AfTXKiIIKb2LVaTFFTI iDAObIUz3XVe/QyTREbYc6lr0xNZdljbyqmGxZNU4ldC48hX7T94K6geRSuYtKrapTUg kFAB3AjAnFegzJS1aanQyq6BZOG9EZw+rRSpIkQM2IS6sOStiCf27VhTi8aZuTPnG3t7 IQ+liPFX+pfPTSk1l3KopPyMKypZ6CLzKteydS5TvlGBzUwixjOjFb7PU8pO+6GA1nUl fYBQ== 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:dkim-signature; bh=aCZVQgfNalS2MCJR10n/QwVlphVx9WWEEXEpIk5Pz1U=; b=ryXDj/zIGavs1An5gnD7wGqU3egvNCCyh2QLSxC03rE3yrF5urSmRXKectHbEo1r+w d/m6dxxB/tKsbgwl9Jl0DiJHG42M/setu1tQQg77VmpV90b58DberVuzQTd3Qx0I3OE+ uMpVcsTQtJNCy5guMWzYOI+WrRApB9PlZLfFXtHjbPpXB7LE0A5m8shQ3DNugIfUVZqM Uv1tGXRwqlpnPvYtnyOIzVNXoUuO5kq/sGAxJ7wF4iaxYiP06TMSnbh8jqi8p4Ugt8Wc T9766bRadq1TdjUidIYNZNpEUI/xrC5Cq80ctPm+ugQQ6gK6NKtOt9G4WJhW2pPSosfZ fDjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=o4K+plyu; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bg7si5776411plb.149.2019.02.15.07.25.22; Fri, 15 Feb 2019 07:25:38 -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; dkim=pass header.i=@kernel.org header.s=default header.b=o4K+plyu; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389440AbfBOHNV (ORCPT + 99 others); Fri, 15 Feb 2019 02:13:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:56610 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725909AbfBOHNV (ORCPT ); Fri, 15 Feb 2019 02:13:21 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 24B7F206A3; Fri, 15 Feb 2019 07:13:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550214796; bh=uHa0ewdftxg6MCAtg1cwOGKFCgG1xNH5MAQOg7QL3Fo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=o4K+plyueYuuAPOngKyNVCDMWdy0KLly9X8tr4JZ6smUBREfPsxsz6nCNqWz6oBju ePF2cx8WHN371VFb3S/0C+X5ytWYP3ED0XdT6UK7jlMI5Vxc3QTFtxIqHJM2+/Fv3t JO7cfxIuBuwSGosrm/gKgjP9DXUW1wLDaEklCO1U= Date: Fri, 15 Feb 2019 08:13:03 +0100 From: Greg Kroah-Hartman To: Andrew Morton Cc: stable@vger.kernel.org, Linus Torvalds , Richard Weinberger , Samuel Dionne-Riel , LKML , graham@grahamc.com, Oleg Nesterov , Kees Cook , Michal Hocko Subject: Re: Userspace regression in LTS and stable kernels Message-ID: <20190215071303.GA29700@kroah.com> References: <20190214122027.c0df36282d65dc9979248117@linux-foundation.org> <20190215070022.GD14473@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190215070022.GD14473@kroah.com> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 15, 2019 at 08:00:22AM +0100, Greg Kroah-Hartman wrote: > On Thu, Feb 14, 2019 at 12:20:27PM -0800, Andrew Morton wrote: > > On Thu, 14 Feb 2019 09:56:46 -0800 Linus Torvalds wrote: > > > > > On Wed, Feb 13, 2019 at 3:37 PM Richard Weinberger > > > wrote: > > > > > > > > Your shebang line exceeds BINPRM_BUF_SIZE. > > > > Before the said commit the kernel silently truncated the shebang line > > > > (and corrupted it), > > > > now it tells the user that the line is too long. > > > > > > It doesn't matter if it "corrupted" things by truncating it. All that > > > matters is "it used to work, now it doesn't" > > > > > > Yes, maybe it never *should* have worked. And yes, it's sad that > > > people apparently had cases that depended on this odd behavior, but > > > there we are. > > > > > > I see that Kees has a patch to fix it up. > > > > > > > Greg, I think we have a problem here. > > > > 8099b047ecc431518 ("exec: load_script: don't blindly truncate shebang > > string") wasn't marked for backporting. And, presumably as a > > consequence, Kees's fix "exec: load_script: allow interpreter argument > > truncation" was not marked for backporting. > > > > 8099b047ecc431518 hasn't even appeared in a Linus released kernel, yet > > it is now present in 4.9.x, 4.14.x, 4.19.x and 4.20.x. > > It came in 5.0-rc1, so it fits the "in a Linus released kernel" > requirement. If we are to wait until it shows up in a -final, that > would be months too late for almost all of these types of patches that > are picked up. > > > I don't know if Oleg considered backporting that patch. I certainly > > did (I always do), and I decided against doing so. Yet there it is. > > This came in through Sasha's tools, which give people a week or so to > say "hey, this isn't a stable patch!" and it seems everyone ignored that > :( > > Where is Kees's fix? I'll be glad to queue it up, or just revert the > above commit, which ever people think is easiest. Ah, I see the fix now, _after_ I just pushed out a bunch of stable releases. I'll go queue it up and push it out with just that fix in it now... thanks, greg k-h