Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp29227967rwd; Wed, 5 Jul 2023 08:54:24 -0700 (PDT) X-Google-Smtp-Source: APBJJlGuGvPW3er8rMvihKsw9Vof/0bBvRgvIgZRZdBMgw8rNS6rDLzw7nWmqm/HvfzONE7W8w7N X-Received: by 2002:a05:6e02:1003:b0:345:b6e8:6d54 with SMTP id n3-20020a056e02100300b00345b6e86d54mr16324027ilj.31.1688572463634; Wed, 05 Jul 2023 08:54:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688572463; cv=none; d=google.com; s=arc-20160816; b=Dia6hXYktpwsgdizMgmW/7EXiix5QcLCCU1MHTIMUQ2C5xIcFuzPCq/NoKMbhedImR C26EygjY8VaoFEghQQ2hIGNXcDPpRkwWjU4XVObNLjrx1Y6qOp6tgskJic33MYTEkWQU +w2ClcR9JvAFjqwFhAgu3D4/V2OfRcdPVollYN+NOlxCkuggP4IpAOMTZyZm+Afsj3el UVw9LzktFITCMgSer0/mlmVZMpovq85S2CVY5g2SEZky/aqZGHLwfsAm78a7eJL6K1NE uJ9J7pm43dE/c8uGgqHhVrSoFdByLrwUiSakQFvtPXGViwtYP0bP6RNp6M4qubp0FmBn Arvg== 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 :dkim-signature; bh=yBs6GiZRqmle3nYpHNn5A5F5nAHPujSAPBMAMOQqJW4=; fh=L2IyzVdyYF/yvd6lxfpW2voZD39rNerVUZcdugLKcCQ=; b=BeG6GuID0TJVjQ2Z1xcn/Pmc+vIczTuVQJ4AAyiy752QVGdqBx3or8cHh3Oam/xzI0 yH5Rb/9SP87A+OHkGEQCsU+APwXdRofm9+rE029ZlPSEq/HeH27LRII/5a4bb+61xOxx lSRr4JbZ+e//jVIXBhLmwLYL3zNU2iOtyxVLlnCaEX9Bq4Em2xGZFgMKzZT11XJU2Ylc dngaWQ4WPJLuqG6tHZsThCktrh+v9xD8gTFzSSEv/XhN2qj/HgfFeyaYRwmmh8urdVY8 sG3Ju9vaS0HKIIFPdBXeVe/24YAyYBuBqzKUOUKIXmgASqczcuEd2zcz/HL93zfMXS/s pn3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rEzT6KVm; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 83-20020a630156000000b0054f71faf5aasi10671376pgb.581.2023.07.05.08.54.07; Wed, 05 Jul 2023 08:54:23 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rEzT6KVm; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232855AbjGEPuY (ORCPT + 99 others); Wed, 5 Jul 2023 11:50:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233002AbjGEPuD (ORCPT ); Wed, 5 Jul 2023 11:50:03 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2AEE11728 for ; Wed, 5 Jul 2023 08:50:01 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9056F615F8 for ; Wed, 5 Jul 2023 15:50:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 99CC6C433C8; Wed, 5 Jul 2023 15:49:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688572200; bh=LKIw2C4zLdq/arYohsNFX5l44L3BXGn1ZG9+kkvZW5k=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=rEzT6KVm4TjVa+PkpwzsjqzovOD8U11GjzMofQOI+l7tZttDYkjFJHKgUDWemaJpD Zxa1xpb1rAL9HXuUoTOeF/8yma5F+R6tP/6W2KctPtJ0ROyfx+UdRCHkr8Q3gyTF8Z 8ZQ1dZfKPNFsntZksx0mZhdXMTFiia2x1khpcGIFUZx0W9Jqkyzm3//hui+N6kDYRh GfcDjukmIZPVY86mNQhoeKAhCtXRdWRwLZeQuSViAwtP/FdjNcMeNzTRMr4Z2HaRdG Aj5GhKRYxgQFBEe7FBrDuu5DI01SXOe0KEuvaYU14+2W1Dhlah4GwOJSAbI+Zj/Ffj x02WaUUycubBw== Date: Wed, 5 Jul 2023 08:49:58 -0700 From: Jakub Kicinski To: Stephen Hemminger Cc: Breno Leitao , "David S. Miller" , Eric Dumazet , Paolo Abeni , sergey.senozhatsky@gmail.com, pmladek@suse.com, tj@kernel.org, Dave Jones , "open list:NETWORKING DRIVERS" , open list Subject: Re: [PATCH] netconsole: Append kernel version to message Message-ID: <20230705084958.1c4854eb@kernel.org> In-Reply-To: <20230705082604.7b104a48@hermes.local> References: <20230703154155.3460313-1-leitao@debian.org> <20230703113410.6352411d@hermes.local> <20230704085800.38f05b56@hermes.local> <20230705082604.7b104a48@hermes.local> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 Wed, 5 Jul 2023 08:26:04 -0700 Stephen Hemminger wrote: > On Wed, 5 Jul 2023 02:18:03 -0700 > Breno Leitao wrote: > > > The uname is useful if the receiver side is looking (grepping) for > > specific messages (warnings, oops, etc) affecting specific kernel > > versions. If the uname is not available, the receiver needs to read boot > > message and keep a map for source IP to kernel version. This is far from > > ideal at a hyperscale level. > > At hyperscale you need a real collector (not just netcat) that can consult > the VM database to based on IP and record the meta data there. If you allow > random updates and versions, things get out of control real fast and this > won't really help much VM world is simpler because the orchestrator knows exactly what it's launching each time. Bare metal is more complicated, especially with modern automation designs where the DBs may contain _intended_ state, and local host agent performs actions to bring the machine into the intended state. Not to mention that there may be multiple kernels at play (provisioning flow, bootloader / EFI, prod, kdump etc.) As a kernel dev I do like the 100% certainty as to which kernel version was running at the time of the problem.