Input updates for v6.6-rc5

- a reworked way for handling reset delay on SMBus-connected Synaptics
  touchpads (the original one, while being correct, uncovered an old bug
  in fallback to PS/2 code that was fixed separately; the new one however
  avoids having delay in serio port "fast" resume, and instead has the
  wait in the RMI4 code)

- a fix for potential crashes when devices with Elan controllers (and
  Synaptics) fall back to PS/2 code. Can't be hit without the original
  patch above, but still good to have it fixed

- a couple new device IDs in xpad Xbox driver

- another quirk for Goodix driver to deal with stuff vendors put in ACPI
  tables

- a fix for use-after-free on disconnect for powermate driver

- a quirk to not initialize PS/2 mouse port on Fujitsu Lifebook E5411
  laptop as it makes keyboard not usable and the device uses
  hid-over-i2c touchpad anyways.
Input: powermate - fix use-after-free in powermate_config_complete

syzbot has found a use-after-free bug [1] in the powermate driver. This
happens when the device is disconnected, which leads to a memory free from
the powermate_device struct.  When an asynchronous control message
completes after the kfree and its callback is invoked, the lock does not
exist anymore and hence the bug.

Use usb_kill_urb() on pm->config to cancel any in-progress requests upon
device disconnection.

[1] https://syzkaller.appspot.com/bug?extid=0434ac83f907a1dbdd1e

Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Reported-by: syzbot+0434ac83f907a1dbdd1e@syzkaller.appspotmail.com
Link: https://lore.kernel.org/r/20230916-topic-powermate_use_after_free-v3-1-64412b81a7a2@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 file changed