Patch "kbuild: avoid scripts/kallsyms parsing /dev/null" has been added to the 6.10-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    kbuild: avoid scripts/kallsyms parsing /dev/null

to the 6.10-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     kbuild-avoid-scripts-kallsyms-parsing-dev-null.patch
and it can be found in the queue-6.10 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 9e3b43301f8476032de326616a1be2a46a7d9a07
Author: Masahiro Yamada <masahiroy@xxxxxxxxxx>
Date:   Thu Aug 8 03:03:00 2024 +0900

    kbuild: avoid scripts/kallsyms parsing /dev/null
    
    [ Upstream commit 1472464c6248575bf2d01c7f076b94704bb32c95 ]
    
    On macOS, as reported by Daniel Gomez, getline() sets ENOTTY to errno
    if it is requested to read from /dev/null.
    
    If this is worth fixing, I would rather pass an empty file to
    scripts/kallsyms instead of adding the ugly #ifdef __APPLE__.
    
    Fixes: c442db3f49f2 ("kbuild: remove PROVIDE() for kallsyms symbols")
    Reported-by: Daniel Gomez <da.gomez@xxxxxxxxxxx>
    Closes: https://lore.kernel.org/all/20240807-macos-build-support-v1-12-4cd1ded85694@xxxxxxxxxxx/
    Signed-off-by: Masahiro Yamada <masahiroy@xxxxxxxxxx>
    Reviewed-by: Nicolas Schier <nicolas@xxxxxxxxx>
    Reviewed-by: Daniel Gomez <da.gomez@xxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh
index 22d0bc8439863..070a319140e89 100755
--- a/scripts/link-vmlinux.sh
+++ b/scripts/link-vmlinux.sh
@@ -215,7 +215,8 @@ kallsymso=
 strip_debug=
 
 if is_enabled CONFIG_KALLSYMS; then
-	kallsyms /dev/null .tmp_vmlinux0.kallsyms
+	truncate -s0 .tmp_vmlinux.kallsyms0.syms
+	kallsyms .tmp_vmlinux.kallsyms0.syms .tmp_vmlinux0.kallsyms
 fi
 
 if is_enabled CONFIG_KALLSYMS || is_enabled CONFIG_DEBUG_INFO_BTF; then




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux