Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2001226ybt; Mon, 15 Jun 2020 15:27:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDVOAjyCuAv5Zozy1JaMLN/uPxJWaBEDOtgTEQmZ9XWFnvQbCwUFUp0NMkU6+RmyMUDAjP X-Received: by 2002:aa7:dc57:: with SMTP id g23mr24872602edu.352.1592260046907; Mon, 15 Jun 2020 15:27:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592260046; cv=none; d=google.com; s=arc-20160816; b=yDoaR9KO3nRThV6hqn5t4VQ8NcYDkiBIBfS2O+VwzCEhihQwX7//7saFAUuZm2DHzV KQvbKReA8zIC+Dd2VtVRaSaPUKY1teZubQGL768i9t8J5Kww4+k6wXt74WuimGr2mMNY fZZnPGkgfvxIDIzJ63rVZpd4LnBxecubH6oucgxuO726P7nt2Se2CtlDs4tHv1FOWXK+ Q8XI7oNaDthbz0k4HcdIxb8JdOLcWSBbBgfLU018zRTF3i07G6wjSJqCEedle/sPXaw4 3epZqtGtEafysxwsifI6TtARyMC/YJ3RxUhRfhLLhNkLb2oDll/yTpzegNyMlnjn7E3E kxAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Fmb9LbkW00jXn2iCA2oMUh0qcJ6N12lt1xDN5WwkwPk=; b=ycWn9Ip4fCI5j9tTLZb9kiXYZyQ8tDudSkZMlvawUZib/KRSt3zcoKc/fZW3iX7gIn 4GdojjXkVaVw3rRyPKHjLLZ54d4W6MhezTKtGjt3DnRqM6tZpm5rpUQGhJs+uledn22q i+qSBmNvRx3Dp0vDAX+665wCk2V4mb2zM2CESlzM1McvhjucI6X1PUjS3JDfMHoPoRbp u24lvseSaKEzJwDv9LFxbOXLygu5+hDtFG+a/7pjpYSMYvRz2zVxeJ+yIpEIbSCI9n17 wxS1lM4qraYR7tJIK0k3ny9GR78YAinl+PUGfuazCWvzkgg8njlBA9+x1y6+tliHucs8 KAVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=X5oA5ZkI; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id si25si10246462ejb.43.2020.06.15.15.27.04; Mon, 15 Jun 2020 15:27:26 -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=@linux-foundation.org header.s=google header.b=X5oA5ZkI; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726538AbgFOWXy (ORCPT + 99 others); Mon, 15 Jun 2020 18:23:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726600AbgFOWXo (ORCPT ); Mon, 15 Jun 2020 18:23:44 -0400 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15560C061A0E for ; Mon, 15 Jun 2020 15:23:44 -0700 (PDT) Received: by mail-lj1-x243.google.com with SMTP id 9so21110013ljv.5 for ; Mon, 15 Jun 2020 15:23:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Fmb9LbkW00jXn2iCA2oMUh0qcJ6N12lt1xDN5WwkwPk=; b=X5oA5ZkI6BmYRo4G5tjAU7J1NaMnr5CZsGfkdzLhi7WbZ11gomiHh/T2MuSk2Lhkg9 v9D27QyUcwnm/E5k9nB+xI80JwHC2OAGJSEPxGTzo+TOedfzm82cbpySAeDY8Vf+Sfj7 lksbb23BPujdX2vOVAmYxKtIvmyJZfE2ie1VU= 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=Fmb9LbkW00jXn2iCA2oMUh0qcJ6N12lt1xDN5WwkwPk=; b=Dpumt4OMvA1xhMKu2w33TL3mTHbK9xT/dNWwIbSZ6bRRD+xaB7SEkTBay8b2JNz7lp Nn9unh8QyoUIzk4KiP6dLLWJRxQv6ux9YThn0amff+nuoS2g8XY+twEkKGsD1TTcIePn AAxl/fVOU27olK/AYVpaFN7JkAe+Ya4ZCn7FlcZzmBprHUQNeLfZGBD1/Md5bhYkk6Af +F9hmwwIA00jnCuuuZOuSjKnrCymhGTwWdZtGNrygY3hlzk5qN1+GE2nDpvKf1uxm/ZL Ls4f8nmLSL9XibfR4xl0vWyhtG4UV62kOpLpnGWHq8eWbIQPRNPdyN0IRxFIZIwWs3rt qhCQ== X-Gm-Message-State: AOAM531LEmL2lRhBgEewXfYKHuTBKjQaFf8/62Wj7f9vyIvX1rNd45Xb NTAQIq5GtS4k6nt2CU6NCajxbwZeKlk= X-Received: by 2002:a2e:98c2:: with SMTP id s2mr13981070ljj.288.1592259821607; Mon, 15 Jun 2020 15:23:41 -0700 (PDT) Received: from mail-lj1-f171.google.com (mail-lj1-f171.google.com. [209.85.208.171]) by smtp.gmail.com with ESMTPSA id a1sm5718244lfi.36.2020.06.15.15.23.40 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 15 Jun 2020 15:23:40 -0700 (PDT) Received: by mail-lj1-f171.google.com with SMTP id n24so21081344lji.10 for ; Mon, 15 Jun 2020 15:23:40 -0700 (PDT) X-Received: by 2002:a2e:9cd4:: with SMTP id g20mr13634729ljj.371.1592259820216; Mon, 15 Jun 2020 15:23:40 -0700 (PDT) MIME-Version: 1.0 References: <446c7a14-db97-6389-a03c-9ffccd251529@linuxfoundation.org> In-Reply-To: From: Linus Torvalds Date: Mon, 15 Jun 2020 15:23:24 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Linux 5.8-rc1 BUG unable to handle page fault (snd_pcm) To: Shuah Khan Cc: Sasha Levin , Konstantin Khlebnikov , Joerg Roedel , Andy Lutomirski , "Peter Zijlstra (Intel)" , Takashi Iwai , Linux Kernel Mailing List , "the arch/x86 maintainers" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 15, 2020 at 2:18 PM Shuah Khan wrote: > > Yeah. I should have thought about adding module path. With module path > added, I get better results: > > [ 15.341267] ? snd_pcm_hw_params (./include/linux/string.h:391 > /home/shuah/lkml/linux_5.8/sound/core/pcm_native.c:759) snd_pcm > [ 15.341272] snd_pcm_common_ioctl (sound/core/pcm_native.c:792 > /home/shuah/lkml/linux_5.8/sound/core/pcm_native.c:3210) snd_pcm Yeah, now it gives the complete path and you see exactly which memset() it ends up being, ie it's that /* clear the buffer for avoiding possible kernel info leaks */ if (runtime->dma_area && !substream->ops->copy_user) memset(runtime->dma_area, 0, runtime->dma_bytes); Quite often with all the inlining the compiler does it can be really hard to figure out where things come from when you just see the symbol and offset. Ok, in this case there aren't that many calls to memset() in that file, and it might have been obvious which one it was in this case. But sometimes they just come from various inline helper functions too, and when automation can give us the answer easily, it's the thing to do. > > Maybe even just a warning about lacking a module path when there are > > module symbols present? > > > > It does tell you the usage. Yes, it's more that it's very easy to overlook it, and then get a partial decode. Once you know how to use that script, it's very convenient, but the problem tends to be that too few people are aware of it in the first place. Linus