Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1136843imj; Thu, 14 Feb 2019 01:45:01 -0800 (PST) X-Google-Smtp-Source: AHgI3Ias0CJLR1Ys9fl/DNis79GzRu34Yvu7smZwikBiTzFoV44wdUOTjL1ffxXrVyKMv5BglmFT X-Received: by 2002:a62:6204:: with SMTP id w4mr3111929pfb.5.1550137501207; Thu, 14 Feb 2019 01:45:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550137501; cv=none; d=google.com; s=arc-20160816; b=Ff+w6MQov32bS/To+EaY6/t8D/shFodilCCZmxee4VIn770Rl/DBz5Oc4WReBdtS2k akGS/eEImmSZx3NC4qsWg5bcUAjemnWGYcuVq8LehgeuvJ3habxY9501MzY7e0nZFqpZ WSLWx6P4T7rIUWD9OPHgzOiiofzS9bExwG4Qim80Dm1R0ld+C8s1M0bPuvFqG31NmZ1s v0nQAFWQmL94kAQEVcVT6fOErIP4JcLK5EnUVXtxXWx/6EDuxlPCe2HesRooR6Z0jNwr VM+W7FnqQcYtdsMPl+GG0gulS3HE206VoIw1P3/jFBf01YWOtqTho0bdrkhvKeJLtKvy l07Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=35CHtKJBdFYeYnwdQ+jDpVSeyCId7XDKRnuVATTH7qE=; b=j11a5+m+6X8c3H+QmoGhhEQ/Voibz1Qvjqv5dZEyjT9Ib8eQlq7jRMx0AYOlgksKVw L91s7GhipgPVZK/3dOFBCNFlzNpwcu1tAxzZ8W8EIKZxwYclgn+9ecAFzzp2v3ruRsoJ CbE052LjFfM+pZChzR5KZWTganH+TpnT+M74+estCjkSM//vC9P55rD9ffPT7KElOa9P t7rF+Xo6zzry2tQ67+1Y7hPOMRyByblbiA+qpZabhfhuUvfkBbMBpQhM82nQcVgKP/sL gmcyAO6BeuibP1ZKLoC+lkkXXq9rRCYinyuoNazX6NsB4LVLUJTiQu6myAvxFIIRJI+J HiVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=InnTlCQ8; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d19si1999919plr.327.2019.02.14.01.44.45; Thu, 14 Feb 2019 01:45:01 -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=@gmail.com header.s=20161025 header.b=InnTlCQ8; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389737AbfBMXgo (ORCPT + 99 others); Wed, 13 Feb 2019 18:36:44 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:51805 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728875AbfBMXgn (ORCPT ); Wed, 13 Feb 2019 18:36:43 -0500 Received: by mail-wm1-f67.google.com with SMTP id b11so4436955wmj.1 for ; Wed, 13 Feb 2019 15:36:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=35CHtKJBdFYeYnwdQ+jDpVSeyCId7XDKRnuVATTH7qE=; b=InnTlCQ8yZGgzzy4vTB16CA5XllT324ARR3hC5Eh4cZKcAxk8+bUWbI3HEGY949UU8 WQgmSsfwKn0nsbWQHVRSvbK22N4UynAciFjj/AqP2Lw6hFokZmtlca4qcrKCZK7mY7PT Q75vRW3RHB+U7jqKUwhmVYXzlHJWwMkgy393G+CWL1ByO+LaaYih2pikAFPeqXJodeQv gS/Gdw4F1AbbYbMypx+M2bmkflYli3zbT1trPlUQP7iku42A8wzxF2u9bTbsWvmuTQFy u/ncJeTYoaWVMHBit3cyq3LQfWdyGt/W0GQ+UfRAWSBTKqis6VnUIOp7504Lqy1SN2hf 3Ktg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=35CHtKJBdFYeYnwdQ+jDpVSeyCId7XDKRnuVATTH7qE=; b=OWtUN7xBSjlHGafBT8pqxc7CB5B8LCHSNO81SnYTzP1jivjvWAeEM2JTbqbFBxG3m8 eI8BBVlaBFLw2gbdAzm2aEW6P/OLmM8+R8hFfrfhd3B3KuesMUX11tnrM5pJjcfuMnHW l3ewXijZXK/BYzsPG5furdhz+2kNgjwt7h6ERZwq2a61Anlh6cE3pEJmxuZIHs+c5BPO dOUGFhapjn8yNwK3/zFu82VXX2VpXQ7zE9lc/3EIk48iZBgTktCogO6M3YgZlVpgFwAC hkmmWcfNvMa0inhTlNV96+XLeoeX2aq4Yq04J8zE8U6N2i9cImbLqX2O4eOUTzA3XyG1 C7Tg== X-Gm-Message-State: AHQUAubtPnDeYtU5JUHtE+q6V662bJO/nqmyEcbC8IFsnUwWRaCE/NEY zRXzHJjYAOdhFGHuGBmJJZD2QeQeYi6bYA6u4+Q= X-Received: by 2002:a1c:a8d7:: with SMTP id r206mr392919wme.115.1550101001331; Wed, 13 Feb 2019 15:36:41 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Richard Weinberger Date: Thu, 14 Feb 2019 00:36:29 +0100 Message-ID: Subject: Re: Userspace regression in LTS and stable kernels To: Samuel Dionne-Riel Cc: LKML , Linus Torvalds , graham@grahamc.com, Oleg Nesterov , Kees Cook , mhocko@suse.com, Andrew Morton Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [CC'in relevant folks] On Thu, Feb 14, 2019 at 12:19 AM Samuel Dionne-Riel wrote: > > Hi, > > I am posting as a representative of the NixOS Linux distribution, > about a userspace regression on 5.0-rc* which recently was backported > to the 4.14.99, 4.19.21 and 4.20.8 current LTS and stable versions. > The issue has been reported to the bug tracker, bug 202497, but seems > to have gone unnoticed by the maintainers. > > The issue seems to break userspace for long-standing patterns in the > NixOS distribution, with regards to use of the shebangs. > > Here is an example shebang causing an issue: > > #! /nix/store/mbwav8kz8b3y471wjsybgzw84mrh4js9-perl-5.28.1/bin/perl > -I/nix/store/x6yyav38jgr924nkna62q3pkp0dgmzlx-perl5.28.1-File-Slurp-9999.25/lib/perl5/site_perl > -I/nix/store/ha8v67sl8dac92r9z07vzr4gv1y9nwqz-perl5.28.1-Net-DBus-1.1.0/lib/perl5/site_perl > -I/nix/store/dcrkvnjmwh69ljsvpbdjjdnqgwx90a9d-perl5.28.1-XML-Parser-2.44/lib/perl5/site_perl > -I/nix/store/rmji88k2zz7h4zg97385bygcydrf2q8h-perl5.28.1-XML-Twig-3.52/lib/perl5/site_perl This this ever work correctly? It is longer than BINPRM_BUF_SIZE. > (The shebang was artificially wrapped spaces replaced by newlines) > > Another contributor tracked the regression it to commit > 8099b047ecc431518b9bb6bdbba3549bbecdc343 in the 5.0-rc* tree. > > I bring no particular fix to the issue, but I believe it should at > least be fast-tracked to a revert for the stable and LTS branches, and > since 5.0 might drop soon, a solution worked on, or possibly a revert > until one is figured out. 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. Thanks, //richard