From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-yw1-f182.google.com (mail-yw1-f182.google.com [209.85.128.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 15BD62D3237 for ; Fri, 7 Nov 2025 02:22:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762482156; cv=none; b=QQoLME0xU1ocHoHyzvuHSMllqW7NjBSnG5JI/9AUac1f758Yd6zBIAFT0nCzcIjiYany74ja2iD0ju6UbLkCe6nPAjIKGcbbX6pVOkfaft/axMSCSjKmYdr1XEO/Im17MY9MumKqMD/lKqsfoFyyR+IljgDNaEBg+l1vf4ue1Lg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762482156; c=relaxed/simple; bh=2wJsYMHByxXf8C901yNivTAphL8IDvSKSXz3egAjoMA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=uzLbCvyYcwfLrrg9YdsC4EldNH1ZNh71BWGLwvQuVpjIvTOiDo6nlGsJ68d8BLqGuVueazdppzIjjNVRXRIUG7pxKRpbDsZEqXycp+zXydV7CMwrKNeaeHIhHFQvSm2gglTRRsnsLjiLCKOukQediUaVLkfE6pvyS6H+AAv0TvA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=DqUXaJWB; arc=none smtp.client-ip=209.85.128.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="DqUXaJWB" Received: by mail-yw1-f182.google.com with SMTP id 00721157ae682-780fe76f457so2978357b3.0 for ; Thu, 06 Nov 2025 18:22:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1762482154; x=1763086954; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=x9ARDwGb0uPrxOLhySJFLBJZQJy4UrXx7An6ywngF4w=; b=DqUXaJWB5PXNmMbZbMmV8yU2xnR+VMGbcSefumrZ2KC0fP4PSExfVQyBH7/dN4XMy8 bP3JRnp97MEXxuTF9MK1pNo85R2zbXJKuQF3Ki+uCo7FZT8Zk6vXEl2qdn5FC2EP7qFP yk/d3OxPE5xIUNnSZ8nX/msDGXjfhRxnAHUXjkZnlHaXtcXGvgjiPX1sv5F4yyvw+DSM GUraAmB8Uh7dYG/FU658NtFUownW1LBaX2F8wsByylqGJ/z66YItnMxksifX4KDNRvRE kmi8Ivq4cEGkJyq2a/PpZnX3jEgmIxPgGlS/CYYx8uufjNsIcY67wvCvwc/14V8GcOVC LHXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762482154; x=1763086954; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=x9ARDwGb0uPrxOLhySJFLBJZQJy4UrXx7An6ywngF4w=; b=aK5zHmOyF1ItQyti5SkSqjHczY4QaaELME/OK0E6r4Y/QMTApJxdfWrggjAL60lSYG PljvXyoaMQENHZiGNUSCcmU450nh+2ekIQRWeAqnICj0xyfxR6saG7jDTqh7oRBjlbuB 9fl9nTv2vhnHJTgMK0VnK74/eTzQhcEu3oRU2fGXdYHeuBNXCxeNdtUnMMB6wge4Ri+n LoZjAsMi7J9XY1ctevjg+prr8ZTqp7crFXBcBq9VWhbU/zZE2ETdb1drGCXclOa5exdl xDdzUlXRxFt1J5E8iQxG1ITFRZI6LMbDI6JyIhi29b9VjDusYPwvh8EvBWg1fAXhNG+Y bgVg== X-Forwarded-Encrypted: i=1; AJvYcCXRFErO8i+3U1ENni0q+aGiWw5PlArWRhBDpbo7Hx/OssH5pQ2LLwWdVONHoSuolhBFHMPcOb4OrVLIwLl6R1I=@vger.kernel.org X-Gm-Message-State: AOJu0YzdPUuNoHKnw2SV0ySAQy/yk7d+6j8DC0hXlmAf+6nZSRLYOX7b tmjNZ1MJ3TNJZIUwUg++dO6bCuc1BO5aiShrAIEdN+eEPTpgW4g3ee8G X-Gm-Gg: ASbGncuswQPrc0FpmcxlbEMklbSTp1qefZLxOCf2dVuo+pD2UtYIL7cTsCGE0f91vg0 aLRAJN+VFerahRe5z3tm8MVgE2u7UTW0fht9fztr9Qm7me0kQBOWI3Lap63i3fjd0s6Bn3dvOOv 0LLFu8LymXN32xjJawXs0Lu3WaJOL+EHvmEM5UrYLLHZ7FfaQ1FWlmlWnsLx9slkSTeYbK11sxA 1WC3+P/uDnbpqKAVg/g14XOLNi99YFnIkUHSUQDMig4GSMMBuVyaALU8yvtbhIqWcgI4dYO3BDr xfueZpjr2UAFGzkVvaCGUN/YczLrczDimVGGXQ8mMFrtVSeAUEtzAdTPIdvKqd/wD+tAM6vmLBn uMegJ5oHcV+E3hCv+B4J+E5wcsHy7OiulfvyahpCk+1yU+O3xc1c+72GmTkBZy9lWCohLAC4ixy wuuauZH4cf0GcU26+FxsMmNsrJ5xGA5Enkx3KV X-Google-Smtp-Source: AGHT+IExkQylr1jShV9Ea1kIXdpiUjvn8t/+xJOL3Cfgf/yFTKueS7J/oTfsuiw/7plu274iEpUp6A== X-Received: by 2002:a05:690c:6f8a:b0:787:badd:4c with SMTP id 00721157ae682-787c534ae89mr26865527b3.27.1762482153981; Thu, 06 Nov 2025 18:22:33 -0800 (PST) Received: from devvm11784.nha0.facebook.com ([2a03:2880:25ff:40::]) by smtp.gmail.com with ESMTPSA id 956f58d0204a3-640b5c91334sm1361787d50.1.2025.11.06.18.22.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Nov 2025 18:22:33 -0800 (PST) Date: Thu, 6 Nov 2025 18:22:31 -0800 From: Bobby Eshleman To: Stanislav Fomichev Cc: Mina Almasry , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Kuniyuki Iwashima , Willem de Bruijn , Neal Cardwell , David Ahern , Arnd Bergmann , Jonathan Corbet , Andrew Lunn , Shuah Khan , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, Stanislav Fomichev , Bobby Eshleman Subject: Re: [PATCH net-next v6 5/6] net: devmem: document SO_DEVMEM_AUTORELEASE socket option Message-ID: References: <20251104-scratch-bobbyeshleman-devmem-tcp-token-upstream-v6-0-ea98cf4d40b3@meta.com> <20251104-scratch-bobbyeshleman-devmem-tcp-token-upstream-v6-5-ea98cf4d40b3@meta.com> Precedence: bulk X-Mailing-List: linux-kselftest@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 Wed, Nov 05, 2025 at 03:17:06PM -0800, Stanislav Fomichev wrote: > On 11/05, Stanislav Fomichev wrote: > > Thank you for the context! > > I think that the current approach is ok, we can go with that, but I > wonder whether we can simplify things a bit? What if we prohibit the > co-existence of autorelease=on and autorelease=off sockets on the > system? The first binding basically locks the kernel path into one way or > the other (presumably by using static-branch) and prohibits new bindings > that use a different mode. It will let us still keep the mode on the binding > and will help us not think about the co-existance (we can also still keep > things like one-dmabuf-per-socket restrictions in the new mode, etc). > That approach is okay by me. Best, Bobby > I think for you, Mina, this should still work? You have a knob to go back > to the old mode if needed. At the same time, we keep the UAPI surface > smaller and keep the path more simple. Ideally, we can also deprecate > the old mode at some point (if you manage to successfully migrate of > course). WDYT?