Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752201Ab3JDX1h (ORCPT ); Fri, 4 Oct 2013 19:27:37 -0400 Received: from mail-vc0-f179.google.com ([209.85.220.179]:47405 "EHLO mail-vc0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751181Ab3JDX1g (ORCPT ); Fri, 4 Oct 2013 19:27:36 -0400 MIME-Version: 1.0 In-Reply-To: <20131003185630.GJ13318@ZenIV.linux.org.uk> References: <20131001145755.GA22729@redhat.com> <20131003185630.GJ13318@ZenIV.linux.org.uk> Date: Fri, 4 Oct 2013 16:27:35 -0700 X-Google-Sender-Auth: sQYymoqVOx6TcVAM7e2_8goeem4 Message-ID: Subject: Re: pipe/cred lockdep warning From: Linus Torvalds To: Al Viro Cc: Dave Jones , Linux Kernel , "Eric W. Biederman" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 841 Lines: 22 On Thu, Oct 3, 2013 at 11:56 AM, Al Viro wrote: > > Note, BTW, that splice to /proc//attr/ is broken. > proc_pid_attr_write() is *not* supposed to allow partial writes at all. > Frankly, I'd consider adding a ->splice_write() instance that would > simply return -EINVAL there... That sounds like the right thing to do. Or possibly go even further, and say that the default is to return -EINVAL, and files and filesystems that actually want the "default_file_splice_write()" semantics have to say so in their d_op structure. Hmm? Linus -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/