1. 31 Jan, 2024 1 commit
    • Helge Deller's avatar
      parisc: BTLB: Fix crash when setting up BTLB at CPU bringup · 913b9d44
      Helge Deller authored
      When using hotplug and bringing up a 32-bit CPU, ask the firmware about the
      BTLB information to set up the static (block) TLB entries.
      
      For that write access to the static btlb_info struct is needed, but
      since it is marked __ro_after_init the kernel segfaults with missing
      write permissions.
      
      Fix the crash by dropping the __ro_after_init annotation.
      
      Fixes: e5ef93d0 ("parisc: BTLB: Initialize BTLB tables at CPU startup")
      Signed-off-by: default avatarHelge Deller <deller@gmx.de>
      Cc: <stable@vger.kernel.org> # v6.6+
      913b9d44
  2. 30 Jan, 2024 1 commit
    • Helge Deller's avatar
      parisc: Fix random data corruption from exception handler · 8b1d7239
      Helge Deller authored
      The current exception handler implementation, which assists when accessing
      user space memory, may exhibit random data corruption if the compiler decides
      to use a different register than the specified register %r29 (defined in
      ASM_EXCEPTIONTABLE_REG) for the error code. If the compiler choose another
      register, the fault handler will nevertheless store -EFAULT into %r29 and thus
      trash whatever this register is used for.
      Looking at the assembly I found that this happens sometimes in emulate_ldd().
      
      To solve the issue, the easiest solution would be if it somehow is
      possible to tell the fault handler which register is used to hold the error
      code. Using %0 or %1 in the inline assembly is not posssible as it will show
      up as e.g. %r29 (with the "%r" prefix), which the GNU assembler can not
      convert to an integer.
      
      This patch takes another, better and more flexible approach:
      We extend the __ex_table (which is out of the execution path) by one 32-word.
      In this word we tell the compiler to insert the assembler instruction
      "or %r0,%r0,%reg", where %reg references the register which the compiler
      choosed for the error return code.
      In case of an access failure, the fault handler finds the __ex_table entry and
      can examine the opcode. The used register is encoded in the lowest 5 bits, and
      the fault handler can then store -EFAULT into this register.
      
      Since we extend the __ex_table to 3 words we can't use the BUILDTIME_TABLE_SORT
      config option any longer.
      Signed-off-by: default avatarHelge Deller <deller@gmx.de>
      Cc: <stable@vger.kernel.org> # v6.0+
      8b1d7239
  3. 28 Jan, 2024 4 commits
  4. 27 Jan, 2024 6 commits
    • Linus Torvalds's avatar
      Merge tag 'platform-drivers-x86-v6.8-2' of... · 8a696a29
      Linus Torvalds authored
      Merge tag 'platform-drivers-x86-v6.8-2' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86
      
      Pull x86 platform driver fixes from Hans de Goede:
      
       - WMI bus driver fixes
      
       - Second attempt (previously reverted) at P2SB PCI rescan deadlock fix
      
       - AMD PMF driver improvements
      
       - MAINTAINERS updates
      
       - Misc other small fixes and hw-id additions
      
      * tag 'platform-drivers-x86-v6.8-2' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86:
        platform/x86: touchscreen_dmi: Add info for the TECLAST X16 Plus tablet
        platform/x86/intel/ifs: Call release_firmware() when handling errors.
        platform/x86/amd/pmf: Fix memory leak in amd_pmf_get_pb_data()
        platform/x86/amd/pmf: Get ambient light information from AMD SFH driver
        platform/x86/amd/pmf: Get Human presence information from AMD SFH driver
        platform/mellanox: mlxbf-pmc: Fix offset calculation for crspace events
        platform/mellanox: mlxbf-tmfifo: Drop Tx network packet when Tx TmFIFO is full
        MAINTAINERS: remove defunct acpi4asus project info from asus notebooks section
        MAINTAINERS: add Luke Jones as maintainer for asus notebooks
        MAINTAINERS: Remove Perry Yuan as DELL WMI HARDWARE PRIVACY SUPPORT maintainer
        platform/x86: silicom-platform: Add missing "Description:" for power_cycle sysfs attr
        platform/x86: intel-wmi-sbl-fw-update: Fix function name in error message
        platform/x86: p2sb: Use pci_resource_n() in p2sb_read_bar0()
        platform/x86: p2sb: Allow p2sb_bar() calls during PCI device probe
        platform/x86: intel-uncore-freq: Fix types in sysfs callbacks
        platform/x86: wmi: Fix wmi_dev_probe()
        platform/x86: wmi: Fix notify callback locking
        platform/x86: wmi: Decouple legacy WMI notify handlers from wmi_block_list
        platform/x86: wmi: Return immediately if an suitable WMI event is found
        platform/x86: wmi: Fix error handling in legacy WMI notify handler functions
      8a696a29
    • Linus Torvalds's avatar
      Merge tag 'loongarch-fixes-6.8-1' of... · 95534043
      Linus Torvalds authored
      Merge tag 'loongarch-fixes-6.8-1' of git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
      
      Pull LoongArch fixes from Huacai Chen:
       "Fix boot failure on machines with more than 8 nodes, and fix two build
        errors about KVM"
      
      * tag 'loongarch-fixes-6.8-1' of git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson:
        LoongArch: KVM: Add returns to SIMD stubs
        LoongArch: KVM: Fix build due to API changes
        LoongArch/smp: Call rcutree_report_cpu_starting() at tlb_init()
      95534043
    • Linus Torvalds's avatar
      Merge tag 'xfs-6.8-fixes-1' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux · cd2286fc
      Linus Torvalds authored
      Pull xfs fix from Chandan Babu:
      
       - Fix read only mounts when using fsopen mount API
      
      * tag 'xfs-6.8-fixes-1' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux:
        xfs: read only mounts with fsopen mount API are busted
      cd2286fc
    • Linus Torvalds's avatar
      Merge tag 'bcachefs-2024-01-26' of https://evilpiepirate.org/git/bcachefs · 064a4a5b
      Linus Torvalds authored
      Pull bcachefs fixes from Kent Overstreet:
      
       - fix for REQ_OP_FLUSH usage; this fixes filesystems going read only
         with -EOPNOTSUPP from the block layer.
      
         (this really should have gone in with the block layer patch causing
         the -EOPNOTSUPP, or should have gone in before).
      
       - fix an allocation in non-sleepable context
      
       - fix one source of srcu lock latency, on devices with terrible discard
         latency
      
       - fix a reattach_inode() issue in fsck
      
      * tag 'bcachefs-2024-01-26' of https://evilpiepirate.org/git/bcachefs:
        bcachefs: __lookup_dirent() works in snapshot, not subvol
        bcachefs: discard path uses unlock_long()
        bcachefs: fix incorrect usage of REQ_OP_FLUSH
        bcachefs: Add gfp flags param to bch2_prt_task_backtrace()
      064a4a5b
    • Linus Torvalds's avatar
      Merge tag '6.8-rc2-smb3-server-fixes' of git://git.samba.org/ksmbd · 8c6f6a76
      Linus Torvalds authored
      Pull smb server fixes from Steve French:
      
       - Fix netlink OOB
      
       - Minor kernel doc fix
      
      * tag '6.8-rc2-smb3-server-fixes' of git://git.samba.org/ksmbd:
        ksmbd: fix global oob in ksmbd_nl_policy
        smb: Fix some kernel-doc comments
      8c6f6a76
    • Linus Torvalds's avatar
      Merge tag '6.8-rc1-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6 · d1bba17e
      Linus Torvalds authored
      Pull smb client fixes from Steve French:
       "Nine cifs/smb client fixes
      
         - Four network error fixes (three relating to replays of requests
           that need to be retried, and one fixing some places where we were
           returning the wrong rc up the stack on network errors)
      
         - Two multichannel fixes including locking fix and case where subset
           of channels need reconnect
      
         - netfs integration fixup: share remote i_size with netfslib
      
         - Two small cleanups (one for addressing a clang warning)"
      
      * tag '6.8-rc1-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6:
        cifs: fix stray unlock in cifs_chan_skip_or_disable
        cifs: set replay flag for retries of write command
        cifs: commands that are retried should have replay flag set
        cifs: helper function to check replayable error codes
        cifs: translate network errors on send to -ECONNABORTED
        cifs: cifs_pick_channel should try selecting active channels
        cifs: Share server EOF pos with netfslib
        smb: Work around Clang __bdos() type confusion
        smb: client: delete "true", "false" defines
      d1bba17e
  5. 26 Jan, 2024 28 commits