From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 42C1436F91C for ; Mon, 1 Jun 2026 11:16:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780312615; cv=none; b=m0HGJxeVZ+y0M2XbQekoWwwCC8EBbLwlJH7Y5Q8ss94QnKRJcVfdSKHJ2AXJ41qbcMR40FYFwuAoVWhE8nKWt0E0ddfR1KgrFHHkt9UDxhQf56xh22AOgAEvveX++ZX+0myekz7CHjSPhGw0dAQEEriESZWUccLPkDI/VDjK80E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780312615; c=relaxed/simple; bh=i8QgbPFyk7jHEQnOdw1TGHosDrVB73hJfXDbayiYKUM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=nMbLA6VsvQOQUzQ/L+LzsMpy/5DMmHPKSPhCSCqDfF4HCg526JoABNr8gp+Er0pkmicabyRCLIVlGc1vgNsE35PTX/KINpeIuPsCyghXdHlRoswIAbTcnHVQ8Hkbs/Q3yNb9gDmjVOIKRzQkhurtBldQ3OQW6EShOz2kigStAL0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Se3REjaw; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Se3REjaw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A8F591F00893; Mon, 1 Jun 2026 11:16:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1780312614; bh=OtwzM/l8y3UephO/mtNnc8CEWonyb3evNARkeGrVMCs=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=Se3REjaweR5q16QrSE2fTtEGtglkxumlmBsNUto7ugARGSpIeLcTdnFECTgZJGi5A CScWKZseeSUrnqU2m8oToEDiJ1+ZULTViTTSBhnBgsUnPuuKosIeKUixojsliB8S9M MMb0GEPOeJvW93sWkXrGegmBptY2n0LjOfqYyI7/xmARljawSAiPmemLLnY8aq6x2F l25YhkU6fSYGA88eAmuWBWF4weNtf2j1c57dr1Ta548XhtCcx5mp5lUZeFXAopvXBq moJjS4Ub02pEBKrJhkRWvlACBErJ8R8/Ekmq05DomL8VuPMrZDT9qNXSL5NNb1Ncbi 4GWMqppsEeBzA== Date: Mon, 1 Jun 2026 12:16:49 +0100 From: Lorenzo Stoakes To: Oleg Nesterov Cc: Andrew Morton , Christian Brauner , David Hildenbrand , Jann Horn , Kees Cook , 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: On Sat, May 30, 2026 at 04:10:07PM +0200, Oleg Nesterov wrote: > 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... Sorry, pedantic side-note here but - in general in mm we prefer you don't send new revision in-reply-to the prior one, as it makes them easier to miss! :) > > Oleg. > Cheers, Lorenzo