Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2926768ybi; Sun, 14 Jul 2019 02:54:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqzMyNk2tICphzKsVQMLpvmVZmuzzVwhN+g5zNHydeF6ZyhdoIIHCu/ciG1Oc6o3yboes+Wx X-Received: by 2002:a63:6b0a:: with SMTP id g10mr20525676pgc.295.1563098098463; Sun, 14 Jul 2019 02:54:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563098098; cv=none; d=google.com; s=arc-20160816; b=dftvh/qx45E8Ks2l6VfUUVznWir+gCBUlwvgaTSLXKZuAPQ43EnMsuZ4Zxw8WopVza vaWzq+2MRGrfWghIOeTI8WKQuSsBVnDXleIBp9GKxXesVxD4mUKuV2z6Nb1gJPujkmCK vyzMTFd0iAOe/N6cCsngatt3ZIb25uKRbyvkVkUjccNtML4ATBiHyPmtmxGot2sWXkDO kjFUvAx/bzhkIrKnd8x6SIhefFUMu70fIZ3XXx+kcqlgAveh7KKtQFKMaEt55Y2K9bjH fFssHdXKd4IOaGY8F4ZDSNUwF26NrUL/Q/RWC/i0154rFPK7a4K8Cz/l9nlBfSNTJIHo A5bA== 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=/SqU2gFVMBbWyLJOkiidaC1t9EiWVorSKt8/qeakt/M=; b=iI9bZbk1Y8GarUX/0zH4nggkEMCJSZfLf+vDRGCrhQWZ5sEHw4SQ/E6HAKQUldJ7Hp eFkyNFbpe9/vIY7YDix/PeUCCyKDGMKwwpfidtMqv0R0u/rIHOedLpvFlRXkhStkqNvw roV2XEpajtz3/Bn14LVfqfuOivWJs7V555W/9CPdpHOhdH8ORxzvZmSJWdRFq3ASQy3R zre5GXUsPPPsDM8sdrEWC3IJkuQDBpSxX4M0XOCr5Y8WxSVstSFZ5z4WqlhS4K+TJ42h MUBn++mxQLWDzLiGNjM/pporRfdWmK6JQEEmyo5g9uuQUxdHNvMhLHVfKSLiZOj1h3tv YiBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="pfit/EM7"; 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 x32si12673291pld.252.2019.07.14.02.54.28; Sun, 14 Jul 2019 02:54:58 -0700 (PDT) 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="pfit/EM7"; 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 S1728218AbfGNJwD (ORCPT + 99 others); Sun, 14 Jul 2019 05:52:03 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:37883 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726799AbfGNJwC (ORCPT ); Sun, 14 Jul 2019 05:52:02 -0400 Received: by mail-wm1-f66.google.com with SMTP id f17so12398511wme.2 for ; Sun, 14 Jul 2019 02:52:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=/SqU2gFVMBbWyLJOkiidaC1t9EiWVorSKt8/qeakt/M=; b=pfit/EM7wrr88HzT2SnkIejcUSxurAVRXBuC529YfAeQ7jrFbenEqOe8z7XQmVFRSO aFiOoRF4zzIvHNkMaREz8eMn7g2NGBmMl28b2Aoqp2oPyurfuNwyltSNovk/JRiBMVim gmVRWXd2xypNmS4xQbc3sTm+l15sMiUlzZp6ayA46Vjgxa807fuSv33Ha7drReVJZvwT oLtHQsQepoxP0Rgh/8tQoimqcVXEC2hgomR3ipKj/ZV90PvceUONNBJdEMnBdM0MYm3n JknLDoKAatsEbdDQJRjvlFyM+rFPRkDF0SPOEIobHs04Q7jQsTtQlrHGJgIsjLthVY0t RM0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=/SqU2gFVMBbWyLJOkiidaC1t9EiWVorSKt8/qeakt/M=; b=O0KKT9SKCSeTxUpZ9aw6YpDRI7NiPvzcAToI+FDnw6/Nby8xzEdYsvMji1PuOJMprC A5yuAx/R/sQ1C5ExQugmvMzNRfgczPoiwrvrgMFVVCawerUkWbPqsg5Aho1gjZ4ocxaB 3zR4brULHCzDoJMnaCf4hF7j1hMaEmjNn5W5XFkS86WX3zKjv76s5jhryTTXIV4Bedbz BfXegdCGdmI0zX3y3rcu3NhFLyrjxHDT9BT3zPWUunT+q+RqhnpYOLpQmoSeuD8IidkR YBwCdryRog/IdZOFdwMId2hywBayjLlRM3Q74XGrud3dhPNaRD9p6MYP73Bp9ITzcRmr CrrA== X-Gm-Message-State: APjAAAWV5+uSLyGHWrB3eETawwIc61siXCVTOUY7hGMvtlYHF276pZRR 1Diq4IYWrVZQ8xMUpEooY9Y3H4w= X-Received: by 2002:a7b:cbc6:: with SMTP id n6mr19402838wmi.14.1563097920485; Sun, 14 Jul 2019 02:52:00 -0700 (PDT) Received: from avx2 ([46.53.254.7]) by smtp.gmail.com with ESMTPSA id z6sm9606950wrw.2.2019.07.14.02.51.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 14 Jul 2019 02:51:59 -0700 (PDT) Date: Sun, 14 Jul 2019 12:51:57 +0300 From: Alexey Dobriyan To: Linus Torvalds Cc: Andrew Morton , izbyshev@ispras.ru, Oleg Nesterov , Michal Kubecek , shasta@toxcorp.com, linux-kernel@vger.kernel.org, security@kernel.org Subject: Re: [PATCH] proc: revert /proc/*/cmdline rewrite Message-ID: <20190714095157.GA2276@avx2> References: <20190713072855.GB23167@avx2> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [re-add lists] On Sat, Jul 13, 2019 at 10:50:20AM -0700, Linus Torvalds wrote: > On Sat, Jul 13, 2019 at 12:29 AM Alexey Dobriyan wrote: > > > > /proc/*/cmdline continues to cause problems: > > If we're reverting this, then we should revert all the way back to the > original fixed-length one that had the original semantics and was > simple. No, because all those Java applications have command lines measured in dozens of kilobytes. > What was the problem with the one-line fix instead? The problem is that I can't even drag this trivia in out of _fear_ that it is userspace observable: https://marc.info/?t=155863429700002&r=1&w=4 [PATCH] elf: fix "start_code" evaluation and yet the patch which did a regression and an infoleak continues to be papered over and for which the only justification was "simplify and clarify".