Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3048944pxf; Sun, 14 Mar 2021 23:03:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3vTG7htli6o0oqNAbuhCQOg+2X+Fcnlk7Dl9350whQIUsKTscljhr2BiE/iIthzcE9kC4 X-Received: by 2002:a17:906:e16:: with SMTP id l22mr21579204eji.173.1615788232632; Sun, 14 Mar 2021 23:03:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615788232; cv=none; d=google.com; s=arc-20160816; b=GPPylK8xg4yVFJ3XqEmjKGzZvJGJ73uuUu6Cpsf+4yYjCtiX6GB/WQB27suH6YaMpm +R6xjYwmbYZVGqax3o4whxDcfiEEzBRKBdSr+a0sthB1glHzNit9LweWxroUUzI4Qv5a +vhScHXH5lf7mPMUr+R70IE7m5XIPq//yyFTQSd5TFkjUrP+6uU2gjwBzvWYauc0kJW3 dpMROxLeALA1xXTBi8voNgmwzSM6QP6XHHurrByvObO6kiHv7Evac2tSgAKtYk8fH4xJ nl8pSwMyn7z2yzafdKzh4IC0oNyKKBNc38pc1zfg9Z3uZXrbv4TKnjL/xOd4aoiHQAoE 1BOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=KOvvV7RR2japda/QLFsyXLfM22nNp7ARHTQim4IJaMg=; b=OFavIrhJQb+pTb91EZa1tU/EC0FjjtyBEJMnmTHFcG73akSAa+XcIsrj+F7LOazc7L VD1uByIZ+3bHZiHvN8LEUnqnKR5ma2LaacVlK9DV3UdMQ25MLeyIT4sJKouwBWpRIAzU FkIWwZgvAtk/Mtz9pqeUapEqqmBtHl6rou2CsRPsrFNmH4dvcIPmzh9RgXhuhoEFAQIy YgydKzKPRZtwbIADF9U2x4rJqPS/8XrGr0rFzRXKwFzS0irtX02uRpg4Rq7umGMBy9Kq MabW4BFLjnjPWhmA6wGT/Y2XC8bd9bpdEjEcbchd9oR5lgA+03VsW156loXjlOfUEttH wp/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=f63X4hR6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id jy27si10372135ejc.748.2021.03.14.23.03.30; Sun, 14 Mar 2021 23:03:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=f63X4hR6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S229899AbhCOGAY (ORCPT + 99 others); Mon, 15 Mar 2021 02:00:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229644AbhCOGAE (ORCPT ); Mon, 15 Mar 2021 02:00:04 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4EBE5C061574 for ; Sun, 14 Mar 2021 23:00:03 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id t9so5053225wrn.11 for ; Sun, 14 Mar 2021 23:00:03 -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; bh=KOvvV7RR2japda/QLFsyXLfM22nNp7ARHTQim4IJaMg=; b=f63X4hR6IyFmvatcjhANcDApy6+9Sg0QLM0WugR7Md/KTp5ik/re16f8DohbXR7fQ0 sejhZfVn77t/qCOE7nMVT/WXoGbzM4J3oQKgaxTrA3Scvod7nNv5fttHeRBBgWDkZBPs py+0KQiHoUrMGCLe0VUMPcYUEql1H4pZnZuqtVmYRbsiCk8ahEpwkSNI211NgCgiwD7A +9Nimgcu51YwgNdnysTP54ZUVdGLa3hlpy9gu57ZgaihrZ/e+clZGJCG4iZMpu8YkB6p Lt7nZIN/NsNqKAVyMomk8RSThH3hQ1DWprscPolZMd5fSJyPyseTaM728wTMQpY8h+X8 6IUA== 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; bh=KOvvV7RR2japda/QLFsyXLfM22nNp7ARHTQim4IJaMg=; b=kSwsbTVmndf3wgHNwi2X4MhrLHGJxfdJWHmBqSJMbawqx1MiWBINY+dCS/JBJS9Bcm u6CBNRvWQ7vgzRR/80qiudNC5zoCB3VOfcgfp9AtQoWweS5ZRmD2XCpTvSR2iIjMtWgc vsXePu9ZpGySXk+ap0HGartM2smeZ0RIq41AFc5Ez2Rdb2JqP0pZM28t1X9Cm+xkqxGC FFkrQW5lEf3ws0fAO/bOeeDfvQOGjGD7zMvt4+oMRoS3ewYe3yJJoRHJmVVosgGNM+2v eDSkFUZpeoP/hHvfvlbUQDPK/qBdWCp1t24yy6eArD92/NpeP5Xl2c0N0jV0E6Pjm9sJ rqqQ== X-Gm-Message-State: AOAM531xftvDgGvfcUH883UU+/IM0/CJi1oB5DLBph3jSsO8Q58mwbCY oU2mYfBSYi4iShFRWCvgsnhjEo+Afg== X-Received: by 2002:a5d:4e0b:: with SMTP id p11mr26148924wrt.343.1615788002017; Sun, 14 Mar 2021 23:00:02 -0700 (PDT) Received: from localhost.localdomain ([46.53.252.141]) by smtp.gmail.com with ESMTPSA id u20sm18714285wru.6.2021.03.14.23.00.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Mar 2021 23:00:01 -0700 (PDT) Date: Mon, 15 Mar 2021 09:00:00 +0300 From: Alexey Dobriyan To: Linus Torvalds Cc: Andrew Morton , Linux Kernel Mailing List , gorcunov@openvz.org Subject: auxv stuff (Re: [PATCH] prctl: fix PR_SET_MM_AUXV kernel stack leak) Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 14, 2021 at 02:40:05PM -0700, Linus Torvalds wrote: > [mm->saved_auxv] > > That's a separate issue, and I can't find it in myself to care (and > nobody has ever complained), but I thought I'd mention it. There is another (non-security) one. Compat 32-bit process will report 2 longs too many: 00000000 20 00 00 00 40 85 f5 f7 21 00 00 00 00 80 f5 f7 | ...@...!.......| 00000010 10 00 00 00 ff fb 8b 0f 06 00 00 00 00 10 00 00 |................| 00000020 11 00 00 00 64 00 00 00 03 00 00 00 34 80 04 08 |....d.......4...| 00000030 04 00 00 00 20 00 00 00 05 00 00 00 08 00 00 00 |.... ...........| 00000040 07 00 00 00 00 90 f5 f7 08 00 00 00 00 00 00 00 |................| 00000050 09 00 00 00 25 83 04 08 0b 00 00 00 00 00 00 00 |....%...........| 00000060 0c 00 00 00 00 00 00 00 0d 00 00 00 00 00 00 00 |................| 00000070 0e 00 00 00 00 00 00 00 17 00 00 00 00 00 00 00 |................| 00000080 19 00 00 00 8b 27 99 ff 1a 00 00 00 02 00 00 00 |.....'..........| 00000090 1f 00 00 00 f0 2f 99 ff 0f 00 00 00 9b 27 99 ff |...../.......'..| 000000a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| AT_NULL AT_NULL ^^^^^^^^^^^^^^^^^^^^^^^ 000000b0