From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oo1-f42.google.com (mail-oo1-f42.google.com [209.85.161.42]) (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 1EEE83F23C4 for ; Thu, 28 May 2026 16:56:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779987371; cv=none; b=dQUdSYsSxsxwFfHEZr1X/657xTCQsQxJpOMxzFDZmYft8XvdQOnbQz3ZTbrPFJoG6+z7n2eVYXF3xkcRgvTR0V15EQVdplRP0QBtacpg8yVB08oAWMb8sC18jp9zDBz2kFh0LDba+1tiT8DSGS/ZQFYWgUnZMT6ZvWX/zTw6smc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779987371; c=relaxed/simple; bh=dRm6v9rJ98fryRZu+nDZ52gP6ZF+I/symBIWFqheIec=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=RX5lJs/+93ruxY1NIIpV2/jfs8CzjTWvdZbI8nfxAlqtEzi+a2TatPVyuZAz1sDbtwSUdkQazjDCoR9zj5uuyWYD3uPX4pZV+R/O858Jt/ei7KUpw4ZD6ydUPFPISitwcDUo0+BuGXB2xTqudNfc9Bic7ztPSb/GEM98qEwoX5w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk; spf=pass smtp.mailfrom=kernel.dk; dkim=pass (2048-bit key) header.d=kernel-dk.20251104.gappssmtp.com header.i=@kernel-dk.20251104.gappssmtp.com header.b=axxvXFIh; arc=none smtp.client-ip=209.85.161.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kernel.dk Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel-dk.20251104.gappssmtp.com header.i=@kernel-dk.20251104.gappssmtp.com header.b="axxvXFIh" Received: by mail-oo1-f42.google.com with SMTP id 006d021491bc7-69df5352d0eso651053eaf.3 for ; Thu, 28 May 2026 09:56:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20251104.gappssmtp.com; s=20251104; t=1779987369; x=1780592169; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=WDGJeqE4tTfg/YKUkoTVnPS7Lm5TeqY7Toc0BSTB4Ms=; b=axxvXFIhScPMwL1SYv1SB/8Twa6Qjpy4MHe4/Zy7f+oNlk8eF6vcpwSjMxUCgkdaZk H2r4dgPHHu3jnBszJQpKbqLgekX8xr5tOZIcZbJbYQQIZ8ojEJRLFWpfSn02Vdt590Lj +JdTIeluvDz8KhKs9IORim7N+sgGXktxRB1C70gXOxClZT7XoGhKqYzsUg9V7gQMK4UQ QlnyMKWM+ISgiaifbHgBHXkboi3nHAgNX4VdKx0gQ4c9QFzxb5Lc246wAjsS2DSZdHMs J0fMheyMpMNKb9nzBIxJBG9v1ZmNg2RAwLMqUUokGc6eK8QKKzP0eW7ObVslwpDeP5lb H+UQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779987369; x=1780592169; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=WDGJeqE4tTfg/YKUkoTVnPS7Lm5TeqY7Toc0BSTB4Ms=; b=qthpyo5Iy2SDZm9NHTTbaf7pDoSHabbOs2KyWRcaOEnwYdDPg2+qITAlJW3kBXthcI teG2aGC/vIe+qDzUs4/veonpLVyaOhoOBHOspBuE4vOzAR+8jlprg/sTdmmFqUVHXarA gI7JAKaPZ6fgVW/+uFpsozSQvReAESL832il+EOrayeGNoQVOmOZeuQffzcd0RudaY7I 8AWH4z4vdi/2icc6OGxUBYQhKCWB5amgVYok0K+jHFC2l7NbYGZPsKwq5UsvhoTOva1a sjDUSgICl3ODz/M+sh9BK6cYn7hID3BL0LjPN604BLBO91GiXUtIE5qnFW98CPaRWNsF hJ6w== X-Forwarded-Encrypted: i=1; AFNElJ9hIhzcJziegHKRhefFvwXwzy2CSANsutfpfX+iIQwwFZxKM9vjz07VGcpMZ12K21mGimXZ0VGXoNAzgDU=@vger.kernel.org X-Gm-Message-State: AOJu0Yx3CLl4ZiyytxdGoQgVChDSE8IxzSDE2AM1n8EWj/k/F5yFQ2ug DQmVloNxz7ZTFlt/2usq1O4Cync3z9OqCU3YtZyM+e1gVF8JnUJ9Ui0bKU/sBdJCN+s= X-Gm-Gg: Acq92OGZomLunO/atH1ZJinHNd1CEsaUtCoFDU+p4IzExJU76D3pW9JpejeMqihJIGt eEvPJs9Z5sBmHGZiZkVlKHL6Owx3UVbxGGBxg63LvGTLKr+qrXISiwdT/Y4nobfz27NwirkHAtw PEN/64kY+p7PvMm7FR0kJxQi6B6t8jr8t8JTuWIGuXn7Z4mMj/M9zuINAt9jrx7KqvjpscgVv3g PMmP0Slp4c9HqE5LUONNVbc7XNXDIMmcDsyzeZFV8LkZoytc20HVjPV03qlw+oQTFq4Od7qvObP DO25uMilQSjCAQn70NizFazm7HDPCkAL7Iykzeo9uxi7iYTemgqE34cOsYDrcO/j+HDKqDVeUu7 Qlo/tudAaWAjdV7oWbYcEXjXU1qnSXw6kFOxNTb/MMOUsddyu1M0fYRFwhviLjHlPH3DaLL/L1G JJ71r/m9lbvlVvFuz39Yb1F21CYWZsqOR6Bn4dyM0KwGQbz0ec1Oo8rWBlF4olXW6ajQO1bZsYJ ngXf7GYnL0RXNSlizM= X-Received: by 2002:a05:6820:4c07:b0:69b:5fcb:1a69 with SMTP id 006d021491bc7-69d7ed105b6mr14873551eaf.59.1779987369074; Thu, 28 May 2026 09:56:09 -0700 (PDT) Received: from [192.168.1.102] ([96.43.243.2]) by smtp.gmail.com with ESMTPSA id 006d021491bc7-69e010cd4casm152656eaf.7.2026.05.28.09.56.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 28 May 2026 09:56:08 -0700 (PDT) Message-ID: <2cfd6455-7b5b-4974-b8a1-4a0abca69768@kernel.dk> Date: Thu, 28 May 2026 10:56:06 -0600 Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/3] net: Remove support for AIO on sockets To: Christoph Hellwig Cc: demiobenour@gmail.com, Herbert Xu , "David S. Miller" , Eric Dumazet , Kuniyuki Iwashima , Paolo Abeni , Willem de Bruijn , Jakub Kicinski , Simon Horman , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , James Clark , Jonathan Corbet , Shuah Khan , Eric Biggers , Ard Biesheuvel , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, io-uring@vger.kernel.org, netdev@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-doc@vger.kernel.org, =?UTF-8?Q?Toke_H=C3=B8iland-J=C3=B8rgensen?= , linux-api@vger.kernel.org, David Howells References: <20260523-af-alg-harden-v1-0-c76755c3a5c5@gmail.com> <20260523-af-alg-harden-v1-1-c76755c3a5c5@gmail.com> <92db3ff0-8f0b-4b61-a167-5004ffcf9025@kernel.dk> Content-Language: en-US From: Jens Axboe In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 5/27/26 2:13 AM, Christoph Hellwig wrote: > On Tue, May 26, 2026 at 09:58:27AM -0600, Jens Axboe wrote: >>> The current TCP zerocopy implementation provides completion notification >>> through the socket error code, which is freaking weird and doesn't >>> integrate well with either io_uring or in-kernel callers. >> >> We already have that via io_uring > > Where? And how do make that available to in-kernel users like > storage protocols and network file system, which really suffer from > the current MSG_SPLICE_PAGES semantics. For zero copy, on both the receive and send side. Since we have a proper notification channel, that's what we use rather than the hack that is the error queue. >> , and without needing msg_kiocb or the > > What do you think is the downside of using a kiocb here like for > everything else with async notifications? Where would the notifications go? You'd end up inventing something new to propagate them to userspace then. The io_uring side does not rely on using msg_kiocb, and iirc that part was only ever used for the crypto stuff and largely broken. Which is why I do agree with just yanking it out. -- Jens Axboe