Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1967278ybt; Mon, 15 Jun 2020 14:21:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylZB6qtE7JNo5iAy1KTYByIZl2igpnkPDL9fSX/Wv6ZmG5qOs8YaSnSV80GPYn62jJykWS X-Received: by 2002:a17:906:7f94:: with SMTP id f20mr15348990ejr.394.1592256111176; Mon, 15 Jun 2020 14:21:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592256111; cv=none; d=google.com; s=arc-20160816; b=SRii2I8qf9Jvo7H93796uGXb8mbACSx0pVbVHkv5xmhtLxbRnypEbNndkG6kdtqKjD UyRYVjIappSwIHFMiUkYmC0MlnWereiYTaTJAsssE7J6vYLgts+ZfKb7+JTyaA/nINnR fPJUYehoPwjxSJnYEB4UT6Px6GF7x19PdqXhEj4U9oBk87oyUCZdQvB3UqVJqP4gzFld Z+1TsUcnTR6M1u7lTZYfQlWQ/ZQmddbMEM/IHxxDXT7mFFK21eYoIGq3m5k8V67qJgND g/deRnUILLwtgr4mV5VjaM5MLyTX1k3mFgmO9ApZZYL0Xft5NExDIU4bJ2LiPHg9MEpC WKPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=7wA6ADxC0Dv+t7J8Wpe11c9KpuI2oB9fUD9vRBm08wI=; b=orlRgPw8hUi7djsjH7Dq2OlZq00Soir9f6LlXDbECnyvqU7Ry0LMK+Sxl7ABFY9Z87 XJo/8+fOQblphjFW6dYoXGq4K5MLMFMulrB8TWxTCmR9WnF9ZBeJhDXF7P0BnkwYYkxN ps8VaNkpizrkI7qohfP0yUzmjjN6eTMIVTOiFaGhFGbpBbzsfNTP+aeJU137ngAoUiJD zPVHAlnUbOFX32Ify4AVHtPdlMNQd9HkumKlm3p4/YwkfEvDgN78UjLUn1vyX1EXKY2n PmubTZ7yCvx6RU8W5ZvMxGkuwCCzpm3bvL1/54GgAKpfmSdmLTFqYTGt8tRSb40UzhII UfRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=azI1s18o; 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 n11si9403288ejh.543.2020.06.15.14.21.28; Mon, 15 Jun 2020 14:21:51 -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=@linuxfoundation.org header.s=google header.b=azI1s18o; 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 S1731592AbgFOVS6 (ORCPT + 99 others); Mon, 15 Jun 2020 17:18:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726207AbgFOVS5 (ORCPT ); Mon, 15 Jun 2020 17:18:57 -0400 Received: from mail-ot1-x32b.google.com (mail-ot1-x32b.google.com [IPv6:2607:f8b0:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F70EC061A0E for ; Mon, 15 Jun 2020 14:18:57 -0700 (PDT) Received: by mail-ot1-x32b.google.com with SMTP id n70so14291522ota.5 for ; Mon, 15 Jun 2020 14:18:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=7wA6ADxC0Dv+t7J8Wpe11c9KpuI2oB9fUD9vRBm08wI=; b=azI1s18oxIrt8ZIRPYEqjiirYROksN7bF4+9hkSf89s3dEGkXFZA/VXLhoxdYm/fVL 5zlmRy3J0G4t8wBdya2zDV1R54dGq+JtpoS1OD22Z5JMyGivsCbpd9SqRnwJVODR4RrF jEo0/NqHBmzUG7PUx2wh9rfZmcGH074bTzLpA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=7wA6ADxC0Dv+t7J8Wpe11c9KpuI2oB9fUD9vRBm08wI=; b=d+WoU8aMXi++kG3x4POBD3+dY4sYlA5OzIOwulDV9d6jNayP37QkBKBBgJzFeJJrvA 7Gf0yYiNTBWBD3aaBsJUjN09/Vxy5ICBO20n8PnzPP2Bi8mQDBRVlZYtbG0D3yfv5fxQ h5u4/HJL0MX0TL5oysixnjBGQIUDKDgKG9xTuBWnxgvECH/BvwfKOv4950h1J+Ruln7f RiOzQQMlAdqHeM0dmbmUzKXontT1uTEh9pWcR1iT/JNlpIBXYgE/kVGQUNBzUt7/5dKb 3KQ8zCm2BXR3V+lIC4+RpUJF2ovZXkoL4TzTmzcVKtcJ+1qvVYlz9HMyNS/qFO1OpXmM 8uYg== X-Gm-Message-State: AOAM530rmqsXHASHHiYE4QeDroSG0oYwFCoddIBPDLqgslQsyaTusScx xJ50fxD/697czImViMZV+vyfP2UhHgg= X-Received: by 2002:a9d:4507:: with SMTP id w7mr22512273ote.366.1592255936242; Mon, 15 Jun 2020 14:18:56 -0700 (PDT) Received: from [192.168.1.112] (c-24-9-64-241.hsd1.co.comcast.net. [24.9.64.241]) by smtp.gmail.com with ESMTPSA id g5sm3556719otb.20.2020.06.15.14.18.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 15 Jun 2020 14:18:55 -0700 (PDT) Subject: Re: Linux 5.8-rc1 BUG unable to handle page fault (snd_pcm) To: Linus Torvalds , Sasha Levin , Konstantin Khlebnikov Cc: Joerg Roedel , Andy Lutomirski , "Peter Zijlstra (Intel)" , Takashi Iwai , Linux Kernel Mailing List , the arch/x86 maintainers , skhan@linuxfoundation.org References: <446c7a14-db97-6389-a03c-9ffccd251529@linuxfoundation.org> From: Shuah Khan Message-ID: Date: Mon, 15 Jun 2020 15:18:54 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/15/20 2:55 PM, Linus Torvalds wrote: > On Mon, Jun 15, 2020 at 1:41 PM Shuah Khan wrote: >> >> I have CONFIG_DEBUG_INFO enabled. Ran the stack trace through >> scripts/decode_stacktrace.sh > > Thanks. It looks like it isn't needed and people already know what the cause is. > > Also, sadly the stack trace decoding didn't end up as useful as it > could have been because it looks like it doesn't know how to do the > nice address lookups for modules. > > So this: > >> [ 15.341237] RIP: 0010:__memset (arch/x86/lib/memset_64.S:41) > > gets nicely pinpointed to the source, but the most critical part of > the call trace is in modules, and there we end up having just > >> [ 15.341259] Call Trace: >> [ 15.341267] ? snd_pcm_hw_params+0x3ca/0x440 snd_pcm >> [ 15.341272] snd_pcm_common_ioctl+0x173/0xf20 snd_pcm >> [ 15.341277] ? snd_ctl_ioctl+0x1c5/0x710 snd >> [ 15.341282] snd_pcm_ioctl+0x27/0x40 snd_pcm > > without then looking at the debug info in the snd_pcm module to figure that out. > > Then when the call trace gets back to non-module code, it looks good again: > >> [ 15.341285] ksys_ioctl (fs/ioctl.c:49 /home/shuah/lkml/linux_5.8/fs/ioctl.c:753) >> [ 15.341288] __x64_sys_ioctl (fs/ioctl.c:760) >> [ 15.341291] do_syscall_64 (arch/x86/entry/common.c:359) >> [ 15.341294] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:124) > > with pinpointing to exactly where the calls are. > > I note that Konstantin Khlebnikov did add support to do the module > parts too back in 2016, but it requires people to know to give the > module path too. > > Adding him and Sasha to the participants in case there are ideas on > how to improve on this (and party just because I want to once again > give scripts/decode_stacktrace.sh soem more mention, because a lot of > people seem to be unaware of how useful it can be to make oopses and > traces more readable.. > Thanks. I usually decode all of this by hand. This script saves a lot of time. Very cool. 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 [ 15.341277] ? snd_ctl_ioctl+0x1c5/0x710 snd [ 15.341282] snd_pcm_ioctl (sound/core/pcm_native.c:3297) snd_pcm [ 15.341285] ksys_ioctl (fs/ioctl.c:49 /home/shuah/lkml/linux_5.8/fs/ioctl.c:753) [ 15.341288] __x64_sys_ioctl (fs/ioctl.c:760) [ 15.341291] do_syscall_64 (arch/x86/entry/common.c:359) [ 15.341294] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:124) [ 15.341296] RIP: 0033:0x7fcbaf56137b [ 15.341297] Code: Bad RIP value. > Maybe even just a warning about lacking a module path when there are > module symbols present? > It does tell you the usage. Usage: scripts/decode_stacktrace.sh [vmlinux] [base path] [modulespath] I would be useful to add a warning. thanks, -- Shuah