02 Nov, 2017

1 commit

  • Many source files in the tree are missing licensing information, which
    makes it harder for compliance tools to determine the correct license.

    By default all files without license information are under the default
    license of the kernel, which is GPL version 2.

    Update the files which contain no license information with the 'GPL-2.0'
    SPDX license identifier. The SPDX identifier is a legally binding
    shorthand, which can be used instead of the full boiler plate text.

    This patch is based on work done by Thomas Gleixner and Kate Stewart and
    Philippe Ombredanne.

    How this work was done:

    Patches were generated and checked against linux-4.14-rc6 for a subset of
    the use cases:
    - file had no licensing information it it.
    - file was a */uapi/* one with no licensing information in it,
    - file was a */uapi/* one with existing licensing information,

    Further patches will be generated in subsequent months to fix up cases
    where non-standard license headers were used, and references to license
    had to be inferred by heuristics based on keywords.

    The analysis to determine which SPDX License Identifier to be applied to
    a file was done in a spreadsheet of side by side results from of the
    output of two independent scanners (ScanCode & Windriver) producing SPDX
    tag:value files created by Philippe Ombredanne. Philippe prepared the
    base worksheet, and did an initial spot review of a few 1000 files.

    The 4.13 kernel was the starting point of the analysis with 60,537 files
    assessed. Kate Stewart did a file by file comparison of the scanner
    results in the spreadsheet to determine which SPDX license identifier(s)
    to be applied to the file. She confirmed any determination that was not
    immediately clear with lawyers working with the Linux Foundation.

    Criteria used to select files for SPDX license identifier tagging was:
    - Files considered eligible had to be source code files.
    - Make and config files were included as candidates if they contained >5
    lines of source
    - File already had some variant of a license header in it (even if
    Reviewed-by: Philippe Ombredanne
    Reviewed-by: Thomas Gleixner
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     

29 Jun, 2017

1 commit

  • With CONFIG_RAS disabled, we get two harmless warnings about
    unused functions:

    include/linux/ras.h:37:13: error: 'log_arm_hw_error' defined but not used [-Werror=unused-function]
    static void log_arm_hw_error(struct cper_sec_proc_arm *err) { return; }
    include/linux/ras.h:33:13: error: 'log_non_standard_event' defined but not used [-Werror=unused-function]
    static void log_non_standard_event(const guid_t *sec_type,

    Clearly these are meant to be 'inline', like the other stubs
    in the same header.

    Fixes: 297b64c74385 ("ras: acpi / apei: generate trace event for unrecognized CPER section")
    Fixes: e9279e83ad1f ("trace, ras: add ARM processor error trace event")
    Acked-by: Borislav Petkov
    Signed-off-by: Arnd Bergmann
    Signed-off-by: Will Deacon

    Arnd Bergmann
     

23 Jun, 2017

2 commits

  • Currently there are trace events for the various RAS
    errors with the exception of ARM processor type errors.
    Add a new trace event for such errors so that the user
    will know when they occur. These trace events are
    consistent with the ARM processor error section type
    defined in UEFI 2.6 spec section N.2.4.4.

    Signed-off-by: Tyler Baicar
    Acked-by: Steven Rostedt
    Reviewed-by: Xie XiuQi
    Signed-off-by: Will Deacon

    Tyler Baicar
     
  • The UEFI spec includes non-standard section type support in the
    Common Platform Error Record. This is defined in section N.2.3 of
    UEFI version 2.5.

    Currently if the CPER section's type (UUID) does not match any
    section type that the kernel knows how to parse, a trace event is
    not generated.

    Generate a trace event which contains the raw error data for
    non-standard section type error records.

    Signed-off-by: Tyler Baicar
    CC: Jonathan (Zhixiong) Zhang
    Tested-by: Shiju Jose
    Signed-off-by: Will Deacon

    Tyler Baicar
     

28 Mar, 2017

1 commit

  • Introduce a simple data structure for collecting correctable errors
    along with accessors. More detailed description in the code itself.

    The error decoding is done with the decoding chain now and
    mce_first_notifier() gets to see the error first and the CEC decides
    whether to log it and then the rest of the chain doesn't hear about it -
    basically the main reason for the CE collector - or to continue running
    the notifiers.

    When the CEC hits the action threshold, it will try to soft-offine the
    page containing the ECC and then the whole decoding chain gets to see
    the error.

    Signed-off-by: Borislav Petkov
    Cc: Linus Torvalds
    Cc: Peter Zijlstra
    Cc: Thomas Gleixner
    Cc: linux-edac
    Link: http://lkml.kernel.org/r/20170327093304.10683-5-bp@alien8.de
    Signed-off-by: Ingo Molnar

    Borislav Petkov
     

26 Jun, 2014

1 commit

  • Implement a new debugfs interface for RAS susbsystem.
    A file named daemon_active is added there accordingly.
    This file is used to track if user space daemon accesses
    perf/trace interface or not. One can track which daemon
    opens it via "lsof /path/to/debugfs/ras/daemon_active".

    Signed-off-by: Chen, Gong
    Link: http://lkml.kernel.org/r/1402475691-30045-5-git-send-email-gong.chen@linux.intel.com
    Signed-off-by: Borislav Petkov
    Signed-off-by: Tony Luck

    Chen, Gong