Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp2488320rdb; Mon, 25 Dec 2023 13:35:52 -0800 (PST) X-Google-Smtp-Source: AGHT+IG/E2+zijBJh1N6vl7Z4glURBTWeW8nGBuwaxEgOt0xmYyN7yihu0UVNaVzCQqb0IeTxibm X-Received: by 2002:a17:90a:9b8b:b0:28c:2cd8:583e with SMTP id g11-20020a17090a9b8b00b0028c2cd8583emr4879578pjp.10.1703540151691; Mon, 25 Dec 2023 13:35:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703540151; cv=none; d=google.com; s=arc-20160816; b=EmeB+jigcg4MUXM19eOWMb9OCtob/KsyZRiUWMxN93J2IakC6CRbRYbWj+vir4xiIu AEtL4DHtuPBXSn+uxKGsBoGRVhEadTFF+bw1T5K+Oqy1MuzuZbGqQ/3nzPjj7rbtDogM QGWJfQbaAzhxWzE/uXLgorvXQMiD6JyoxOfYPqkBoLeYi7t81ToJCqou9FRiCPlaehhl zaOtwijlDJv0VEPob9EKWWyiFRFTzg2woL7POBI/VMSjLe/Gby7/qx4T+Azsd/Js5lPI LVb/sxk8KHzbYwnFLke6RHNMk0JcS6FHtNLxC472/Qbyz6rbhR0QtmHhQbx9Ywgj2T2H HNOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=Vk3BrCUhkF8HNi8hqkxjkr1dZsGMp84ddJ6VAzsBSHI=; fh=2OlvqGWfgyrAV7lcHJkRivgUnm8P0afnE/QzeCkbpEc=; b=e9Bzo9Uw9ZB5wRhknowGBI2PyidnqNV7GCABxx/cWYxfpi9pd9J3hlhvgloSIBCe/1 8x9RlbK0AB53YOJ3WQ99F0MYyW/ixyqyY0+lbnFp7e1PsFEm9vtCHFl/tdWmQ/6BzJRd U1GOjGzp1uLjzGLnEcRj+Cy3S7MQV/DU6sDvHMYkGfYrw991oxFlRgguU3K/igJtR3et /Y9ky7Pc6RXk97mJ+OOIYNjCAuGblhySP6YJCUPlRA7Bk+k9nW7uUiIW3/+oZn9Z0ShQ AI2Ekymre3tnIH9wejuvLHWI4gFXI9CP411X6Y/HzejIDedQviIk03rsZMb6cSlX35at iWuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=lqqXi0IA; spf=pass (google.com: domain of linux-kernel+bounces-11171-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11171-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id j8-20020a17090a31c800b0028bffeb354csi7039099pjf.127.2023.12.25.13.35.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Dec 2023 13:35:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-11171-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=lqqXi0IA; spf=pass (google.com: domain of linux-kernel+bounces-11171-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11171-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 4F9EA282102 for ; Mon, 25 Dec 2023 21:35:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2828753E33; Mon, 25 Dec 2023 21:35:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="lqqXi0IA" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ot1-f52.google.com (mail-ot1-f52.google.com [209.85.210.52]) (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 33D6E524C7; Mon, 25 Dec 2023 21:35:33 +0000 (UTC) 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 Received: by mail-ot1-f52.google.com with SMTP id 46e09a7af769-6dbd87b706aso601249a34.0; Mon, 25 Dec 2023 13:35:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703540133; x=1704144933; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Vk3BrCUhkF8HNi8hqkxjkr1dZsGMp84ddJ6VAzsBSHI=; b=lqqXi0IAgJ51KJw9d8Qsu7KCmXGSyP6cJ4y2ttk9IdKa97NR2pHY2CYdYoR7bWskFg MchvYxhCubWB3uTYJAyxw71QWzRQ108EDae/7Pve3DVY/3CorOJyWJWWNJD5j1NJL2ov GOtDMkj6LRw5wgIdQN/GqIi8Zxa8XbQCAAZk4LXhFhy7d9K+SkXuFZAgRo325v95B2y0 VAzP81D85ttRdo7/EQWtp+6tbKUOseFYd/DG37mlanTAlzV35RBzHvqx5RKkvnYUnvB/ b8P8CBcnWS+AvxGJ+fsfk5y5oibNGjMxJ8/LOOpgNGM77+C6tZHalcq1sczuVCsUO2JJ 83fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703540133; x=1704144933; h=content-transfer-encoding:cc:to:subject:message-id:date:from :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Vk3BrCUhkF8HNi8hqkxjkr1dZsGMp84ddJ6VAzsBSHI=; b=IBezbnbn1or/Ivft3+ebjtnEIsB0JqwoRXa07Pn9IY9LZAiiTR4LZSpEkqsmUQkydT udGbcc9mfiB0IfL6L19F9Hz92QRVGosdf+ddYHDQfa0LDdhguzokFb+yvR8hpDHi8Ka3 Z8IJuFDZtACHxkjjNe4c6TuDP01xCoFkO4uaqrZhpAMCP1eg1WmoQA5ubOvM2oap78Ac 7lmIyoJDQWZ8Rq6SSIkjRPrO82a9e8HyPpDc0BF3LN99o88uCy8icvmk3f0X2MaviLuZ bniR1bgr2cfvHEqKbOIWLzwkJHVPlDyywMuIc6L+hzc6J5tBUwGa+s37VuWmXob0uKU0 44cw== X-Gm-Message-State: AOJu0YyNkbAfbxRoDDiu7s11ThzUfH0fVEqneOlZMA130mVY4t1cyIDf TkIz/TMvlq8aeVLiTZxBQ+yMLk/X1dO0uiqtq6Y= X-Received: by 2002:a05:6359:c1c:b0:174:ed0f:672e with SMTP id gn28-20020a0563590c1c00b00174ed0f672emr2919571rwb.1.1703540132944; Mon, 25 Dec 2023 13:35:32 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Askar Safin Date: Tue, 26 Dec 2023 00:34:44 +0300 Message-ID: Subject: Re: Avoid unprivileged splice(file->)/(->socket) pipe exclusion To: =?UTF-8?Q?Ahelenia_Ziemia=C5=84ska?= Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-man , linux-s390@vger.kernel.org, linux-serial@vger.kernel.org, netdev@vger.kernel.org, virtualization@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, Ahelenia Ziemia=C5=84ska! Thanks a lot for all this splice-related hard= work! In https://lore.kernel.org/lkml/CAHk-=3DwgG_2cmHgZwKjydi7=3DiimyHyN8aessnbM= 9XQ9ufbaUz9g@mail.gmail.com/ Linus said: > I have grown to pretty much hate > splice() over the years, just because it's been a constant source of > sorrow in so many ways. > It's just that it was never as lovely and as useful as it promised to > be. So I'd actually be more than happy to just say "let's decommission > splice entirely, just keeping the interfaces alive for backwards > compatibility" So probably we should do this as Linus suggested? I. e. fully remove splice by replacing it with trivial read-write? --=20 Askar Safin