Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3267486iog; Mon, 27 Jun 2022 12:37:10 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sYl8LBl2GqHljY/iMt0VUTWQJKwf6WrpG6fr5HVQYWvkyTgG3Opa+ixKA5h56t7cQqHL9u X-Received: by 2002:a17:907:9689:b0:71e:56c1:838b with SMTP id hd9-20020a170907968900b0071e56c1838bmr14457761ejc.304.1656358630651; Mon, 27 Jun 2022 12:37:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656358630; cv=none; d=google.com; s=arc-20160816; b=STQblZLjvTnYruYHP3O+RcyAA6G3NJ0lAgcVDrki++jEERTCO+4XxNjussiDDSx90H RWMfcF7Q87tkmwebsCyBDMLnqAd782DF6cqiJzqpKPYKwGRk2fPp3jTx21G3Wei53Qzp +AjzePkPnOoQzoik14tBr5gJH+hkk6JOW2kXRsTZGKEcRUUeVDp4yZSBZpPfNK51HrVJ 9OzgplihWCyQO6WJnqRRiWZHsrNRZveqwMCGvx76Ca67RU81mbwP73aRBKSvPgGQUd4d GAb5hcK+fQEJ3vh7WOi/szL0K0ccQ6D9EUr8ZiJIjn6Dlsqc1DOgFijkhVzyF82qX0XO eT5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=LJCsYlBEK82e/vevbv2+YUMYSe/yRSmJ8veFdTItMyE=; b=crSpzGs8zEm2O7T4hvMyYjyOFEWf28b9Ugq803nwqXhqzkRYGFhz+7NHEdozK7Efcf unenOZkdl9TV06f4VaiIsLUKZ8TtTFRdopZc4qEA+OkONmFNyUUY4piYxz/m9EtSFeaN p+RKumQ8rLMEyiP22IsjKcGEoEi7pQ5SZrETSsGc0rM9ZnirWXN0GnluLb0BCXjIDPLL ig3eBOXNqcwD4DBOOPQRJVeJZ/qOz13nyEL7DOO4EdR0IWR2HEjK1TjC5aijONT5wPCu wpvz7VCnhezgtClXJrct54QAJ4HRRlFSG0injhAY+Qn7e9Lk8V8vTeAXi116K7Pp4TvU ghAA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v21-20020a50f095000000b004359cc91e29si8870878edl.512.2022.06.27.12.36.35; Mon, 27 Jun 2022 12:37:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239790AbiF0TBV (ORCPT + 99 others); Mon, 27 Jun 2022 15:01:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239613AbiF0TBT (ORCPT ); Mon, 27 Jun 2022 15:01:19 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE45510DE for ; Mon, 27 Jun 2022 12:01:18 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8B28E615E1 for ; Mon, 27 Jun 2022 19:01:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 901C8C341CB; Mon, 27 Jun 2022 19:01:17 +0000 (UTC) Date: Mon, 27 Jun 2022 15:01:15 -0400 From: Steven Rostedt To: Chuck Lever III Cc: John 'Warthog9' Hawley , LKML Subject: Re: possible trace_printk() bug in v5.19-rc1 Message-ID: <20220627150115.066e17d1@gandalf.local.home> In-Reply-To: <25C37F40-7D8E-41C6-961F-0774C8138CCB@oracle.com> References: <20220616113400.15335d91@gandalf.local.home> <20220617155019.373adda7@gandalf.local.home> <3BAD2CD9-3A34-4140-A28C-0FE798B83C41@oracle.com> <355D2478-33D3-4046-8422-E512F42C51BC@oracle.com> <20220624190819.59df11d3@rorschach.local.home> <3EB14A14-767B-4B66-9B28-97DDE7EECFD2@oracle.com> <20220625134552.08c1a23a@rorschach.local.home> <0bf1d366-348c-0f91-8f0a-fc9cc6228783@kernel.org> <12417afa-331b-e0f6-a3b0-19623e38590b@eaglescrag.net> <308F6A3B-1FB9-42CD-8239-12B0FD0F5FDB@oracle.com> <20220627131140.56761db9@gandalf.local.home> <25C37F40-7D8E-41C6-961F-0774C8138CCB@oracle.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 Mon, 27 Jun 2022 17:19:18 +0000 Chuck Lever III wrote: > > Would you be able to send me a trace.dat file that has this issue? > > Sending under separate cover. I found this is the kallsyms output: ffffffffac820000 b __brk_early_pgt_alloc ffffffffac830000 B _end ffffffffac830000 B __brk_limit ffffffffc0948205 0944410 t qrtr_alloc_ctrl_packet [qrtr] ffffffffc0944470 t qrtr_node_enqueue [qrtr] ffffffffc094d100 b __key.5 [qrtr] ffffffffc09448b0 t qrtr_reset_ports [qrtr] ffffffffc094c1c0 d qrtr_ports [qrtr] ffffffffc094d100 b __key.3 [qrtr] ffffffffc094d100 b __key.4 [qrtr] The line with: ffffffffc0948205 0944410 t qrtr_alloc_ctrl_packet [qrtr] Causes the parsing to stop, because it is not of a proper format. It has that extra "0944410" in it, which will break the parsing. Now the question is, why does that exist? And yes, that's a kernel bug. The kallsyms code that outputs this file is: static int s_show(struct seq_file *m, void *p) { void *value; struct kallsym_iter *iter = m->private; /* Some debugging symbols have no name. Ignore them. */ if (!iter->name[0]) return 0; value = iter->show_value ? (void *)iter->value : NULL; if (iter->module_name[0]) { char type; /* * Label it "global" if it is exported, * "local" if not exported. */ type = iter->exported ? toupper(iter->type) : tolower(iter->type); seq_printf(m, "%px %c %s\t[%s]\n", value, type, iter->name, iter->module_name); } else seq_printf(m, "%px %c %s\n", value, iter->type, iter->name); return 0; } So how did it get that strange output. Hmm, I bet it is because trace-cmd reads it in BUFSIZ blocks, and that the seq_file code got confused when parsing between two elements, I bet something got dropped. I'll go see if there was any seq_file updates that could have caused this. -- Steve