From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B408EC43331 for ; Thu, 2 Apr 2020 11:19:17 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 7595E20675 for ; Thu, 2 Apr 2020 11:19:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="kGn3ZKlf" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7595E20675 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 14DD78E0008; Thu, 2 Apr 2020 07:19:17 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 10C6B8E0007; Thu, 2 Apr 2020 07:19:17 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id F2F838E0008; Thu, 2 Apr 2020 07:19:16 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0132.hostedemail.com [216.40.44.132]) by kanga.kvack.org (Postfix) with ESMTP id DCFA88E0007 for ; Thu, 2 Apr 2020 07:19:16 -0400 (EDT) Received: from smtpin12.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 9AABB8248076 for ; Thu, 2 Apr 2020 11:19:16 +0000 (UTC) X-FDA: 76662668712.12.bomb42_33d7f2ccd5b63 X-HE-Tag: bomb42_33d7f2ccd5b63 X-Filterd-Recvd-Size: 5807 Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) by imf11.hostedemail.com (Postfix) with ESMTP for ; Thu, 2 Apr 2020 11:19:16 +0000 (UTC) Received: by mail-lf1-f43.google.com with SMTP id h6so2375238lfp.6 for ; Thu, 02 Apr 2020 04:19:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:from:date:message-id:subject:to:cc; bh=Du37Hi8yrMuGoPEFoTb3iFhtLjaQUvyasPWBPyTfNcA=; b=kGn3ZKlfselrX3HU3Nj59RsgNtaRuODGLl8uoa2/styhXss6DItjZ2rfvleFBQc4mG seOT2BJXLBns7p8QA4bS7V34P6VRtocsC6jv/hWwIe3FaGGUuSNvLSI9ct+BLlR8fRaP WGR8G7jCOzKdPkQr/UXQQ5TF0lkTn9g7fON95IDBR/Q8l4yuYzqKZPbzZigc3Fq1AOnQ g+mY5gY232oBxl5x5o1WkHhgb1kyA7O80pxaykHZcM0J05UTPUFH7fA5ZAI3WYc/1y1k aWNcdey6gCYia4zaQQ7mRJrxiLJ8mu0KmzDWFipOSSdZBPlg5oWYyO6yYLR1LHRTVBIY Y7cA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=Du37Hi8yrMuGoPEFoTb3iFhtLjaQUvyasPWBPyTfNcA=; b=q1uAVSZyENrgmd2Ik2/X6194T4wXuQpQ9t1XQ53yYPe34EgxmsIozOsZ4lq7LtWJmK 84POwbtRcjvVIOSQdrOrmFzUPJHare7V1DqZeAJp397Gf9HZncc8BVW2Djj557T3Aoow sYGKneXza6r3i/c3EePc5CI3vjMuzn+QysttYSQ8+BL7CqSv7YHuQ/UNvlJv/8Wm/YZf PyXUGXdToYd/Cs48f+gh0mEGgFQJyDlq/DUATm2rCzzQJduOrc4W+3CeAKEVaE0di70f M3E15+uCO6NXlz1KJ1X+0oeTbX+W0/PGan83HQptxxDYgkmTOZy8rzBR1lD+WnRx3FL1 JNVg== X-Gm-Message-State: AGi0PuaRUxKxhfKMB6Yiw6Bmg8tCHV6CcA+HW6mEgjuLQCpbPdPoo0/e M9MEkxmOBCbC/ny111rLztqz8zccjdS0SWUHB22WXw== X-Google-Smtp-Source: APiQypKwOxi9GqOecjvbNkySqq8FzFJQg61p2C1w+CUg3VyPxGQwOSrg6TVvzNTS/1W/85rVMOAIoaEHCaK0nBgH+I8= X-Received: by 2002:ac2:5211:: with SMTP id a17mr1848403lfl.167.1585826354441; Thu, 02 Apr 2020 04:19:14 -0700 (PDT) MIME-Version: 1.0 From: Naresh Kamboju Date: Thu, 2 Apr 2020 16:49:02 +0530 Message-ID: Subject: mm/mremap.c : WARNING: at mm/mremap.c:211 move_page_tables+0x5b0/0x5d0 To: Andrew Morton , linux- stable , linux-mm Cc: "Joel Fernandes (Google)" , "Kirill A. Shutemov" , William Kucharski , Julia Lawall , Michal Hocko , Will Deacon , Greg Kroah-Hartman , lkft-triage@lists.linaro.org, Mike Kravetz , LTP List Content-Type: text/plain; charset="UTF-8" X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: While running LTP mm thp01 test case on i386 kernel running on x86_64 device the following kernel warning was noticed multiple times. This issue is not new, we have noticed on stable-rc 5.4, stable-rc 5.5 and stable-rc 5.6 branches. FYI, CONFIG_HAVE_MOVE_PMD=y is set on and total memory 2.2G as per free output. steps to reproduce: -------------------- boot i386 kernel on x86_64 device, cd /opt/ltp ./runltp -f mm thp01.c:98: PASS: system didn't crash. thp01.c:98: PASS: system didn't crash. thp01.c:98: PASS: system didn't crash. [ 207.317499] ------------[ cut here ]------------ [ 207.322153] WARNING: CPU: 0 PID: 18963 at mm/mremap.c:211 move_page_tables+0x5b0/0x5d0 [ 207.330061] Modules linked in: x86_pkg_temp_thermal [ 207.334940] CPU: 0 PID: 18963 Comm: true Tainted: G W 5.6.2-rc1+ #1 [ 207.342498] Hardware name: Supermicro SYS-5019S-ML/X11SSH-F, BIOS 2.2 05/23/2018 [ 207.349881] EIP: move_page_tables+0x5b0/0x5d0 [ 207.354233] Code: 00 00 c0 ff 2b 45 08 39 c3 0f 46 c3 89 45 d4 01 f8 89 45 cc e9 7e fb ff ff 8d 45 d8 83 4d e8 01 e8 65 b0 01 00 e9 b2 fa ff ff <0f> 0b 80 7d be 00 0f 84 7e fd ff ff 31 db e9 74 fe ff ff 31 db e9 [ 207.372969] EAX: 7ce5f067 EBX: 00400000 ECX: e2cc8000 EDX: 00000000 [ 207.379225] ESI: e2cc8bfc EDI: bfc00000 EBP: f3273e18 ESP: f3273dc0 [ 207.385484] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068 EFLAGS: 00010202 [ 207.392261] CR0: 80050033 CR2: b7d02f50 CR3: 22cc8000 CR4: 003406d0 [ 207.398517] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000 [ 207.404774] DR6: fffe0ff0 DR7: 00000400 [ 207.408605] Call Trace: [ 207.411053] setup_arg_pages+0x22b/0x310 [ 207.414977] ? security_bprm_committed_creds+0x22/0x30 [ 207.420107] load_elf_binary+0x2fb/0x10a0 [ 207.424110] ? selinux_inode_permission+0xfb/0x1d0 [ 207.428894] ? bm_status_write+0x61/0xa0 [ 207.432811] ? security_inode_permission+0x2c/0x50 [ 207.437597] ? writenote+0xb0/0xb0 [ 207.440992] search_binary_handler+0x77/0x190 [ 207.445356] __do_execve_file+0x429/0x760 [ 207.449375] sys_execve+0x21/0x30 [ 207.452693] do_fast_syscall_32+0x7a/0x280 [ 207.456784] entry_SYSENTER_32+0xa5/0xf8 [ 207.460702] EIP: 0xb7ee7c5d [ 207.463491] Code: Bad RIP value. [ 207.466716] EAX: ffffffda EBX: bfff9ed0 ECX: 08069420 EDX: bfffa134 [ 207.472971] ESI: 080599d4 EDI: bfff9ed9 EBP: bfff9f78 ESP: bfff9ea8 [ 207.479230] DS: 007b ES: 007b FS: 0000 GS: 0033 SS: 007b EFLAGS: 00000296 [ 207.486008] ---[ end trace d49b75932d5396d5 ]--- full test log, https://lkft.validation.linaro.org/scheduler/job/1328795#L14498 https://lkft.validation.linaro.org/scheduler/job/1331455#L8923 https://lkft.validation.linaro.org/scheduler/job/1331632#L17251 Kernel config: https://builds.tuxbuild.com/RJ9BGpsgfPfj3Sfje8oLSw/kernel.config Test case source: https://github.com/linux-test-project/ltp/blob/master/testcases/kernel/mem/thp/thp01.c -- Linaro LKFT https://lkft.linaro.org