08 Sep, 2022

3 commits

  • Commit b775fbf532dc ("kbuild: Add skip_encoding_btf_enum64 option to
    pahole") created the file scripts/pahole-flags.sh, but due to a mismatch
    between patch and quilt and git, the execute permissions did not get set
    properly. Fix that up.

    Reported-by: Florian Fainelli
    Reported-by: Sudip Mukherjee
    Fixes: b775fbf532dc ("kbuild: Add skip_encoding_btf_enum64 option to pahole")
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • New pahole (version 1.24) generates by default new BTF_KIND_ENUM64 BTF tag,
    which is not supported by stable kernel.

    As a result the kernel with CONFIG_DEBUG_INFO_BTF option will fail to
    compile with following error:

    BTFIDS vmlinux
    FAILED: load BTF from vmlinux: Invalid argument

    New pahole provides --skip_encoding_btf_enum64 option to skip BTF_KIND_ENUM64
    generation and produce BTF supported by stable kernel.

    Adding this option to scripts/pahole-flags.sh.

    This change does not have equivalent commit in linus tree, because linus tree
    has support for BTF_KIND_ENUM64 tag, so it does not need to be disabled.

    Signed-off-by: Martin Rodriguez Reboredo
    Signed-off-by: Jiri Olsa
    Signed-off-by: Greg Kroah-Hartman

    Martin Rodriguez Reboredo
     
  • commit e27f05147bff21408c1b8410ad8e90cd286e7952 upstream.

    Using new PAHOLE_FLAGS variable to pass extra arguments to
    pahole for both vmlinux and modules BTF data generation.

    Adding new scripts/pahole-flags.sh script that detect and
    prints pahole options.

    [ fixed issues found by kernel test robot ]

    Signed-off-by: Jiri Olsa
    Signed-off-by: Andrii Nakryiko
    Acked-by: Andrii Nakryiko
    Link: https://lore.kernel.org/bpf/20211029125729.70002-1-jolsa@kernel.org
    Signed-off-by: Greg Kroah-Hartman

    Jiri Olsa