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=-10.1 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,USER_AGENT_SANE_1,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 83C5AC433DF for ; Sun, 21 Jun 2020 20:05:31 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 3FC6F204EA for ; Sun, 21 Jun 2020 20:05:31 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="FEOXINd8" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3FC6F204EA 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 D8D618D002E; Sun, 21 Jun 2020 16:05:30 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D3D478D001E; Sun, 21 Jun 2020 16:05:30 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C53B38D002E; Sun, 21 Jun 2020 16:05:30 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0045.hostedemail.com [216.40.44.45]) by kanga.kvack.org (Postfix) with ESMTP id AECE88D001E for ; Sun, 21 Jun 2020 16:05:30 -0400 (EDT) Received: from smtpin20.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 241D42C93 for ; Sun, 21 Jun 2020 20:05:30 +0000 (UTC) X-FDA: 76954298820.20.level70_3c0f70526e2c Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin20.hostedemail.com (Postfix) with ESMTP id 00559180C07AB for ; Sun, 21 Jun 2020 20:05:29 +0000 (UTC) X-HE-Tag: level70_3c0f70526e2c X-Filterd-Recvd-Size: 6637 Received: from mail-pj1-f67.google.com (mail-pj1-f67.google.com [209.85.216.67]) by imf42.hostedemail.com (Postfix) with ESMTP for ; Sun, 21 Jun 2020 20:05:29 +0000 (UTC) Received: by mail-pj1-f67.google.com with SMTP id d6so7416062pjs.3 for ; Sun, 21 Jun 2020 13:05:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=X7OgyVSuMYJEbRKK/i9+0glEO3PUSbKBvGeuyKIoZ/k=; b=FEOXINd8eHKchJBRGzFYOm0z4eYkmtbgEWvjBFNQhWwDOw7ASZ7gt5fuSAYYQQ6XWs IaF6hhHqjpivcgS4yIIwysgbQ5X0IMF+WI151tPWf9x6AVVp9Jl2P9m+KceZApxAx3nT dZTAhf1UCoXOr66cN7CImpY/qmfQRVGou43E7LjmqCqckgupVbbR5HdtmEhvTNWLEZ1s ne1oJi3lqBydkId+zh5pnQpf3jOZp1HSwCSo86EcL71rLxyvnmToHSeC8rlUUwuO5qUq 3ImJEHOpHu/JltpmPOU18olGw9pLSNg7kGFxi555F4Q7mDJ1tKK5DESmU/Zm0SoLhcVb LN7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=X7OgyVSuMYJEbRKK/i9+0glEO3PUSbKBvGeuyKIoZ/k=; b=DTfdC515OKMQQLbDFZ4ZqTrjwvaO5EMrz+yD5L/sFskWjMgLfJuZzsIAWsi+ISe8tZ moxdZsYULsSJcxLYTZP4un0hkbU3ioTp9F4d5qAYLXMl+MmjPSWid9tjZkZY/m0JQ9o/ nbKPdSkS1KoTvTwYlpQTjkJITYIlYoQVx94mIjhQSBTxTuJs+unI5xeOXVO9vBv+4oe7 djEJWedcbJgb4PlUXKr8iuLAyyZdnCvcrBh11+R1NhFV2/DnPrO/ohIR7dCWUUvMXriC kRVV4FMP6wQmE0qqR3o8kof9ZtJacRqCn8EwIzJATyKI5FU8X1AlixaBD0cI+kqJ4M1M W5Ww== X-Gm-Message-State: AOAM5336YIoKcAwGQbbkM8Dy2KxJxK+vWatwmIiyOnoHJx8/jGFZNb0J /VGM7Vmaru04ywgGV3NtJeoHcg== X-Google-Smtp-Source: ABdhPJx+GLSo7Zt2qVszU4jxzYm+pQRxbDIdXFksrvF7xCgmalSHVt7Ytq3xCa3awHjCgrDIX4suWA== X-Received: by 2002:a17:90b:4d0f:: with SMTP id mw15mr14682826pjb.68.1592769928367; Sun, 21 Jun 2020 13:05:28 -0700 (PDT) Received: from [2620:15c:17:3:3a5:23a7:5e32:4598] ([2620:15c:17:3:3a5:23a7:5e32:4598]) by smtp.gmail.com with ESMTPSA id ev20sm10942379pjb.8.2020.06.21.13.05.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jun 2020 13:05:27 -0700 (PDT) Date: Sun, 21 Jun 2020 13:05:27 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Roman Gushchin , Takashi Iwai cc: Andrea Arcangeli , Yang Shi , iommu@lists.linux-foundation.org, Joerg Roedel , Linux Kernel Mailing List , Linux MM , Michal Hocko , Johannes Weiner , "Kirill A. Shutemov" , Andrew Morton , Wei Yang Subject: Re: kernel BUG at mm/huge_memory.c:2613! In-Reply-To: <20200619225704.GC237539@carbon.dhcp.thefacebook.com> Message-ID: References: <20200619001938.GA135965@carbon.dhcp.thefacebook.com> <20200619011449.GC135965@carbon.dhcp.thefacebook.com> <20200619024026.GB21081@redhat.com> <20200619185540.GB217189@carbon.lan> <20200619225704.GC237539@carbon.dhcp.thefacebook.com> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Rspamd-Queue-Id: 00559180C07AB X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam01 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 Fri, 19 Jun 2020, Roman Gushchin wrote: > > > [ 40.287524] BUG: unable to handle page fault for address: ffffa77b833df000 > > > [ 40.287529] #PF: supervisor write access in kernel mode > > > [ 40.287531] #PF: error_code(0x000b) - reserved bit violation > > > [ 40.287532] PGD 40d14e067 P4D 40d14e067 PUD 40d14f067 PMD 3ec54d067 > > > PTE 80001688033d9163 > > > [ 40.287538] Oops: 000b [#2] SMP NOPTI > > > [ 40.287542] CPU: 9 PID: 1986 Comm: pulseaudio Tainted: G D > > > 5.8.0-rc1+ #697 > > > [ 40.287544] Hardware name: Gigabyte Technology Co., Ltd. > > > AB350-Gaming/AB350-Gaming-CF, BIOS F25 01/16/2019 > > > [ 40.287550] RIP: 0010:__memset+0x24/0x30 > > > [ 40.287553] Code: cc cc cc cc cc cc 0f 1f 44 00 00 49 89 f9 48 89 > > > d1 83 e2 07 48 c1 e9 03 40 0f b6 f6 48 b8 01 01 01 01 01 01 01 01 48 > > > 0f af c6 48 ab 89 d1 f3 aa 4c 89 c8 c3 90 49 89 f9 40 88 f0 48 89 > > > d1 f3 > > > [ 40.287556] RSP: 0018:ffffa77b827a7e08 EFLAGS: 00010216 > > > [ 40.287558] RAX: 0000000000000000 RBX: ffff90f77dced800 RCX: 00000000000008a0 > > > [ 40.287560] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffa77b833df000 > > > [ 40.287561] RBP: ffff90f7898c7000 R08: ffff90f78c507768 R09: ffffa77b833df000 > > > [ 40.287563] R10: ffffa77b833df000 R11: ffff90f7839f2d40 R12: 0000000000000000 > > > [ 40.287564] R13: ffff90f76a802e00 R14: ffffffffc0cb8880 R15: ffff90f770f4e700 > > > [ 40.287567] FS: 00007f3d8e8df880(0000) GS:ffff90f78ee40000(0000) > > > knlGS:0000000000000000 > > > [ 40.287569] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > > > [ 40.287570] CR2: ffffa77b833df000 CR3: 00000003fa556000 CR4: 00000000003406e0 > > > [ 40.287572] Call Trace: > > > [ 40.287584] snd_pcm_hw_params+0x3fd/0x490 [snd_pcm] > > > [ 40.287593] snd_pcm_common_ioctl+0x1c5/0x1110 [snd_pcm] > > > [ 40.287601] ? snd_pcm_info_user+0x64/0x80 [snd_pcm] > > > [ 40.287608] snd_pcm_ioctl+0x23/0x30 [snd_pcm] > > > [ 40.287613] ksys_ioctl+0x82/0xc0 > > > [ 40.287617] __x64_sys_ioctl+0x16/0x20 > > > [ 40.287622] do_syscall_64+0x4d/0x90 > > > [ 40.287627] entry_SYSCALL_64_after_hwframe+0x44/0xa9 > > > > Hi Roman, > > > > If you have CONFIG_AMD_MEM_ENCRYPT set, this should be resolved by > > > > commit dbed452a078d56bc7f1abecc3edd6a75e8e4484e > > Author: David Rientjes > > Date: Thu Jun 11 00:25:57 2020 -0700 > > > > dma-pool: decouple DMA_REMAP from DMA_COHERENT_POOL > > > > Or you might want to wait for 5.8-rc2 instead which includes this fix. > > > > Hello, David! > > Thank you for pointing at it! Unfortunately, there must be something wrong > with drivers, your patch didn't help much. I still see the same stacktrace. > Wow, I'm very surprised. Do you have CONFIG_AMD_MEM_ENCRYPT enabled? Adding Takashi.