Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp519824pxb; Wed, 20 Jan 2021 12:55:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJwHWfyKpPmnckk9SjkCOKCgL9HP9TjncssqeHwIhvPAIQtEEln4PCI6Oh4m7BjGK8sFoGab X-Received: by 2002:a05:6402:50c6:: with SMTP id h6mr8599986edb.117.1611176139852; Wed, 20 Jan 2021 12:55:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611176139; cv=none; d=google.com; s=arc-20160816; b=C6Eldlt/Nb5+3E+o7Q4XLE460tlHYTYBnHMTDNhBMldoUmytKgSQjVFcZovr09ylHc GXU4Mf0ofCLZSKOO86gfn9ISteEddk4gD7JltpIgYqbh4FqMauFDkqDfecNULeFdcRbu E8ykO3vFHgobvPWTtB8WNxIDhl0eel/Ud0Rqo0pBKiEFx/C/aDhQbfj+ejH8mwgpsJ7n Mh4r2GweLPBFo2fHWlYj6C7QJlAZh+YE+FzP8U7Z61A808p7Yim6VPmxCqH/F+MCH7eP h0kNTNc6AzDP+RSxFYTmICTxLopEpr4iLvBKkAIX2wF8Kk4v6FLKjYNDT33IUVgbhxAS n6Pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=/shl85XqhoyjZfHGYTKFnCVqIWL+Zr7I2QCEAukUCJU=; b=uzQi6E4WyP1UE8o0SDZcLpVA92jn9lNRC6gYul8nflziOGK9uEz/7X1P4tzrxvXDeC troPej3X7gxQ+mR1wRif3Hm0cLuqB2hwWAje8Dc82bv4QYE4IMNeoimBxCEHyZpKPG5T /ftAIaC0CA4urrHjMl/9ZiJUQUvkm8+t8NqTqIFkKatzfuNMjUVTghSo8/y+hydgiVUS ydmwwH5m3RBFRgwdRPVluB7rGZsOZlpdrqNNtWW1ZKfuLE0t2VMjKCaap8bmM0P4+Gcr 5ba84D8emIImJAsKmN9UOTUZ8cwajrE7zl6eFhi9EFbAgLtaZF4bTR9zsmRdk/tjiJ1W u6EA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=CTq71W3N; 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 j15si1281230edl.323.2021.01.20.12.55.16; Wed, 20 Jan 2021 12:55:39 -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=@infradead.org header.s=casper.20170209 header.b=CTq71W3N; 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 S1727330AbhATUun (ORCPT + 99 others); Wed, 20 Jan 2021 15:50:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50256 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726970AbhATUuG (ORCPT ); Wed, 20 Jan 2021 15:50:06 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17471C061575 for ; Wed, 20 Jan 2021 12:49:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=/shl85XqhoyjZfHGYTKFnCVqIWL+Zr7I2QCEAukUCJU=; b=CTq71W3NU9K2Sdk91yce1P9h4Z xZSa1wavHOKoh7ovVUiol7h6ZYxMyGLaARelNyC3i1XJxO6nDnPdG+nJX825HDAVi+ekLXNzf8Hff nEA80YfkN9LMEuD+wd/mG8GxIu759GXSA+W+OTtLrx7hUfw6dAZTM0/edZ5vPRKBuC2PtPVTka1lC XSoCM4YDTYpUfxZS1L4g0l51MuxzcPRKpgkJPIAhP16KmhScBOsGdJxwB35f0MljZf+soXg6+rNVf q01w05dUGldz6wSzmNInmQOAQTECKgBKDdtHeiwo1F2C7CtSE2ZCuuEV1ClByruAXRheQlahBjOfk DB+tQDlA==; Received: from [2001:4bb8:188:1954:aa9e:1db6:1a5a:7fd3] (helo=localhost) by casper.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1l2KN7-00GCJV-FA; Wed, 20 Jan 2021 20:47:23 +0000 From: Christoph Hellwig To: Greg Kroah-Hartman , Tejun Heo Cc: Siddharth Gupta , linux-kernel@vger.kernel.org Subject: restore splice and sendfile support on kernfs Date: Wed, 20 Jan 2021 21:46:28 +0100 Message-Id: <20210120204631.274206-1-hch@lst.de> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Greg and Tejun, this fixes a regression in Linux 5.10 that stopped sendfile and splice from working on kernfs/sysfs files. Diffstt: file.c | 65 ++++++++++++++++++++++++----------------------------------------- 1 file changed, 24 insertions(+), 41 deletions(-)