Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7310545rdb; Wed, 3 Jan 2024 11:15:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IFhMmaT3plfhtVXPz3QOcLJtuXv6lVBJsqw4Ig1FNawDVoUJh43V02MPjY95FYvzzvyHDNk X-Received: by 2002:a05:620a:2a09:b0:781:d64c:cf8f with SMTP id o9-20020a05620a2a0900b00781d64ccf8fmr3089657qkp.135.1704309330013; Wed, 03 Jan 2024 11:15:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704309330; cv=none; d=google.com; s=arc-20160816; b=MctsfHeTnl6JmDpE3/mmuF7xlHN8LfPc5MvVXlNZmPC5+WrEg90ovW1TeTyC4OHwnz BM+Z9Hwi6hjRil7xRmod3F5EzMcEm/zGt2d4lYXtNfAwvToN+CNVHdgIjPGlo7Bu6k1r 1EBw8G/se85Si43VabCvDnu0G6PFpVAzGYou17H4yW5cYm+zrywwAojbcH7w1iGguqZO 3IEZk6hf910j73015TAYK8pwMaPTFYF8Eql1Hxw2078kkIY9M5xBCkv7XBvxGOA6THtb QwSsc3h+SBQDUt54yJXNqQvL2q78Eg8sEcAzbpGVqmmOiCg5dVY/FqTu0vSJFRjwKCbI ve6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=VqpWt6ocefEfDXK+KnHNKXoEM0IL+DB/QDp9HBirG1E=; fh=NU9Qity0HfUEm7DcAlhoqnsSOOlIbHNuOhb4Y3NHuX4=; b=cdnk2RQQhKoApPqOf4l9sYRcv0JqXTa0PQD/poYfRMofiSwlOTpV8TdPJtxeNDlrDi NTHC1sKec349Qu/VvGz4/KWpXfvbKvBCEJlhrbiXdCSsV7FmMWm6so8RIT3Z6+B8do3m D3lZZ7SG4/Dg6MHxfXy4h1b/Atae2zKd08FQoIae8ZhpNehNWW1bRRDq4eIMpbhQ4ykC udjfgBur07C3J4HkmlLVk+hUKSaZpfVis0S6ewV0SNPLQxGlCdlrcpe9pP48rL6oqrDu /Gx3uDQcSB3iRi3BRN96SSOOee5utimHz3KDkjswtByDVGmt1VO/lomtPl5aOjWmxt6W UICQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=EqAcBFq9; spf=pass (google.com: domain of linux-kernel+bounces-15904-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15904-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id vv4-20020a05620a562400b007811d579b24si27765135qkn.481.2024.01.03.11.15.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 11:15:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15904-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=@linux-foundation.org header.s=google header.b=EqAcBFq9; spf=pass (google.com: domain of linux-kernel+bounces-15904-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15904-linux.lists.archive=gmail.com@vger.kernel.org" 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 BF9F91C23BB1 for ; Wed, 3 Jan 2024 19:15:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 41C351CA9C; Wed, 3 Jan 2024 19:15:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="EqAcBFq9" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com [209.85.208.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 EC4BD1CA98 for ; Wed, 3 Jan 2024 19:15:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Received: by mail-ed1-f52.google.com with SMTP id 4fb4d7f45d1cf-555e07761acso4449095a12.0 for ; Wed, 03 Jan 2024 11:15:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1704309317; x=1704914117; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=VqpWt6ocefEfDXK+KnHNKXoEM0IL+DB/QDp9HBirG1E=; b=EqAcBFq97pFwtmYe13BC1tWt0GnonY1LTo4njL+s/snL8yXFgvwnYkRUvAtt0zQ9y6 1mAGHvuhP4DgrfVmN58DjUqF4MjT9AUfQ9v+xAn91VKSdCaUBG/PJsNgglyc+tUo5uIJ agJzYaT5uMGGPb5c8DZYQb6Ljve9/cQuK6XK0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704309317; x=1704914117; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=VqpWt6ocefEfDXK+KnHNKXoEM0IL+DB/QDp9HBirG1E=; b=WqHa3GcRbR52vBl7yeWiKj7/vUOiudg9PI5z2xFYSBF6pSTWpsB2alpU/HrzxDkEtU S3rlhaHvKHNXI3EdoUxNpp5HnXiDez+kLqHLLwrT3F9t6+kKtqCMWfNKC/F0AP4le+DX Xj6rfnwddv/ZnJJau0vVjxuc7hfz44nbAzASvSRua020f8QqwZ6CjGcMA6p8/xAbViAm H5nwaHd4ddw2a+sSdY1/h9u45OgRylfOgURH26O4yovOHCO7IfQ5MFYlZ5zgZ5TdNBoW Jd0qhCRcOE2zf2ATxAORFPP2zMQ6oU5E9mh4HGXX8bgDfcC3uSA9Gwc/eWNgDatf5Vvb ig+A== X-Gm-Message-State: AOJu0Yxrt6YMz3LCBXB1GXEJT9vufAjqZmsgG+KFWmhGddK/nHi1OHIc xEjB+jjPUss/BBV3nRSmOaCVGmqGRURJbBqzJdwzC+tczuRJVKYY X-Received: by 2002:a50:c055:0:b0:553:79ad:4aca with SMTP id u21-20020a50c055000000b0055379ad4acamr8022836edd.87.1704309317034; Wed, 03 Jan 2024 11:15:17 -0800 (PST) Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com. [209.85.208.54]) by smtp.gmail.com with ESMTPSA id j20-20020aa7c0d4000000b005527de2aecfsm17750330edp.42.2024.01.03.11.15.15 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 Jan 2024 11:15:16 -0800 (PST) Received: by mail-ed1-f54.google.com with SMTP id 4fb4d7f45d1cf-556c3f0d6c5so1256982a12.2 for ; Wed, 03 Jan 2024 11:15:15 -0800 (PST) X-Received: by 2002:a17:906:ef0c:b0:a27:6fbc:ce3 with SMTP id f12-20020a170906ef0c00b00a276fbc0ce3mr3854440ejs.42.1704309315585; Wed, 03 Jan 2024 11:15:15 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <4dec932dcd027aa5836d70a6d6bedd55914c84c2.1703126594.git.nabijaczleweli@nabijaczleweli.xyz> <6c3fc5e9-f8cf-4b42-9317-8ce9669160c2@kernel.org> In-Reply-To: <6c3fc5e9-f8cf-4b42-9317-8ce9669160c2@kernel.org> From: Linus Torvalds Date: Wed, 3 Jan 2024 11:14:59 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 08/11] tty: splice_read: disable To: Jiri Slaby , Oliver Giles Cc: =?UTF-8?Q?Ahelenia_Ziemia=C5=84ska?= , Jens Axboe , Christian Brauner , Alexander Viro , linux-fsdevel@vger.kernel.org, Greg Kroah-Hartman , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Wed, 3 Jan 2024 at 03:36, Jiri Slaby wrote: > > What are those "things" doing that "splice to tty", I don't recall and > the commit message above ^^^ does not spell that out. Linus? It's some annoying SSL VPN thing that splices to pppd: https://lore.kernel.org/all/C8KER7U60WXE.25UFD8RE6QZQK@oguc/ and I'd be happy to try to limit splice to tty's to maybe just the one case that pppd uses. So I don't think we should remove splice_write for tty's entirely, but maybe we can limit it to only the case that the VPN thing used. I never saw the original issue personally, and I think only Oliver reported it, so cc'ing Oliver. 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? Linus