22 Feb, 2018

1 commit

  • commit 4675ff05de2d76d167336b368bd07f3fef6ed5a6 upstream.

    Fix up makefiles, remove references, and git rm kmemcheck.

    Link: http://lkml.kernel.org/r/20171007030159.22241-4-alexander.levin@verizon.com
    Signed-off-by: Sasha Levin
    Cc: Steven Rostedt
    Cc: Vegard Nossum
    Cc: Pekka Enberg
    Cc: Michal Hocko
    Cc: Eric W. Biederman
    Cc: Alexander Potapenko
    Cc: Tim Hansen
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds
    Signed-off-by: Greg Kroah-Hartman

    Levin, Alexander (Sasha Levin)
     

18 Jul, 2017

2 commits

  • commit 6807c84652b0 ("x86: Enable KASLR by default") enables KASLR
    by default on x86. While KASLR will confuse gdb which resolve kernel
    symbol address from symbol table of vmlinux. We should turn off KASLR for
    kernel debugging.

    Signed-off-by: Zhouyi Zhou
    Reviewed-by: Kieran Bingham
    Acked-by: Jan Kiszka
    Signed-off-by: Jonathan Corbet

    Zhouyi Zhou
     
  • commit 6807c84652b0 ("x86: Enable KASLR by default") enables KASLR
    by default on x86. While KASLR will confuse gdb which resolve kernel
    symbol address from symbol table of vmlinux. We should turn off KASLR for
    kernel debugging.

    Signed-off-by: Zhouyi Zhou
    Signed-off-by: Jonathan Corbet

    Zhouyi Zhou
     

08 Jul, 2017

1 commit

  • …x/kernel/git/shuah/linux-kselftest

    Pull Kselftest updates from Shuah Khan:
    "This update consists of:

    - TAP13 framework and changes to some tests to convert to TAP13.
    Converting kselftest output to standard format will help identify
    run to run differences and pin point failures easily. TAP13 format
    has been in use for several years and the output is human friendly.

    Please find the specification:
    https://testanything.org/tap-version-13-specification.html

    Credit goes to Tim Bird for recommending TAP13 as a suitable
    format, and to Grag KH for kick starting the work with help from
    Paul Elder and Alice Ferrazzi

    The first phase of the TAp13 conversion is included in this update.
    Future updates will include updates to rest of the tests.

    - Masami Hiramatsu fixed ftrace to run on 4.9 stable kernels.

    - Kselftest documnetation has been converted to ReST format. Document
    now has a new home under Documentation/dev-tools.

    - kselftest_harness.h is now available for general use as a result of
    Mickaël Salaün's work.

    - Several fixes to skip and/or fail tests gracefully on older
    releases"

    * tag 'linux-kselftest-4.13-rc1-update' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest: (48 commits)
    selftests: membarrier: use ksft_* var arg msg api
    selftests: breakpoints: breakpoint_test_arm64: convert test to use TAP13
    selftests: breakpoints: step_after_suspend_test use ksft_* var arg msg api
    selftests: breakpoint_test: use ksft_* var arg msg api
    kselftest: add ksft_print_msg() function to output general information
    kselftest: make ksft_* output functions variadic
    selftests/capabilities: Fix the test_execve test
    selftests: intel_pstate: add .gitignore
    selftests: fix memory-hotplug test
    selftests: add missing test name in memory-hotplug test
    selftests: check percentage range for memory-hotplug test
    selftests: check hot-pluggagble memory for memory-hotplug test
    selftests: typo correction for memory-hotplug test
    selftests: ftrace: Use md5sum to take less time of checking logs
    tools/testing/selftests/sysctl: Add pre-check to the value of writes_strict
    kselftest.rst: do some adjustments after ReST conversion
    selftest/net/Makefile: Specify output with $(OUTPUT)
    selftest/intel_pstate/aperf: Use LDLIBS instead of LDFLAGS
    selftest/memfd/Makefile: Fix build error
    selftests: lib: Skip tests on missing test modules
    ...

    Linus Torvalds
     

07 Jul, 2017

1 commit

  • Kmemleak requires that vmalloc'ed objects have a minimum reference count
    of 2: one in the corresponding vm_struct object and the other owned by
    the vmalloc() caller. There are cases, however, where the original
    vmalloc() returned pointer is lost and, instead, a pointer to vm_struct
    is stored (see free_thread_stack()). Kmemleak currently reports such
    objects as leaks.

    This patch adds support for treating any surplus references to an object
    as additional references to a specified object. It introduces the
    kmemleak_vmalloc() API function which takes a vm_struct pointer and sets
    its surplus reference passing to the actual vmalloc() returned pointer.
    The __vmalloc_node_range() calling site has been modified accordingly.

    Link: http://lkml.kernel.org/r/1495726937-23557-4-git-send-email-catalin.marinas@arm.com
    Signed-off-by: Catalin Marinas
    Reported-by: "Luis R. Rodriguez"
    Cc: Michal Hocko
    Cc: Andy Lutomirski
    Cc: "Luis R. Rodriguez"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Catalin Marinas
     

04 Jul, 2017

1 commit

  • Pull documentation updates from Jonathan Corbet:
    "There has been a fair amount of activity in the docs tree this time
    around. Highlights include:

    - Conversion of a bunch of security documentation into RST

    - The conversion of the remaining DocBook templates by The Amazing
    Mauro Machine. We can now drop the entire DocBook build chain.

    - The usual collection of fixes and minor updates"

    * tag 'docs-4.13' of git://git.lwn.net/linux: (90 commits)
    scripts/kernel-doc: handle DECLARE_HASHTABLE
    Documentation: atomic_ops.txt is core-api/atomic_ops.rst
    Docs: clean up some DocBook loose ends
    Make the main documentation title less Geocities
    Docs: Use kernel-figure in vidioc-g-selection.rst
    Docs: fix table problems in ras.rst
    Docs: Fix breakage with Sphinx 1.5 and upper
    Docs: Include the Latex "ifthen" package
    doc/kokr/howto: Only send regression fixes after -rc1
    docs-rst: fix broken links to dynamic-debug-howto in kernel-parameters
    doc: Document suitability of IBM Verse for kernel development
    Doc: fix a markup error in coding-style.rst
    docs: driver-api: i2c: remove some outdated information
    Documentation: DMA API: fix a typo in a function name
    Docs: Insert missing space to separate link from text
    doc/ko_KR/memory-barriers: Update control-dependencies example
    Documentation, kbuild: fix typo "minimun" -> "minimum"
    docs: Fix some formatting issues in request-key.rst
    doc: ReSTify keys-trusted-encrypted.txt
    doc: ReSTify keys-request-key.txt
    ...

    Linus Torvalds
     

27 Jun, 2017

1 commit


09 Jun, 2017

1 commit

  • The sparse-based checking for non-RCU accesses to RCU-protected pointers
    has been around for a very long time, and it is now the only type of
    sparse-based checking that is optional. This commit therefore makes
    it unconditional.

    Reported-by: Ingo Molnar
    Signed-off-by: Paul E. McKenney
    Cc: Fengguang Wu

    Paul E. McKenney
     

08 Jun, 2017

3 commits


16 May, 2017

2 commits


10 Mar, 2017

1 commit

  • Fix typos and add the following to the scripts/spelling.txt:

    disble||disable
    disbled||disabled

    I kept the TSL2563_INT_DISBLED in /drivers/iio/light/tsl2563.c
    untouched. The macro is not referenced at all, but this commit is
    touching only comment blocks just in case.

    Link: http://lkml.kernel.org/r/1481573103-11329-20-git-send-email-yamada.masahiro@socionext.com
    Signed-off-by: Masahiro Yamada
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Masahiro Yamada
     

16 Feb, 2017

1 commit

  • Add documentation of -DCONFIG_SPARSE_RCU_POINTER.
    I started to add documentation of -D__CHECK_ENDIAN__ as well, but
    discovered I'm too late; that's now enabled by default.

    Signed-off-by: Matthew Wilcox
    Signed-off-by: Jonathan Corbet

    Matthew Wilcox
     

16 Dec, 2016

2 commits


03 Nov, 2016

1 commit


27 Oct, 2016

1 commit


12 Oct, 2016

1 commit

  • Some of the kmemleak_*() callbacks in memblock, bootmem, CMA convert a
    physical address to a virtual one using __va(). However, such physical
    addresses may sometimes be located in highmem and using __va() is
    incorrect, leading to inconsistent object tracking in kmemleak.

    The following functions have been added to the kmemleak API and they take
    a physical address as the object pointer. They only perform the
    corresponding action if the address has a lowmem mapping:

    kmemleak_alloc_phys
    kmemleak_free_part_phys
    kmemleak_not_leak_phys
    kmemleak_ignore_phys

    The affected calling places have been updated to use the new kmemleak
    API.

    Link: http://lkml.kernel.org/r/1471531432-16503-1-git-send-email-catalin.marinas@arm.com
    Signed-off-by: Catalin Marinas
    Reported-by: Vignesh R
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Catalin Marinas
     

20 Aug, 2016

1 commit


19 Aug, 2016

10 commits