21 Jan, 2019

3 commits

  • Pull gcc-plugins fixes from Kees Cook:
    "Fix ARM per-task stack protector plugin under GCC 9 (Ard Biesheuvel)"

    * tag 'gcc-plugins-v5.0-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux:
    gcc-plugins: arm_ssp_per_task_plugin: fix for GCC 9+
    gcc-plugins: arm_ssp_per_task_plugin: sign extend the SP mask

    Linus Torvalds
     
  • GCC 9 reworks the way the references to the stack canary are
    emitted, to prevent the value from being spilled to the stack
    before the final comparison in the epilogue, defeating the
    purpose, given that the spill slot is under control of the
    attacker that we are protecting ourselves from.

    Since our canary value address is obtained without accessing
    memory (as opposed to pre-v7 code that will obtain it from a
    literal pool), it is unlikely (although not guaranteed) that
    the compiler will spill the canary value in the same way, so
    let's just disable this improvement when building with GCC9+.

    Signed-off-by: Ard Biesheuvel
    Signed-off-by: Kees Cook

    Ard Biesheuvel
     
  • The ARM per-task stack protector GCC plugin hits an assert in
    the compiler in some case, due to the fact the the SP mask
    expression is not sign-extended as it should be. So fix that.

    Suggested-by: Kugan Vivekanandarajah
    Signed-off-by: Ard Biesheuvel
    Signed-off-by: Kees Cook

    Ard Biesheuvel
     

14 Jan, 2019

2 commits


13 Jan, 2019

1 commit

  • Pull dma_zalloc_coherent() removal from Christoph Hellwig:
    "We've always had a weird situation around dma_zalloc_coherent. To
    safely support mapping the allocations to userspace major
    architectures like x86 and arm have always zeroed allocations from
    dma_alloc_coherent, but a couple other architectures were missing that
    zeroing either always or in corner cases.

    Then later we grew anothe dma_zalloc_coherent interface to explicitly
    request zeroing, but that just added __GFP_ZERO to the allocation
    flags, which for some allocators that didn't end up using the page
    allocator ended up being a no-op and still not zeroing the
    allocations.

    So for this merge window I fixed up all remaining architectures to
    zero the memory in dma_alloc_coherent, and made dma_zalloc_coherent a
    no-op wrapper around dma_alloc_coherent, which fixes all of the above
    issues.

    dma_zalloc_coherent is now pointless and can go away, and Luis helped
    me writing a cocchinelle script and patch series to kill it, which I
    think we should apply now just after -rc1 to finally settle these
    issue"

    * tag 'remove-dma_zalloc_coherent-5.0' of git://git.infradead.org/users/hch/dma-mapping:
    dma-mapping: remove dma_zalloc_coherent()
    cross-tree: phase out dma_zalloc_coherent() on headers
    cross-tree: phase out dma_zalloc_coherent()

    Linus Torvalds
     

09 Jan, 2019

1 commit

  • Commit

    4cd24de3a098 ("x86/retpoline: Make CONFIG_RETPOLINE depend on compiler support")

    replaced the RETPOLINE define with CONFIG_RETPOLINE checks. Remove the
    remaining pieces.

    [ bp: Massage commit message. ]

    Fixes: 4cd24de3a098 ("x86/retpoline: Make CONFIG_RETPOLINE depend on compiler support")
    Signed-off-by: WANG Chao
    Signed-off-by: Borislav Petkov
    Reviewed-by: Zhenzhong Duan
    Reviewed-by: Masahiro Yamada
    Cc: "H. Peter Anvin"
    Cc: Andi Kleen
    Cc: Andrew Morton
    Cc: Andy Lutomirski
    Cc: Arnd Bergmann
    Cc: Daniel Borkmann
    Cc: David Woodhouse
    Cc: Geert Uytterhoeven
    Cc: Jessica Yu
    Cc: Jiri Kosina
    Cc: Kees Cook
    Cc: Konrad Rzeszutek Wilk
    Cc: Luc Van Oostenryck
    Cc: Michal Marek
    Cc: Miguel Ojeda
    Cc: Peter Zijlstra
    Cc: Tim Chen
    Cc: Vasily Gorbik
    Cc: linux-kbuild@vger.kernel.org
    Cc: srinivas.eeda@oracle.com
    Cc: stable
    Cc: x86-ml
    Link: https://lkml.kernel.org/r/20181210163725.95977-1-chao.wang@ucloud.cn

    WANG Chao
     

08 Jan, 2019

1 commit

  • dma_zalloc_coherent() is no longer needed as it has no users because
    dma_alloc_coherent() already zeroes out memory for us.

    The Coccinelle grammar rule that used to check for dma_alloc_coherent()
    + memset() is modified so that it just tells the user that the memset is
    not needed anymore.

    Suggested-by: Christoph Hellwig
    Signed-off-by: Luis Chamberlain
    Signed-off-by: Christoph Hellwig

    Luis Chamberlain
     

06 Jan, 2019

13 commits


05 Jan, 2019

3 commits

  • As per Documentation/process/submitting-patches, Co-developed-by is a
    valid signature.

    This commit removes the warning.

    Link: http://lkml.kernel.org/r/1544808928-20002-3-git-send-email-jorge.ramirez-ortiz@linaro.org
    Signed-off-by: Jorge Ramirez-Ortiz
    Cc: Greg Kroah-Hartman
    Cc: Himanshu Jha
    Cc: Joe Perches
    Cc: Jonathan Cameron
    Cc: Jonathan Corbet
    Cc: Niklas Cassel
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jorge Ramirez-Ortiz
     
  • A bug is present in GDB which causes early string termination when
    parsing variables. This has been reported [0], but we should ensure
    that we can support at least basic printing of the core kernel strings.

    For current gdb version (has been tested with 7.3 and 8.1), 'lx-version'
    only prints one character.

    (gdb) lx-version
    L(gdb)

    This can be fixed by casting 'linux_banner' as (char *).

    (gdb) lx-version
    Linux version 4.19.0-rc1+ (changbin@acer) (gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3)) #21 SMP Sat Sep 1 21:43:30 CST 2018

    [0] https://sourceware.org/bugzilla/show_bug.cgi?id=20077

    [kbingham@kernel.org: add detail to commit message]
    Link: http://lkml.kernel.org/r/20181111162035.8356-1-kieran.bingham@ideasonboard.com
    Fixes: 2d061d999424 ("scripts/gdb: add version command")
    Signed-off-by: Du Changbin
    Signed-off-by: Kieran Bingham
    Acked-by: Jan Kiszka
    Cc: Jan Kiszka
    Cc: Jason Wessel
    Cc: Daniel Thompson
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Du Changbin
     
  • These declarations should generally be static const to avoid poor
    compilation and runtime performance where compilers tend to initialize
    the const declaration for every call instead of using .rodata for the
    string.

    Miscellanea:

    - Convert spaces to tabs for indentation in 2 adjacent checks

    Link: http://lkml.kernel.org/r/10ea5f4b087dc911e41e187a4a2b5e79c7529aa3.camel@perches.com
    Signed-off-by: Joe Perches
    Cc: Rasmus Villemoes
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     

01 Jan, 2019

1 commit

  • Pull tracing updates from Steven Rostedt:

    - Rework of the kprobe/uprobe and synthetic events to consolidate all
    the dynamic event code. This will make changes in the future easier.

    - Partial rewrite of the function graph tracing infrastructure. This
    will allow for multiple users of hooking onto functions to get the
    callback (return) of the function. This is the ground work for having
    kprobes and function graph tracer using one code base.

    - Clean up of the histogram code that will facilitate adding more
    features to the histograms in the future.

    - Addition of str_has_prefix() and a few use cases. There currently is
    a similar function strstart() that is used in a few places, but only
    returns a bool and not a length. These instances will be removed in
    the future to use str_has_prefix() instead.

    - A few other various clean ups as well.

    * tag 'trace-v4.21' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace: (57 commits)
    tracing: Use the return of str_has_prefix() to remove open coded numbers
    tracing: Have the historgram use the result of str_has_prefix() for len of prefix
    tracing: Use str_has_prefix() instead of using fixed sizes
    tracing: Use str_has_prefix() helper for histogram code
    string.h: Add str_has_prefix() helper function
    tracing: Make function ‘ftrace_exports’ static
    tracing: Simplify printf'ing in seq_print_sym
    tracing: Avoid -Wformat-nonliteral warning
    tracing: Merge seq_print_sym_short() and seq_print_sym_offset()
    tracing: Add hist trigger comments for variable-related fields
    tracing: Remove hist trigger synth_var_refs
    tracing: Use hist trigger's var_ref array to destroy var_refs
    tracing: Remove open-coding of hist trigger var_ref management
    tracing: Use var_refs[] for hist trigger reference checking
    tracing: Change strlen to sizeof for hist trigger static strings
    tracing: Remove unnecessary hist trigger struct field
    tracing: Fix ftrace_graph_get_ret_stack() to use task and not current
    seq_buf: Use size_t for len in seq_buf_puts()
    seq_buf: Make seq_buf_puts() null-terminate the buffer
    arm64: Use ftrace_graph_get_ret_stack() instead of curr_ret_stack
    ...

    Linus Torvalds
     

30 Dec, 2018

3 commits

  • Pull Kconfig updates from Masahiro Yamada:

    - support -y option for merge_config.sh to avoid downgrading =y to =m

    - remove S_OTHER symbol type, and touch include/config/*.h files correctly

    - fix file name and line number in lexer warnings

    - fix memory leak when EOF is encountered in quotation

    - resolve all shift/reduce conflicts of the parser

    - warn no new line at end of file

    - make 'source' statement more strict to take only string literal

    - rewrite the lexer and remove the keyword lookup table

    - convert to SPDX License Identifier

    - compile C files independently instead of including them from zconf.y

    - fix various warnings of gconfig

    - misc cleanups

    * tag 'kconfig-v4.21' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild: (39 commits)
    kconfig: surround dbg_sym_flags with #ifdef DEBUG to fix gconf warning
    kconfig: split images.c out of qconf.cc/gconf.c to fix gconf warnings
    kconfig: add static qualifiers to fix gconf warnings
    kconfig: split the lexer out of zconf.y
    kconfig: split some C files out of zconf.y
    kconfig: convert to SPDX License Identifier
    kconfig: remove keyword lookup table entirely
    kconfig: update current_pos in the second lexer
    kconfig: switch to ASSIGN_VAL state in the second lexer
    kconfig: stop associating kconf_id with yylval
    kconfig: refactor end token rules
    kconfig: stop supporting '.' and '/' in unquoted words
    treewide: surround Kconfig file paths with double quotes
    microblaze: surround string default in Kconfig with double quotes
    kconfig: use T_WORD instead of T_VARIABLE for variables
    kconfig: use specific tokens instead of T_ASSIGN for assignments
    kconfig: refactor scanning and parsing "option" properties
    kconfig: use distinct tokens for type and default properties
    kconfig: remove redundant token defines
    kconfig: rename depends_list to comment_option_list
    ...

    Linus Torvalds
     
  • Pull Kbuild updates from Masahiro Yamada:
    "Kbuild core:
    - remove unneeded $(call cc-option,...) switches
    - consolidate Clang compiler flags into CLANG_FLAGS
    - announce the deprecation of SUBDIRS
    - fix single target build for external module
    - simplify the dependencies of 'prepare' stage targets
    - allow fixdep to directly write to .*.cmd files
    - simplify dependency generation for CONFIG_TRIM_UNUSED_KSYMS
    - change if_changed_rule to accept multi-line recipe
    - move .SECONDARY special target to scripts/Kbuild.include
    - remove redundant 'set -e'
    - improve parallel execution for CONFIG_HEADERS_CHECK
    - misc cleanups

    Treewide fixes and cleanups
    - set Clang flags correctly for PowerPC boot images
    - fix UML build error with CONFIG_GCC_PLUGINS
    - remove unneeded patterns from .gitignore files
    - refactor firmware/Makefile
    - remove unneeded rules for *offsets.s
    - avoid unneeded regeneration of intermediate .s files
    - clean up ./Kbuild

    Modpost:
    - remove unused -M, -K options
    - fix false positive warnings about section mismatch
    - use simple devtable lookup instead of linker magic
    - misc cleanups

    Coccinelle:
    - relax boolinit.cocci checks for overall consistency
    - fix warning messages of boolinit.cocci

    Other tools:
    - improve -dirty check of scripts/setlocalversion
    - add a tool to generate compile_commands.json from .*.cmd files"

    * tag 'kbuild-v4.21' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild: (51 commits)
    kbuild: remove unused cmd_gentimeconst
    kbuild: remove $(obj)/ prefixes in ./Kbuild
    treewide: add intermediate .s files to targets
    treewide: remove explicit rules for *offsets.s
    firmware: refactor firmware/Makefile
    firmware: remove unnecessary patterns from .gitignore
    scripts: remove unnecessary ihex2fw and check-lc_ctypes from .gitignore
    um: remove unused filechk_gen_header in Makefile
    scripts: add a tool to produce a compile_commands.json file
    kbuild: add -Werror=implicit-int flag unconditionally
    kbuild: add -Werror=strict-prototypes flag unconditionally
    kbuild: add -fno-PIE flag unconditionally
    scripts: coccinelle: Correct warning message
    scripts: coccinelle: only suggest true/false in files that already use them
    kbuild: handle part-of-module correctly for *.ll and *.symtypes
    kbuild: refactor part-of-module
    kbuild: refactor quiet_modtag
    kbuild: remove redundant quiet_modtag for $(obj-m)
    kbuild: refactor Makefile.asm-generic
    user/Makefile: Fix typo and capitalization in comment section
    ...

    Linus Torvalds
     
  • Pull documentation update from Jonathan Corbet:
    "A fairly normal cycle for documentation stuff. We have a new document
    on perf security, more Italian translations, more improvements to the
    memory-management docs, improvements to the pathname lookup
    documentation, and the usual array of smaller fixes.

    As is often the case, there are a few reaches outside of
    Documentation/ to adjust kerneldoc comments"

    * tag 'docs-5.0' of git://git.lwn.net/linux: (38 commits)
    docs: improve pathname-lookup document structure
    configfs: fix wrong name of struct in documentation
    docs/mm-api: link slab_common.c to "The Slab Cache" section
    slab: make kmem_cache_create{_usercopy} description proper kernel-doc
    doc:process: add links where missing
    docs/core-api: make mm-api.rst more structured
    x86, boot: documentation whitespace fixup
    Documentation: devres: note checking needs when converting
    doc:it: add some process/* translations
    doc:it: fixes in process/1.Intro
    Documentation: convert path-lookup from markdown to resturctured text
    Documentation/admin-guide: update admin-guide index.rst
    Documentation/admin-guide: introduce perf-security.rst file
    scripts/kernel-doc: Fix struct and struct field attribute processing
    Documentation: dev-tools: Fix typos in index.rst
    Correct gen_init_cpio tool's documentation
    Document /proc/pid PID reuse behavior
    Documentation: update path-lookup.md for parallel lookups
    Documentation: Use "while" instead of "whilst"
    dmaengine: Add mailing list address to the documentation
    ...

    Linus Torvalds
     

29 Dec, 2018

8 commits

  • Pull Devicetree updates from Rob Herring:
    "The biggest highlight here is the start of using json-schema for DT
    bindings. Being able to validate bindings has been discussed for years
    with little progress.

    - Initial support for DT bindings using json-schema language. This is
    the start of converting DT bindings from free-form text to a
    structured format.

    - Reworking of initrd address initialization. This moves to using the
    phys address instead of virt addr in the DT parsing code. This
    rework was motivated by CONFIG_DEV_BLK_INITRD causing unnecessary
    rebuilding of lots of files.

    - Fix stale phandle entries in phandle cache

    - DT overlay validation improvements. This exposed several memory
    leak bugs which have been fixed.

    - Use node name and device_type helper functions in DT code

    - Last remaining conversions to using %pOFn printk specifier instead
    of device_node.name directly

    - Create new common RTC binding doc and move all trivial RTC devices
    out of trivial-devices.txt.

    - New bindings for Freescale MAG3110 magnetometer, Cadence Sierra
    PHY, and Xen shared memory

    - Update dtc to upstream version v1.4.7-57-gf267e674d145"

    * tag 'devicetree-for-4.21' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux: (68 commits)
    of: __of_detach_node() - remove node from phandle cache
    of: of_node_get()/of_node_put() nodes held in phandle cache
    gpio-omap.txt: add reg and interrupts properties
    dt-bindings: mrvl,intc: fix a trivial typo
    dt-bindings: iio: magnetometer: add dt-bindings for freescale mag3110
    dt-bindings: Convert trivial-devices.txt to json-schema
    dt-bindings: arm: mrvl: amend Browstone compatible string
    dt-bindings: arm: Convert Tegra board/soc bindings to json-schema
    dt-bindings: arm: Convert ZTE board/soc bindings to json-schema
    dt-bindings: arm: Add missing Xilinx boards
    dt-bindings: arm: Convert Xilinx board/soc bindings to json-schema
    dt-bindings: arm: Convert VIA board/soc bindings to json-schema
    dt-bindings: arm: Convert ST STi board/soc bindings to json-schema
    dt-bindings: arm: Convert SPEAr board/soc bindings to json-schema
    dt-bindings: arm: Convert CSR SiRF board/soc bindings to json-schema
    dt-bindings: arm: Convert QCom board/soc bindings to json-schema
    dt-bindings: arm: Convert TI nspire board/soc bindings to json-schema
    dt-bindings: arm: Convert TI davinci board/soc bindings to json-schema
    dt-bindings: arm: Convert Calxeda board/soc bindings to json-schema
    dt-bindings: arm: Convert Altera board/soc bindings to json-schema
    ...

    Linus Torvalds
     
  • New declarations and identifier (__always_inline).

    Link: http://lkml.kernel.org/r/154505048571.504.18330420599768007443.stgit@localhost.localdomain
    Signed-off-by: Kirill Tkhai
    Cc: Masahiro Yamada
    Cc: Constantine Shulyupin
    Cc: Kirill Tkhai
    Cc: Joey Pabalinas
    Cc: Matthew Wilcox
    Cc: Arend van Spriel
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Kirill Tkhai
     
  • Add a script that will run spdxcheck.py through a couple of self tests to
    simplify validation in the future. The tests are run for both Python 2
    and Python 3 to make sure all changes to the script remain compatible
    across both versions.

    The script tests a regular text file (Makefile) for basic sanity checks
    and then runs it on a binary file (Documentation/logo.gif) to make sure it
    works in both cases. It also tests opening files passed on the command
    line as well as piped files read from standard input. Finally a run on
    the complete tree will be performed to catch any other potential issues.

    Link: http://lkml.kernel.org/r/20181212131210.28024-2-thierry.reding@gmail.com
    Signed-off-by: Thierry Reding
    Thomas Gleixner
    Cc: Jonathan Corbet
    Cc: Joe Perches
    Cc: Jeremy Cline
    Cc: Uwe Kleine-König
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Thierry Reding
     
  • This is to track dynamic amount of stack growth for aarch64, so it is
    possible to print out offensive functions that may consume too much stack.
    For example,

    0xffff2000084d1270 try_to_unmap_one [vmlinux]: Dynamic (0xcf0)
    0xffff200008538358 migrate_page_move_mapping [vmlinux]: Dynamic (0xc60)
    0xffff2000081276c8 copy_process.isra.2 [vmlinux]: Dynamic (0xb20)
    0xffff200008424958 show_free_areas [vmlinux]: Dynamic (0xb40)
    0xffff200008545178 __split_huge_pmd_locked [vmlinux]: Dynamic (0xb30)
    0xffff200008555120 collapse_shmem [vmlinux]: Dynamic (0xbc0)
    0xffff20000862e0d0 do_direct_IO [vmlinux]: Dynamic (0xb70)
    0xffff200008cc0aa0 md_do_sync [vmlinux]: Dynamic (0xb90)

    Link: http://lkml.kernel.org/r/20181208025143.39363-1-cai@lca.pw
    Signed-off-by: Qian Cai
    Cc: Catalin Marinas
    Cc: Will Deacon
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Qian Cai
     
  • Running something like:

    decodecode vmlinux .

    leads to interested results where not only the leading "." gets stripped
    from the displayed paths, but also anywhere in the string, displaying
    something like:

    kvm_vcpu_check_block (arch/arm64/kvm/virt/kvm/kvm_mainc:2141)

    which doesn't help further processing.

    Fix it by only stripping the base path if it is a prefix of the path.

    Link: http://lkml.kernel.org/r/20181210174659.31054-3-marc.zyngier@arm.com
    Signed-off-by: Marc Zyngier
    Cc: Will Deacon
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Marc Zyngier
     
  • When running decodecode natively on arm64, ARCH is likely not to be set,
    and we end-up with .4byte instead of .inst when generating the
    disassembly.

    Similar effects would occur if running natively on a 32bit ARM platform,
    although that's even less popular.

    A simple workaround is to populate ARCH when it is not set and that we're
    running on an arm/arm64 system.

    Link: http://lkml.kernel.org/r/20181210174659.31054-2-marc.zyngier@arm.com
    Signed-off-by: Marc Zyngier
    Acked-by: Will Deacon
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Marc Zyngier
     
  • Since __LINE__ is part of the symbol created by __ADDRESSABLE, almost
    any change causes those symbols to disappear and get reincarnated, e.g.

    add/remove: 4/4 grow/shrink: 0/3 up/down: 32/-171 (-139)
    Function old new delta
    __addressable_tracing_set_default_clock8649 - 8 +8
    __addressable_tracer_init_tracefs8631 - 8 +8
    __addressable_ftrace_dump8383 - 8 +8
    __addressable_clear_boot_tracer8632 - 8 +8
    __addressable_tracing_set_default_clock8650 8 - -8
    __addressable_tracer_init_tracefs8632 8 - -8
    __addressable_ftrace_dump8384 8 - -8
    __addressable_clear_boot_tracer8633 8 - -8
    trace_default_header 663 642 -21
    tracing_mark_raw_write 406 355 -51
    tracing_mark_write 624 557 -67
    Total: Before=63889, After=63750, chg -0.22%

    They're small and in .discard, so ignore them, leading to more useful

    add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-139 (-139)
    Function old new delta
    trace_default_header 663 642 -21
    tracing_mark_raw_write 406 355 -51
    tracing_mark_write 624 557 -67
    Total: Before=63721, After=63582, chg -0.22%

    Link: http://lkml.kernel.org/r/20181102210030.8383-1-linux@rasmusvillemoes.dk
    Signed-off-by: Rasmus Villemoes
    Reviewed-by: Andy Shevchenko
    Cc: Alexey Dobriyan
    Cc: Ingo Molnar
    Cc: Dominik Brodowski
    Cc: Maninder Singh
    Cc: Matteo Croce
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rasmus Villemoes
     
  • This commit splits the current CONFIG_KASAN config option into two:
    1. CONFIG_KASAN_GENERIC, that enables the generic KASAN mode (the one
    that exists now);
    2. CONFIG_KASAN_SW_TAGS, that enables the software tag-based KASAN mode.

    The name CONFIG_KASAN_SW_TAGS is chosen as in the future we will have
    another hardware tag-based KASAN mode, that will rely on hardware memory
    tagging support in arm64.

    With CONFIG_KASAN_SW_TAGS enabled, compiler options are changed to
    instrument kernel files with -fsantize=kernel-hwaddress (except the ones
    for which KASAN_SANITIZE := n is set).

    Both CONFIG_KASAN_GENERIC and CONFIG_KASAN_SW_TAGS support both
    CONFIG_KASAN_INLINE and CONFIG_KASAN_OUTLINE instrumentation modes.

    This commit also adds empty placeholder (for now) implementation of
    tag-based KASAN specific hooks inserted by the compiler and adjusts
    common hooks implementation.

    While this commit adds the CONFIG_KASAN_SW_TAGS config option, this option
    is not selectable, as it depends on HAVE_ARCH_KASAN_SW_TAGS, which we will
    enable once all the infrastracture code has been added.

    Link: http://lkml.kernel.org/r/b2550106eb8a68b10fefbabce820910b115aa853.1544099024.git.andreyknvl@google.com
    Signed-off-by: Andrey Konovalov
    Reviewed-by: Andrey Ryabinin
    Reviewed-by: Dmitry Vyukov
    Cc: Christoph Lameter
    Cc: Mark Rutland
    Cc: Will Deacon
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrey Konovalov
     

28 Dec, 2018

4 commits