Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp1528725imd; Thu, 1 Nov 2018 17:50:59 -0700 (PDT) X-Google-Smtp-Source: AJdET5eWKoi96aVzd7EMz5G7ekt/ndNgayNilrFERaFYPzeyvjmR7T7ptZBRZNyNhjbcw7XXjKEc X-Received: by 2002:a17:902:6113:: with SMTP id t19-v6mr9601952plj.84.1541119859066; Thu, 01 Nov 2018 17:50:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541119859; cv=none; d=google.com; s=arc-20160816; b=Jf/lj5BUx6jTwXmsfwhTP3wOn/Hk1D+YXAvCvUsJYmwaEIYr9ItaS6bhxfMI46mCF8 A17qGQVkYc3vSmZbvpcI5e9f8cuId7CMcYOTSfRSnDmXULXkCJusAPVny8vjxDe/Wl0y 07RyVt6K2Zt/jsogrjBbVo8dIsReP2KVlbA5hw2w98IuHHlELoW7cJ2/o7LB4dsH6FsK R+GV6mE1m/C/eD+bCHQTdFem9VCPneyYXz76asAxQDtBa5Ig81ToEiuZ889wrR+FwnCE OJupXC9A7X48DKqv7PjAcb0zs9HphTtrltkr10eknjUkW2Jn4flClzWxmxn/UKdrVegV barA== 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=GiTQ2nghzv0kd4ko2pL98wGLNF4lxYDwX4phESXo72g=; b=Gti8Rik5J0GKxHUbq1AlYH8sdTVVCSywJav50x52vq3YH/HrBX/wuO8jfOaBEM+jzB Lbl51Fh1I3DYmbGlv9zcCEyZE/3kdTOGk+VNikbR0mN91uKnx/ONxL2MlepIxQdU11tf hYA+PkZOBtUGlQ6Qy1rTRc/zqpW6TalcZKRGuY6oAyeYlpkBF8vwHcPK+eQlTq5JgWRN LwT3bWDnVFywImQkOjS+5r4bIf5BwLCo6B6xidRxGKkxiHRRKC+xfId4pS/7bukvy1jR w6sSxFL/Gr9T/LIyF2/uw7QN5ZbZsI8eZgTnG8/E/6/1ooyukb8t+BReCR4FZ8KQyCCf 5ZHg== 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 y18-v6si2218823pfa.75.2018.11.01.17.50.44; Thu, 01 Nov 2018 17:50:59 -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 S1726528AbeKBJza convert rfc822-to-8bit (ORCPT + 99 others); Fri, 2 Nov 2018 05:55:30 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34970 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725969AbeKBJza (ORCPT ); Fri, 2 Nov 2018 05:55:30 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D7959307D856; Fri, 2 Nov 2018 00:50:15 +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 F12925D6A6; Fri, 2 Nov 2018 00:50:12 +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: <20181102001633.GD24195@shao2-debian> References: <20181102001633.GD24195@shao2-debian> To: kernel test robot Cc: dhowells@redhat.com, Leonard Crestez , 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" , lkp@01.org Subject: Re: [LKP] [sunrpc] 6a7da2a288: kernel_BUG_at_lib/iov_iter.c MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <7957.1541119812.1@warthog.procyon.org.uk> Content-Transfer-Encoding: 8BIT Date: Fri, 02 Nov 2018 00:50:12 +0000 Message-ID: <7958.1541119812@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.48]); Fri, 02 Nov 2018 00:50:16 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org kernel test robot wrote: > FYI, we noticed the following commit (built with gcc-7): > > commit: 6a7da2a288ce412d7ac117a2912a7b0d9104ee6d ("[RFC] sunrpc: Fix flood of warnings from iov_iter_kvec in linux-next") > url: https://github.com/0day-ci/linux/commits/Leonard-Crestez/sunrpc-Fix-flood-of-warnings-from-iov_iter_kvec-in-linux-next/20181101-070713 > base: git://git.linux-nfs.org/projects/trondmy/linux-nfs.git linux-next > > in testcase: boot > > on test machine: qemu-system-x86_64 -enable-kvm -cpu kvm64,+ssse3 -smp 2 -m 8G > > caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): Ummm... You can't just apply that commit to Trond's linux-next branch unless that branch also includes the iov_iter changes from my afs-next branch. Before those changes, ITER_KVEC is required: BUG_ON(!(direction & ITER_KVEC)); and after, it will be prohibited: WARN_ON(direction & ~(READ | WRITE)); The reason for this is that have yet more patches that split the direction from the iov_iter::type member into their own member and turn the types into a simple integer sequence instead of a bit mask. David