Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp346012iob; Wed, 18 May 2022 03:33:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylKhVv8oQXomMwW9ruJdTNVU8iBQRHsyJNzmdq/XUfw6WUECvUvOqiNa/W2WO0G6vaSo7s X-Received: by 2002:a17:90b:1e4e:b0:1dc:583c:398 with SMTP id pi14-20020a17090b1e4e00b001dc583c0398mr29850926pjb.232.1652870038587; Wed, 18 May 2022 03:33:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652870038; cv=none; d=google.com; s=arc-20160816; b=sqZ1bo3fSM05363CDCYhIziFcCjRSHmsRvPkuYmZUakN67PhjlAIRLZeIibLac1AzK EFgu9z7PCVtv6iW1myKouaup89PDtjIPZCj6kn1yfrKa2/egoENAm76ldVCOSwbdkRdk z8Lfk9A1zp7eA0h/wq18/gt4aAK2Qjq20JwUOu/l78MzcraQDbOj69MvHRyrZcDZ8p43 MUHTDXwTgaRbexJJx/p2Al8cyHPf+bgJgRqawFkHVhLrSMkjaWkdvIq/+3VS0yq2v6oV uGyZ4xFc/jqm6Ec6+drSHxnkQdt6L9Ftr1ps4DKQ13Y7tWNWtnW6bc/BwLiGCrphs68Q x6NA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=aL2OYkpkQZKWTo+sPUOc1vZdR03lCBjmbztTEGxy9Ao=; b=I6zwGF+lGOQaolM6I92iQDc3W/CpNCtjHJD5kE+P+Ls03U/xPj/8Hh/XdAvq3C5xaX IhvLocKfLc7F3NS7NGJvBLSdjx1HtE99Lz6/UHEf6cAEjrtUbyFJyQgV9ZRO1jhFJXs4 LE6yb6KqNMsYcMOuDEHM8WG5vdc4ViRgXX8i3qWwn5DU8B69TzKJvWoFVkV8F+EI1XTY udEZtaRyi6hpQapNN4ThQu066XWkDDANhBiCEeaWqAjpqmT35CiKeOMhiVTLN0TTnZXN PAONj7rGxg59QUB41ph6uUQAxPc9aLGFEW5MWMwmM6BALlcFr3pErWExJbE48fuO55i5 LmZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=alLkdEed; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id l190-20020a633ec7000000b003db58036fb2si2163454pga.755.2022.05.18.03.33.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 03:33:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=alLkdEed; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B301DE7313; Wed, 18 May 2022 03:19:51 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235034AbiERKTq (ORCPT + 99 others); Wed, 18 May 2022 06:19:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235055AbiERKTn (ORCPT ); Wed, 18 May 2022 06:19:43 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9ABBFE7332 for ; Wed, 18 May 2022 03:19:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652869178; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=aL2OYkpkQZKWTo+sPUOc1vZdR03lCBjmbztTEGxy9Ao=; b=alLkdEedozksfoeTzHGat9/R5LE2/l0sl2VzHvi5t8q2/LfzLicgDxJdL7493mVzUm177n nBagxF6rD+hfCLswsFdmvQ0fO28Ju7XOxkl2++O+EFZW5n2AqsTvrIkosq+Q/tS1BzROSk 7gXH5BDg+/rWBMX08fguviK3gIjhTo8= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-602-IqTzRmmsOtStrwezIiw9Og-1; Wed, 18 May 2022 06:19:34 -0400 X-MC-Unique: IqTzRmmsOtStrwezIiw9Og-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 8C84C3C1618C; Wed, 18 May 2022 10:19:33 +0000 (UTC) Received: from localhost (ovpn-13-59.pek2.redhat.com [10.72.13.59]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4848C40C1421; Wed, 18 May 2022 10:19:31 +0000 (UTC) Date: Wed, 18 May 2022 18:19:28 +0800 From: Baoquan He To: Stephen Brennan Cc: linux-kernel@vger.kernel.org, kexec@lists.infradead.org, akpm@linux-foundation.org, Nick Desaulniers , Dave Young , Kees Cook , Jiri Olsa , Stephen Boyd , Bixuan Cui , David Vernet , Vivek Goyal , Sami Tolvanen Subject: Re: [PATCH 0/2] Expose kallsyms data in vmcoreinfo note Message-ID: References: <20220517000508.777145-1-stephen.s.brennan@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220517000508.777145-1-stephen.s.brennan@oracle.com> X-Scanned-By: MIMEDefang 2.84 on 10.11.54.2 X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/16/22 at 05:05pm, Stephen Brennan wrote: > The kernel can be configured to contain a lot of introspection or > debugging information built-in, such as ORC for unwinding stack traces, > BTF for type information, and of course kallsyms. Debuggers could use > this information to navigate a core dump or live system, but they need > to be able to find it. > > This patch series adds the necessary symbols into vmcoreinfo, which > would allow a debugger to find and interpret the kallsyms table. Using > the kallsyms data, the debugger can then lookup any symbol, allowing it > to find ORC, BTF, or any other useful data. > > This would allow a live kernel, or core dump, to be debugged without > any DWARF debuginfo. This is useful for many cases: the debuginfo may > not have been generated, or you may not want to deploy the large files > everywhere you need them. > > I've demonstrated a proof of concept for this at LSF/MM+BPF during a > lighting talk. Using a work-in-progress branch of the drgn debugger, and > an extended set of BTF generated by a patched version of dwarves, I've > been able to open a core dump without any DWARF info and do basic tasks > such as enumerating slab caches, block devices, tasks, and doing > backtraces. I hope this series can be a first step toward a new > possibility of "DWARFless debugging". Thanks. Seems no reason to reject, even though I haven't tried drgn. And hope it has no security issue, e.g info leakage, at least I don't see it has. So, Acked-by: Baoquan He