1. 04 1月, 2021 1 次提交
  2. 22 9月, 2020 2 次提交
  3. 01 9月, 2020 1 次提交
    • M
      HID: core: Sanitize event code and type when mapping input · 35556bed
      Marc Zyngier 提交于
      When calling into hid_map_usage(), the passed event code is
      blindly stored as is, even if it doesn't fit in the associated bitmap.
      
      This event code can come from a variety of sources, including devices
      masquerading as input devices, only a bit more "programmable".
      
      Instead of taking the event code at face value, check that it actually
      fits the corresponding bitmap, and if it doesn't:
      - spit out a warning so that we know which device is acting up
      - NULLify the bitmap pointer so that we catch unexpected uses
      
      Code paths that can make use of untrusted inputs can now check
      that the mapping was indeed correct and bail out if not.
      
      Cc: stable@vger.kernel.org
      Signed-off-by: NMarc Zyngier <maz@kernel.org>
      Signed-off-by: NBenjamin Tissoires <benjamin.tissoires@gmail.com>
      35556bed
  4. 27 5月, 2020 2 次提交
  5. 13 5月, 2020 1 次提交
  6. 14 4月, 2020 1 次提交
  7. 19 12月, 2019 1 次提交
  8. 09 12月, 2019 1 次提交
  9. 22 8月, 2019 2 次提交
    • B
      HID: multitouch: add support for the Smart Tech panel · 69ecd44d
      Benjamin Tissoires 提交于
      This panel is not very friendly to us:
      it exposes multiple multitouch collections, some of them being of
      logical application stylus.
      
      Usually, a device has only one report per application, and that is
      what I assumed in commit 8dfe14b3 ("HID: multitouch: ditch mt_report_id")
      
      To avoid breaking all working device, add a new class and a new quirk
      for that situation.
      Reported-and-tested-by: NMatthias Fend <Matthias.Fend@wolfvision.net>
      Signed-off-by: NBenjamin Tissoires <benjamin.tissoires@redhat.com>
      69ecd44d
    • B
      HID: multitouch: do not filter mice nodes · c23e2043
      Benjamin Tissoires 提交于
      It was a good idea at the time to not create a mouse node for the
      multitouch touchscreens, but:
      - touchscreens following the Win 8 protocol should not have this
        disturbing mouse node anymore, or if they have, it should be
        used for something else (like a joystick attached to the screen)
      - touchpads have it, and they should not use it unless there is a bug,
        but when the laptop has a trackstick, the data are reported through this
        mouse node.
      
      So instead of whitelisting all of the devices that have a need for the
      mouse node, just export it.
      hid-input.c will append a suffix to it ('Mouse'), so users will eventually
      see if something goes wrong.
      Signed-off-by: NBenjamin Tissoires <benjamin.tissoires@redhat.com>
      c23e2043
  10. 26 6月, 2019 1 次提交
  11. 31 5月, 2019 1 次提交
  12. 22 5月, 2019 1 次提交
    • B
      HID: multitouch: handle faulty Elo touch device · 81bcbad5
      Benjamin Tissoires 提交于
      Since kernel v5.0, one single win8 touchscreen device failed.
      And it turns out this is because it reports 2 InRange usage per touch.
      
      It's a first, and I *really* wonder how this was allowed by Microsoft in
      the first place. But IIRC, Breno told me this happened *after* a firmware
      upgrade...
      
      Anyway, better be safe for those crappy devices, and make sure we have
      a full slot before jumping to the next.
      This won't prevent all crappy devices to fail here, but at least we will
      have a safeguard as long as the contact ID and the X and Y coordinates
      are placed in the report after the grabage.
      
      Fixes: 01eaac7e ("HID: multitouch: remove one copy of values")
      CC: stable@vger.kernel.org # v5.0+
      Reported-and-tested-by: NBreno Leitao <leitao@debian.org>
      Signed-off-by: NBenjamin Tissoires <benjamin.tissoires@redhat.com>
      Signed-off-by: NJiri Kosina <jkosina@suse.cz>
      81bcbad5
  13. 14 2月, 2019 1 次提交
  14. 19 11月, 2018 1 次提交
  15. 05 9月, 2018 3 次提交
  16. 17 7月, 2018 9 次提交
  17. 30 5月, 2018 1 次提交
  18. 16 5月, 2018 1 次提交
  19. 26 4月, 2018 3 次提交
  20. 23 3月, 2018 5 次提交
  21. 06 3月, 2018 1 次提交