1. 23 Mar, 2022 7 commits
  2. 14 Mar, 2022 1 commit
    • Gwendal Grignou's avatar
      HID: intel-ish-hid: Use dma_alloc_coherent for firmware update · f97ec5d7
      Gwendal Grignou authored
      Allocating memory with kmalloc and GPF_DMA32 is not allowed, the
      allocator will ignore the attribute.
      
      Instead, use dma_alloc_coherent() API as we allocate a small amount of
      memory to transfer firmware fragment to the ISH.
      
      On Arcada chromebook, after the patch the warning:
      "Unexpected gfp: 0x4 (GFP_DMA32). Fixing up to gfp: 0xcc0 (GFP_KERNEL).  Fix your code!"
      is gone. The ISH firmware is loaded properly and we can interact with
      the ISH:
      > ectool  --name cros_ish version
      ...
      Build info:    arcada_ish_v2.0.3661+3c1a1c1ae0 2022-02-08 05:37:47 @localhost
      Tool version:  v2.0.12300-900b03ec7f 2022-02-08 10:01:48 @localhost
      
      Fixes: commit 91b22810 ("HID: intel-ish-hid: ISH firmware loader client driver")
      Signed-off-by: default avatarGwendal Grignou <gwendal@chromium.org>
      Acked-by: default avatarSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      f97ec5d7
  3. 01 Mar, 2022 14 commits
  4. 21 Feb, 2022 1 commit
    • Pavel Skripkin's avatar
      HID: hid-thrustmaster: fix OOB read in thrustmaster_interrupts · fc3ef2e3
      Pavel Skripkin authored
      Syzbot reported an slab-out-of-bounds Read in thrustmaster_probe() bug.
      The root case is in missing validation check of actual number of endpoints.
      
      Code should not blindly access usb_host_interface::endpoint array, since
      it may contain less endpoints than code expects.
      
      Fix it by adding missing validaion check and print an error if
      number of endpoints do not match expected number
      
      Fixes: c49c3363 ("HID: support for initialization of some Thrustmaster wheels")
      Reported-and-tested-by: syzbot+35eebd505e97d315d01c@syzkaller.appspotmail.com
      Signed-off-by: default avatarPavel Skripkin <paskripkin@gmail.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
      fc3ef2e3
  5. 17 Feb, 2022 2 commits
  6. 16 Feb, 2022 12 commits
  7. 15 Feb, 2022 3 commits
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid · a254a9da
      Linus Torvalds authored
      Pull HID fixes from Jiri Kosina:
      
       - memory leak fix for hid-elo driver (Dongliang Mu)
      
       - fix for hangs on newer AMD platforms with amd_sfh-driven hardware
         (Basavaraj Natikar )
      
       - locking fix in i2c-hid (Daniel Thompson)
      
       - a few device-ID specific quirks
      
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid:
        HID: amd_sfh: Add interrupt handler to process interrupts
        HID: amd_sfh: Add functionality to clear interrupts
        HID: amd_sfh: Disable the interrupt for all command
        HID: amd_sfh: Correct the structure field name
        HID: amd_sfh: Handle amd_sfh work buffer in PM ops
        HID:Add support for UGTABLET WP5540
        HID: amd_sfh: Add illuminance mask to limit ALS max value
        HID: amd_sfh: Increase sensor command timeout
        HID: i2c-hid: goodix: Fix a lockdep splat
        HID: elo: fix memory leak in elo_probe
        HID: apple: Set the tilde quirk flag on the Wellspring 5 and later
      a254a9da
    • Linus Torvalds's avatar
      Merge tag 'for-5.17-rc4-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux · 705d84a3
      Linus Torvalds authored
      Pull btrfs fixes from David Sterba:
      
       - yield CPU more often when defragmenting a large file
      
       - skip defragmenting extents already under writeback
      
       - improve error message when send fails to write file data
      
       - get rid of warning when mounted with 'flushoncommit'
      
      * tag 'for-5.17-rc4-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:
        btrfs: send: in case of IO error log it
        btrfs: get rid of warning on transaction commit when using flushoncommit
        btrfs: defrag: don't try to defrag extents which are under writeback
        btrfs: don't hold CPU for too long when defragging a file
      705d84a3
    • Linus Torvalds's avatar
      Merge tag 'for-5.17/parisc-3' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux · 2572da44
      Linus Torvalds authored
      Pull parisc architecture fixes from Helge Deller:
      
       - Fix miscompilations when function calls are made from inside a
         put_user() call
      
       - Drop __init from map_pages() declaration to avoid random boot crashes
      
       - Added #error messages if a 64-bit compiler was used to build a 32-bit
         kernel (and vice versa)
      
       - Fix out-of-bound data TLB miss faults in sba_iommu and ccio-dma
         drivers
      
       - Add ioread64_lo_hi() and iowrite64_lo_hi() functions to avoid kernel
         test robot errors
      
       - Fix link failure when 8250_gsc driver is built without CONFIG_IOSAPIC
      
      * tag 'for-5.17/parisc-3' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux:
        serial: parisc: GSC: fix build when IOSAPIC is not set
        parisc: Fix some apparent put_user() failures
        parisc: Show error if wrong 32/64-bit compiler is being used
        parisc: Add ioread64_lo_hi() and iowrite64_lo_hi()
        parisc: Fix sglist access in ccio-dma.c
        parisc: Fix data TLB miss in sba_unmap_sg
        parisc: Drop __init from map_pages declaration
      2572da44