1. 03 Oct, 2024 27 commits
  2. 02 Oct, 2024 11 commits
    • Linus Torvalds's avatar
      Merge tag 'pull-work.unaligned' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs · 7ec46210
      Linus Torvalds authored
      Pull generic unaligned.h cleanups from Al Viro:
       "Get rid of architecture-specific <asm/unaligned.h> includes, replacing
        them with a single generic <linux/unaligned.h> header file.
      
        It's the second largest (after asm/io.h) class of asm/* includes, and
        all but two architectures actually end up using exact same file.
      
        Massage the remaining two (arc and parisc) to do the same and just
        move the thing to from asm-generic/unaligned.h to linux/unaligned.h"
      
      [ This is one of those things that we're better off doing outside the
        merge window, and would only cause extra conflict noise if it was in
        linux-next for the next release due to all the trivial #include line
        updates.  Rip off the band-aid.   - Linus ]
      
      * tag 'pull-work.unaligned' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
        move asm/unaligned.h to linux/unaligned.h
        arc: get rid of private asm/unaligned.h
        parisc: get rid of private asm/unaligned.h
      7ec46210
    • Al Viro's avatar
      move asm/unaligned.h to linux/unaligned.h · 5f60d5f6
      Al Viro authored
      asm/unaligned.h is always an include of asm-generic/unaligned.h;
      might as well move that thing to linux/unaligned.h and include
      that - there's nothing arch-specific in that header.
      
      auto-generated by the following:
      
      for i in `git grep -l -w asm/unaligned.h`; do
      	sed -i -e "s/asm\/unaligned.h/linux\/unaligned.h/" $i
      done
      for i in `git grep -l -w asm-generic/unaligned.h`; do
      	sed -i -e "s/asm-generic\/unaligned.h/linux\/unaligned.h/" $i
      done
      git mv include/asm-generic/unaligned.h include/linux/unaligned.h
      git mv tools/include/asm-generic/unaligned.h tools/include/linux/unaligned.h
      sed -i -e "/unaligned.h/d" include/asm-generic/Kbuild
      sed -i -e "s/__ASM_GENERIC/__LINUX/" include/linux/unaligned.h tools/include/linux/unaligned.h
      5f60d5f6
    • Al Viro's avatar
      arc: get rid of private asm/unaligned.h · 00429083
      Al Viro authored
      Declarations local to arch/*/kernel/*.c are better off *not* in a public
      header - arch/arc/kernel/unaligned.h is just fine for those
      bits.
      
      Unlike the parisc case, here we have an extra twist - asm/mmu.h
      has an implicit dependency on struct pt_regs, and in some users
      that used to be satisfied by include of asm/ptrace.h from
      asm/unaligned.h (note that asm/mmu.h itself did _not_ pull asm/unaligned.h
      - it relied upon the users having pulled asm/unaligned.h before asm/mmu.h
      got there).
      
      Seeing that asm/mmu.h only wants struct pt_regs * arguments in
      an extern, just pre-declare it there - less brittle that way.
      
      With that done _all_ asm/unaligned.h instances are reduced to include
      of asm-generic/unaligned.h and can be removed - unaligned.h is in
      mandatory-y in include/asm-generic/Kbuild.
      
      What's more, we can move asm-generic/unaligned.h to linux/unaligned.h
      and switch includes of <asm/unaligned.h> to <linux/unaligned.h>; that's
      better off as an auto-generated commit, though, to be done by Linus
      at -rc1 time next cycle.
      Acked-by: default avatarVineet Gupta <vgupta@kernel.org>
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      00429083
    • Linus Torvalds's avatar
      Merge tag 'hid-for-linus-2024090201' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid · f23aa4c0
      Linus Torvalds authored
      Pull HID fix from Benjamin Tissoires:
      
       - A small fix from the new HID-BPF code.
      
         The HID-BPF CI started failing completely because the BPF tree is now
         stricter, exposing a problem in the hid_bpf_ops.
      
      * tag 'hid-for-linus-2024090201' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid:
        HID: bpf: fix cfi stubs for hid_bpf_ops
      f23aa4c0
    • Linus Torvalds's avatar
      Merge tag 'input-for-v6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input · 0d2746a2
      Linus Torvalds authored
      Pull input fixes from Dmitry Torokhov:
      
       - a couple fixups for adp5589-keys driver
      
       - recently added driver for PixArt PS/2 touchpads is dropped
         temporarily because its detection routine is too greedy and
         mis-identifies devices from other vendors as PixArt devices
      
      * tag 'input-for-v6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
        Input: adp5589-keys - fix adp5589_gpio_get_value()
        Input: adp5589-keys - fix NULL pointer dereference
        Revert "Input: Add driver for PixArt PS/2 touchpad"
      0d2746a2
    • Linus Torvalds's avatar
      Merge tag 'for-6.12/dm-fixes' of... · 359cdf5a
      Linus Torvalds authored
      Merge tag 'for-6.12/dm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm
      
      Pull device mapper fixes from Mikulas Patocka:
       "Revert the patch that made dm-verity restart or panic on I/O errors,
        and instead add new explicit options for people who want that
        behavior"
      
      * tag 'for-6.12/dm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm:
        dm-verity: introduce the options restart_on_error and panic_on_error
        Revert: "dm-verity: restart or panic on an I/O error"
      359cdf5a
    • Linus Torvalds's avatar
      Merge tag 'zonefs-6.12-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/zonefs · 27af290f
      Linus Torvalds authored
      Pull zonefs update from Damien Le Moal:
      
       - Add support for the FS_IOC_GETFSSYSFSPATH ioctl
      
      * tag 'zonefs-6.12-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/zonefs:
        zonefs: add support for FS_IOC_GETFSSYSFSPATH
      27af290f
    • David Howells's avatar
      netfs: Fix missing wakeup after issuing writes · 1ca4169c
      David Howells authored
      After dividing up a proposed write into subrequests, netfslib sets
      NETFS_RREQ_ALL_QUEUED to indicate to the collector that it can move on to
      the final cleanup once it has emptied the subrequest queues.
      
      Now, whilst the collector will normally end up running at least once after
      this bit is set just because it takes a while to process all the write
      subrequests before the collector runs out of subrequests, there exists the
      possibility that the issuing thread will be forced to sleep and the
      collector thread will clean up all the subrequests before ALL_QUEUED gets
      set.
      
      In such a case, the collector thread will not get triggered again and will
      never clear NETFS_RREQ_IN_PROGRESS thus leaving a request uncompleted and
      causing a potential futute hang.
      
      Fix this by scheduling the write collector if all the subrequest queues are
      empty (and thus no writes pending issuance).
      
      Note that we'd do this ideally before queuing the subrequest, but in the
      case of buffered writeback, at least, we can't find out that we've run out
      of folios until after we've called writeback_iter() and it has returned
      NULL - at which point we might not actually have any subrequests still
      under construction.
      
      Fixes: 288ace2f ("netfs: New writeback implementation")
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      Link: https://lore.kernel.org/r/3317784.1727880350@warthog.procyon.org.uk
      cc: Jeff Layton <jlayton@kernel.org>
      cc: netfs@lists.linux.dev
      cc: linux-fsdevel@vger.kernel.org
      Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
      1ca4169c
    • Mikulas Patocka's avatar
      dm-verity: introduce the options restart_on_error and panic_on_error · f811b838
      Mikulas Patocka authored
      This patch introduces the options restart_on_error and panic_on_error on
      dm-verity.
      
      Previously, restarting on error was handled by the patch
      e6a3531d, but Google engineers wanted to
      have a special option for it.
      Signed-off-by: default avatarMikulas Patocka <mpatocka@redhat.com>
      Suggested-by: default avatarSami Tolvanen <samitolvanen@google.com>
      Suggested-by: default avatarWill Drewry <wad@chromium.org>
      f811b838
    • Mikulas Patocka's avatar
      Revert: "dm-verity: restart or panic on an I/O error" · 46276321
      Mikulas Patocka authored
      This reverts commit e6a3531d.
      
      The problem that the commit e6a3531d
      fixes was reported as a security bug, but Google engineers working on
      Android and ChromeOS didn't want to change the default behavior, they
      want to get -EIO rather than restarting the system, so I am reverting
      that commit.
      
      Note also that calling machine_restart from the I/O handling code is
      potentially unsafe (the reboot notifiers may wait for the bio that
      triggered the restart), but Android uses the reboot notifiers to store
      the reboot reason into the PMU microcontroller, so machine_restart must
      be used.
      Signed-off-by: default avatarMikulas Patocka <mpatocka@redhat.com>
      Cc: stable@vger.kernel.org
      Fixes: e6a3531d ("dm-verity: restart or panic on an I/O error")
      Suggested-by: default avatarSami Tolvanen <samitolvanen@google.com>
      Suggested-by: default avatarWill Drewry <wad@chromium.org>
      46276321
    • Al Viro's avatar
      parisc: get rid of private asm/unaligned.h · 134d9882
      Al Viro authored
      Declarations local to arch/*/kernel/*.c are better off *not* in a public
      header - arch/parisc/kernel/unaligned.h is just fine for those
      bits.
      
      With that done parisc asm/unaligned.h is reduced to include
      of asm-generic/unaligned.h and can be removed - unaligned.h is in
      mandatory-y in include/asm-generic/Kbuild.
      Acked-by: default avatarHelge Deller <deller@gmx.de>
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      134d9882
  3. 01 Oct, 2024 2 commits