Received: by 10.213.65.68 with SMTP id h4csp501058imn; Fri, 16 Mar 2018 09:39:40 -0700 (PDT) X-Google-Smtp-Source: AG47ELtf1SLEIE87kB2s27zlK3jTOs/Tl/gnMjc6n6K4YXKZ6/g0ekjyHmNRFHLbNHhv729Kegw2 X-Received: by 2002:a17:902:7290:: with SMTP id d16-v6mr2795861pll.31.1521218380529; Fri, 16 Mar 2018 09:39:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521218380; cv=none; d=google.com; s=arc-20160816; b=tG7FuV4Vv//7NFAXJ586RhVQGnyf0v97JyB+G4skDi7XaNS6UK6AjsaF3UD7QQ3t3k dBqRpg94FBR9PKtX0v8uUX66ZELzN0U7E2DjUdy597LB9+uGdBxwjBNyWn/IVnikCvXF qQKkhBvuGbDafvNry7s/TSBf5b3G4QWpuWOuZ2hf26/S9XV9CQEkJFYRrwfy5R66gM1H fLEX46Gd38+dgO47JSroNZ45jKt6mc8NxBJBcJ+2ZAheTGITX3vW7CdZSsZ4mamXVgXe LDeXfveFuZgP7ZPV0weFpLZSJ5CODcO4scIeeDgg/51pSivonULj58RCLzGHHB6vuS3/ 8BYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date:from :references:cc:to:subject:arc-authentication-results; bh=GNgrsNhr8FkyNl8CnxvPyJZo26JN3kflFyxNnhaOs2w=; b=XP1p8Bxaz8hPsHu5tXlQBjtBwIHq3fe8EZ/cGanByQx9LPOVgDfTbdZ8USWwvNMUMm vhy+rudWJjzxDpGnY5XgLh93yjp8kjlueHg4BaMVH2xMWesaGZrO77I8Jx1PXNccZFta W8UbvEWomZyr6FuWDNQX/H5MoUx3xzABq0v7GAP7Pt3R4Usl7+rn1p+MBauTJ/HtO4lc lugPpYYdOULG+jrowyPNE2W1JmC0vuD1Po5Ns6NgiN2AY33s39MXMBXF1xgGAy/714wc udcPsPYDnjjLk4yNtf0cmIkYAOWRT3ELd4vFDOjdSWJ3+X3WepHNkxDfuTEXR2MbFWby 6G5w== 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o61-v6si6252771pld.692.2018.03.16.09.39.26; Fri, 16 Mar 2018 09:39:40 -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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753208AbeCPQiY (ORCPT + 99 others); Fri, 16 Mar 2018 12:38:24 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:35726 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750749AbeCPQiV (ORCPT ); Fri, 16 Mar 2018 12:38:21 -0400 Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w2GGb7XB134444 for ; Fri, 16 Mar 2018 12:38:21 -0400 Received: from e06smtp12.uk.ibm.com (e06smtp12.uk.ibm.com [195.75.94.108]) by mx0a-001b2d01.pphosted.com with ESMTP id 2grf217fhx-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Fri, 16 Mar 2018 12:38:20 -0400 Received: from localhost by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 16 Mar 2018 16:38:18 -0000 Received: from b06cxnps3075.portsmouth.uk.ibm.com (9.149.109.195) by e06smtp12.uk.ibm.com (192.168.101.142) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 16 Mar 2018 16:38:11 -0000 Received: from d06av24.portsmouth.uk.ibm.com (d06av24.portsmouth.uk.ibm.com [9.149.105.60]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w2GGcAds61866090; Fri, 16 Mar 2018 16:38:10 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id EA1E742041; Fri, 16 Mar 2018 16:30:22 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 520F442047; Fri, 16 Mar 2018 16:30:19 +0000 (GMT) Received: from [9.145.23.192] (unknown [9.145.23.192]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Fri, 16 Mar 2018 16:30:19 +0000 (GMT) Subject: Re: [mm] b33ddf50eb: INFO:trying_to_register_non-static_key To: kernel test robot Cc: paulmck@linux.vnet.ibm.com, peterz@infradead.org, akpm@linux-foundation.org, kirill@shutemov.name, ak@linux.intel.com, mhocko@kernel.org, dave@stgolabs.net, jack@suse.cz, Matthew Wilcox , benh@kernel.crashing.org, mpe@ellerman.id.au, paulus@samba.org, Thomas Gleixner , Ingo Molnar , hpa@zytor.com, Will Deacon , Sergey Senozhatsky , Andrea Arcangeli , Alexei Starovoitov , kemi.wang@intel.com, sergey.senozhatsky.work@gmail.com, Daniel Jordan , linux-kernel@vger.kernel.org, linux-mm@kvack.org, haren@linux.vnet.ibm.com, khandual@linux.vnet.ibm.com, npiggin@gmail.com, bsingharora@gmail.com, Tim Chen , linuxppc-dev@lists.ozlabs.org, x86@kernel.org, lkp@01.org References: <20180316102359.pzjwi24hbkhnyk2a@inn> From: Laurent Dufour Date: Fri, 16 Mar 2018 17:38:06 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180316102359.pzjwi24hbkhnyk2a@inn> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 18031616-0008-0000-0000-000004DF0B67 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18031616-0009-0000-0000-00001E721AD9 Message-Id: <7a638500-ce14-809a-6b40-79f32537b818@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-03-16_10:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1803160202 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 16/03/2018 11:23, kernel test robot wrote: > FYI, we noticed the following commit (built with gcc-7): > > commit: b33ddf50ebcc740b990dd2e0e8ff0b92c7acf58e ("mm: Protect mm_rb tree with a rwlock") > url: https://github.com/0day-ci/linux/commits/Laurent-Dufour/Speculative-page-faults/20180316-151833 > > > in testcase: boot > > on test machine: qemu-system-x86_64 -enable-kvm -cpu host -smp 2 -m 4G > > caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): > > > +----------------------------------------+------------+------------+ > | | 7f3f7b4e80 | b33ddf50eb | > +----------------------------------------+------------+------------+ > | boot_successes | 8 | 0 | > | boot_failures | 0 | 6 | > | INFO:trying_to_register_non-static_key | 0 | 6 | > +----------------------------------------+------------+------------+ > > > > [ 22.218186] INFO: trying to register non-static key. > [ 22.220252] the code is fine but needs lockdep annotation. > [ 22.222471] turning off the locking correctness validator. > [ 22.224839] CPU: 0 PID: 1 Comm: init Not tainted 4.16.0-rc4-next-20180309-00017-gb33ddf5 #1 > [ 22.228528] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 > [ 22.232443] Call Trace: > [ 22.234234] dump_stack+0x85/0xbc > [ 22.236085] register_lock_class+0x237/0x477 > [ 22.238057] __lock_acquire+0xd0/0xf15 > [ 22.240032] lock_acquire+0x19c/0x1ce > [ 22.241927] ? do_mmap+0x3aa/0x3ff > [ 22.243749] mmap_region+0x37a/0x4c0 > [ 22.245619] ? do_mmap+0x3aa/0x3ff > [ 22.247425] do_mmap+0x3aa/0x3ff > [ 22.249175] vm_mmap_pgoff+0xa1/0xea > [ 22.251083] elf_map+0x6d/0x134 > [ 22.252873] load_elf_binary+0x56f/0xe07 > [ 22.254853] search_binary_handler+0x75/0x1f8 > [ 22.256934] do_execveat_common+0x661/0x92b > [ 22.259164] ? rest_init+0x22e/0x22e > [ 22.261082] do_execve+0x1f/0x21 > [ 22.262884] kernel_init+0x5a/0xf0 > [ 22.264722] ret_from_fork+0x3a/0x50 > [ 22.303240] systemd[1]: RTC configured in localtime, applying delta of 480 minutes to system time. > [ 22.313544] systemd[1]: Failed to insert module 'autofs4': No such file or directory Thanks a lot for reporting this. I found the issue introduced in that patch. I mistakenly remove in the call to seqcount_init(&vma->vm_sequence) in __vma_link_rb(). This doesn't have a functional impact as the vm_sequence is incremented monotonically. I'll fix that in the next series. Laurent.