Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp273707pxu; Wed, 25 Nov 2020 02:50:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJzLH702MrvwlyZfFn7mA6ytdpitT55EPFncla70mflSJpR4iWcFsh4dJfOKYf3ofPQQSgrM X-Received: by 2002:a05:6402:b45:: with SMTP id bx5mr2811163edb.193.1606301432331; Wed, 25 Nov 2020 02:50:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606301432; cv=none; d=google.com; s=arc-20160816; b=FX6nLfyfn8Pq+EvH+1fNTWBvjBdjrvdqQSdJzTmVVD6Eb7StGtExeBL/OPsnBWDUYr m7ieRKp1EJHU+wvlbFgNY/XsX/1QX+q6cM3K+RKTM7KTZlvrGR4fBnhETr3BdPOkiplZ 7E+oeHJ9Tu4zkZUAaBnUS8rmvQl1arlGUpReZFTA/ta4nMktywM+mxqbsQhohuzQcEgB 7xPABx1q4OsWVp2SWFssciiOaPMyn+h4A6kpkLUo1LwDBuVh+GSstaGLs+7hy64ufR9o VkP+g0A593Oh4l1HEiCjfSEYH+eeiU1lgLxMfhiNcLd3dONQgcljplqqdyZMUa65zJjD OB+g== 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=P/Dda3TrMKEh7mM1NZG1uzUobwUSnHHig1HhvVYDq8U=; b=kq+Z4VPBUyYMgM53UHRyuqmduCZO8BSe6qxlbiT5vIqsTlpAkUL8E5d9h7B54FQDRx gJ7NRvYnFOZXYiB5CxBl01Nrl05L6VBAYrZBhgFMoThSAz06ybruoHMkw6Fi1DHeXy3c Iu8dt4Sq9LwoPvN590C97vzrd9vqyRNhBL5yTF2A9V4TPbX6oYWuYn+hf8E80wbiGjzd 65dr9a4Y0q9ecqIURJSts77fWeMqWsLRLMlecwjy3XZnBEDHBHPEz/heWSy/fSp4Tanu zMvvLyHdVbuQYslh8uTHVyGgxH3/c1p8VXZ6+0EbPWDFAjtZkAwX0uiKeB+8rgIoecmb X8SA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DyIqeQ5L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c19si963719edw.66.2020.11.25.02.50.08; Wed, 25 Nov 2020 02:50:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DyIqeQ5L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1729257AbgKYKrB (ORCPT + 99 others); Wed, 25 Nov 2020 05:47:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728938AbgKYKrB (ORCPT ); Wed, 25 Nov 2020 05:47:01 -0500 Received: from mail-ej1-x643.google.com (mail-ej1-x643.google.com [IPv6:2a00:1450:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D81C7C0613D6 for ; Wed, 25 Nov 2020 02:47:00 -0800 (PST) Received: by mail-ej1-x643.google.com with SMTP id lv15so2297733ejb.12 for ; Wed, 25 Nov 2020 02:47:00 -0800 (PST) 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=P/Dda3TrMKEh7mM1NZG1uzUobwUSnHHig1HhvVYDq8U=; b=DyIqeQ5L0Z0W/MMEDCh24Pnn/PTz1MbqZUOgZTiZU8ADygSMrudEQFaAd1iwyFj166 1Mr6svWeJ8QRYyJ50npzy8jyoJPZNH2ljPaXYv5cNrAwRu9gAgROpD6INJfQqLTbXDJq SB34GcsyBzI1hOIOSC5vLn0bM81JyfugHKG8qil3/hMwZiOwkCxZsaaN9JlroCK7AgYf pA35nzY5hCZNMKCCmBPfD5KfolEvfyBZyJ6RCZBB0xT5FlNi2SfPG0ncfrkUzLxEQG5B Vl4+YftnhQqDBCEzKImePx5A+wLAdlBZ8elcpbvnhHxC/iyR7596RSoSPpwp+wrjhEUw 9LTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=P/Dda3TrMKEh7mM1NZG1uzUobwUSnHHig1HhvVYDq8U=; b=ZWZXImluVi0/vdbpxHl3KM19tVpPpGiM+9CN4SGsMSF90G9pj0PmyV/+9du2rEqG8/ tft2gdjm4pU/fQyQKpUg4NGwut1BRNyo3rMQkbnSPqmgK07WcjfpWEhYjBAoV63kB3L9 Kv1/36mbeLMPEK/++cw338ULiPN2ETFb8YJR55CHp8H5pTHQaj9L75AVOp0ljDFLk64K BgyQjzwsKVuBGV9Ap4N5X/nFEGVnxJ5DMpzK16bpJ68JX+9Nqx/WCh2rnN3wrbAIhOaz 70ukYW0Y5tu3OV5Oy74MWJiRTqdujlJ2NIPaHGkTSBoz2nlRcW7hc/ujHPHj69GgpQKI fvDw== X-Gm-Message-State: AOAM533NH2URvq71c7bP77NA7SlJJztENXpQTgJlDcF/n287NW1azUkN 4k7oEhIU+GbcPjLI4tKCdyAo38n4v1gM2JXLIThZAQ== X-Received: by 2002:a17:906:4c85:: with SMTP id q5mr2584819eju.375.1606301219451; Wed, 25 Nov 2020 02:46:59 -0800 (PST) MIME-Version: 1.0 References: <20201124171628.dk6tle5lh3sx2jxg@linutronix.de> <20201125004632.GG4327@casper.infradead.org> In-Reply-To: <20201125004632.GG4327@casper.infradead.org> From: Naresh Kamboju Date: Wed, 25 Nov 2020 16:16:47 +0530 Message-ID: Subject: Re: kernel BUG at mm/highmem.c:417! invalid opcode: 0000 EIP: zero_user_segments To: Matthew Wilcox Cc: Sebastian Andrzej Siewior , open list , Linux-Next Mailing List , linux-mm , lkft-triage@lists.linaro.org, LTP List , Andrew Morton , torvalds@linuxfoundation.org, Yang Shi , Jan Kara , Michal Hocko , Thomas Gleixner , Mel Gorman , Song Liu , Zi Yan , vtolkm@googlemail.com, Marek Szyprowski , Arnd Bergmann Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 25 Nov 2020 at 06:16, Matthew Wilcox wrote: > > On Tue, Nov 24, 2020 at 06:16:28PM +0100, Sebastian Andrzej Siewior wrote: > > On 2020-11-24 18:52:44 [+0530], Naresh Kamboju wrote: > > > While running LTP test case access01 the following kernel BUG > > > noticed on linux next 20201124 tag kernel on i386. > > > > > > git short log: > > > ---------------- > > > git log --oneline next-20201120..next-20201124 -- mm/highmem.c > > > d9927d46febf Merge branch 'akpm-current/current' > > > 72d22a0d0e86 mm: support THPs in zero_user_segments > > > 2a656cad337e mm/highmem: Take kmap_high_get() properly into account > > > > > > Please find these easy steps to reproduce the kernel build and boot. > > > > This BUG_ON() is in zero_user_segments() which ash been added in commit > > 72d22a0d0e86 mm: support THPs in zero_user_segments > > > > > [ 50.852189] kernel BUG at mm/highmem.c:417! > > > > I managed to capture one invocation with: > > zero_user_segments(0xd4367a90, > > 0x1000, 0x1000, > > 0x0, 0x50) > > page_compound() -> 1 > > page_size() -> 4096 > > Thanks for debugging this! I didn't realise start1 was allowed to be > less than start2. Try this ... (systemd is sabotaging my efforts to > test an i386 kernel) This patch tested on i386, x86_64 and arm and the reported problem got fixed. Tested-by: Naresh Kamboju - Naresh