1. 05 Aug, 2024 11 commits
  2. 31 Jul, 2024 1 commit
  3. 28 Jul, 2024 1 commit
  4. 24 Jul, 2024 1 commit
  5. 19 Jul, 2024 3 commits
  6. 16 Jul, 2024 17 commits
  7. 15 Jul, 2024 2 commits
  8. 14 Jul, 2024 4 commits
    • Linus Torvalds's avatar
      Linux 6.10 · 0c383648
      Linus Torvalds authored
      0c383648
    • Linus Torvalds's avatar
      Merge tag 'kbuild-fixes-v6.10-4' of... · 882ddcd1
      Linus Torvalds authored
      Merge tag 'kbuild-fixes-v6.10-4' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
      
      Pull Kbuild fixes from Masahiro Yamada:
      
       - Make scripts/ld-version.sh robust against the latest LLD
      
       - Fix warnings in rpm-pkg with device tree support
      
       - Fix warnings in fortify tests with KASAN
      
      * tag 'kbuild-fixes-v6.10-4' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
        fortify: fix warnings in fortify tests with KASAN
        kbuild: rpm-pkg: avoid the warnings with dtb's listed twice
        kbuild: Make ld-version.sh more robust against version string changes
      882ddcd1
    • Masahiro Yamada's avatar
      fortify: fix warnings in fortify tests with KASAN · 84679f04
      Masahiro Yamada authored
      When a software KASAN mode is enabled, the fortify tests emit warnings
      on some architectures.
      
      For example, for ARCH=arm, the combination of CONFIG_FORTIFY_SOURCE=y
      and CONFIG_KASAN=y produces the following warnings:
      
          TEST    lib/test_fortify/read_overflow-memchr.log
        warning: unsafe memchr() usage lacked '__read_overflow' warning in lib/test_fortify/read_overflow-memchr.c
          TEST    lib/test_fortify/read_overflow-memchr_inv.log
        warning: unsafe memchr_inv() usage lacked '__read_overflow' symbol in lib/test_fortify/read_overflow-memchr_inv.c
          TEST    lib/test_fortify/read_overflow-memcmp.log
        warning: unsafe memcmp() usage lacked '__read_overflow' warning in lib/test_fortify/read_overflow-memcmp.c
          TEST    lib/test_fortify/read_overflow-memscan.log
        warning: unsafe memscan() usage lacked '__read_overflow' symbol in lib/test_fortify/read_overflow-memscan.c
          TEST    lib/test_fortify/read_overflow2-memcmp.log
        warning: unsafe memcmp() usage lacked '__read_overflow2' warning in lib/test_fortify/read_overflow2-memcmp.c
           [ more and more similar warnings... ]
      
      Commit 9c2d1328 ("kbuild: provide reasonable defaults for tool
      coverage") removed KASAN flags from non-kernel objects by default.
      It was an intended behavior because lib/test_fortify/*.c are unit
      tests that are not linked to the kernel.
      
      As it turns out, some architectures require -fsanitize=kernel-(hw)address
      to define __SANITIZE_ADDRESS__ for the fortify tests.
      
      Without __SANITIZE_ADDRESS__ defined, arch/arm/include/asm/string.h
      defines __NO_FORTIFY, thus excluding <linux/fortify-string.h>.
      
      This issue does not occur on x86 thanks to commit 4ec4190b
      ("kasan, x86: don't rename memintrinsics in uninstrumented files"),
      but there are still some architectures that define __NO_FORTIFY
      in such a situation.
      
      Set KASAN_SANITIZE=y explicitly to the fortify tests.
      
      Fixes: 9c2d1328 ("kbuild: provide reasonable defaults for tool coverage")
      Reported-by: default avatarArnd Bergmann <arnd@arndb.de>
      Closes: https://lore.kernel.org/all/0e8dee26-41cc-41ae-9493-10cd1a8e3268@app.fastmail.com/Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      84679f04
    • Jose Ignacio Tornos Martinez's avatar
      kbuild: rpm-pkg: avoid the warnings with dtb's listed twice · e3286434
      Jose Ignacio Tornos Martinez authored
      After 8d1001f7 (kbuild: rpm-pkg: fix build error with CONFIG_MODULES=n),
      the following warning "warning: File listed twice: *.dtb" is appearing for
      every dtb file that is included.
      The reason is that the commented commit already adds the folder
      /lib/modules/%{KERNELRELEASE} in kernel.list file so the folder
      /lib/modules/%{KERNELRELEASE}/dtb is no longer necessary, just remove it.
      
      Fixes: 8d1001f7 ("kbuild: rpm-pkg: fix build error with CONFIG_MODULES=n")
      Signed-off-by: default avatarJose Ignacio Tornos Martinez <jtornosm@redhat.com>
      Reviewed-by: default avatarNathan Chancellor <nathan@kernel.org>
      Tested-by: default avatarNathan Chancellor <nathan@kernel.org>
      Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
      e3286434