objtool: CONFIG_OBJTOOL_WERROR fixes and cleanups
Status from this message: The following commit has been merged into the objtool/urgent branch of tip:
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/22 | objtool: Fix detection of consecutive jump tablestools/ tools/ tools/ | +37 | 0 replies | |
| 2/22 | objtool: Warn when disabling unreachable warningstools/ | +4 | 0 replies | |
| 3/22 | objtool: Ignore entire functions rather than instructionstools/ tools/ | +19 | 0 replies | |
| 4/22 | objtool: Fix X86_FEATURE_SMAP alternative handlingarch/ arch/ arch/ +5 more | +39 | 0 replies | |
| 5/22 | objtool: Fix CONFIG_OBJTOOL_WERROR for vmlinux.oscripts/ | +11 | 0 replies | |
| 6/22 | objtool: Fix init_module() handlingtools/ | +5 | 0 replies | |
| 7/22 | objtool: Silence more KCOV warningstools/ | +6 | 0 replies | |
| 8/22 | objtool: Properly disable uaccess validationtools/ | +9 | 0 replies | |
| 9/22 | objtool: Improve error handlingtools/ tools/ tools/ +3 more | +233 | 0 replies | |
| 10/22 | objtool: Reduce CONFIG_OBJTOOL_WERROR verbosityscripts/ tools/ tools/ +1 more | +73 | 0 replies | |
| 11/22 | objtool: Fix up some outdated references to ENTRY/ENDPROCinclude/ include/ tools/ | +6 | 0 replies | |
| 12/22 | objtool: Remove --no-unreachable for noinstr-only vmlinux.o runsscripts/ | +0 | 0 replies | |
| 13/22 | objtool: Remove redundant opts.noinstr dependencytools/ | +1 | 0 replies | |
| 14/22 | spi: amd: Fix out-of-bounds stack access in amd_set_spi_freq()drivers/ | +1 | 1 reply | |
| 15/22 | nvmet: Fix out-of-bounds stack access in nvmet_ctrl_state_show()drivers/ | +1 | 1 reply | |
| 16/22 | media: dib8000: Prevent divide-by-zero in dib8000_set_dds()drivers/ | +4 | 2 replies | |
| 17/22 | panic: Disable SMAP in __stack_chk_fail()kernel/ tools/ | +10 | 0 replies | |
| 18/22 | Input: cyapa - remove undefined behavior in cyapa_update_fw_store()drivers/ | +2 | 0 replies | |
| 19/22 | ASoC: codecs: wcd934x: Remove undefined behavior in wcd934x_slim_irq_handler()sound/ | +1 | 3 replies | |
| 20/22 | regulator: rk808: Remove undefined behavior in rk806_set_mode_dcdc()drivers/ | +2 | 1 reply | |
| 21/22 | pwm: mediatek: Prevent divide-by-zero in pwm_mediatek_config()drivers/ | +6 | 9 replies | |
| 22/22 | lkdtm: Obfuscate do_nothing() pointerdrivers/ | +11 | 1 reply |
Reviews trailers per patch
5 of 22 patches have a Reviewed-by or Acked-by.
| Patch | Mark Brown | Kees Cook | Chaitanya Kulkarni |
|---|---|---|---|
| 1/22 | |||
| 2/22 | |||
| 3/22 | |||
| 4/22 | |||
| 5/22 | |||
| 6/22 | |||
| 7/22 | |||
| 8/22 | |||
| 9/22 | |||
| 10/22 | |||
| 11/22 | |||
| 12/22 | |||
| 13/22 | |||
| 14/22 | A-b | ||
| 15/22 | R-b | ||
| 16/22 | |||
| 17/22 | |||
| 18/22 | |||
| 19/22 | A-b | ||
| 20/22 | A-b | ||
| 21/22 | |||
| 22/22 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH 00/22] objtool: CONFIG_OBJTOOL_WERROR fixes and cleanups
Since CONFIG_OBJTOOL_WERROR got merged into -tip, a lot of warnings have been reported. Fix those along with several other improvements.
Josh Poimboeuf (22):
objtool: Fix detection of consecutive jump tables
objtool: Warn when disabling unreachable warnings
objtool: Ignore entire functions rather than instructions
objtool: Fix X86_FEATURE_SMAP alternative handling
objtool: Fix CONFIG_OBJTOOL_WERROR for vmlinux.o
objtool: Fix init_module() handling
objtool: Silence more KCOV warnings
objtool: Properly disable uaccess validation
objtool: Improve error handling
objtool: Reduce CONFIG_OBJTOOL_WERROR verbosity
objtool: Fix up some outdated references to ENTRY/ENDPROC
objtool: Remove --no-unreachable for noinstr-only vmlinux.o runs
objtool: Remove redundant opts.noinstr dependency
spi: amd: Fix out-of-bounds stack access in amd_set_spi_freq()
nvmet: Fix out-of-bounds stack access in nvmet_ctrl_state_show()
media: dib8000: Prevent divide-by-zero in dib8000_set_dds()
panic: Disable SMAP in __stack_chk_fail()
Input: cyapa - remove undefined behavior in cyapa_update_fw_store()
ASoC: codecs: wcd934x: Remove undefined behavior in
wcd934x_slim_irq_handler()
regulator: rk808: Remove undefined behavior in rk806_set_mode_dcdc()
pwm: mediatek: Prevent divide-by-zero in pwm_mediatek_config()
lkdtm: Obfuscate do_nothing() pointer
arch/x86/include/asm/arch_hweight.h | 8 +- arch/x86/include/asm/smap.h | 23 +- arch/x86/include/asm/xen/hypercall.h | 6 +- drivers/input/mouse/cyapa.c | 4 +- drivers/media/dvb-frontends/dib8000.c | 5 +- drivers/misc/lkdtm/perms.c | 14 +- drivers/nvme/target/debugfs.c | 2 +- drivers/pwm/pwm-mediatek.c | 8 +- drivers/regulator/rk808-regulator.c | 4 +- drivers/spi/spi-amd.c | 2 +- include/linux/linkage.h | 4 - include/linux/objtool.h | 2 +- kernel/panic.c | 6 + scripts/Makefile.lib | 2 +- scripts/Makefile.vmlinux_o | 15 +- sound/soc/codecs/wcd934x.c | 2 +- tools/objtool/Documentation/objtool.txt | 10 +- tools/objtool/arch/x86/special.c | 38 +- tools/objtool/builtin-check.c | 146 ++++--- tools/objtool/check.c | 525 ++++++++++++------------ tools/objtool/elf.c | 28 +- tools/objtool/include/objtool/builtin.h | 6 +- tools/objtool/include/objtool/check.h | 3 +- tools/objtool/include/objtool/elf.h | 28 +- tools/objtool/include/objtool/objtool.h | 2 +- tools/objtool/include/objtool/special.h | 4 +- tools/objtool/include/objtool/warn.h | 13 +- tools/objtool/objtool.c | 11 +- tools/objtool/special.c | 12 +- 29 files changed, 477 insertions(+), 456 deletions(-)
Signature · 1 line
2.48.1