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.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,UNPARSEABLE_RELAY,USER_AGENT_SANE_1 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 A6484C4363D for ; Thu, 24 Sep 2020 01:48:51 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 1E0AB20897 for ; Thu, 24 Sep 2020 01:48:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1E0AB20897 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 223BD6B005A; Wed, 23 Sep 2020 21:48:50 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1D4216B005C; Wed, 23 Sep 2020 21:48:50 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0C33F6B005D; Wed, 23 Sep 2020 21:48:50 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0022.hostedemail.com [216.40.44.22]) by kanga.kvack.org (Postfix) with ESMTP id E7F4D6B005A for ; Wed, 23 Sep 2020 21:48:49 -0400 (EDT) Received: from smtpin05.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id AAA071E1B for ; Thu, 24 Sep 2020 01:48:49 +0000 (UTC) X-FDA: 77296271178.05.brass45_04058a32715b Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin05.hostedemail.com (Postfix) with ESMTP id 832861801F2B2 for ; Thu, 24 Sep 2020 01:48:49 +0000 (UTC) X-HE-Tag: brass45_04058a32715b X-Filterd-Recvd-Size: 5519 Received: from out4436.biz.mail.alibaba.com (out4436.biz.mail.alibaba.com [47.88.44.36]) by imf18.hostedemail.com (Postfix) with ESMTP for ; Thu, 24 Sep 2020 01:48:48 +0000 (UTC) X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R151e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04426;MF=alex.shi@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0U9uw7o0_1600912112; Received: from IT-FVFX43SYHV2H.local(mailfrom:alex.shi@linux.alibaba.com fp:SMTPD_---0U9uw7o0_1600912112) by smtp.aliyun-inc.com(127.0.0.1); Thu, 24 Sep 2020 09:48:33 +0800 Subject: Re: a bug on 5.9-rc6 To: Yang Shi Cc: Linux Kernel Mailing List , Linux MM , Qian Cai References: From: Alex Shi Message-ID: <0ceec009-4b4f-444a-6102-3d7030ed74a8@linux.alibaba.com> Date: Thu, 24 Sep 2020 09:46:19 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: 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: =E5=9C=A8 2020/9/24 =E4=B8=8A=E5=8D=888:31, Yang Shi =E5=86=99=E9=81=93: > Looks like the same problem as > https://lore.kernel.org/linux-mm/a46e9bbef2ed4e17778f5615e818526ef848d7= 91.camel@redhat.com/ >=20 Right, At least they share the same path: [ 1841.628726] bad_page.cold.130+0x63/0x93 [ 1841.632776] free_pcp_prepare+0x20b/0x250 [ 1841.636908] free_unref_page+0x18/0x90 CC: Qian Cai. Thanks! Alex >=20 > On Wed, Sep 23, 2020 at 5:24 PM Alex Shi w= rote: >> >> >> =E5=9C=A8 2020/9/22 =E4=B8=8B=E5=8D=8810:03, Alex Shi =E5=86=99=E9=81=93= : >>> >>> I just found a bug on recent upstream kernel on my x86 box. >>> 325d0eab4f31 Merge branch 'akpm' (patches from Andrew) >>> The last good kernel I known is 5.9-rc2. >> >> >> This bug still exist on 5.9-rc6. >> >> I found it in doing stress kernel build on swapping, while run >> kernel selftest's vmtest like: >> for ((i=3D0;i<8000;i++)); do ./run_vmtests ; sleep 1; done >> >> It take time. >> I will try to do bisect when things down in hands. >> >> Thanks >> Alex >>> >>> Thanks >>> Alex >>> >>> Linux aliy8 5.9.0-rc5-00156-g325d0eab4f31 #88 SMP PREEMPT Mon Sep 21 = 08:48:19 CST 2020 x86_64 x86_64 x86_64 GNU/Linux >>> >>> 1841.488609] BUG: Bad page state in process userfaultfd pfn:1a7d7 >>> [ 1841.494930] page:00000000ec5d2f1e refcount:0 mapcount:0 mapping:00= 00000000000000 index:0x7fd6181a6 pfn:0x1a7d7 >>> [ 1841.505080] flags: 0xfffffc0080004(uptodate|swapbacked) >>> [ 1841.510427] raw: 000fffffc0080004 dead000000000100 dead00000000012= 2 0000000000000000 >>> [ 1841.518318] raw: 00000007fd6181a6 0000000000000000 00000000fffffff= f 0000000000000000 >>> [ 1841.526207] page dumped because: PAGE_FLAGS_CHECK_AT_FREE flag(s) = set >>> [ 1841.532775] Modules linked in: loop xt_addrtype br_netfilter xt_CH= ECKSUM iptable_mangle xt_MASQUERADE iptable_nat nf_nat xt_conntrack nf_co= nntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c ipt_REJECT nf_reject_ipv4= tun bridge stp llc overlay ebtable_filter ebtables ip6table_filter ip6_t= ables iptable_filter dm_mirror dm_region_hash dm_log dm_mod ipmi_ssif int= el_rapl_msr intel_rapl_common x86_pkg_temp_thermal coretemp kvm_intel kvm= irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel aesni_intel = glue_helper crypto_simd cryptd pcspkr i2c_i801 joydev i2c_smbus mei_me me= i ipmi_si ipmi_devintf ipmi_msghandler ip_tables ext4 mbcache jbd2 crc32c= _intel drm_vram_helper drm_kms_helper syscopyarea sysfillrect sysimgblt f= b_sys_fops drm_ttm_helper ttm drm ahci libahci libata virtio_net net_fail= over failover >>> [ 1841.603813] CPU: 0 PID: 26221 Comm: userfaultfd Kdump: loaded Tain= ted: G S B W 5.9.0-rc5-00156-g325d0eab4f31 #88 >>> [ 1841.615080] Hardware name: Alibaba X-Dragon CN 01/20G4B, BIOS 1ALS= P017 04/09/2019 >>> [ 1841.622701] Call Trace: >>> [ 1841.625280] dump_stack+0x8d/0xc0 >>> [ 1841.628726] bad_page.cold.130+0x63/0x93 >>> [ 1841.632776] free_pcp_prepare+0x20b/0x250 >>> [ 1841.636908] free_unref_page+0x18/0x90 >>> [ 1841.640780] wp_page_copy+0x2cd/0x5d0 >>> [ 1841.644569] __handle_mm_fault+0x791/0x7a0 >>> [ 1841.648790] ? handle_mm_fault+0x4b/0x3f0 >>> [ 1841.652925] handle_mm_fault+0x16f/0x3f0 >>> [ 1841.656968] exc_page_fault+0x3cb/0x6a0 >>> [ 1841.660920] ? asm_exc_page_fault+0x8/0x30 >>> [ 1841.665131] asm_exc_page_fault+0x1e/0x30 >>> [ 1841.669259] RIP: 0033:0x7fd625da6d5d >>> [ 1841.672957] Code: 00 00 89 77 10 89 f2 49 8d 70 16 4c 89 c7 81 e2 = 80 00 00 00 e9 04 6c 00 00 0f 1f 40 00 81 e6 80 00 00 00 bf 01 00 00 00 3= 1 c0 41 0f b1 38 0f 85 24 01 00 00 64 8b 04 25 d0 02 00 00 41 89 40 >>> [ 1841.691889] RSP: 002b:00007fd6147b2e58 EFLAGS: 00010246 >>> [ 1841.697239] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00000= 000000027da >>> [ 1841.704497] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000= 00000000001 >>> [ 1841.711759] RBP: 00007fd6147b2f10 R08: 00007fd6181a6000 R09: 00007= fd6147b2eb0 >>> [ 1841.719028] R10: 000000000000000f R11: 0000000000000206 R12: 00000= 00000000000 >>> [ 1841.726286] R13: 0000000001001000 R14: 0000000000000000 R15: 00007= fd6147b3700 >>> >>