1. 01 3月, 2016 20 次提交
  2. 28 2月, 2016 1 次提交
    • D
      mm: ASLR: use get_random_long() · 5ef11c35
      Daniel Cashman 提交于
      Replace calls to get_random_int() followed by a cast to (unsigned long)
      with calls to get_random_long().  Also address shifting bug which, in
      case of x86 removed entropy mask for mmap_rnd_bits values > 31 bits.
      Signed-off-by: NDaniel Cashman <dcashman@android.com>
      Acked-by: NKees Cook <keescook@chromium.org>
      Cc: "Theodore Ts'o" <tytso@mit.edu>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Catalin Marinas <catalin.marinas@arm.com>
      Cc: Will Deacon <will.deacon@arm.com>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Michael Ellerman <mpe@ellerman.id.au>
      Cc: David S. Miller <davem@davemloft.net>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: H. Peter Anvin <hpa@zytor.com>
      Cc: Al Viro <viro@zeniv.linux.org.uk>
      Cc: Nick Kralevich <nnk@google.com>
      Cc: Jeff Vander Stoep <jeffv@google.com>
      Cc: Mark Salyzyn <salyzyn@android.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      5ef11c35
  3. 24 2月, 2016 2 次提交
  4. 23 2月, 2016 1 次提交
  5. 20 2月, 2016 1 次提交
  6. 19 2月, 2016 1 次提交
  7. 17 2月, 2016 4 次提交
  8. 15 2月, 2016 1 次提交
  9. 13 2月, 2016 2 次提交
    • T
      ARM: OMAP2+: Fix omap_device for module reload on PM runtime forbid · cf26f113
      Tony Lindgren 提交于
      If a driver PM runtime is disabled via sysfs, and the module is
      unloaded, PM runtime can't do anything to disable the device. Let's
      let the interconnect disable the device on BUS_NOTIFY_UNBOUND_DRIVER.
      
      Otherwise omap_device will produce and error on the following module
      reload. This can be easily tested with something like:
      
      # modprobe omap_hsmmc
      # echo on > /sys/devices/platform/68000000.ocp/4809c000.mmc/power/control
      # rmmod omap_hsmmc
      # modprobe omap_hsmmc
      
      Cc: Alan Stern <stern@rowland.harvard.edu>
      Cc: Nishanth Menon <nm@ti.com>
      Cc: Rafael J. Wysocki <rafael@kernel.org>
      Cc: Tero Kristo <t-kristo@ti.com>
      Reported-by: NUlf Hansson <ulf.hansson@linaro.org>
      Acked-by: NKevin Hilman <khilman@baylibre.com>
      Acked-by: NUlf Hansson <ulf.hansson@linaro.org>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      cf26f113
    • T
      ARM: OMAP2+: Improve omap_device error for driver writers · 08c78e9d
      Tony Lindgren 提交于
      Drivers using pm_runtime_use_autosuspend() may not get disabled after
      -EPROBE_DEFER. On the following device driver probe, hardware state
      is different from the PM runtime state causing omap_device to produce
      the following error:
      
      omap_device_enable() called from invalid state 1
      
      And with omap_device and omap hardware being picky for PM, this will
      block any deeper idle states in hardware.
      
      Let's add a proper error message so driver writers can easily fix
      their drivers for PM.
      
      In general, the solution is to fix the drivers to follow the PM
      runtime documentation:
      
      1. For sections of code that needs the device disabled, use
         pm_runtime_put_sync_suspend() if pm_runtime_set_autosuspend() has
         been set.
      
      2. For driver exit code, use pm_runtime_dont_use_autosuspend() before
         pm_runtime_put_sync() if pm_runtime_use_autosuspend() has been
         set.
      
      Let's not return with 0 from _od_runtime_resume() as that will
      eventually lead into new drivers with broken PM runtime that will
      block deeper idle states on omaps.
      
      Cc: Alan Stern <stern@rowland.harvard.edu>
      Cc: Nishanth Menon <nm@ti.com>
      Cc: Rafael J. Wysocki <rafael@kernel.org>
      Cc: Tero Kristo <t-kristo@ti.com>
      Acked-by: NKevin Hilman <khilman@baylibre.com>
      Acked-by: NUlf Hansson <ulf.hansson@linaro.org>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      08c78e9d
  10. 11 2月, 2016 4 次提交
  11. 09 2月, 2016 3 次提交