Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp185271imj; Thu, 14 Feb 2019 18:12:29 -0800 (PST) X-Google-Smtp-Source: AHgI3IZCM4c6bcxPDbxxdnk1WJuhj8YtK3hOQGIiHprWKyyrjBv2e3GC6y3RoTsb1hKyGfzrEmU3 X-Received: by 2002:a17:902:166:: with SMTP id 93mr7611886plb.20.1550196749254; Thu, 14 Feb 2019 18:12:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550196749; cv=none; d=google.com; s=arc-20160816; b=BN1cKJkSv8YmG8uc8CrcFCtWvee7hXT7YU9RsgCVyEFIHDq5hLKVyXim05iAbArOie 8JOidj6a3cA6nV/O/08GhX2kKbtcMjEpxXhtBlnt9KpjdNB2f6+pLoIhsHgb2/JcHz4B CYZtTSBolSxinvcFpOBcHwwtBxoyO5LQV2G8UIn9+jeLbwHU0TdU6A/fw22BRY0C8zg5 xQmNRC7py7s4GPgVbnMxrmjC6sY6T58ITneDOGTklRi7jwLQF/6jeZH+fEonnMNKAzgU 1R2tQNaHhPDunTQ0csLWEULG3ZFK9HvXK5zQFYtBIrxNMIvBqaKNFGClAF+1tkNXyF+E Ci2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=DWe8UvGt2bgqhuYAaSH8sbeFgy2Q09Q7J9/11ROqcew=; b=XDIn6/GiJzHYN9qRkZWkTk8gn3I68JUDTlkW0eqnDxFyl/M871KA//XS78UeSNMKP8 I12SCaKDsmNJ/txIVDZPkmr70p3HJKQHWAy2FNwtnP+5Rni4tpxCrkfLHDbPxxi0EgBQ KDsR15xLqM7OGIJiigp7C8uBuB+Wo/hgOVx3dnbz1BNhQZwMMKaqhMEFCP7k6zzokGhR N8IvKxLMp+YYeEjftmM01dcFR06kUgk5QgDz4wQH62b+Bdpg9S6zjzKMG/cwqIyGZbXe nJ86uINjIJqJsZHZT7VCwBHlBea0jw2AbhjoALiTxnPjl3dVUA+I1LyM8PsdLfnoRVo0 JEZA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b26si4088358pgl.539.2019.02.14.18.12.13; Thu, 14 Feb 2019 18:12:29 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406767AbfBNUUd (ORCPT + 99 others); Thu, 14 Feb 2019 15:20:33 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:33690 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390579AbfBNUUa (ORCPT ); Thu, 14 Feb 2019 15:20:30 -0500 Received: from akpm3.svl.corp.google.com (unknown [104.133.8.65]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 57FD1B3F; Thu, 14 Feb 2019 20:20:29 +0000 (UTC) Date: Thu, 14 Feb 2019 12:20:27 -0800 From: Andrew Morton To: Linus Torvalds Cc: Richard Weinberger , Samuel Dionne-Riel , LKML , graham@grahamc.com, Oleg Nesterov , Kees Cook , Michal Hocko , Greg Kroah-Hartman Subject: Re: Userspace regression in LTS and stable kernels Message-Id: <20190214122027.c0df36282d65dc9979248117@linux-foundation.org> In-Reply-To: References: X-Mailer: Sylpheed 3.6.0 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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.