1. 15 2月, 2018 2 次提交
    • A
      platform/x86: ideapad-laptop: Increase timeout to wait for EC answer · ed5b9ba7
      Aaron Ma 提交于
      Lenovo E41-20 needs more time than 100ms to read VPC,
      the funtion keys always failed responding.
      Increase timeout to get the value from VPC, then
      the funtion keys like mic mute key work well.
      Signed-off-by: NAaron Ma <aaron.ma@canonical.com>
      Signed-off-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      ed5b9ba7
    • A
      platform/x86: wmi: fix off-by-one write in wmi_dev_probe() · 6e1d8ea9
      Andrey Ryabinin 提交于
      wmi_dev_probe() allocates one byte less than necessary, thus
      subsequent sprintf() call writes trailing zero past the end
      of the 'buf':
      
          BUG: KASAN: slab-out-of-bounds in vsnprintf+0xda4/0x1240
          Write of size 1 at addr ffff880423529caf by task kworker/1:1/32
      
          Call Trace:
           dump_stack+0xb3/0x14d
           print_address_description+0xd7/0x380
           kasan_report+0x166/0x2b0
           vsnprintf+0xda4/0x1240
           sprintf+0x9b/0xd0
           wmi_dev_probe+0x1c3/0x400
           driver_probe_device+0x5d1/0x990
           bus_for_each_drv+0x109/0x190
           __device_attach+0x217/0x360
           bus_probe_device+0x1ad/0x260
           deferred_probe_work_func+0x10f/0x5d0
           process_one_work+0xa8b/0x1dc0
           worker_thread+0x20d/0x17d0
           kthread+0x311/0x3d0
           ret_from_fork+0x3a/0x50
      
          Allocated by task 32:
           kasan_kmalloc+0xa0/0xd0
           __kmalloc+0x14f/0x3e0
           wmi_dev_probe+0x182/0x400
           driver_probe_device+0x5d1/0x990
           bus_for_each_drv+0x109/0x190
           __device_attach+0x217/0x360
           bus_probe_device+0x1ad/0x260
           deferred_probe_work_func+0x10f/0x5d0
           process_one_work+0xa8b/0x1dc0
           worker_thread+0x20d/0x17d0
           kthread+0x311/0x3d0
           ret_from_fork+0x3a/0x50
      
      Increment allocation size to fix this.
      
      Fixes: 44b6b766 ("platform/x86: wmi: create userspace interface for drivers")
      Signed-off-by: NAndrey Ryabinin <aryabinin@virtuozzo.com>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      6e1d8ea9
  2. 12 2月, 2018 1 次提交
    • L
      vfs: do bulk POLL* -> EPOLL* replacement · a9a08845
      Linus Torvalds 提交于
      This is the mindless scripted replacement of kernel use of POLL*
      variables as described by Al, done by this script:
      
          for V in IN OUT PRI ERR RDNORM RDBAND WRNORM WRBAND HUP RDHUP NVAL MSG; do
              L=`git grep -l -w POLL$V | grep -v '^t' | grep -v /um/ | grep -v '^sa' | grep -v '/poll.h$'|grep -v '^D'`
              for f in $L; do sed -i "-es/^\([^\"]*\)\(\<POLL$V\>\)/\\1E\\2/" $f; done
          done
      
      with de-mangling cleanups yet to come.
      
      NOTE! On almost all architectures, the EPOLL* constants have the same
      values as the POLL* constants do.  But they keyword here is "almost".
      For various bad reasons they aren't the same, and epoll() doesn't
      actually work quite correctly in some cases due to this on Sparc et al.
      
      The next patch from Al will sort out the final differences, and we
      should be all done.
      Scripted-by: NAl Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      a9a08845
  3. 10 2月, 2018 3 次提交
  4. 09 2月, 2018 3 次提交
  5. 07 2月, 2018 4 次提交
  6. 06 2月, 2018 1 次提交
  7. 04 2月, 2018 3 次提交
  8. 01 2月, 2018 14 次提交
  9. 30 1月, 2018 7 次提交
  10. 27 1月, 2018 1 次提交
  11. 26 1月, 2018 1 次提交