Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp148690imj; Thu, 14 Feb 2019 17:23:19 -0800 (PST) X-Google-Smtp-Source: AHgI3IZ6jKk7ehD2MMRLG/gR71Sixz3+bXyNH+t7OQK6UEoGP8InZRWVxs5VknNphLMiWtxuhtmy X-Received: by 2002:aa7:8508:: with SMTP id v8mr7134633pfn.14.1550193799053; Thu, 14 Feb 2019 17:23:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550193799; cv=none; d=google.com; s=arc-20160816; b=rrqSJ82uyGAMHak4wt+7wnn0S+gdVURVimLOt9/2mivTDKhCCD5oFr9V/9zGEX6wWS dQ1wHWA3HQFpEZ+UIdugqkBAaRyW3Igsw4g78SFpKr91RlzhDhcxhlaWDuarNrQj7btA wzYICJBnkhX4BS8C6Il1h+86KPtsEL9BpvOrbvzQW6nG44wARWfWyfW5MDuzoxPs2+U+ HKs+WxL+McjqRrT7cRoIlbevgpFJ0D3GwVeZfNM+n//NJHyMox/ZUoCfwT2FzIx59wJY HJyQ3Za6QibPAtf1Df9ZOA9Xq3w+EqLb49+ytYPSpXRU29I1SdgSIK52Axe2L1u28fA2 4lww== 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=2h1/LfmGb7XwFC9p5d9SiH+OPQDRcxnwkOP4FBfWeGM=; b=jXQg+Dt5vPesxumhjYfzhKjd8IoJ/hYXO0n+VyZMNDy5eg/wIYzrsdoXS5IH1ccr1S +cC0VffUYF9Hq2nAd4qboQH8hOp3CaA4B3YAy2lHpmrnkd7YyfjgBwzb5Cw5ZwDutv16 Svssvi/7+vw+LHmy/a3CH9v3wBGmBRlYsLtG7H579vt0HxLq2prVS/rWLdxo08XKNMoj RCjxzVIXqQswgOeVstmrVT2baVj7irsiIrt64vZQLSISX+Us4ejb4atbgtypaePm35lB y8e3jx5edwJ8TdjkK/qbcEiRb3aOlrQwdEn4pRLroOqYeBhaDuczuO920ajuUeA5gR6k ERJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=QCR+ODqb; 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 1si4218637plw.344.2019.02.14.17.23.03; Thu, 14 Feb 2019 17:23:19 -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=@linux-foundation.org header.s=google header.b=QCR+ODqb; 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 S2437598AbfBNR5H (ORCPT + 99 others); Thu, 14 Feb 2019 12:57:07 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:39229 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404197AbfBNR5H (ORCPT ); Thu, 14 Feb 2019 12:57:07 -0500 Received: by mail-lj1-f195.google.com with SMTP id g80so6028252ljg.6 for ; Thu, 14 Feb 2019 09:57:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2h1/LfmGb7XwFC9p5d9SiH+OPQDRcxnwkOP4FBfWeGM=; b=QCR+ODqbQO8vDwOBlDMtOx3e2qsBK7pJfp1uhfGCER1xneqi5QibSSLPwfLcUWB3Fj tWDgs1Rj9oKVVamkXXrCPKsvOlcVk+mMEVHIDQpgUFQR1UCSL78dO442tZFwklGAWG3w ed9CTj6n0PBpP5WjMikdluHWVRzt7QdAboK+c= 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=2h1/LfmGb7XwFC9p5d9SiH+OPQDRcxnwkOP4FBfWeGM=; b=hwZ/eqwvv/pwAFJ+dALK/XZs2LUodJ1teXpH8DPRFimpLjkNkgs58qJkQMCvfIhMyA TXrKKehubR/1nJUyNXyvewFV5kF1dZPcaYb8qTqrxSdssWYs6XfDiPS/LAiSXBb+X0YB MFlKDQ8rynbRMhjI4vELvMcZp7MW0e6nuRO7+pPEDh5e0LdPbQze5lQq9yvNAWbWwbQX yAAOFiZHkNVwOLV5yOjMja9qtuxJmbNLSOcbVkPJqu3tZ44edXXbzzmCsLyG5tMHAl0N PUALWSn8m8LWPwZKv4sKBhbkrJdAGsRgpXijzQ6xQC2K9kIFNm7ZaimdMZXFFySC0HW+ NkOg== X-Gm-Message-State: AHQUAub419oVNgj7y18rZHbVpLveXMz6XMxfc1kktYcQNyqubokIoIYM umtQuIzZahOa1StpdmeOIoxLO+V1G+Q= X-Received: by 2002:a2e:5d54:: with SMTP id r81mr2309878ljb.183.1550167024360; Thu, 14 Feb 2019 09:57:04 -0800 (PST) Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com. [209.85.208.182]) by smtp.gmail.com with ESMTPSA id m191sm597159lfe.92.2019.02.14.09.57.02 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Feb 2019 09:57:02 -0800 (PST) Received: by mail-lj1-f182.google.com with SMTP id q128so6008420ljb.11 for ; Thu, 14 Feb 2019 09:57:02 -0800 (PST) X-Received: by 2002:a2e:89d9:: with SMTP id c25mr3319314ljk.105.1550167022244; Thu, 14 Feb 2019 09:57:02 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Linus Torvalds Date: Thu, 14 Feb 2019 09:56:46 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Userspace regression in LTS and stable kernels To: Richard Weinberger Cc: Samuel Dionne-Riel , LKML , graham@grahamc.com, Oleg Nesterov , Kees Cook , Michal Hocko , 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 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. Linus