1. 09 1月, 2019 1 次提交
  2. 04 1月, 2019 1 次提交
    • L
      Remove 'type' argument from access_ok() function · 96d4f267
      Linus Torvalds 提交于
      Nobody has actually used the type (VERIFY_READ vs VERIFY_WRITE) argument
      of the user address range verification function since we got rid of the
      old racy i386-only code to walk page tables by hand.
      
      It existed because the original 80386 would not honor the write protect
      bit when in kernel mode, so you had to do COW by hand before doing any
      user access.  But we haven't supported that in a long time, and these
      days the 'type' argument is a purely historical artifact.
      
      A discussion about extending 'user_access_begin()' to do the range
      checking resulted this patch, because there is no way we're going to
      move the old VERIFY_xyz interface to that model.  And it's best done at
      the end of the merge window when I've done most of my merges, so let's
      just get this done once and for all.
      
      This patch was mostly done with a sed-script, with manual fix-ups for
      the cases that weren't of the trivial 'access_ok(VERIFY_xyz' form.
      
      There were a couple of notable cases:
      
       - csky still had the old "verify_area()" name as an alias.
      
       - the iter_iov code had magical hardcoded knowledge of the actual
         values of VERIFY_{READ,WRITE} (not that they mattered, since nothing
         really used it)
      
       - microblaze used the type argument for a debug printout
      
      but other than those oddities this should be a total no-op patch.
      
      I tried to fix up all architectures, did fairly extensive grepping for
      access_ok() uses, and the changes are trivial, but I may have missed
      something.  Any missed conversion should be trivially fixable, though.
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      96d4f267
  3. 22 12月, 2018 4 次提交
  4. 21 12月, 2018 2 次提交
  5. 20 12月, 2018 6 次提交
  6. 18 12月, 2018 3 次提交
  7. 17 12月, 2018 3 次提交
  8. 14 12月, 2018 15 次提交
  9. 13 12月, 2018 1 次提交
    • H
      ACPI / LPSS: Ignore acpi_device_fix_up_power() return value · 1a2fa02f
      Hans de Goede 提交于
      Ignore acpi_device_fix_up_power() return value. If we return an error
      we end up with acpi_default_enumeration() still creating a platform-
      device for the device and we end up with the device still being used
      but without the special LPSS related handling which is not useful.
      
      Specicifically ignoring the error fixes the touchscreen no longer
      working after a suspend/resume on a Prowise PT301 tablet.
      
      This tablet has a broken _PS0 method on the touchscreen's I2C controller,
      causing acpi_device_fix_up_power() to fail, causing fallback to standard
      platform-dev handling and specifically causing acpi_lpss_save/restore_ctx
      to not run.
      
      The I2C controllers _PS0 method does actually turn on the device, but then
      does some more nonsense which fails when run during early boot trying to
      use I2C opregion handling on another not-yet registered I2C controller.
      Signed-off-by: NHans de Goede <hdegoede@redhat.com>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      1a2fa02f
  10. 11 12月, 2018 3 次提交
  11. 06 12月, 2018 1 次提交