Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3456131iob; Mon, 16 May 2022 23:48:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxlKlEhxiGA44l5DHHrIDruEUAp3BvHNw3dLfcF08vFMYQl9uNFU9+jDcpQd6aNtPhv4mLE X-Received: by 2002:a50:ed12:0:b0:42a:a8d3:12c with SMTP id j18-20020a50ed12000000b0042aa8d3012cmr12563110eds.337.1652770107202; Mon, 16 May 2022 23:48:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652770107; cv=none; d=google.com; s=arc-20160816; b=VxATo3OUh/xwqp6vVpajPgSxpbzxDEqDQUzSQWP+yMtzYEsCAaVV5RkMJI6nYtIBV8 3SeCUniYo/UjoTU4CuNrBOQva2zHwAeXsNoHou9RLVNtWmfUDQl48GFGLefpbBD0GXVj Ui8I5TS/f3GDfBJ2wIx83CqfkuxZUYX6LtDfuu3u9YurBXug31ieog2xVwcAFQ2oPi9K /pFKEtQdIUmw7ftOO5g9JwukZvbFu7/4seVtRTh00TIdu3j/3PdRRZ1E5cs7C76Noyk2 Wr5N3NoA/EyEPG3EZiDpLWH055jMqk+uzWs1eP6lv6zEpL/srxJHB3SxTQlFABb0iX0r bvQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=j/co+KAQQo66TS0tPfVyB6C7BokdiYKLrG+0nDqTuLM=; b=TVr5SbAAGFQk5x4vKVSJ6XoJujHgWgYcrFvh6PFC6k8lpDd1yOJ9RO+KSmMqkZetmg hIcWukCUIazHvSodmeWWafOYST1oNjaPfV8UpBGA1GooVXNrc4CRyG3frEoMA01sh3Rr lKail9QnHks8GV9Vu++ZUE0BuysHuT+zORnGbTaL768g1D95eTd4fsUAWRIfAiEJiCMe tkAfMH0MjJYvEoo/dZ5aGmU42NhDwcW/s1WnYOvMPB9GzTXdmjUntFgebtCU7JEhnE4y yU2xsdk8w8VVpDclagXvp+FDLH3iG8rmI/jsK4ZGf1yQFbEDpSU3RIWU8wc9uJRWxw3/ OTMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=K+Xf1YJ5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e8-20020a50d4c8000000b00427d25a0a63si12862339edj.490.2022.05.16.23.48.01; Mon, 16 May 2022 23:48:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=@linaro.org header.s=google header.b=K+Xf1YJ5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343611AbiEPQ1g (ORCPT + 99 others); Mon, 16 May 2022 12:27:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240213AbiEPQ1e (ORCPT ); Mon, 16 May 2022 12:27:34 -0400 Received: from mail-yb1-xb2f.google.com (mail-yb1-xb2f.google.com [IPv6:2607:f8b0:4864:20::b2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 316203A5EE for ; Mon, 16 May 2022 09:27:33 -0700 (PDT) Received: by mail-yb1-xb2f.google.com with SMTP id o130so12381899ybc.8 for ; Mon, 16 May 2022 09:27:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=j/co+KAQQo66TS0tPfVyB6C7BokdiYKLrG+0nDqTuLM=; b=K+Xf1YJ5C176/UA8XpVoJM6rL6RRtYdtOrWug+UXpe2IXX7M4oi7l1L1aERRAOnF+W +XU/tOVk4CDPSpi2B7FfeAWLwNB1o6vyzUm5OtUp4+1pMai6J1fpSc+34SXtOMpMyYoQ CqaZtmJvqCuEJF5yB35MRGuPBU1AtVqxCJ7f8OZSUGsnADpOxVnWSFR61CImyysp5OYZ 6y2QcCdwmtnGiax65AscZAY6cLx5DodPQOlshJNyZwbMeXspjjxgBhExxtdHx0lUbjD2 uM904s+6+8/9+3X6l1FbFJOls5CDb8GNB+umrhelxfZo0EPagOIMO0uojaaT91plLuaW NpAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=j/co+KAQQo66TS0tPfVyB6C7BokdiYKLrG+0nDqTuLM=; b=EKNChqLtcN6OJabM356+6BaeSoO8+VptKeS8ZD1Mnh2bQyzwJVgiGy2vTgahmpdnQy OidfhAtmp1CD41RxA/PSyVjcxpq8ZyFI6Toq1Ysty7n6sVKmf4j3oPuO2t8M85fWiiYU gOpEVS3ibZ1iTNFxC8xe+wFDTxRsJ/Q9H93+dmzM0o/ks9nHv9cj8QIY+biYmB5ZE6Tu s6rbGCKkssusZxpd/fgbBCE7pEj6OaDTKlh14Bdx11KXyb/ZOBtcTX6h7YxWli9DHGhi Ah3gCiM8R+xcTcl8P2yZhjYHDJ4QtzeOj5w6JzqPgI4AYGNEiNNt9dKG3vbwSRgGvKTg RFQw== X-Gm-Message-State: AOAM533R+AQ0QYC3Z0TKydzFuXVcHCFpG6yIasNj9vNiMIoy2ZxC7OhQ ofFm7hMa6PBKuI76qK6ASyE4K8vQr2mcBjji3l+uCw== X-Received: by 2002:a05:6902:704:b0:649:cadc:bcf0 with SMTP id k4-20020a056902070400b00649cadcbcf0mr18600397ybt.537.1652718452212; Mon, 16 May 2022 09:27:32 -0700 (PDT) MIME-Version: 1.0 References: <20220516153605.f4cxfa7yx2jnorfm@revolver> In-Reply-To: <20220516153605.f4cxfa7yx2jnorfm@revolver> From: Naresh Kamboju Date: Mon, 16 May 2022 21:57:19 +0530 Message-ID: Subject: Re: [next ] kernel BUG at mm/mmap.c:3235! - invalid opcode: 0000 [#1] PREEMPT SMP NOPTI To: Liam Howlett Cc: Linux-Next Mailing List , open list , "lkft-triage@lists.linaro.org" , Yang Shi , Vlastimil Babka , "Kirill A. Shutemov" , Miaohe Lin , Song Liu , Rik van Riel , Matthew Wilcox , Zi Yan , "Theodore Ts'o" , Song Liu , Andrew Morton , Arnd Bergmann , David Howells , SeongJae Park , Will Deacon , Davidlohr Bueso Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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-kernel@vger.kernel.org Hi Liam, On Mon, 16 May 2022 at 21:06, Liam Howlett wrote: > > * Naresh Kamboju [220516 02:51]: > > While running LTP mm tests on x86_64 the following kernel BUG was noticed > > on Linux next-20220513 [1]. > > > > mmapstress01 1 TPASS : Test passed > > mmapstress02 1 TPASS : Test passed > > mmapstress03 0 TINFO : uname.machine=x86_64 kernel is 64bit > > mmapstress03 1 TPASS : Test passed > > [ 666.897222] ------------[ cut here ]------------ > > [ 666.897260] kernel BUG at mm/mmap.c:3235! > > [ 666.897285] invalid opcode: 0000 [#1] PREEMPT SMP NOPTI > > [ 666.899420] CPU: 3 PID: 25230 Comm: mmapstress03 Not tainted > > 5.18.0-rc6-next-20220513 #1 > > [ 666.900552] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), > > BIOS 1.12.0-1 04/01/2014 > > [ 666.901868] RIP: 0010:exit_mmap+0x32c/0x3a0 > > Reported-by: Linux Kernel Functional Testing > > > > > > metadata: > > git_ref: master > > git_repo: '' > > git_sha: 1e1b28b936aed946122b4e0991e7144fdbbfd77e > > git_describe: next-20220513 > > kernel_version: 5.18.0-rc6 Here is the Kconfig file. > > kernel-config: https://builds.tuxbuild.com/296PqKcUcCQSykZbASUqmdlP33g/config > > build-url: https://gitlab.com/Linaro/lkft/mirrors/next/linux-next/-/pipelines/538244935 > > artifact-location: https://builds.tuxbuild.com/296PqKcUcCQSykZbASUqmdlP33g > > toolchain: clang-12 > > I'm having an issue reproducing this on my configuration. May be the > clang compiler though. I'll keep digging. FYI, tuxmake will set up toolchains for you and build fast. # To install tuxmake on your system globally: # sudo pip3 install -U tuxmake # # See https://docs.tuxmake.org/ for complete documentation. # Original tuxmake command with fragments listed below. # tuxmake --runtime podman --target-arch x86_64 --toolchain clang-12 --kconfig defconfig --kconfig-add https://raw.githubusercontent.com/Linaro/meta-lkft/sumo/recipes-kernel/linux/files/lkft.config --kconfig-add https://raw.githubusercontent.com/Linaro/meta-lkft/sumo/recipes-kernel/linux/files/lkft-crypto.config --kconfig-add https://raw.githubusercontent.com/Linaro/meta-lkft/sumo/recipes-kernel/linux/files/distro-overrides.config --kconfig-add https://raw.githubusercontent.com/Linaro/meta-lkft/sumo/recipes-kernel/linux/files/systemd.config --kconfig-add https://raw.githubusercontent.com/Linaro/meta-lkft/sumo/recipes-kernel/linux/files/virtio.config --kconfig-add CONFIG_IGB=y --kconfig-add CONFIG_UNWINDER_FRAME_POINTER=y LLVM=1 LLVM_IAS=1 ( OR ) tuxmake --runtime podman --target-arch x86_64 --toolchain clang-12 --kconfig https://builds.tuxbuild.com/296PqKcUcCQSykZbASUqmdlP33g/config LLVM=1 LLVM_IAS=1 - Naresh