1. 31 1月, 2017 7 次提交
  2. 27 1月, 2017 2 次提交
  3. 25 1月, 2017 6 次提交
  4. 20 1月, 2017 2 次提交
  5. 19 1月, 2017 2 次提交
    • A
      lkdtm: hide stack overflow warning for corrupt-stack test · 7a11a1d1
      Arnd Bergmann 提交于
      After the latest change to make sure the compiler actually does a memset,
      it is now smart enough to flag the stack overflow at compile time,
      at least with gcc-7.0:
      
      drivers/misc/lkdtm_bugs.c: In function 'lkdtm_CORRUPT_STACK':
      drivers/misc/lkdtm_bugs.c:88:144: warning: 'memset' writing 64 bytes into a region of size 8 overflows the destination [-Wstringop-overflow=]
      
      To outsmart the compiler again, this moves the memset into a noinline
      function where (for now) it doesn't see that we intentionally write
      broken code here.
      
      Fixes: c55d2400 ("lkdtm: Prevent the compiler from optimising lkdtm_CORRUPT_STACK()")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Acked-by: NKees Cook <keescook@chromium.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      7a11a1d1
    • S
      eeprom: Add IDT 89HPESx EEPROM/CSR driver · cfad6425
      Serge Semin 提交于
        This driver provides an access to EEPROM of IDT PCIe-switches. IDT PCIe-
      switches expose a simple SMBus interface to perform IO-operations from/to
      EEPROM, which is located at private (so called Master) SMBus. The driver
      creates a simple binary sysfs-file to have an access to the EEPROM using
      the SMBus-slave interface in the i2c-device susfs-directory:
           /sys/bus/i2c/devices/<bus>-<devaddr>/eeprom
      In case if read-only flag is specified at dts-node of the device, User-space
      applications won't be able to write to the EEPROM sysfs-node.
      
        Additionally IDT 89HPESx SMBus interface has an ability to read/write
      values of device CSRs. This driver exposes debugfs-file to perform simple
      IO-operations using that ability for just basic debug purpose. Particularly
      the next file is created in the specific debugfs-directory:
           /sys/kernel/debug/idt_csr/
      Format of the debugfs-file value is:
           $ cat /sys/kernel/debug/idt_csr/<bus>-<devaddr>/<devname>;
           <CSR address>:<CSR value>
      So reading the content of the file gives current CSR address and it value.
      If User-space application wishes to change current CSR address, it can just
      write a proper value to the sysfs-file:
           $ echo "<CSR address>" >
               /sys/kernel/debug/idt_csr/<bus>-<devaddr>/<devname>
      If it wants to change the CSR value as well, the format of the write
      operation is:
           $ echo "<CSR address>:<CSR value>" > \
               /sys/kernel/debug/idt_csr/<bus>-<devaddr>/<devname>;
      CSR address and value can be any of hexadecimal, decimal or octal format.
      Signed-off-by: NSerge Semin <fancer.lancer@gmail.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      cfad6425
  6. 11 1月, 2017 4 次提交
  7. 05 1月, 2017 2 次提交
  8. 25 12月, 2016 1 次提交
  9. 15 12月, 2016 1 次提交
  10. 14 12月, 2016 1 次提交
  11. 06 12月, 2016 3 次提交
  12. 30 11月, 2016 3 次提交
  13. 25 11月, 2016 1 次提交
  14. 23 11月, 2016 1 次提交
  15. 18 11月, 2016 4 次提交