Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp6149133imd; Wed, 31 Oct 2018 07:32:32 -0700 (PDT) X-Google-Smtp-Source: AJdET5ehVW/oaIaNN6VhIhZXWWZXIok+5sPxXT/DzbfWlRJXbOcmMeb8fNEfNr2wWiu0DPOwB5t/ X-Received: by 2002:a17:902:70c3:: with SMTP id l3-v6mr3499715plt.329.1540996351938; Wed, 31 Oct 2018 07:32:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540996351; cv=none; d=google.com; s=arc-20160816; b=pmUwIGw/RF8ECMo3anr2snFphiK5KSpTT0ey3GviQWu3SkpZSk0gVHiG1Rubz+HRYJ ajzuw0vQH4WxJ7i7iCni2wUYFTBYtrY4Sut+EAUxzXfGdRzaBmFFE3poNq5fP1dFBZyP 6xT60vUCSa13KGazJa10/6n1yxQ6Bt6e2ZbhBDZ0orDtwaqdy7K3Za+/Bz7PA5y7CtAq 3uW4kAIWuUGCDt5+qMHAuca346bTJJx5BYMzCltxSnf25DFGunUrSYNQdsBma97z2snP VeXXWqLdWdichGiCHGMN+ihxIAcQnFXveGAxTh+YOXjv1Eaw9mN8X8wlwUrlMzJoH08A KESg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:content-transfer-encoding :content-id:mime-version:subject:cc:to:references:in-reply-to:from :organization; bh=i6acU5SItamSdERengZ3KbwsBtKiLEQOEW9ACkV9nVg=; b=Bqgd/f7H87kPVEzNyXzI0BM1oOz+emYU223ddL7RSXEvTzaAakSLrW07QoiEmO9SDh HN1g/RKpdmig2PbL/UTRbaQqDbk9TGqxVaHxsTEWh+FjkSh8bqebOBKkvBF9SztypUvG O1U3KbFrKfi/62Sna+1Z6Ksqk56RL3Rn8/Ra6Qzv4vsTlhFo0ysrbBIDiNzD5rlaDvir kolsVByq1MSsTQDrR4I6GYaWPc9Nd9yjYWFxPRFxLR41HK02InWCZE+6CHAx3TlYtM2S HaAzlPZ9weMIX4ATpKpv/Cvqgrhwawa2smxPgcTQWxzjSGK4ZH7e8odvvIFXEXFsQX2W JVNw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e62-v6si27944278pfc.240.2018.10.31.07.32.15; Wed, 31 Oct 2018 07:32:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729576AbeJaXaD convert rfc822-to-8bit (ORCPT + 99 others); Wed, 31 Oct 2018 19:30:03 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42950 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729513AbeJaXaD (ORCPT ); Wed, 31 Oct 2018 19:30:03 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 752F788308; Wed, 31 Oct 2018 14:31:46 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-120-113.rdu2.redhat.com [10.10.120.113]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2F7BA5C1B2; Wed, 31 Oct 2018 14:31:44 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <8a65d1322e08b9590d18a53cd623f71b0fe559e8.1540989230.git.leonard.crestez@nxp.com> References: <8a65d1322e08b9590d18a53cd623f71b0fe559e8.1540989230.git.leonard.crestez@nxp.com> To: Leonard Crestez Cc: dhowells@redhat.com, Trond Myklebust , Stephen Rothwell , "J. Bruce Fields" , Jeff Layton , Alexander Viro , "linux-fsdevel@vger.kernel.org" , "linux-next@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [RFC] sunrpc: Fix flood of warnings from iov_iter_kvec in linux-next MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <23289.1540996303.1@warthog.procyon.org.uk> Content-Transfer-Encoding: 8BIT Date: Wed, 31 Oct 2018 14:31:43 +0000 Message-ID: <23290.1540996303@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Wed, 31 Oct 2018 14:31:46 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Leonard Crestez wrote: > Since commit aa563d7bca6e ("iov_iter: Separate type from direction and > use accessor functions") the iov_iter_kvec and iov_iter_bvec functions > warn if the direction parameter contains anything other than READ/WRITE. > > That commit also updated users of iov_iter_kvec/bvec but a new call was > added on a different branch by commit 277e4ab7d530 ("SUNRPC: Simplify > TCP receive code by switching to using iterators") > > This causes a flood of warnings in linux-next like this: > > ------------[ cut here ]------------ > WARNING: CPU: 0 PID: 110 at ../lib/iov_iter.c:1082 iov_iter_kvec+0x4c/0x5c > Modules linked in: > CPU: 0 PID: 110 Comm: kworker/u3:2 Tainted: G W 4.19.0-next-20181031 #157 > Hardware name: Freescale i.MX6 SoloLite (Device Tree) > Workqueue: xprtiod xs_stream_data_receive_workfn > [] (unwind_backtrace) from [] (show_stack+0x10/0x14) > [] (show_stack) from [] (dump_stack+0xb0/0xe8) > [] (dump_stack) from [] (__warn+0xe0/0x10c) > [] (__warn) from [] (warn_slowpath_null+0x3c/0x48) > [] (warn_slowpath_null) from [] (iov_iter_kvec+0x4c/0x5c) > [] (iov_iter_kvec) from [] (xs_stream_data_receive_workfn+0x538/0x8e0) > [] (xs_stream_data_receive_workfn) from [] (process_one_work+0x2ac/0x6fc) > [] (process_one_work) from [] (worker_thread+0x2a0/0x574) > [] (worker_thread) from [] (kthread+0x134/0x14c) > [] (kthread) from [] (ret_from_fork+0x14/0x20) > Exception stack(0xec9fbfb0 to 0xec9fbff8) > bfa0: 00000000 00000000 00000000 00000000 > bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 > bfe0: 00000000 00000000 00000000 00000000 00000013 00000000 > irq event stamp: 91225 > hardirqs last enabled at (91233): [] console_unlock+0x3e4/0x5d0 > hardirqs last disabled at (91250): [] console_unlock+0x7c/0x5d0 > softirqs last enabled at (91266): [] __do_softirq+0x360/0x524 > softirqs last disabled at (91277): [] irq_exit+0xf8/0x1a4 > ---[ end trace bc12311e869d672a ]--- > > This fix updates sunrpc code and make nfs boot cleanly. > > Signed-off-by: Leonard Crestez Reviewed-by: David Howells