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=-8.3 required=3.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_IN_DEF_DKIM_WL autolearn=no 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 39DDCC2BA19 for ; Sat, 18 Apr 2020 08:02:52 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id D415220857 for ; Sat, 18 Apr 2020 08:02:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="wLQrHFWK" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D415220857 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 814C28E0003; Sat, 18 Apr 2020 04:02:51 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 79ECC8E0001; Sat, 18 Apr 2020 04:02:51 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 666D08E0003; Sat, 18 Apr 2020 04:02:51 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0207.hostedemail.com [216.40.44.207]) by kanga.kvack.org (Postfix) with ESMTP id 4C3F88E0001 for ; Sat, 18 Apr 2020 04:02:51 -0400 (EDT) Received: from smtpin19.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 130005DC2 for ; Sat, 18 Apr 2020 08:02:51 +0000 (UTC) X-FDA: 76720234542.19.smell05_8d3ff88ff1b2f X-HE-Tag: smell05_8d3ff88ff1b2f X-Filterd-Recvd-Size: 6361 Received: from mail-qv1-f66.google.com (mail-qv1-f66.google.com [209.85.219.66]) by imf09.hostedemail.com (Postfix) with ESMTP for ; Sat, 18 Apr 2020 08:02:50 +0000 (UTC) Received: by mail-qv1-f66.google.com with SMTP id v18so2108037qvx.9 for ; Sat, 18 Apr 2020 01:02:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=LQCRNse3Q1COxyowNmHl2L08zf9GEfcCeavOcP7hQ3U=; b=wLQrHFWKMSKKB+kmcoqBvo3ThjIFUir4tlJLYw8wj+A7CMXksnWn39kqE/n5n7OPju Ti2Tk6B6oeIVnafWPMLGYnlIm3HTfnIcIDCNpBn1LDe/EBSJb5EikNg0mvuAD1QQ+ZjM 6s7J9Xt4wurEyapmm6V5HFhWPp/MK06n8vr7aC/1RUKn3mFU2+KmHmwIA6MkSD0odliB K1VSO+sRT9GUoioVyBMOjTwn66Fl/+jfCxqGZVf89ZNC29FWOBjdq9cXFXtR7nL7a00Z 3QReBKn4doiv8iv3QJ1Xmrue5Z57OYEUxkQzhmWh6P7pr2syPrQ27w3OQhAEDhtsBTu1 uIrw== 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:content-transfer-encoding; bh=LQCRNse3Q1COxyowNmHl2L08zf9GEfcCeavOcP7hQ3U=; b=BaR9FTTd9Ci28WgFX0rN4MYWdwEJ2VmPLr2F2B+fIbZQKxx2mKoULsHuwOu4txVY0B QZi2QF68GHnN0kaaQMoT9/2iJCWMlCeMgU+J/VHyoU9row+Z1wRsorxRZitKDyHKlSk3 uhEuMlGLo1oQk9KKFHSRKYsAP1f4rmphuvgY4jk8I9qc7Cgf/VGaXw7pMLUR9nafHiLG Od8xPUkcFJHRNvFP8sR4d1nx0Df8JoUuCSer0KwmXircgo4CDHBG+VXX8crJF6f+hRCG 1vwZthtaGDkAMCNC/0GA3rvRfTE+lqlJtWZfBUsJPZJxixQTng3nOWHg6WLJkU3agiyR chAw== X-Gm-Message-State: AGi0PuYcxS6gfWfWXFErW6UjOplcRz2hfiK6AAxE5G1YpI9TAO3q7nR0 21d+g7R1g4txH72Nmg5SAEfkjXKTPiHLI2cALVZvCQ== X-Google-Smtp-Source: APiQypL7UUYmMpEpdMiZ4ex0w5u9FU2JzKo6Jqkt4/5oxF/5yx/3Lj/rqyIBDnTKn0zcLyZBvWo5w5QsfOWoWdJ0FJM= X-Received: by 2002:ad4:58ce:: with SMTP id dh14mr6431867qvb.80.1587196969615; Sat, 18 Apr 2020 01:02:49 -0700 (PDT) MIME-Version: 1.0 References: <00000000000022640205a04a20d8@google.com> <20200309092423.2ww3aw6yfyce7yty@box> <5b1196be-09ce-51f7-f5e7-63f2e597f91e@linux.alibaba.com> <20200418174353.02295792@canb.auug.org.au> <20200418175059.7100ed7b@canb.auug.org.au> In-Reply-To: <20200418175059.7100ed7b@canb.auug.org.au> From: Dmitry Vyukov Date: Sat, 18 Apr 2020 10:02:36 +0200 Message-ID: Subject: Re: linux-next test error: BUG: using __this_cpu_read() in preemptible code in __mod_memcg_state To: Stephen Rothwell Cc: Alex Shi , Linux-Next Mailing List , "Kirill A. Shutemov" , syzbot , Andrew Morton , Cgroups , Johannes Weiner , LKML , Linux-MM , Michal Hocko , syzkaller-bugs , Vladimir Davydov Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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: On Sat, Apr 18, 2020 at 9:51 AM Stephen Rothwell wro= te: > > Hi Stephen, > > On Sat, 18 Apr 2020 17:43:53 +1000 Stephen Rothwell wrote: > > > > Hi Dmitry, > > > > On Sat, 18 Apr 2020 09:04:38 +0200 Dmitry Vyukov w= rote: > > > > > > On Mon, Mar 9, 2020 at 2:27 PM Alex Shi = wrote: > > > > =E5=9C=A8 2020/3/9 =E4=B8=8B=E5=8D=885:56, Alex Shi =E5=86=99=E9=81= =93: > > > > > > > > > > > > > > > =E5=9C=A8 2020/3/9 =E4=B8=8B=E5=8D=885:24, Kirill A. Shutemov =E5= =86=99=E9=81=93: > > > > >>> check_preemption_disabled: 3 callbacks suppressed > > > > >>> BUG: using __this_cpu_read() in preemptible [00000000] code: sy= z-fuzzer/9432 > > > > >>> caller is __mod_memcg_state+0x27/0x1a0 mm/memcontrol.c:689 > > > > >>> CPU: 1 PID: 9432 Comm: syz-fuzzer Not tainted 5.6.0-rc4-next-20= 200306-syzkaller #0 > > > > >>> Hardware name: Google Google Compute Engine/Google Compute Engi= ne, BIOS Google 01/01/2011 > > > > >>> Call Trace: > > > > >>> __dump_stack lib/dump_stack.c:77 [inline] > > > > >>> dump_stack+0x188/0x20d lib/dump_stack.c:118 > > > > >>> check_preemption_disabled lib/smp_processor_id.c:47 [inline] > > > > >>> __this_cpu_preempt_check.cold+0x84/0x90 lib/smp_processor_id.c= :64 > > > > >>> __mod_memcg_state+0x27/0x1a0 mm/memcontrol.c:689 > > > > >>> __split_huge_page mm/huge_memory.c:2575 [inline] > > > > >>> split_huge_page_to_list+0x124b/0x3380 mm/huge_memory.c:2862 > > > > >>> split_huge_page include/linux/huge_mm.h:167 [inline] > > > > >> It looks like a regression due to c8cba0cc2a80 ("mm/thp: narrow = lru > > > > >> locking"). > > > > > > > > > > yes, I guess so. > > > > > > > > Yes, it is a stupid mistake to pull out lock for __mod_memcg_state = which > > > > should be in a lock. > > > > > > > > revert this patch should be all fine, since ClearPageCompound and p= age_ref_inc > > > > later may related with lru_list valid issue in release_pges. > > > > > > > > > > > > Sorry for the disaster! > > > > > > > > Alex > > > > > > +linux-next, Stephen for currently open linux-next build/boot failure > > > > > > Hi Alex, > > > > > > What's the status of this? Was the guilty patch reverted? If so, > > > please mark it as invalid for syzbot, otherwise it still shows up as > > > open bug. > > > > The patch was removed from Andrew's tree in March and never made it to > > Linus' tree. I can't find how to tell syzbot that the patch went away = ... > > Lets try: > > #syz invalid This is correct, thanks! You may now see "Status: closed as invalid on 2020/04/18 07:51" at: https://syzkaller.appspot.com/bug?extid=3D826543256ed3b8c37f62 It does not show up as "open" and if this will happen again syzbot will report it (rather than assume it's still the old bug happening).