Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7368792rdb; Wed, 3 Jan 2024 13:35:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IEVKfHQvC/qUXf5714KU3C+4LBySDMUFZ52ReJAhGnxVcbOaq6f5zPnJmp48PTCf41Gxqmt X-Received: by 2002:ae9:f208:0:b0:781:b4b9:1fcb with SMTP id m8-20020ae9f208000000b00781b4b91fcbmr5857581qkg.131.1704317721233; Wed, 03 Jan 2024 13:35:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704317721; cv=none; d=google.com; s=arc-20160816; b=QTB1TtF7mlyP1DyJm6q00t7rOi6ddiUyTMmpxjXF7ppSvocGkEH+tAXp7VACOxjI1m ek951t6X4biwuVQOfQRzxAxSYqk2lz1OpeeWmAIXppYNX1VGMhdNsN2T2eJIt2A6AU4q 0jHFSjvhmRQAIFK/l8Hr8QD8qhsFLCC8LEBKuq0nqUKipXIgs2Zc3UyEhfhDHSyXbLBX DCsxea9MXuG3v7H8XfcaSfKQIm/yA5Y24ceXpETxeJQYQaanZHRhFDQlXtU3OLic7i+h cxbzEKBcfyH3WQcO6g1+Y1StD83JUbr5qe1rW9VQI7oBZ+fcJpygnK6VK9kKu+FsX8Z2 B9aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:in-reply-to:message-id:cc:to:subject:from:date :dkim-signature; bh=+cVjY5Pt++Oml7k46uXFJ0gcfn/CPEiqKh/TxTDxjTQ=; fh=1x5PXJY3VEAFPLQKDJUkVnPH1hlbWQkN4jmXH9rhX4A=; b=Vyzedj0bxh6tQLhURty644+oI1SuZVsyNDzULYNmckhEDpAfG/nnoB9JQwXJ78lrzK LRZ+GOqqbNpqWkLDRlqVtI1R43PyD59J5UfwkJ2apAjeuO1yxeVjoYq8ZcBEmGRApj/f TYRRYPD04i+ZNbAFlRQkUGU1UqWlSs0xB8s7YcyCEkkyzWr+Qg9sXcslNGO2Io89wHy9 +skzlnmRykO1Q0imP1/8bKIIxzw6Wwse/EDM7+Mz/SkW/z/nDcD16mNf9IAXlac0se73 t6L2rKdUmnoIoNX3rrNuToXsDcca+qeSPctsoSlX7pvyQ47ulQNu4Vu5QLFK1mKrUXFe 253w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=C2xdHhwi; spf=pass (google.com: domain of linux-kernel+bounces-16026-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16026-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id h11-20020a05620a284b00b00781cbe35241si6915646qkp.420.2024.01.03.13.35.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 13:35:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-16026-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=C2xdHhwi; spf=pass (google.com: domain of linux-kernel+bounces-16026-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16026-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id C9FF51C24A81 for ; Wed, 3 Jan 2024 21:35:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 070ED1DDEA; Wed, 3 Jan 2024 21:34:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="C2xdHhwi" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) (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 134D41DA4F; Wed, 3 Jan 2024 21:34:31 +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-pf1-f178.google.com with SMTP id d2e1a72fcca58-6d9bc8939d0so2988002b3a.0; Wed, 03 Jan 2024 13:34:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704317671; x=1704922471; darn=vger.kernel.org; h=mime-version:references:in-reply-to:message-id:cc:to:subject:from :date:from:to:cc:subject:date:message-id:reply-to; bh=+cVjY5Pt++Oml7k46uXFJ0gcfn/CPEiqKh/TxTDxjTQ=; b=C2xdHhwi3WIhl6+q9SmtcsJD9RNe1So9YmjKwEWZx/JQdjnijrvwldRnfmzWYhF2YX Os7LiKVBx4+r1k+P10a6LN3R9SLa3oOaD1YxQ/TxwfHKyiiYZuX8BH12MSmpRjWF00oT oE8iAQPAA6aq/bypusIErbFUvW1h5JIli4nYUrEJKar7lbQUAvG4MO+NiTg/oh0U9Yox 6Q/45BbFMhQ/J/BAzQPoZVNpflR0XrOKhV2rDHjvnJP5rYMI+qIvyU+deGu6MGvaGiba nKAbG8G3vnN/KwHd747QNuTlJdkMQK1njV+cEUb75+qA42e9CnfIoRIg1TaXYvgwK8GT R0fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704317671; x=1704922471; h=mime-version:references:in-reply-to:message-id:cc:to:subject:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+cVjY5Pt++Oml7k46uXFJ0gcfn/CPEiqKh/TxTDxjTQ=; b=Nn1L4nKZb6jufd2K0+68Ur8kh1IUH+rtgnMitfTraatL9NPqsgWznCmweRj5IJ/Qea O+Ou+uo6N0z+JLID2/6k1ct73TeDQKN8hIVnNc0mf0qOFz7IUe7YPa12fRAu7HpfMxXJ v19wU9zIJAh7gjWqSB7F9ZOh2J1XlvYhQQuhAg3ja/fTLBs7Oc1j5xBLaxn6egFEpP/a 3Rs4PP1Ia7dAXaOr3ZSf1G2CZJNwnhw+kOTzyG05tY8kGoONtery6kk0EPb7WkZpL6H9 tKGAwTOxFpIH7JyweetyLo8hFZ1RD+KWoTYWWudwRIZMHC6uCUUKMy/v838yNXsExuG/ y14Q== X-Gm-Message-State: AOJu0YxSYhr+X1WIjdgYpGYBnMuahtQ9ig+zSdx4pxbzO62vsS+I1J3i 9OyDvy+EfZx4kko/ExvktoWJYrkVYVk= X-Received: by 2002:a05:6a20:72ac:b0:197:587:aecd with SMTP id o44-20020a056a2072ac00b001970587aecdmr2916093pzk.7.1704317671128; Wed, 03 Jan 2024 13:34:31 -0800 (PST) Received: from [192.168.1.135] ([103.77.5.247]) by smtp.gmail.com with ESMTPSA id le6-20020a056a004fc600b006da0f15b31csm12649452pfb.97.2024.01.03.13.34.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 13:34:30 -0800 (PST) Date: Thu, 04 Jan 2024 10:34:14 +1300 From: Oliver Giles Subject: Re: [PATCH v2 08/11] tty: splice_read: disable To: Linus Torvalds Cc: Jiri Slaby , Ahelenia =?iso-8859-2?q?Ziemia=F1ska?= , Jens Axboe , Christian Brauner , Alexander Viro , linux-fsdevel@vger.kernel.org, Greg Kroah-Hartman , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Message-Id: <2XFP6S.GINKQ8IKAA1W1@gmail.com> In-Reply-To: References: <4dec932dcd027aa5836d70a6d6bedd55914c84c2.1703126594.git.nabijaczleweli@nabijaczleweli.xyz> <6c3fc5e9-f8cf-4b42-9317-8ce9669160c2@kernel.org> X-Mailer: geary/44.1 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; format=flowed On Wed, Jan 3 2024 at 11:14:59 -08:00:00, Linus Torvalds wrote: > > It's some annoying SSL VPN thing that splices to pppd: > > https://lore.kernel.org/all/C8KER7U60WXE.25UFD8RE6QZQK@oguc/ I'm happy to report that that particular SSL VPN tool is no longer around. And it had anyway grown a fall-back-to-read/write in case splice() fails. So at least from my perspective, no objections to splice-to-tty going away altogether. > and I'd be happy to try to limit splice to tty's to maybe just the one > case that pppd uses. To be exact, pppd is just providing a pty with which other (now all extinct?) applications can do nefarious things. > Maybe that VPN thing already has the pty in non-blocking mode, for > example, and we could make the tty splicing fail for any blocking op? FWIW, the SSL VPN tool did indeed have the pty in non-blocking mode. Oliver