From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 697452F6931 for ; Sat, 30 May 2026 14:10:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780150220; cv=none; b=A5tyiOXtYrCDPzJnOUvnzYICzzKdhR2Jdi71Nl25Cjw6kHfA4uD6toDn0EX2rAeFA4A6TaGWoQzyQfYaN+ePR1NImaLinBGZ/yO+vKtLQiJ8vv88s8qM0zXbhaqQH6h/1oPW+hJYkY1zt1LGO1Dfz530/USmYttplzjKNWY51ZQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780150220; c=relaxed/simple; bh=idDF4KLX1q79wDWKKxzB6sbENVTWooQlASpHutgQ6vc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=kynDwfUnbTL73tYHvHlfr2FiRmohnv6wwp+UPMnefDf3uIZJkSxhThsRxLAegTOOT1IO5TfMIEdtg009ENCdRfMAUgAQnDP9rO6Tk54mPfv82mDF+zy6jiZVadQV7T5zNr+FOqCS6oN1hGEf6xjImhht8keWLGrY7cwSYT0F5qA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=Lal9sJNN; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Lal9sJNN" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1780150218; 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=rHzj0oWHgChdLmB/fyna+PsMVuLCqphhK0Q0cKp+AZU=; b=Lal9sJNNFzlzVPayB2i8rcDS0T3k7e8lhV9ejzOoRaLmv1VI5Tl3CqHbCBOG4C6ILkL36l uNJrylc1UZh0mtFv5KWxOYV2X+GKdM3eqipCM/06vzdssEpnT0Uh5N2Pm+F6UGBwmT3mM2 ldgVhzo5nV3JY3N5wl6C2hp/Dy5yMy8= Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-319-yosW6iIYP0Wf3gDnZmBWEw-1; Sat, 30 May 2026 10:10:14 -0400 X-MC-Unique: yosW6iIYP0Wf3gDnZmBWEw-1 X-Mimecast-MFC-AGG-ID: yosW6iIYP0Wf3gDnZmBWEw_1780150212 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 749DC195604F; Sat, 30 May 2026 14:10:12 +0000 (UTC) Received: from fedora (unknown [10.44.33.166]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with SMTP id 3CA2B1800352; Sat, 30 May 2026 14:10:08 +0000 (UTC) Received: by fedora (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Sat, 30 May 2026 16:10:12 +0200 (CEST) Date: Sat, 30 May 2026 16:10:07 +0200 From: Oleg Nesterov To: Andrew Morton Cc: Christian Brauner , David Hildenbrand , Jann Horn , Kees Cook , Lorenzo Stoakes , Michal Hocko , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH] mm_access: simplify the security checks Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 On 05/30, Oleg Nesterov wrote: > > 2. With the change above may_access_mm() doesn't need the "mm" argument, > so we do not need to call get_task_mm() beforehand, we can call it > only if may_access_mm() suceeds. > > 2. With the change above, may_access_mm() doesn't need the "mm" argument, > so we do not need to call get_task_mm() beforehand. We can call it > only if may_access_mm() succeeds. OOPS. Somehow I wrote the same twice. Will fix the changelog and send V2 in reply to this patch... Oleg.