summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorMateusz Jurczyk <mjurczyk@google.com>2017-05-24 15:55:00 +0200
committerThomas Gleixner <tglx@linutronix.de>2017-05-24 16:18:12 +0200
commitfc152d22d6e9fac95a9a990e6c29510bdf1b9425 (patch)
treec784fbbc87c38aa14979ec3ff7d4a70741761ffa /tools/perf/scripts/python/bin
parentcbed27cdf0e3f7ea3b2259e86b9e34df02be3fe4 (diff)
downloadkernel-fc152d22d6e9fac95a9a990e6c29510bdf1b9425.tar.gz
x86/alternatives: Prevent uninitialized stack byte read in apply_alternatives()
In the current form of the code, if a->replacementlen is 0, the reference to *insnbuf for comparison touches potentially garbage memory. While it doesn't affect the execution flow due to the subsequent a->replacementlen comparison, it is (rightly) detected as use of uninitialized memory by a runtime instrumentation currently under my development, and could be detected as such by other tools in the future, too (e.g. KMSAN). Fix the "false-positive" by reordering the conditions to first check the replacement instruction length before referencing specific opcode bytes. Signed-off-by: Mateusz Jurczyk <mjurczyk@google.com> Reviewed-by: Borislav Petkov <bp@suse.de> Cc: Andy Lutomirski <luto@kernel.org> Link: http://lkml.kernel.org/r/20170524135500.27223-1-mjurczyk@google.com Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
href='/distro/kernel/commit/drivers/mtd/nand/raw/denali.c?h=linux-5.1.y&id=858838b87ef542c35b5401a6469d162d103d1d8f'>mtd: rawnand: Pass a nand_chip object to chip->setup_data_interface()Boris Brezillon 2018-10-03mtd: rawnand: Pass a nand_chip object to chip->erase()Boris Brezillon 2018-10-03mtd: rawnand: Pass a nand_chip object to chip->waitfunc()Boris Brezillon 2018-10-03mtd: rawnand: Pass a nand_chip object to chip->dev_ready()Boris Brezillon 2018-10-03mtd: rawnand: Pass a nand_chip object to chip->cmd_ctrl()Boris Brezillon 2018-10-03mtd: rawnand: Pass a nand_chip object to chip->select_chip()Boris Brezillon 2018-10-03mtd: rawnand: Pass a nand_chip object to chip->write_xxx() hooksBoris Brezillon 2018-10-03mtd: rawnand: Pass a nand_chip object to chip->read_xxx() hooksBoris Brezillon 2018-10-03mtd: rawnand: Pass a nand_chip object to ecc->write_xxx() hooksBoris Brezillon 2018-10-03mtd: rawnand: Pass a nand_chip object to ecc->read_xxx() hooksBoris Brezillon 2018-10-03mtd: rawnand: Pass a nand_chip object to nand_release()Boris Brezillon 2018-10-03mtd: rawnand: Pass a nand_chip object to nand_scan()Boris Brezillon 2018-09-15mtd: rawnand: denali: fix a race condition when DMA is kickedMasahiro Yamada 2018-09-04mtd: rawnand: denali: use SPDX-License-Identifier and fix license mismatchMasahiro Yamada 2018-09-04mtd: rawnand: Get rid of the ->read_word() hookBoris Brezillon 2018-08-27mtd: rawnand: denali: do not pass zero maxchips to nand_scan()Masahiro Yamada 2018-07-31mtd: rawnand: denali: convert to nand_scan()Miquel Raynal 2018-07-18mtd: rawnand: denali: optimize timing parameters for data interfaceMasahiro Yamada 2018-07-18mtd: rawnand: denali: use helper function for ecc setupAbhishek Sahu 2018-03-29mtd: rawnand: denali: fix probe function error pathMiquel Raynal 2018-02-16mtd: nand: move raw NAND related code to the raw/ subdirBoris Brezillon