Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3289504pxf; Mon, 15 Mar 2021 06:22:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyoV48eCadgFGK6TtZEJKia3+Vx+ARnEgW9SfrALZEhrJcCYinirCK8STa8UQG9/k6uMicW X-Received: by 2002:aa7:d316:: with SMTP id p22mr29102957edq.107.1615814579162; Mon, 15 Mar 2021 06:22:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615814579; cv=none; d=google.com; s=arc-20160816; b=pyXjSR46p0RaMfYraqEkM++h1clWL4g5WiR79Roj45sKjzTrMUoOfTCBdBvXky+uH0 oBq8gVquHpHlr5B4dpOEgz7ODDCIOFuHr6nu11fAs7QPaXXPgrpS9UZeJmtj9WgqCmEF a70TijxZTdmbyGXP9yfObg+QGI9Z0M+YFdg1R9OGhukIu2D/zgIeLS/FKUEOtVlI3Sxv 9F6yFoz35mZdc/E7sQvyXXLnUiN7FQUDD3aHBf+NYzUKAjYfMNfnO8FSTCgEZj+V3RKT FqC71hT5OUi9F/xjWi2UwjdI/ClwmcUj1S2uAQZHK0ySu3ilz02zL5ZHTdp5+rPsc7hm 9hzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=NyrHZhLk2mzWrjjWzosQShTj66uqpwj8Oob2TjWtefA=; b=jaIgsi6hQ56sBvo6+ri60+0OBmtQVcQPbnIzS0ih6sic+YawXHybd8ttIeVL9uEeuk e1+9SQJYGsxIetrrgu4UK/zOT3fE+E7igFlLnVbHx9Kdb02wgvK3DvuqoS3aGIbxBbki yJIZgBxpw1GFzdmrnfkGxo9+gKW8S/5Thwrvd9HpGCGm2a2K8sU213J6PXThELuQx0Wx w1gyFT6vzVI5yE/OLXbxGxp2ZXV/8KN3fLxOt2JMGEkA8casI7wYpNdpjl/XbOgFmrp5 ugnolKhaFFBaZ06hFfA+dH3g8ACBojh0aHJkmc59aVk37Sos7s6xG3ThP1LaFN6IE3uq fBvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hJDUXJNJ; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z23si11059871eju.427.2021.03.15.06.22.37; Mon, 15 Mar 2021 06:22:59 -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=@redhat.com header.s=mimecast20190719 header.b=hJDUXJNJ; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229914AbhCONTm (ORCPT + 99 others); Mon, 15 Mar 2021 09:19:42 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:38884 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229681AbhCONTT (ORCPT ); Mon, 15 Mar 2021 09:19:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1615814358; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=NyrHZhLk2mzWrjjWzosQShTj66uqpwj8Oob2TjWtefA=; b=hJDUXJNJmLzeju7LFGiPG2Z0Q8fbR9TsR7NgMJZ9fvaNvq/du/4bs11h20q8lZK0yXwqDU HmorTVfmpybLOS8kuuN8u7LXGW1uJVMFlAVdeHBfXsbyy+HO7xiO90rS1py/EFLq4kuqI3 sFmXHe1lWxrLOioOGI5V7lgfAnOlCuw= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-555-OHMPYE5JM1WChdmu3OxJpw-1; Mon, 15 Mar 2021 09:19:16 -0400 X-MC-Unique: OHMPYE5JM1WChdmu3OxJpw-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 32C8E10866AE; Mon, 15 Mar 2021 13:19:15 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.40.194.107]) by smtp.corp.redhat.com (Postfix) with SMTP id 986C219D7C; Mon, 15 Mar 2021 13:19:13 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Mon, 15 Mar 2021 14:19:14 +0100 (CET) Date: Mon, 15 Mar 2021 14:19:12 +0100 From: Oleg Nesterov To: Cyrill Gorcunov Cc: Alexey Dobriyan , akpm@linux-foundation.org, linux-kernel@vger.kernel.org, security@kernel.org Subject: Re: [PATCH] prctl: fix PR_SET_MM_AUXV kernel stack leak Message-ID: <20210315131911.GB13620@redhat.com> References: <20210315120803.GA13620@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/15, Cyrill Gorcunov wrote: > > On Mon, Mar 15, 2021 at 01:08:03PM +0100, Oleg Nesterov wrote: > > > > > And why task_lock(current) ? What does it try to protect? > > As far as I remember this was related to reading from procfs > at time the patch was written for first time. Looks like this > not relevant anymore and could be dropped. I think this was never relevant, ->alloc_lock is per-thread, not per mm. Oleg.