Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp767544pxb; Wed, 20 Jan 2021 21:54:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJyXnDbF611SHojyQrg4SXaGsyTBF3yGRlA3iuxYC6OwPUqKILtKGIYqG3BQPWRatiRI5SlM X-Received: by 2002:a17:906:a00a:: with SMTP id p10mr8299576ejy.312.1611208470471; Wed, 20 Jan 2021 21:54:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611208470; cv=none; d=google.com; s=arc-20160816; b=iYVGUPLjp6XQJ7te3pp5RULcy5ahZCDldziE6Hi8nxf6ZrvJNVFf4KtTFLyzgQNJeK BEnkD1/kP6u+9LShlUHuXcicP3IBXT+ORJgRIO4DMW5J0an7pG2hkvmQZ9uz2yerLWic qlt3mXfIbVwcJfZwp447XGz95iSFfq1g/ibThz8E2qAKUugZFFbMMQpLIPo80Gh5SrVA jSEpulxcrrGnRoTUA0F1maQpdytlTiaY321Xi0MLncuuVoys1KyeXK6R3hcNqFca233T Gm63i3UMNoXbyTYr6YQj8tiUjGYMjdLQ/MC9NVTdZvWmvNhOSTxBn/+P8K9NYAJeiGdl u82w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=TEEhF+tsXrnqa5+Da17KxO7jVVBh4HlCwHV9GnjG9iQ=; b=U2Ci4HxXf4KOABGUFL3P5Oxf1AoIeq1G8dDooDjd/aaiOBJ9Al6f0xq+mpjpeqXnCu JhhdDvRMx0fXz0ln1dqSSgdE7dzmJPa5ch9r4o/lAH/GCUQQ48RjlUssqwurfvo2rBLh aXAOjWgejwgjcIKoEgYjNDTrqVcICtAiYcwQE+h7d3E/W2XX5yv4kHz5p/+CEbIE44KF J31h15ylFEAetOPYYLyw24Wr7SxGKqaBX5338mU/WEJ19KMzuBIoU21fgdJ68iBQi7xT HRVrSZgp+QumNkkGazpBBMPgnxLwgwqIYg+hJQjx1ldcXlrC8GA3oNVS/T3S0HD3Epm2 Pgmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b="S/izy/Cu"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j20si1445348ejy.38.2021.01.20.21.54.07; Wed, 20 Jan 2021 21:54:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b="S/izy/Cu"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727096AbhAUFw7 (ORCPT + 99 others); Thu, 21 Jan 2021 00:52:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727284AbhAUDjo (ORCPT ); Wed, 20 Jan 2021 22:39:44 -0500 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E1ACC061757 for ; Wed, 20 Jan 2021 19:38:58 -0800 (PST) Received: by mail-lf1-x134.google.com with SMTP id u25so602679lfc.2 for ; Wed, 20 Jan 2021 19:38:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=TEEhF+tsXrnqa5+Da17KxO7jVVBh4HlCwHV9GnjG9iQ=; b=S/izy/CulrJix4ZCImmuFX54YmVDejrNeSW+PJYGx4dzqkIZ24kf/kubuyTcDwgSm3 0nGpPVRsii4BdZkalm+Ncclf5Rwiye3I1U/rMJn/5JrKsO1tREjhteFicWuzQIM82gan WKCLMAYXuHkzl2M0yNpFU9E11Dt/HR6pDbEYI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=TEEhF+tsXrnqa5+Da17KxO7jVVBh4HlCwHV9GnjG9iQ=; b=U1zG3yg635FFC1PuOhedfJ4DpGvZQGWDujn/YmqSbETzSoVxYrHNq+OFxiuQYfkcQT fpJAa1Sea1G0q4HiqiSf+DVna8aMPQla7ch84o55zJLbjmY03Ns2OA4ofiM7437DpqVt EIn0DUc3ByuwEim8u6LkgyaYptWYV9yEgRl1FTy5l7jmNvm8YpdoIfUZLZwWC4fj7Ypw cn1KkTFbLA7NuwRH5S2sLiqUmaJ0T6sxh6NVUdh6qyEZn8ukmwurdcvDcXT429W9lfPk KR3oqkAgapeWWfLUIcItwsD5frxR8MjITjCQEXLfjjuKIYDonMGUT5cYt+HPpGRDgsPy prFQ== X-Gm-Message-State: AOAM532RW7i7mQBhf+m3nlEZAWfN9Q6oiDV8a5OJiq15FdYkSsD4HJcE h+DnzCuc8WLw7ZdETzp+yWsMA/wOCZ8KJA== X-Received: by 2002:a19:3f12:: with SMTP id m18mr5159357lfa.519.1611200336673; Wed, 20 Jan 2021 19:38:56 -0800 (PST) Received: from mail-lj1-f169.google.com (mail-lj1-f169.google.com. [209.85.208.169]) by smtp.gmail.com with ESMTPSA id v7sm383900lfg.9.2021.01.20.19.38.55 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 20 Jan 2021 19:38:55 -0800 (PST) Received: by mail-lj1-f169.google.com with SMTP id n8so927021ljg.3 for ; Wed, 20 Jan 2021 19:38:55 -0800 (PST) X-Received: by 2002:a2e:808e:: with SMTP id i14mr4497915ljg.411.1611200334792; Wed, 20 Jan 2021 19:38:54 -0800 (PST) MIME-Version: 1.0 References: <20210118193457.GA736435@zeniv-ca> <20210118195400.GC736435@zeniv-ca> <20210120162608.GB740243@zeniv-ca> <20210120191116.GC740243@zeniv-ca> <20210120231439.GE740243@zeniv-ca> <20210121003835.GF740243@zeniv-ca> <20210121014528.GG740243@zeniv-ca> In-Reply-To: <20210121014528.GG740243@zeniv-ca> From: Linus Torvalds Date: Wed, 20 Jan 2021 19:38:38 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Splicing to/from a tty To: Al Viro Cc: Christoph Hellwig , Johannes Berg , Oliver Giles , Linux Kernel Mailing List , Greg Kroah-Hartman Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 20, 2021 at 5:45 PM Al Viro wrote: > > splice() triggers an error for seekable destination with O_APPEND and > with NULL off_out. Ok, that's just broken. > Same for splice() to socket with > fcntl(sock_fd, F_SETFL, O_APPEND); > done first. Same. As long as you don't pass a position pointer, I think both should just work. Not that I imagine it matters for a lot of people.. Linus Linus