Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp3807782rwn; Sat, 10 Sep 2022 21:41:50 -0700 (PDT) X-Google-Smtp-Source: AA6agR6QjDdhPlf2Qvnu/LMYQFGlM7Vi+kyX6jPniffXxtIb98NYhfIf6b1Or0dWi+3QDg5Vhk7y X-Received: by 2002:a17:907:7f1e:b0:77c:8028:80c8 with SMTP id qf30-20020a1709077f1e00b0077c802880c8mr1217976ejc.430.1662871310365; Sat, 10 Sep 2022 21:41:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662871310; cv=none; d=google.com; s=arc-20160816; b=yGI0ZNmXFM/15bK2Jrr8cjCciZDKejx9sUbZ9auoyGQv4xiQ0YR76+mxG35cW6rdT6 G9PReev4m9D0ZYoH0rCAb3hvpO8pqFb9K81oisyUmm/im8zYTwiPk+j6w4OfPAx35iNK wF49jSrr1CpVRLvg7nTWP2xQi+sjMy0quXR63L8v83M89RsyJIOTWOzzZlpIrKtOUbHC nSrpcP2BIIfGlTmnR0cy/3G8C+NeDf4Za3m9aqJ03STR4bhIxhF96D9Vc4F/EeCbyVGf pHek2kKOFMSBNxC5PaAtl+sxiGLU9qW3k06Cn80gKtzMbrJxvVyce3pmDxCft9AVMIUm dmWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=fzaCnq+vbd/vpfxECV4iLovfuzdgvAIS76l3dqNIxOY=; b=hWY4n9R4yPsLyMDDp/sG7ZYwxJx3cTGDnGcrEdM2PSImmzCN/DFSnSbWowhenLJoL5 ueBil142I2ZK+eWcJTkeUmogFa1U38RN8yCiENCw9iKqBKN2YIz+QTKvPJX9PvPZJEa2 Vz4jwUGtEgx5doUB1LdRihSJ5I2khaENPS89AqECiz208FCBBnuIa1+cw/yTCjy3oupV NSvNQZmSyvSgjwd+5TcYO/8hs6gp3D8Nbh0dHeyBypcvET/uZW0WFNRAoROnDlMfBpCc iIN1Ak6LIkCHKr/4AnkpQ6WSfq/FO5JeatmWLHGHIOnw012ePsHfJ5lZ+l00rD7Afaon tSFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=Dkz79oZU; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sg42-20020a170907a42a00b0073abf0d6e2esi4897245ejc.435.2022.09.10.21.41.13; Sat, 10 Sep 2022 21:41:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=Dkz79oZU; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zeniv.linux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229808AbiIKDvc (ORCPT + 99 others); Sat, 10 Sep 2022 23:51:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229766AbiIKDv0 (ORCPT ); Sat, 10 Sep 2022 23:51:26 -0400 Received: from zeniv.linux.org.uk (zeniv.linux.org.uk [IPv6:2a03:a000:7:0:5054:ff:fe1c:15ff]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA2E32F01F for ; Sat, 10 Sep 2022 20:51:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linux.org.uk; s=zeniv-20220401; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=fzaCnq+vbd/vpfxECV4iLovfuzdgvAIS76l3dqNIxOY=; b=Dkz79oZU4IJip9NpZkaenXbB9+ y7M8c5/r6hZZUtzme3dRAH8gRSMIalqgOT7fNwqbOqR7gbBEQ+d3YavkjGkmnZMzL7jReKOqfPf1N ycacnMp0BtEbUGTZSsV+LYg1DVX3UYC/pW5fVFj07nGTwc/cv10EjicJGw4Y0kqbbTQ5wZJ79L9VG cWSfPlMioNnZoxBsSBM38mxdufgZs+sO6j8aGrUQkyOH31R1OzQx8K2G7cSKxHaT7IZRjYsqSfDbR ag2uWSTatGHNYicvMsda6O2LswMv0ReOzuNwpVJHqHtFasa+mxaDSnK4GQhHlB9PFBhXYnL5P538l ynwSOhCQ==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.95 #2 (Red Hat Linux)) id 1oXDzx-00Eaaa-F2; Sun, 11 Sep 2022 03:51:09 +0000 Date: Sun, 11 Sep 2022 04:51:09 +0100 From: Al Viro To: Chuck Lever III Cc: Benjamin Coddington , Olga Kornievskaia , Jeff Layton , Linux NFS Mailing List Subject: Re: Is this nfsd kernel oops known? Message-ID: References: <11BEA7FE-4CBC-4E5C-9B68-A0310CF1F3BE@oracle.com> <25AF9743-A2A2-4AFE-9123-BAD3C8F17655@redhat.com> <9D6CDF68-6B12-44DE-BC01-3BD0251E7F94@oracle.com> <5FF21605-6F1E-4DF1-A141-F86263CA579F@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5FF21605-6F1E-4DF1-A141-F86263CA579F@oracle.com> Sender: Al Viro X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Sat, Sep 10, 2022 at 10:35:52PM +0000, Chuck Lever III wrote: > > > > On Sep 10, 2022, at 6:13 PM, Al Viro wrote: > > > > On Sat, Sep 10, 2022 at 09:21:11PM +0000, Chuck Lever III wrote: > > > >> It's also possible that recent simplifications I've done to the splice > >> read actor accidentally removed the ability to deal with compound pages. > >> You might want to review the commit history of nfsd_splice_actor() to > >> see if there is an historic version that would behave correctly with > >> the new copy_page_to_iter(). > > > > Nah, that's unrelated... > > > >> Is the need to deal with CompoundPage documented somewhere? If not, > >> perhaps nfsd_splice_actor() could mention it so that overzealous > >> maintainers don't break it again. > > > >>> + struct page *page = buf->page; // may be a compound one > > > > Does that qualify? ;-) > > Well, no, since you just added it :-) I meant pre-existing > documentation of the API. I take your remark as polite > encouragement to go and look for it, because this is an > area where I need deeper understanding. Not really - quality of documentation aside, it's a combination of splice from sockets being capable of stuffing skb fragments into destination pipe and skb allocations using compound pages. E.g. AF_UNIX sendmsg() on a large datagram will result in that. socketpair(), then such sendmsg() on one end, splice() from another and there you go - references to compound pages ending up in pipe buffers... nfsd_splice_read() does file-to-pipe splice (into internal pipe) + feeding the contents of that pipe into nfsd_splice_actor(); the new part here is that file-to-pipe splice from regular file can end up with the thing that had always been possible for file-to-pipe splice from sockets...