1. 24 9月, 2014 3 次提交
    • T
      attribute_container: fix whitespace errors · 24a7d36a
      Tina Johnson 提交于
      This is a clean-up patch to the attribute_container.c file to fix
      the whitespace errors.
      Signed-off-by: NTina Johnson <tinajohnson.1234@gmail.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      24a7d36a
    • B
      drivers/base: Fix length checks in create_syslog_header()/dev_vprintk_emit() · 655e5b7c
      Ben Hutchings 提交于
      snprintf() returns the number of bytes that could have been written
      (excluding the null), not the actual number of bytes written.  Given a
      long enough subsystem or device name, these functions will advance
      beyond the end of the on-stack buffer in dev_vprintk_exit(), resulting
      in an information leak or stack corruption.  I don't know whether such
      a long name is currently possible.
      
      In case snprintf() returns a value >= the buffer size, do not add
      structured logging information.  Also WARN if this happens, so we can
      fix the driver or increase the buffer size.
      Signed-off-by: NBen Hutchings <ben@decadent.org.uk>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      655e5b7c
    • J
      device coredump: add new device coredump class · 833c9545
      Johannes Berg 提交于
      Many devices run firmware and/or complex hardware, and most of that
      can have bugs. When it misbehaves, however, it is often much harder
      to debug than software running on the host.
      
      Introduce a "device coredump" mechanism to allow dumping internal
      device/firmware state through a generalized mechanism. As devices
      are different and information needed can vary accordingly, this
      doesn't prescribe a file format - it just provides mechanism to
      get data to be able to capture it in a generalized way (e.g. in
      distributions.)
      
      The dumped data will be readable in sysfs in the virtual device's
      data file under /sys/class/devcoredump/devcd*/. Writing to it will
      free the data and remove the device, as does a 5-minute timeout.
      
      Note that generalized capturing of such data may result in privacy
      issues, so users generally need to be involved. In order to allow
      certain users/system integrators/... to disable the feature at all,
      introduce a Kconfig option to override the drivers that would like
      to have the feature.
      
      For now, this provides two ways of dumping data:
       1) with a vmalloc'ed area, that is then given to the subsystem
          and freed after retrieval or timeout
       2) with a generalized reader/free function method
      
      We could/should add more options, e.g. a list of pages, since the
      vmalloc area is very limited on some architectures.
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      833c9545
  2. 14 9月, 2014 3 次提交
  3. 12 9月, 2014 8 次提交
  4. 11 9月, 2014 10 次提交
  5. 10 9月, 2014 15 次提交
  6. 09 9月, 2014 1 次提交