Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 F3BFD346FB7 for ; Wed, 21 Jan 2026 03:48:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768967340; cv=none; b=cOUbqdnE/ndn3dKl06AlkF4fCArezPZyx0URUaSanwEHY+NlQ25qmRpRuHToD16uDyrFe37Yrq0UKzh1HWbESRmBAAhwmny0QnqMkZnwW09yDqu6oLbBBBP73uzQNK+1Opog0DWokLkGP6/IyPiEbUSEFiOdxICocGQr3LMbzf8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768967340; c=relaxed/simple; bh=gjv517Snd39mGLtHBxzWdNW6ZLSgPlh3NsqkHwF8S+g=; h=Date:To:From:Subject:Message-Id; b=R8bADccJcKMn5xQ2PB1H/8YA7e160zOOCslgpqfa79QPgXyX9Z+Sl/VN5vmGSRRh2XKiVw9nVFTzNy74EQCfe9gSm/aHKCqI0fWul/g5uDy3Hu8Y3LFNI14/UxhiCLGt8Rf/Ck3qi0EFKYPOby+il3pgoSjKssAMBNkpppaki30= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=nslJuOtf; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="nslJuOtf" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B88C3C16AAE; Wed, 21 Jan 2026 03:48:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1768967339; bh=gjv517Snd39mGLtHBxzWdNW6ZLSgPlh3NsqkHwF8S+g=; h=Date:To:From:Subject:From; b=nslJuOtfRtconpqkIYAAUE8poMxDj7jy/AFTfWLRN4BWwEb6YYtBdvB4b7f5mjViO ucQHQJjj9eGK7w5SC4OICtuQ4pWO1UlUszeFLW0CpbklkQ0Pz2fkIGAnP7V5vO8xSE IuLyliEWu240wIzJVJaIhhbuRQ7G9cTZt1iwBKDU= Date: Tue, 20 Jan 2026 19:48:59 -0800 To: mm-commits@vger.kernel.org,samitolvanen@google.com,rostedt@goodmis.org,petr.pavlu@suse.com,mhiramat@kernel.org,mcgrof@kernel.org,mark.rutland@arm.com,kees@kernel.org,john.fastabend@gmail.com,daniel@iogearbox.net,da.gomez@samsung.com,atomlin@atomlin.com,ast@kernel.org,pmladek@suse.com,akpm@linux-foundation.org From: Andrew Morton Subject: [merged mm-nonmm-stable] kallsyms-clean-up-modname-and-modbuildid-initialization-in-kallsyms_lookup_buildid.patch removed from -mm tree Message-Id: <20260121034859.B88C3C16AAE@smtp.kernel.org> Precedence: bulk X-Mailing-List: mm-commits@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: The quilt patch titled Subject: kallsyms: clean up modname and modbuildid initialization in kallsyms_lookup_buildid() has been removed from the -mm tree. Its filename was kallsyms-clean-up-modname-and-modbuildid-initialization-in-kallsyms_lookup_buildid.patch This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm ------------------------------------------------------ From: Petr Mladek Subject: kallsyms: clean up modname and modbuildid initialization in kallsyms_lookup_buildid() Date: Fri, 28 Nov 2025 14:59:15 +0100 The @modname and @modbuildid optional return parameters are set only when the symbol is in a module. Always initialize them so that they do not need to be cleared when the module is not in a module. It simplifies the logic and makes the code even slightly more safe. Note that bpf_address_lookup() function will get updated in a separate patch. Link: https://lkml.kernel.org/r/20251128135920.217303-3-pmladek@suse.com Signed-off-by: Petr Mladek Cc: Aaron Tomlin Cc: Alexei Starovoitov Cc: Daniel Borkman Cc: Daniel Gomez Cc: John Fastabend Cc: Kees Cook Cc: Luis Chamberalin Cc: Marc Rutland Cc: "Masami Hiramatsu (Google)" Cc: Petr Pavlu Cc: Sami Tolvanen Cc: Steven Rostedt (Google) Signed-off-by: Andrew Morton --- kernel/kallsyms.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) --- a/kernel/kallsyms.c~kallsyms-clean-up-modname-and-modbuildid-initialization-in-kallsyms_lookup_buildid +++ a/kernel/kallsyms.c @@ -362,6 +362,14 @@ static int kallsyms_lookup_buildid(unsig * or empty string. */ namebuf[0] = 0; + /* + * Initialize the module-related return values. They are not set + * when the symbol is in vmlinux or it is a bpf address. + */ + if (modname) + *modname = NULL; + if (modbuildid) + *modbuildid = NULL; if (is_ksym_addr(addr)) { unsigned long pos; @@ -370,10 +378,6 @@ static int kallsyms_lookup_buildid(unsig /* Grab name */ kallsyms_expand_symbol(get_symbol_offset(pos), namebuf, KSYM_NAME_LEN); - if (modname) - *modname = NULL; - if (modbuildid) - *modbuildid = NULL; return strlen(namebuf); } _ Patches currently in -mm which might be from pmladek@suse.com are