Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp316909lqh; Fri, 31 May 2024 02:08:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUiK1I+t+zp6VZBbnQQJd1wP2yGPgEMBHfCYvbPMB732LVdgr2dO+/WURmHtCCRytXDDtiqmJAM4PjqZkfN6cJyRvBPKJsnoMz1plS6IA== X-Google-Smtp-Source: AGHT+IGsFEOAqmLZU3Gn+f4VgoI2eCONRpLkBk2iqT1mwDUniUfd+Bm9kRLAz8jwoR7a9hUtR1VI X-Received: by 2002:a05:6214:468f:b0:6ad:4ae3:ed2b with SMTP id 6a1803df08f44-6aecd4c008dmr22701716d6.23.1717146533541; Fri, 31 May 2024 02:08:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717146533; cv=pass; d=google.com; s=arc-20160816; b=sm9PQgY6qlH/GND87ikdHppAQNJH8/pp/wzey5hLIg3ouznNvQ5DdUxlWp0tpKVrAZ 6yVTsi1qZRGnFM25iO47gNC2S82VbNH7DVAOFB6X9/oALwg6XQmMLKMM1nLbypWdeB0A PJOZ+Fhb0GXp4LIhGBd1w4XjUIRiKW9e+rjAMO+4SmlqKIU7WIF5a3VRNz8EDIyARG60 SekSIY1cIdd9EUT3h0cL2xdNdMXXxEf+y35tWkH5+XDS2K1i8LJrYyh4HADP3Pe6ZI2c Syc0Fv9bLDRsggoxirMUzLmgXFp3v9JhsK4DWwOED68jWEbAyDTXtHCk/4GbuHptNVmG FwMw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:organization:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:message-id:date :subject:cc:to:from:dkim-signature; bh=/m2mzNBxW0ggQTIDq+OE5qdF/mnVwKK6tY77KJOQmt4=; fh=lSmW3h/sUa0vaA+9iCY7HOgW3v55rK2dsEqdu8eMYY0=; b=c03TYWS/0fo7rQoD1rHX3vnGgGpbUEuHKa5bRBkohzMFZZYVpdnqmDtRd37gtVccZg kmIfkBfXYI7U+eR2nUWpuvj79mujBBOd2USGrFYF5KCbpbuEEy968KraQh98Kb3bWE8m TMB9v6G4P7fcOwa9TbIiyQLqJJ5rS7H3+GKpGL22YjcyTmJwMtFGdfwKxgoxBVkCZHXR eEHCqDXGWaVIwd0W/SmyMXjn6Wbc7DN8Iv6/d81KZD+og3Ax0pnyJ3Gf+rWyPYP/d0rR lWXgatwsoh3O4ASOJ8IhCZPXl+6GNxHNvMrh94xuTKFROC28wjRecjAW66WI808/vWA9 2Wig==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=TfDdo6B0; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-196540-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196540-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6ae4b401fa0si17450746d6.247.2024.05.31.02.08.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 02:08:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-196540-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=TfDdo6B0; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-196540-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196540-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id D14061C252D3 for ; Fri, 31 May 2024 09:08:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5D532156968; Fri, 31 May 2024 09:05:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="TfDdo6B0" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4584315688F for ; Fri, 31 May 2024 09:05:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717146305; cv=none; b=FtJHDS/53IsxH6Tr2Cp60BribFq3cwoJUkzgU9JJy4vITEzen/s2oiDeiIwBpuka66rnBIBV2CILImLTfCzs8X7N4Jqtn7WauA9i8+aWUgw2jD1Ei9odHFFNYB9IW4Q9zxJ8tpHVxQraqqeA9nLbpSh9X5ctuW63rNdGyjnRVds= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717146305; c=relaxed/simple; bh=aO3h9HmNwc1+wkz7rcJJoUBS3/VMC4mHtmeMrSAirCg=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=XjgiCRngJf1LCR5Y3ygakwKoKAM5gcucKww/BcD5hhVM3BkhnW0klGzjmwP7VQhlDI0d0SF8o2Edd76iTCTu+SzlqUK01bRuuRT0jQxWDeUhCvbao/6cR2ekKfgPtrC9j7P/ilOk/AZYgvYWaZS8rpUBEYHPaug7F93fuAdZKtY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=TfDdo6B0; arc=none smtp.client-ip=192.198.163.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1717146304; x=1748682304; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=aO3h9HmNwc1+wkz7rcJJoUBS3/VMC4mHtmeMrSAirCg=; b=TfDdo6B05i+OKoJyRJWtVC+ef5HmXbSWYADeAmnHyqdW/EF72fc2ywLc r6KCUVJkSNn54JxBXImYP7ekCOjezrOMFBGceeE+CRMyGhGJnCfxUQBom WIu24RDJxLcqCq1L7UGVpcJ8CRMHeN2pMQuetF6tOLxIbjjNhEPizqmWo UDx3Gj26p7daPy8AtpuvsyTm01+CuL2SPzgx8311AEFoLgKzG7tbDyKna pG3Qnr/Ujn/1lL4n0Zq6jX1rzpKQpN3a9pLgaakcUOKNt0ORHFG8kzpK8 OOkMbMNVEP9EC2ng0mFN1DCen7ikOZcGrvQR0z2V7rxhywnknk9x5kpDN g==; X-CSE-ConnectionGUID: 3uBVvjboQDiVs9RimENm/Q== X-CSE-MsgGUID: iceKwFcnRm6VX7alKvi0AA== X-IronPort-AV: E=McAfee;i="6600,9927,11088"; a="39074062" X-IronPort-AV: E=Sophos;i="6.08,203,1712646000"; d="scan'208";a="39074062" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 May 2024 02:05:03 -0700 X-CSE-ConnectionGUID: VmiYVtuTTSWqYvycE9W1Hg== X-CSE-MsgGUID: TgKrv+yzSoO4SRCSJnn7uw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,203,1712646000"; d="scan'208";a="40543218" Received: from bergbenj-mobl1.ger.corp.intel.com (HELO localhost) ([10.245.246.190]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 May 2024 02:05:02 -0700 From: Jani Nikula To: linux-kernel@vger.kernel.org Cc: jani.nikula@intel.com Subject: [PATCH 0/4] kernel/panic: add more descriptive logging of kernel taints Date: Fri, 31 May 2024 12:04:53 +0300 Message-Id: X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Content-Transfer-Encoding: 8bit Resend of https://lore.kernel.org/r/cover.1711380724.git.jani.nikula@intel.com A few years back there was a discussion about it being difficult to remember all the taint flags [1]. Time flies. I stumbled on my old branch, brushed it up, and here it is. I'm not entirely happy with the static buf (which was there to begin with) or how to decide on its size. Thoughts? BR, Jani. [1] https://lore.kernel.org/r/YmvU+/RUhOcL+B1p@kroah.com Jani Nikula (4): kernel/panic: return early from print_tainted() when not tainted kernel/panic: convert print_tainted() to use struct seq_buf internally kernel/panic: initialize taint_flags[] using a macro kernel/panic: add verbose logging of kernel taints in backtraces include/linux/panic.h | 8 +-- kernel/panic.c | 116 ++++++++++++++++++++++++++++-------------- lib/dump_stack.c | 3 ++ 3 files changed, 87 insertions(+), 40 deletions(-) -- 2.39.2