Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2228397ybt; Sun, 21 Jun 2020 13:09:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwArK3MVGNqTwjUt2EASaffYFno/MljZ765WmmMGMf4Gcu4BcPKoh8/Bi9yp17FZ3CqMc9i X-Received: by 2002:aa7:c3d7:: with SMTP id l23mr13618221edr.264.1592770182481; Sun, 21 Jun 2020 13:09:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592770182; cv=none; d=google.com; s=arc-20160816; b=kycPWrVm/WGEwj1uOK3FmCZ6hVu9dlkeWdlAfKBSEdKvPY7xVb0d9wBDmGS8mmpyLd K8TIqdjNI8HpbDcBuWWUTMMqKaJf+dOHToPhxORq1LmBjIccXzVNVJuhbLAP+p9Zl6Mc bkr6dMXHrCKQUhsbvzh/y4bMfxQ4th8+Z5fq3CYatUfPa1wbenwnlji4if4EovjLmQ9w IuOKuzB632UAOdDow5XN3Y8Iyo6I6BNw+oEIGXsf5JhOtQdIsu7H3ktlscu8aSW4+BnK 7/H865Msr4vI2fbtTQ4h9q+hcm2DRWOGD/KqTmpXKQ+bz+7XuUc930NPcrMmjvnS5NG/ InzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=X7OgyVSuMYJEbRKK/i9+0glEO3PUSbKBvGeuyKIoZ/k=; b=Xus7Dg4q8UFCY5MzcpQGPagOUf87ubWmdg3y3/jOoXjr16RTn6mNHj9ydEhO9ztDp8 hx6716+YgChZJIDMv9l5lRbC/JNu+xqdMPUnZqKvguzLpRTo0mCa19U4WnXnli4QFN6U z4epHVr+xXShZ1IHgqTR2xiF8mrkJuh/4s2OHpfdIrIUMUUU8aZsOzUjzF/Q7Alpp03B d1T+kow0BpWH73AqP+Aqv/n/uB8cmrRwbZsmLZ7dS1YKm+PvK+mE2+UfkE7AzY5zlxsq 0C2xBDPjqc/k/4XIVoh0BFxKrmmkhLLm/8CKrL1HnbaY4oiOobGI4MZgbT42TKMIt/Sl MP6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=FEOXINd8; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ck9si7702109ejb.371.2020.06.21.13.09.18; Sun, 21 Jun 2020 13:09:42 -0700 (PDT) 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=@google.com header.s=20161025 header.b=FEOXINd8; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730605AbgFUUFb (ORCPT + 99 others); Sun, 21 Jun 2020 16:05:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730572AbgFUUFa (ORCPT ); Sun, 21 Jun 2020 16:05:30 -0400 Received: from mail-pj1-x1042.google.com (mail-pj1-x1042.google.com [IPv6:2607:f8b0:4864:20::1042]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35830C061794 for ; Sun, 21 Jun 2020 13:05:29 -0700 (PDT) Received: by mail-pj1-x1042.google.com with SMTP id h22so7428067pjf.1 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=E7hV50UsJCUIAllcr0KdnEuTxOX9WCxH4Cg47hUAf2I+xd0I6RXOPz3irGN1CF3PAF nu7s7iLdzI8bFLkI4seq9MDgeHQjjXV8YUtWObcr1TtZEDWv++k/x+fDZUQerEu5UakL WjU8qDfxjdxcF63WZkPoLot5uPSlptFKf0MOxfO6Hjj7M7x2CYt/+bg4k6MmVJIv3ybK E+3gqoZWonCBRP8Yzwols2I7lGfZsnCHIaeimQfeRlC5p+H5VRR1Qzxv75pXaT2Yo3ml IA/PvhqjqtLNb5A3V2goBzGX9TrxHIVeFEQ3OMlgDFMQyAeDCk0dqm3jUYsoPTodIJsp Q6Xw== X-Gm-Message-State: AOAM530J/FnxAsl49YKL59sa5E+g72cgWJLskUqrl/7gJMK/c6lg/QkR AZMKRm2YXhCHZCPyqw0NRUJedg== 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.