From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 55A16C44506 for ; Thu, 9 Jul 2026 08:49:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=XiNLhYVTRdTeDSBgNKPZoFwi81bwHfcARsalL+J1Y80=; b=gzKcRdQcv34zTK rXfjD8/xMyYwTD86AUDTfgwfilaVOIZPvZhltxH/L+AVOT8uh5YKV+S1qQZk1kVyRBy7daUHAqQi3 EZpIFmcdKp2DyyD9Csw5PKoGQyoN3QROKKP/rBky6h8Ch8X1tfozqDb9yfC76hcxZBCFXleCIwXSU iz02potYqDLnS5JezekkfNdmRwDmZj1602veo8q7UR1FXlCqWZN0CUt+NTjueM1JdOgdC7p9YYqJ3 kDQmEm2eHj75poqLCXhi/sP6JfYyL5L/BWKn3wqzj/TaTaEjzwvBt/dy3VYRll2mdcF1XYHPtbgBi RQf3d6nUYS9kZ2QblIEg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1whkRo-00000001XnH-2BXC; Thu, 09 Jul 2026 08:49:32 +0000 Received: from mail-oi1-x22c.google.com ([2607:f8b0:4864:20::22c]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1wG13p-0000000CIgC-0ByS for linux-rockchip@lists.infradead.org; Thu, 23 Apr 2026 20:54:10 +0000 Received: by mail-oi1-x22c.google.com with SMTP id 5614622812f47-464bba3a9easo3705010b6e.0 for ; Thu, 23 Apr 2026 13:54:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776977648; x=1777582448; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=vh+dAS21x3C6ulKovRegxLPmO53GnqH/AjpAPmkhI+c=; b=pbypWNZ0CCyTwdAUN5KSoCuPIEx80ZabrcZagFrnlkAviA1OgF9pNi94MngNfQY6+4 3rVZRrvswJPEzZ1kXKcQ8jo7lG1PaehIN3rTsU4dIy6Gp0APGiA4i1NziFTZHqu2n/YJ fLVkSRsL54cT3XW2b5i81DNkArnADTRNE/Aa7ZX+m2sw39CI8nHIlkXy3r6Faw4LerdI cHJ7x+xV4ceVA7cTELLoQtImS4f2WaIulP91yTCqWutiig+uOQSN4YNXEu1HbORlGM+A zFd206mzL/4kAyrkQKuElZh7l6PEscWizma4zOoCmYYWgzkqiul7pl3YmDWKs9xN205D gJWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776977648; x=1777582448; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=vh+dAS21x3C6ulKovRegxLPmO53GnqH/AjpAPmkhI+c=; b=rjMcD1WGqOcnKuiNbJ/fkazsQKCztm7IG4l4n3GVEFc1bqte+rZcFkjVWpirNVavzr WYoYZTgKGVgkqRwDvZxxMDjdjBN4UfLuVly8wHnjgwdISS6S5QPFfWJbSkSgWNxChbvk jkqWM51PRRMy6BQ+qlVmLVqlw5zdJ5NSUf/gH7MMp4bbJUIAxhiRmBq+vrgwWlhTaviI 3oRuJ733dORUTi6ivRS0vCnkCuTKg+AT67cuUKrjsyuh76oDB6kuHNfagdEGP7bMEtvy +GnzuMXnsz5vlVF/0dIbsTxKg5QFuZH5A6/A8Ss9hdZSy28j4n2BMfdQpe0ylukb3ZUn VqSg== X-Forwarded-Encrypted: i=1; AFNElJ9KV+7ldvaVd2IlLLD8r2rCB8pkjy6RU/nwaGWV1eS5UGjvQUVcs2W+9pDD1vXkBy9UNELFJqUbFabpcYfyKw==@lists.infradead.org X-Gm-Message-State: AOJu0YzGZk7BGo1K4q+Y6MqYu3bVJAkkl/jVjMrOwLgmmoZTeKc26n3V aN5hEn+JbWBFnnErMpydb7yodqvrdd9+jVQSo/wqhOI+3WcSdTLOpJzT X-Gm-Gg: AeBDieuCjUNfT/Lff3ttoJBQlbrnCy7WLLZTw9A0cR92WcwETCrT94uH26Yzi4bQmrC YlSC7nJUkqfj4bVS40Xr7ieSroRiFiqcNBzj0zMSUw2B+K8CmZvo4a+az+BKK8CMpZGV7SOn44H 1h9w7iQx1zO7756bh2fJ6HvCxJay0vdzPhRjlb14+AAC+eU+q5e12vgDyiMw7UuKXYOUILHrtl0 zCgssLXTqd/0eSyh/COfqnikRbLhWuleu//5Cg7Axh0D//pI0gCKjnpN0Ym7BwRYAq9DnLEFa9u lMKlL60ZVy/JGJW79a7xbR/ApYTlbiTAEAGsJMvq6Bctn5yT81WYxfYEt4ozAvcu3V4QOsvCute 5VTd6kmmirMsjOWaBIJ7k48CYH9iORm7S0wiwKBabIoBajTsmHVAz1nGGm7QINjiZ4RFtIT2eMu yR5PlO49r3gIAczBQT5hlPrjk454LrwhJWabSnaTV+H2Pcnxjf95igIMrn1ahqxXaDS1IitgKmE 9F2uAKRit8= X-Received: by 2002:a05:6808:138b:b0:45f:59e:1e06 with SMTP id 5614622812f47-4799c8711e1mr17988935b6e.4.1776977647783; Thu, 23 Apr 2026 13:54:07 -0700 (PDT) Received: from [192.168.0.245] (c-98-38-17-99.hsd1.co.comcast.net. [98.38.17.99]) by smtp.googlemail.com with ESMTPSA id 5614622812f47-4799fead505sm14329744b6e.2.2026.04.23.13.54.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Apr 2026 13:54:07 -0700 (PDT) From: Jim Cromie Date: Thu, 23 Apr 2026 14:53:42 -0600 Subject: [PATCH v14 01/92] dyndbg: fix NULL ptr on i386 due to section mis-alignment MIME-Version: 1.0 Message-Id: <20260423-submit-dyndbg-classmap-foundation-v14-1-2b809a8019d0@gmail.com> References: <20260423-submit-dyndbg-classmap-foundation-v14-0-2b809a8019d0@gmail.com> In-Reply-To: <20260423-submit-dyndbg-classmap-foundation-v14-0-2b809a8019d0@gmail.com> To: Arnd Bergmann , Jason Baron , Luis Chamberlain , Petr Pavlu , Daniel Gomez , Sami Tolvanen , Aaron Tomlin , Andrew Morton , Jonathan Corbet , Shuah Khan , Shuah Khan , Greg Kroah-Hartman , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , Alex Deucher , =?utf-8?q?Christian_K=C3=B6nig?= , David Airlie , Gerd Hoffmann , Dmitry Osipenko , Gurchetan Singh , Chia-I Wu , Matthew Brost , =?utf-8?q?Thomas_Hellstr=C3=B6m?= , Lyude Paul , Danilo Krummrich , Patrik Jakobsson , Zack Rusin , Broadcom internal kernel review list , Louis Chauvet , Haneen Mohammed , Melissa Wen , Sean Paul , Jocelyn Falempe , Ruben Wauters , Dave Stevenson , =?utf-8?q?Ma=C3=ADra_Canal?= , Raspberry Pi Kernel Maintenance , Rob Clark , Dmitry Baryshkov , Abhinav Kumar , Jessica Zhang , Marijn Suijten , Xinliang Liu , Tian Tao , Xinwei Kong , Sumit Semwal , Yongqin Liu , John Stultz , Philipp Zabel , Frank Li , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Chun-Kuang Hu , Matthias Brugger , AngeloGioacchino Del Regno , Sandy Huang , =?utf-8?q?Heiko_St=C3=BCbner?= , Andy Yan , Alain Volmat , Raphael Gallais-Pou , Yannick Fertre , Raphael Gallais-Pou , Philippe Cornu , Maxime Coquelin , Alexandre Torgue , Oded Gabbay , Maciej Falkowski , Karol Wachowski , "Rob Herring (Arm)" , Tomeu Vizoso , Liviu Dudau , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Liu Ying , Laurentiu Palcu , Lucas Stach , Paul Kocialkowski , Jianmin Lv , Qianhai Wu , Huacai Chen , Mingcong Bai , Xi Ruoyao , Icenowy Zheng , Laurent Pinchart , Tomi Valkeinen , Kieran Bingham , Geert Uytterhoeven , Magnus Damm , Javier Martinez Canillas , Huang Rui , Matthew Auld , Jani Nikula , Luca Coelho , Russell King , Christian Gmeiner Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-modules@vger.kernel.org, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, virtualization@lists.linux.dev, intel-xe@lists.freedesktop.org, nouveau@lists.freedesktop.org, spice-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-renesas-soc@vger.kernel.org, etnaviv@lists.freedesktop.org, Jim Cromie , kernel test robot X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1776977636; l=2644; i=jim.cromie@gmail.com; s=20260203; h=from:subject:message-id; bh=YvI+c+2Ph7G01gY6UA2wVrmrHHoi2nJdOmOI4+tqFF4=; b=JyTcuYLHHiwHBHDMwQ80bkTwG2D19eoKHDE+tl83KcpGRfh3fZenxZ7q9Sw+M3I1crSkiEMPL U/h1shBkXbNDxTVmN1qvPMSBm5G8hxuK6TqMgzZBBZXdklZASPjpC8F X-Developer-Key: i=jim.cromie@gmail.com; a=ed25519; pk=C6E5ODlPQo7ZBynATXH9wg7K6HxP0pIXyf4s38Qw0XE= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260423_135409_296419_17C1E0E8 X-CRM114-Status: GOOD ( 14.53 ) X-Mailman-Approved-At: Thu, 09 Jul 2026 01:48:24 -0700 X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org When dyndbg classmaps get used (later in this series), the __dyndbg_classes section (which has 28 byte structs on i386), causes mis-alignment of the following __dyndbg section, resulting in a NULL pointer deref in dynamic_debug_init(). Fix this by: Adding ALIGN(8) to the BOUNDED_SECTION* macros. This aligns all sections using those macros, including the problem section above. Almost all the other macro uses are already ALIGN(8), either directly or by being below one. Removing BOUNDED_SECTION* uses in ORC_UNWINDER sections. These explicitly have smaller alignments, and using the modified macros here would override that alignment, which scripts/sorttable.c does not tolerate. Move __dyndbg section back above __dyndbg_classes, restoring its original position. This is cosmetic, given the alignment added to the macros. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-lkp/202601211325.7e1f336-lkp@intel.com Signed-off-by: Jim Cromie --- include/asm-generic/vmlinux.lds.h | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h index 60c8c22fd3e4..db38f52035f3 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h @@ -212,11 +212,13 @@ #endif #define BOUNDED_SECTION_PRE_LABEL(_sec_, _label_, _BEGIN_, _END_) \ + . = ALIGN(8); \ _BEGIN_##_label_ = .; \ KEEP(*(_sec_)) \ _END_##_label_ = .; #define BOUNDED_SECTION_POST_LABEL(_sec_, _label_, _BEGIN_, _END_) \ + . = ALIGN(8); \ _label_##_BEGIN_ = .; \ KEEP(*(_sec_)) \ _label_##_END_ = .; @@ -862,15 +864,21 @@ #ifdef CONFIG_UNWINDER_ORC #define ORC_UNWIND_TABLE \ .orc_header : AT(ADDR(.orc_header) - LOAD_OFFSET) { \ - BOUNDED_SECTION_BY(.orc_header, _orc_header) \ + __start_orc_header = .; \ + KEEP(*(.orc_header)) \ + __stop_orc_header = .; \ } \ . = ALIGN(4); \ .orc_unwind_ip : AT(ADDR(.orc_unwind_ip) - LOAD_OFFSET) { \ - BOUNDED_SECTION_BY(.orc_unwind_ip, _orc_unwind_ip) \ + __start_orc_unwind_ip = .; \ + KEEP(*(.orc_unwind_ip)) \ + __stop_orc_unwind_ip = .; \ } \ . = ALIGN(2); \ .orc_unwind : AT(ADDR(.orc_unwind) - LOAD_OFFSET) { \ - BOUNDED_SECTION_BY(.orc_unwind, _orc_unwind) \ + __start_orc_unwind = .; \ + KEEP(*(.orc_unwind)) \ + __stop_orc_unwind = .; \ } \ text_size = _etext - _stext; \ . = ALIGN(4); \ -- 2.53.0 _______________________________________________ Linux-rockchip mailing list Linux-rockchip@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-rockchip