Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2756471pxb; Thu, 11 Feb 2021 23:50:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJygTR8XTLF90o9/oDjP+P9UUDR/50Uqzygok9R4SAYkr+2P6OJCfFlX9RuLPp44HXp0fGDn X-Received: by 2002:a17:906:3e42:: with SMTP id t2mr1773572eji.439.1613116236570; Thu, 11 Feb 2021 23:50:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613116236; cv=none; d=google.com; s=arc-20160816; b=yMZFTM9aXJrRRWxnBv9TuaO263AIKnuV4ddESDL+Hd8K4ibcuv49foflMY260gMR6l o8Z5qlSilSW9vaHD6JcGlK3Vf7ejYSjEEmZtggXHDHSkLr16DpwCRX/yub7uwY6xaU1Y +DPMfPPHr590O22GEJ672ZDNFPY9BqHQkIX6zkZ2QvEt/tlUnQlP20P1RtOn1u4kZmmU UZfu/7YO4/fKFZG/b66C2rbt/S89VK6MeSS6/euze5oHiBrzZsjSJW96L81T7W2Y635M OzBFqjXqqpJPd0RTzbxFuEyxB0LKCiwzpcj0qfVGixWDz1o0dltfKzb+wYvR20GneWF+ YVQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=S2LAQwYK5/phgGtnw/tOJv2nuNDwo17CCty1iAxCcKo=; b=zAUKJM8kQhtEcyXtiSAAM4/GH0t3V6NENZsZR+Tgx2YI02Z01KLBS3TeH+dY4ciCPD Wbl51g54bQDkESt1Ev0oJVG2gACKcF8IvMNcKhbkaFYU3kLqs64s2vr4cmZPY/bcpUcm LtKn5VOlJab1QLxLAu/UjhacNZ1qYX4/VVciEaHhrmedTQT8O0//ab0WahOfnn8ZZnsa MWkTCv5xQZugQGV+5OXB/xN74wRDlXqlSUkTZpyoAapPMblwSNLCGNfGrzh4fIt4x0iV JTfAuPMZunpSKci/zmRgFUaxwVzEip3HGBdLIQpPcRsYBm9SyfYRvxgey52Cb5sdoSYv 1lEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=B6yypRUV; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gt36si5431415ejc.57.2021.02.11.23.50.13; Thu, 11 Feb 2021 23:50:36 -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=@linuxfoundation.org header.s=korg header.b=B6yypRUV; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229862AbhBLHsj (ORCPT + 99 others); Fri, 12 Feb 2021 02:48:39 -0500 Received: from mail.kernel.org ([198.145.29.99]:46326 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229625AbhBLHrq (ORCPT ); Fri, 12 Feb 2021 02:47:46 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6E66064DEE; Fri, 12 Feb 2021 07:46:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1613116016; bh=V5VmSoU6jzgdBUBGYUFsqrWJOs4ufbyeLq3ulBd68Ec=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=B6yypRUVOhMMgeyh/U9LtFuNLEe6UEJ0mpIyLPj1yWUysz/TkxGifb+vrGoWItc9j eujH4jnHSfPamC6y6mvLoPfmDinJDwdO95C/SmOIHE7vrOUDRsvoBPW3Q82n/cDEfa kY+Y9o2CpyhZ3j2osBVZ7P7NnaIPpeTTbA/66Z0w= Date: Fri, 12 Feb 2021 08:46:53 +0100 From: Greg KH To: Nicolas Boichat Cc: "Darrick J . Wong" , Alexander Viro , Ian Lance Taylor , Luis Lozano , Dave Chinner , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/6] fs: Add flag to file_system_type to indicate content is generated Message-ID: References: <20210212044405.4120619-1-drinkcat@chromium.org> <20210212124354.1.I7084a6235fbcc522b674a6b1db64e4aff8170485@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210212124354.1.I7084a6235fbcc522b674a6b1db64e4aff8170485@changeid> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 12, 2021 at 12:44:00PM +0800, Nicolas Boichat wrote: > Filesystems such as procfs and sysfs generate their content at > runtime. This implies the file sizes do not usually match the > amount of data that can be read from the file, and that seeking > may not work as intended. > > This will be useful to disallow copy_file_range with input files > from such filesystems. > > Signed-off-by: Nicolas Boichat > --- > I first thought of adding a new field to struct file_operations, > but that doesn't quite scale as every single file creation > operation would need to be modified. Even so, you missed a load of filesystems in the kernel with this patch series, what makes the ones you did mark here different from the "internal" filesystems that you did not? This feels wrong, why is userspace suddenly breaking? What changed in the kernel that caused this? Procfs has been around for a _very_ long time :) thanks, greg k-h