1. 10 Apr, 2021 11 commits
  2. 08 Apr, 2021 1 commit
    • Dmitry Torokhov's avatar
      Input: gpio-keys - fix crash when disabliing GPIO-less buttons · 2531fdbf
      Dmitry Torokhov authored
      My brain-damaged adjustments to Paul's patch caused crashes in
      gpio_keys_disable_button() when driver is used in GPIO-less (i.e.
      purely interrupt-driven) setups, because I mixed together debounce and
      release timers when they are in fact separate:
      
      Unable to handle kernel NULL pointer dereference at virtual address 0000000c
      ...
      PC is at hrtimer_active+0xc/0x98
      LR is at hrtimer_try_to_cancel+0x24/0x140
      ...
      [<c01c43b8>] (hrtimer_active) from [<c01c50f4>] (hrtimer_try_to_cancel+0x24/0x140)
      [<c01c50f4>] (hrtimer_try_to_cancel) from [<c01c5224>] (hrtimer_cancel+0x14/0x4c)
      [<c01c5224>] (hrtimer_cancel) from [<bf1cae24>] (gpio_keys_attr_store_helper+0x1b8/0x1d8 [gpio_keys])
      [<bf1cae24>] (gpio_keys_attr_store_helper [gpio_keys]) from [<bf1cae80>] (gpio_keys_store_disabled_keys+0x18/0x24 [gpio_keys])
      [<bf1cae80>] (gpio_keys_store_disabled_keys [gpio_keys]) from [<c038ec7c>] (kernfs_fop_write_iter+0x10c/0x1cc)
      [<c038ec7c>] (kernfs_fop_write_iter) from [<c02df858>] (vfs_write+0x2ac/0x404)
      [<c02df858>] (vfs_write) from [<c02dfaf4>] (ksys_write+0x64/0xdc)
      [<c02dfaf4>] (ksys_write) from [<c0100080>] (ret_fast_syscall+0x0/0x58)
      
      Let's fix it up.
      
      Fixes: c9efb0ba ("Input: gpio-keys - use hrtimer for software debounce, if possible")
      Reported-by: default avatarTony Lindgren <tony@atomide.com>
      Tested-by: default avatarTony Lindgren <tony@atomide.com>
      Link: https://lore.kernel.org/r/YG1DFFgojSVfdpaz@google.comSigned-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
      2531fdbf
  3. 28 Mar, 2021 1 commit
  4. 25 Mar, 2021 25 commits
  5. 21 Mar, 2021 2 commits
    • Linus Torvalds's avatar
      Linux 5.12-rc4 · 0d02ec6b
      Linus Torvalds authored
      0d02ec6b
    • Linus Torvalds's avatar
      Merge tag 'ext4_for_linus_stable' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4 · d7f5f1bd
      Linus Torvalds authored
      Pull ext4 fixes from Ted Ts'o:
       "Miscellaneous ext4 bug fixes for v5.12"
      
      * tag 'ext4_for_linus_stable' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4:
        ext4: initialize ret to suppress smatch warning
        ext4: stop inode update before return
        ext4: fix rename whiteout with fast commit
        ext4: fix timer use-after-free on failed mount
        ext4: fix potential error in ext4_do_update_inode
        ext4: do not try to set xattr into ea_inode if value is empty
        ext4: do not iput inode under running transaction in ext4_rename()
        ext4: find old entry again if failed to rename whiteout
        ext4: fix error handling in ext4_end_enable_verity()
        ext4: fix bh ref count on error paths
        fs/ext4: fix integer overflow in s_log_groups_per_flex
        ext4: add reclaim checks to xattr code
        ext4: shrink race window in ext4_should_retry_alloc()
      d7f5f1bd