Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2821675lqp; Mon, 25 Mar 2024 10:06:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXTuL9pPiernRwsAff9m3MxL4nwsCaenIecHb1LwiXCkjB1iCTWv8AU6QPbaKfBlHiQFZM1hqkTWKZlxoCYkD0hDXeJzJ5AVqkzr491lA== X-Google-Smtp-Source: AGHT+IEAS9ClN6ztZW4L5II9bQuIor2VBoJmYomzdY8hi+XUZtV4HPp5pY4kv6VfCMTGQsXN50ip X-Received: by 2002:a81:4e49:0:b0:611:9a26:429f with SMTP id c70-20020a814e49000000b006119a26429fmr1077102ywb.10.1711386419114; Mon, 25 Mar 2024 10:06:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711386419; cv=pass; d=google.com; s=arc-20160816; b=H2V3EUVS40DJ8hfmiGL5DT4344o8ThL6ggqYpiPwFMge0EdZenjtWEmbLK7BKz5coP BuWkN4cQ25ocBrwMrh+Bjv9eQmNhgmJdTVcaHiS22xjx/oF2h9fwzooZFMEsMwAZHWTo +innDraKVpB8vksjjOSpWYiwmvbne+ii6vMPECOnT0DPAKHyejkPag/eDIxjOKBwR1Qi W/D/pOZhqqfNkxFe73dDSwVuNYYUU8CXl327z8Fj7nnAPEQs7qUTVxU0o9S7ytHx+HOV 3e7+7zdykNx9oad5/AtyGikXuMwbrlZGUr+uuSf3df2LS0O9kUCqAdLswHWorlpvzzeu 4eUQ== 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=VxTv5Xf6QV4ZWsoIYWatJp2L6AC1i3vuwKfJIamtTBg=; fh=4MFyt5ztCVz18+vvPsZXX18KN+3XYxehttdwUL9PLs4=; b=BRmvgGF+b67AKjn3VRMZP+d5uG8FizV6h8EsHyZHEaPJLYiQ+pfEDL4kxZVXFAXYZj VOj7qhl2TACh+GZ+xFKxO7cXIqttXN1HagorQQBhzMZbMllZq2mR3+Pq1ltQ8Ko7cpFB 5d+oh+gB2kbRsCXJytJEcQyzLkuJGhU3j/p3UJpu/aXsWnBZ81Iy2oXQPRBxRRHsJPsA PdNCLrY15P2YPBEImc3wfTbxw71MsB5dif+vGOWIpfqHUlDS3T/mL94RyspW6AoAfeoP CgKSUgP5U5gR6vd9HXCj/HcsQCPMFGoCLyW3jMavPlc9e46FE6rmJk2qqVRJm3bFg970 KC+g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=JV5VH4m5; 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-117383-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117383-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 w129-20020a818687000000b0060456876875si1655592ywf.466.2024.03.25.10.06.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 10:06:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-117383-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=JV5VH4m5; 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-117383-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117383-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 E30CB1C2ACD8 for ; Mon, 25 Mar 2024 17:06:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D5495129E7C; Mon, 25 Mar 2024 15:36:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="JV5VH4m5" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) (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 D43DD1C692 for ; Mon, 25 Mar 2024 15:36:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711381003; cv=none; b=DLyRAve9mUBg+K9sC6EiFBevWYwZ05FpJG5bDOIH6+w/eDnnqVIInqWpBgBYhQlhzWJdmTqCzz9LQ+exZTFh1S7IptgA2o/YzuwgmDuSuB4+Vgkjmlwr+gc3Aavak+9r4sdYyJFjQ6y0qY77f7sNXEuz5YTeYcGHbWgzI8kJB8E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711381003; c=relaxed/simple; bh=6HPLPy2o0ghlEcknT+LnEDdwtnLPNgzIIhw3MI9IaSI=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=AcSqxJhYQzuFfUQul48wgVkR/s5NGGeBN1VjDeTrf2ODc9p6hU2AILqFMTUfroTBvObXgeLGW0HljVsEVwEQIyFvhrj7LvHNK4WMNoAP9R9vXaE0Dn5x05Xqz+xcPG4yW8Dv94KkEZGu+rAG715L2cMVnM0NG8LZKOYapa20fZQ= 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=JV5VH4m5; arc=none smtp.client-ip=198.175.65.10 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=1711381001; x=1742917001; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=6HPLPy2o0ghlEcknT+LnEDdwtnLPNgzIIhw3MI9IaSI=; b=JV5VH4m5H878T+VXMKLNjoWNorbrab9FYbCnNShJz6oqa0A1KPGZp9o2 CbJVtw28B2OK0ThSYXYtROqNGAixKXm6ZUNSgTA9stvnO+IjsJ6Kydmrp F+1FaHhCi1Lr3nvH/ZdCHe01UeAu9tkyDe7zTBej1xJFLCuIaCOKEWJpz ZV4EYEm0450Sh3ynRKaD6ZNDYjySdF0rM0GTczmK2kMGUihxjlTU2kCNv F/GwaKXjKO2o44xExz7Fp68YobiBWOds92mv2Uqa6OEzVmHXrqNcN87VM Q+vnMU9uHEuuisI76yPEjbwIv3XhFUcoZew+ZBwmxIb4qbmdh+0gQ6H0t w==; X-IronPort-AV: E=McAfee;i="6600,9927,11023"; a="23842492" X-IronPort-AV: E=Sophos;i="6.07,153,1708416000"; d="scan'208";a="23842492" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Mar 2024 08:36:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,153,1708416000"; d="scan'208";a="20337575" Received: from idirlea-mobl.ger.corp.intel.com (HELO localhost) ([10.252.55.171]) by orviesa004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Mar 2024 08:36:39 -0700 From: Jani Nikula To: Andrew Morton , Greg KH , linux-kernel@vger.kernel.org Cc: jani.nikula@intel.com Subject: [RFC 0/4] kernel/panic: add more descriptive logging of kernel taints Date: Mon, 25 Mar 2024 17:36:31 +0200 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 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