1. 30 Apr, 2024 3 commits
  2. 22 Apr, 2024 16 commits
    • Johannes Berg's avatar
      um: process: remove unused 'n' variable · dac847ae
      Johannes Berg authored
      The return value of fn() wasn't used for a long time,
      so no need to assign it to a variable, addressing a
      W=1 warning.
      
      This seems to be - with patches from others posted to
      the list before - the last W=1 warning in arch/um/.
      
      Fixes: 22e2430d ("x86, um: convert to saner kernel_execve() semantics")
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      Reviewed-by: default avatarTiwei Bie <tiwei.btw@antgroup.com>
      Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
      dac847ae
    • Johannes Berg's avatar
      um: vector: remove unused len variable/calculation · 2caa4982
      Johannes Berg authored
      The len variable is unused, so not needed, remove it.
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      Reviewed-by: default avatarTiwei Bie <tiwei.btw@antgroup.com>
      Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
      2caa4982
    • Johannes Berg's avatar
      um: vector: fix bpfflash parameter evaluation · 584ed2f7
      Johannes Berg authored
      With W=1 the build complains about a pointer compared to
      zero, clearly the result should've been compared.
      
      Fixes: 9807019a ("um: Loadable BPF "Firmware" for vector drivers")
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      Reviewed-by: default avatarTiwei Bie <tiwei.btw@antgroup.com>
      Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
      584ed2f7
    • Johannes Berg's avatar
      um: slirp: remove set but unused variable 'pid' · e3cce8d8
      Johannes Berg authored
      The code doesn't use 'pid' here, just remove it.
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      Reviewed-by: default avatarTiwei Bie <tiwei.btw@antgroup.com>
      Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
      e3cce8d8
    • Johannes Berg's avatar
      um: signal: move pid variable where needed · 158a6b91
      Johannes Berg authored
      We have W=1 warnings on 64-bit because the pid is only
      used in branches on 32-bit; move it inside to get rid of
      the warnings.
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      Reviewed-by: default avatarTiwei Bie <tiwei.btw@antgroup.com>
      Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
      158a6b91
    • Yueh-Shun Li's avatar
      um: Makefile: use bash from the environment · 19ee6923
      Yueh-Shun Li authored
      Set Makefile SHELL to bash instead of /bin/bash for better portability.
      
      Some systems do not install binaries to /bin, and therefore do not
      provide /bin/bash. This includes Linux distros which intentionally avoid
      implementing the Filesystem Hierarchy Standard (FHS), such as NixOS and
      Guix System.
      
      The recipies inside arch/um/Makefile don't require top-level Bash to
      build, and setting "SHELL" to "bash" makes Make pick the Bash executable
      from the environment, hence this patch.
      
      Changes since last roll:
      - Rebase onto a more recent commit on the master branch.
      - Remove a dangling in-text citation from the change log.
      - Reword the change log.
      Signed-off-by: default avatarYueh-Shun Li <shamrocklee@posteo.net>
      Reviewed-by: Johannes Berg <johannes@sipsolutions.net
      Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
      19ee6923
    • Roberto Sassu's avatar
      um: Add winch to winch_handlers before registering winch IRQ · a0fbbd36
      Roberto Sassu authored
      Registering a winch IRQ is racy, an interrupt may occur before the winch is
      added to the winch_handlers list.
      
      If that happens, register_winch_irq() adds to that list a winch that is
      scheduled to be (or has already been) freed, causing a panic later in
      winch_cleanup().
      
      Avoid the race by adding the winch to the winch_handlers list before
      registering the IRQ, and rolling back if um_request_irq() fails.
      
      Fixes: 42a359e3 ("uml: SIGIO support cleanup")
      Signed-off-by: default avatarRoberto Sassu <roberto.sassu@huawei.com>
      Reviewed-by: default avatarJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
      a0fbbd36
    • Tiwei Bie's avatar
      um: Fix -Wmissing-prototypes warnings for __warp_* and foo · 49ff7d87
      Tiwei Bie authored
      These functions are not called explicitly. Let's just workaround
      the -Wmissing-prototypes warnings by declaring them locally similar
      to what was done in arch/x86/kernel/asm-offsets_32.c.
      
      This will address below -Wmissing-prototypes warnings:
      
      ./arch/x86/um/shared/sysdep/kernel-offsets.h:9:6: warning: no previous prototype for ‘foo’ [-Wmissing-prototypes]
      arch/um/os-Linux/main.c:187:7: warning: no previous prototype for ‘__wrap_malloc’ [-Wmissing-prototypes]
      arch/um/os-Linux/main.c:208:7: warning: no previous prototype for ‘__wrap_calloc’ [-Wmissing-prototypes]
      arch/um/os-Linux/main.c:222:6: warning: no previous prototype for ‘__wrap_free’ [-Wmissing-prototypes]
      arch/x86/um/user-offsets.c:17:6: warning: no previous prototype for ‘foo’ [-Wmissing-prototypes]
      Signed-off-by: default avatarTiwei Bie <tiwei.btw@antgroup.com>
      Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
      49ff7d87
    • Tiwei Bie's avatar
      um: Fix -Wmissing-prototypes warnings for text_poke* · 19cf7915
      Tiwei Bie authored
      The prototypes for text_poke* are declared in asm/text-patching.h
      under arch/x86/include/. It's safe to include this header, as it's
      UML-aware (by checking CONFIG_UML_X86).
      
      This will address below -Wmissing-prototypes warnings:
      
      arch/um/kernel/um_arch.c:461:7: warning: no previous prototype for ‘text_poke’ [-Wmissing-prototypes]
      arch/um/kernel/um_arch.c:473:6: warning: no previous prototype for ‘text_poke_sync’ [-Wmissing-prototypes]
      Signed-off-by: default avatarTiwei Bie <tiwei.btw@antgroup.com>
      Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
      19cf7915
    • Tiwei Bie's avatar
      um: Move declarations to proper headers · a4b4382f
      Tiwei Bie authored
      This will address below -Wmissing-prototypes warnings:
      
      arch/um/kernel/initrd.c:18:12: warning: no previous prototype for ‘read_initrd’ [-Wmissing-prototypes]
      arch/um/kernel/um_arch.c:408:19: warning: no previous prototype for ‘read_initrd’ [-Wmissing-prototypes]
      arch/um/os-Linux/start_up.c:301:12: warning: no previous prototype for ‘parse_iomem’ [-Wmissing-prototypes]
      arch/x86/um/ptrace_32.c:15:6: warning: no previous prototype for ‘arch_switch_to’ [-Wmissing-prototypes]
      arch/x86/um/ptrace_32.c:101:5: warning: no previous prototype for ‘poke_user’ [-Wmissing-prototypes]
      arch/x86/um/ptrace_32.c:153:5: warning: no previous prototype for ‘peek_user’ [-Wmissing-prototypes]
      arch/x86/um/ptrace_64.c:111:5: warning: no previous prototype for ‘poke_user’ [-Wmissing-prototypes]
      arch/x86/um/ptrace_64.c:171:5: warning: no previous prototype for ‘peek_user’ [-Wmissing-prototypes]
      arch/x86/um/syscalls_64.c:48:6: warning: no previous prototype for ‘arch_switch_to’ [-Wmissing-prototypes]
      arch/x86/um/tls_32.c:184:5: warning: no previous prototype for ‘arch_switch_tls’ [-Wmissing-prototypes]
      Signed-off-by: default avatarTiwei Bie <tiwei.btw@antgroup.com>
      Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
      a4b4382f
    • Tiwei Bie's avatar
      um: Add missing headers · 9ffc6724
      Tiwei Bie authored
      This will address below -Wmissing-prototypes warnings:
      
      arch/um/kernel/mem.c:202:8: warning: no previous prototype for ‘pgd_alloc’ [-Wmissing-prototypes]
      arch/um/kernel/mem.c:215:7: warning: no previous prototype for ‘uml_kmalloc’ [-Wmissing-prototypes]
      arch/um/kernel/process.c:207:6: warning: no previous prototype for ‘arch_cpu_idle’ [-Wmissing-prototypes]
      arch/um/kernel/process.c:328:15: warning: no previous prototype for ‘arch_align_stack’ [-Wmissing-prototypes]
      arch/um/kernel/reboot.c:45:6: warning: no previous prototype for ‘machine_restart’ [-Wmissing-prototypes]
      arch/um/kernel/reboot.c:51:6: warning: no previous prototype for ‘machine_power_off’ [-Wmissing-prototypes]
      arch/um/kernel/reboot.c:57:6: warning: no previous prototype for ‘machine_halt’ [-Wmissing-prototypes]
      arch/um/kernel/skas/mmu.c:17:5: warning: no previous prototype for ‘init_new_context’ [-Wmissing-prototypes]
      arch/um/kernel/skas/mmu.c:60:6: warning: no previous prototype for ‘destroy_context’ [-Wmissing-prototypes]
      arch/um/kernel/skas/process.c:36:12: warning: no previous prototype for ‘start_uml’ [-Wmissing-prototypes]
      arch/um/kernel/time.c:807:15: warning: no previous prototype for ‘calibrate_delay_is_known’ [-Wmissing-prototypes]
      arch/um/kernel/tlb.c:594:6: warning: no previous prototype for ‘force_flush_all’ [-Wmissing-prototypes]
      arch/x86/um/bugs_32.c:22:6: warning: no previous prototype for ‘arch_check_bugs’ [-Wmissing-prototypes]
      arch/x86/um/bugs_32.c:44:6: warning: no previous prototype for ‘arch_examine_signal’ [-Wmissing-prototypes]
      arch/x86/um/bugs_64.c:9:6: warning: no previous prototype for ‘arch_check_bugs’ [-Wmissing-prototypes]
      arch/x86/um/bugs_64.c:13:6: warning: no previous prototype for ‘arch_examine_signal’ [-Wmissing-prototypes]
      arch/x86/um/elfcore.c:10:12: warning: no previous prototype for ‘elf_core_extra_phdrs’ [-Wmissing-prototypes]
      arch/x86/um/elfcore.c:15:5: warning: no previous prototype for ‘elf_core_write_extra_phdrs’ [-Wmissing-prototypes]
      arch/x86/um/elfcore.c:42:5: warning: no previous prototype for ‘elf_core_write_extra_data’ [-Wmissing-prototypes]
      arch/x86/um/elfcore.c:63:8: warning: no previous prototype for ‘elf_core_extra_data_size’ [-Wmissing-prototypes]
      arch/x86/um/fault.c:18:5: warning: no previous prototype for ‘arch_fixup’ [-Wmissing-prototypes]
      arch/x86/um/os-Linux/mcontext.c:7:6: warning: no previous prototype for ‘get_regs_from_mc’ [-Wmissing-prototypes]
      arch/x86/um/os-Linux/tls.c:22:6: warning: no previous prototype for ‘check_host_supports_tls’ [-Wmissing-prototypes]
      Signed-off-by: default avatarTiwei Bie <tiwei.btw@antgroup.com>
      Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
      9ffc6724
    • Tiwei Bie's avatar
      um: Fix the return type of __switch_to · 179d83d8
      Tiwei Bie authored
      Make it match the declaration in asm-generic/switch_to.h. And
      also include the header to allow the compiler to check it.
      Signed-off-by: default avatarTiwei Bie <tiwei.btw@antgroup.com>
      Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
      179d83d8
    • Tiwei Bie's avatar
      um: Remove unused functions · b5e0950f
      Tiwei Bie authored
      These functions are not used anymore. Removing them will also address
      below -Wmissing-prototypes warnings:
      
      arch/um/kernel/process.c:51:5: warning: no previous prototype for ‘pid_to_processor_id’ [-Wmissing-prototypes]
      arch/um/kernel/process.c:253:5: warning: no previous prototype for ‘copy_to_user_proc’ [-Wmissing-prototypes]
      arch/um/kernel/process.c:263:5: warning: no previous prototype for ‘clear_user_proc’ [-Wmissing-prototypes]
      arch/um/kernel/tlb.c:579:6: warning: no previous prototype for ‘flush_tlb_mm_range’ [-Wmissing-prototypes]
      Signed-off-by: default avatarTiwei Bie <tiwei.btw@antgroup.com>
      Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
      b5e0950f
    • Tiwei Bie's avatar
      um: Fix the declaration of vfree · 0c2b208c
      Tiwei Bie authored
      The definition of vfree has changed since commit b3bdda02
      ("vmalloc: add const to void* parameters"). Update the declaration
      of vfree in um_malloc.h to match the latest definition.
      Signed-off-by: default avatarTiwei Bie <tiwei.btw@antgroup.com>
      Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
      0c2b208c
    • Tiwei Bie's avatar
      um: Make local functions and variables static · 53471c57
      Tiwei Bie authored
      This will also fix the warnings like:
      
      warning: no previous prototype for ‘fork_handler’ [-Wmissing-prototypes]
        140 | void fork_handler(void)
            |      ^~~~~~~~~~~~
      Signed-off-by: default avatarTiwei Bie <tiwei.btw@antgroup.com>
      Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
      53471c57
    • Duoming Zhou's avatar
      um: Fix return value in ubd_init() · 31a5990e
      Duoming Zhou authored
      When kmalloc_array() fails to allocate memory, the ubd_init()
      should return -ENOMEM instead of -1. So, fix it.
      
      Fixes: f88f0bdf ("um: UBD Improvements")
      Signed-off-by: default avatarDuoming Zhou <duoming@zju.edu.cn>
      Reviewed-by: default avatarJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
      31a5990e
  3. 21 Apr, 2024 7 commits
    • Linus Torvalds's avatar
      Linux 6.9-rc5 · ed30a4a5
      Linus Torvalds authored
      ed30a4a5
    • Linus Torvalds's avatar
      Merge tag 'char-misc-6.9-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc · 48cf398f
      Linus Torvalds authored
      Pull char / misc driver fixes from Greg KH:
       "Here are some small char/misc and other driver fixes for 6.9-rc5.
        Included in here are the following:
      
         - binder driver fix for reported problem
      
         - speakup crash fix
      
         - mei driver fixes for reported problems
      
         - comdei driver fix
      
         - interconnect driver fixes
      
         - rtsx driver fix
      
         - peci.h kernel doc fix
      
        All of these have been in linux-next for over a week with no reported
        problems"
      
      * tag 'char-misc-6.9-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc:
        peci: linux/peci.h: fix Excess kernel-doc description warning
        binder: check offset alignment in binder_get_object()
        comedi: vmk80xx: fix incomplete endpoint checking
        mei: vsc: Unregister interrupt handler for system suspend
        Revert "mei: vsc: Call wake_up() in the threaded IRQ handler"
        misc: rtsx: Fix rts5264 driver status incorrect when card removed
        mei: me: disable RPL-S on SPS and IGN firmwares
        speakup: Avoid crash on very long word
        interconnect: Don't access req_list while it's being manipulated
        interconnect: qcom: x1e80100: Remove inexistent ACV_PERF BCM
      48cf398f
    • Linus Torvalds's avatar
      Merge tag 'driver-core-6.9-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core · 4e90ba75
      Linus Torvalds authored
      Pull kernfs bugfix and documentation update from Greg KH:
       "Here are two changes for 6.9-rc5 that deal with "driver core" stuff,
        that do the following:
      
         - sysfs reference leak fix
      
         - embargoed-hardware-issues.rst update for Power
      
        Both of these have been in linux-next for over a week with no reported
        issues"
      
      * tag 'driver-core-6.9-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core:
        Documentation: embargoed-hardware-issues.rst: Add myself for Power
        fs: sysfs: Fix reference leak in sysfs_break_active_protection()
      4e90ba75
    • Linus Torvalds's avatar
      Merge tag 'tty-6.9-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty · c0c6b5c0
      Linus Torvalds authored
      Pull tty/serial driver fixes from Greg KH:
       "Here are some small tty and serial driver fixes for 6.9-rc5 that
        resolve a bunch of reported problems. Included in here are:
      
         - MAINTAINERS and .mailmap update for Richard Genoud
      
         - serial core regression fixes from 6.9-rc1 changes
      
         - pci id cleanups
      
         - serial core crash fix
      
         - stm32 driver fixes
      
         - 8250 driver fixes
      
        All of these have been in linux-next for a while with no reported
        problems"
      
      * tag 'tty-6.9-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
        serial: stm32: Reset .throttled state in .startup()
        serial: stm32: Return IRQ_NONE in the ISR if no handling happend
        serial: core: Fix missing shutdown and startup for serial base port
        serial: core: Clearing the circular buffer before NULLifying it
        MAINTAINERS: mailmap: update Richard Genoud's email address
        serial/pmac_zilog: Remove flawed mitigation for rx irq flood
        serial: 8250_pci: Remove redundant PCI IDs
        serial: core: Fix regression when runtime PM is not enabled
        serial: mxs-auart: add spinlock around changing cts state
        serial: 8250_dw: Revert: Do not reclock if already at correct rate
        serial: 8250_lpc18xx: disable clks on error in probe()
      c0c6b5c0
    • Linus Torvalds's avatar
      Merge tag 'usb-6.9-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb · 5fa0ab45
      Linus Torvalds authored
      Pull USB / Thunderbolt driver fixes from Greg KH:
       "Here are some small USB and Thunderbolt driver fixes for 6.9-rc5.
        Included in here are:
      
         - MAINTAINER file update for invalid email address
      
         - usb-serial device id updates
      
         - typec driver fixes
      
         - thunderbolt / usb4 driver fixes
      
         - usb core shutdown fixes
      
         - cdc-wdm driver revert for reported problem in -rc1
      
         - usb gadget driver fixes
      
         - xhci driver fixes
      
        All of these have been in linux-next for a while with no reported
        problems"
      
      * tag 'usb-6.9-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (25 commits)
        USB: serial: option: add Telit FN920C04 rmnet compositions
        usb: dwc3: ep0: Don't reset resource alloc flag
        Revert "usb: cdc-wdm: close race between read and workqueue"
        USB: serial: option: add Rolling RW101-GL and RW135-GL support
        USB: serial: option: add Lonsung U8300/U9300 product
        USB: serial: option: add support for Fibocom FM650/FG650
        USB: serial: option: support Quectel EM060K sub-models
        USB: serial: option: add Fibocom FM135-GL variants
        usb: misc: onboard_usb_hub: Disable the USB hub clock on failure
        thunderbolt: Avoid notify PM core about runtime PM resume
        thunderbolt: Fix wake configurations after device unplug
        usb: dwc2: host: Fix dereference issue in DDMA completion flow.
        usb: typec: mux: it5205: Fix ChipID value typo
        MAINTAINERS: Drop Li Yang as their email address stopped working
        usb: gadget: fsl: Initialize udc before using it
        usb: Disable USB3 LPM at shutdown
        usb: gadget: f_ncm: Fix UAF ncm object at re-bind after usb ep transport error
        usb: typec: tcpm: Correct the PDO counting in pd_set
        usb: gadget: functionfs: Wait for fences before enqueueing DMABUF
        usb: gadget: functionfs: Fix inverted DMA fence direction
        ...
      5fa0ab45
    • Linus Torvalds's avatar
      Merge tag 'sched_urgent_for_v6.9_rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 3b680865
      Linus Torvalds authored
      Pull scheduler fix from Borislav Petkov:
      
       - Add a missing memory barrier in the concurrency ID mm switching
      
      * tag 'sched_urgent_for_v6.9_rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        sched: Add missing memory barrier in switch_mm_cid
      3b680865
    • Linus Torvalds's avatar
      Merge tag 'x86_urgent_for_v6.9_rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · d07a0b86
      Linus Torvalds authored
      Pull x86 fixes from Borislav Petkov:
      
       - Fix CPU feature dependencies of GFNI, VAES, and VPCLMULQDQ
      
       - Print the correct error code when FRED reports a bad event type
      
       - Add a FRED-specific INT80 handler without the special dances that
         need to happen in the current one
      
       - Enable the using-the-default-return-thunk-but-you-should-not warning
         only on configs which actually enable those special return thunks
      
       - Check the proper feature flags when selecting BHI retpoline
         mitigation
      
      * tag 'x86_urgent_for_v6.9_rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/cpufeatures: Fix dependencies for GFNI, VAES, and VPCLMULQDQ
        x86/fred: Fix incorrect error code printout in fred_bad_type()
        x86/fred: Fix INT80 emulation for FRED
        x86/retpolines: Enable the default thunk warning only on relevant configs
        x86/bugs: Fix BHI retpoline check
      d07a0b86
  4. 20 Apr, 2024 6 commits
    • Linus Torvalds's avatar
      Merge tag 'block-6.9-20240420' of git://git.kernel.dk/linux · 977b1ef5
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
       "Just two minor fixes that should go into the 6.9 kernel release, one
        fixing a regression with partition scanning errors, and one fixing a
        WARN_ON() that can get triggered if we race with a timer"
      
      * tag 'block-6.9-20240420' of git://git.kernel.dk/linux:
        blk-iocost: do not WARN if iocg was already offlined
        block: propagate partition scanning errors to the BLKRRPART ioctl
      977b1ef5
    • Linus Torvalds's avatar
      Merge tag 'email' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · 39316e5f
      Linus Torvalds authored
      Pull email address update from James Bottomley:
       "My IBM email has stopped working, so update to a working email
        address"
      
      * tag 'email' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
        MAINTAINERS: update to working email address
      39316e5f
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm · 81777226
      Linus Torvalds authored
      Pull kvm fixes from Paolo Bonzini:
       "This is a bit on the large side, mostly due to two changes:
      
         - Changes to disable some broken PMU virtualization (see below for
           details under "x86 PMU")
      
         - Clean up SVM's enter/exit assembly code so that it can be compiled
           without OBJECT_FILES_NON_STANDARD. This fixes a warning "Unpatched
           return thunk in use. This should not happen!" when running KVM
           selftests.
      
        Everything else is small bugfixes and selftest changes:
      
         - Fix a mostly benign bug in the gfn_to_pfn_cache infrastructure
           where KVM would allow userspace to refresh the cache with a bogus
           GPA. The bug has existed for quite some time, but was exposed by a
           new sanity check added in 6.9 (to ensure a cache is either
           GPA-based or HVA-based).
      
         - Drop an unused param from gfn_to_pfn_cache_invalidate_start() that
           got left behind during a 6.9 cleanup.
      
         - Fix a math goof in x86's hugepage logic for
           KVM_SET_MEMORY_ATTRIBUTES that results in an array overflow
           (detected by KASAN).
      
         - Fix a bug where KVM incorrectly clears root_role.direct when
           userspace sets guest CPUID.
      
         - Fix a dirty logging bug in the where KVM fails to write-protect
           SPTEs used by a nested guest, if KVM is using Page-Modification
           Logging and the nested hypervisor is NOT using EPT.
      
        x86 PMU:
      
         - Drop support for virtualizing adaptive PEBS, as KVM's
           implementation is architecturally broken without an obvious/easy
           path forward, and because exposing adaptive PEBS can leak host LBRs
           to the guest, i.e. can leak host kernel addresses to the guest.
      
         - Set the enable bits for general purpose counters in
           PERF_GLOBAL_CTRL at RESET time, as done by both Intel and AMD
           processors.
      
         - Disable LBR virtualization on CPUs that don't support LBR
           callstacks, as KVM unconditionally uses
           PERF_SAMPLE_BRANCH_CALL_STACK when creating the perf event, and
           would fail on such CPUs.
      
        Tests:
      
         - Fix a flaw in the max_guest_memory selftest that results in it
           exhausting the supply of ucall structures when run with more than
           256 vCPUs.
      
         - Mark KVM_MEM_READONLY as supported for RISC-V in
           set_memory_region_test"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm: (30 commits)
        KVM: Drop unused @may_block param from gfn_to_pfn_cache_invalidate_start()
        KVM: selftests: Add coverage of EPT-disabled to vmx_dirty_log_test
        KVM: x86/mmu: Fix and clarify comments about clearing D-bit vs. write-protecting
        KVM: x86/mmu: Remove function comments above clear_dirty_{gfn_range,pt_masked}()
        KVM: x86/mmu: Write-protect L2 SPTEs in TDP MMU when clearing dirty status
        KVM: x86/mmu: Precisely invalidate MMU root_role during CPUID update
        KVM: VMX: Disable LBR virtualization if the CPU doesn't support LBR callstacks
        perf/x86/intel: Expose existence of callback support to KVM
        KVM: VMX: Snapshot LBR capabilities during module initialization
        KVM: x86/pmu: Do not mask LVTPC when handling a PMI on AMD platforms
        KVM: x86: Snapshot if a vCPU's vendor model is AMD vs. Intel compatible
        KVM: x86: Stop compiling vmenter.S with OBJECT_FILES_NON_STANDARD
        KVM: SVM: Create a stack frame in __svm_sev_es_vcpu_run()
        KVM: SVM: Save/restore args across SEV-ES VMRUN via host save area
        KVM: SVM: Save/restore non-volatile GPRs in SEV-ES VMRUN via host save area
        KVM: SVM: Clobber RAX instead of RBX when discarding spec_ctrl_intercepted
        KVM: SVM: Drop 32-bit "support" from __svm_sev_es_vcpu_run()
        KVM: SVM: Wrap __svm_sev_es_vcpu_run() with #ifdef CONFIG_KVM_AMD_SEV
        KVM: SVM: Create a stack frame in __svm_vcpu_run() for unwinding
        KVM: SVM: Remove a useless zeroing of allocated memory
        ...
      81777226
    • Linus Torvalds's avatar
      Merge tag 'powerpc-6.9-3' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · e43afae4
      Linus Torvalds authored
      Pull powerpc fixes from Michael Ellerman:
      
       - Fix wireguard loading failure on pre-Power10 due to Power10 crypto
         routines
      
       - Fix papr-vpd selftest failure due to missing variable initialization
      
       - Avoid unnecessary get/put in spapr_tce_platform_iommu_attach_dev()
      
      Thanks to Geetika Moolchandani, Jason Gunthorpe, Michal Suchánek, Nathan
      Lynch, and Shivaprasad G Bhat.
      
      * tag 'powerpc-6.9-3' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
        selftests/powerpc/papr-vpd: Fix missing variable initialization
        powerpc/crypto/chacha-p10: Fix failure on non Power10
        powerpc/iommu: Refactor spapr_tce_platform_iommu_attach_dev()
      e43afae4
    • Linus Torvalds's avatar
      Merge tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux · 560d4e77
      Linus Torvalds authored
      Pull clk fixes from Stephen Boyd:
       "A couple clk driver fixes, a build fix, and a deadlock fix:
      
         - Mediatek mt7988 has broken PCIe because the wrong parent is used
      
         - Mediatek clk drivers may deadlock when registering their clks
           because the clk provider device is repeatedly runtime PM resumed
           and suspended during probe and clk registration.
      
           Resuming the clk provider device deadlocks with an ABBA deadlock
           due to genpd_lock and the clk prepare_lock. The fix is to keep the
           device runtime resumed while registering clks.
      
         - Another runtime PM related deadlock, this time with disabling
           unused clks during late init.
      
           We get an ABBA deadlock where a device is runtime PM resuming (or
           suspending) while the disabling of unused clks is happening in
           parallel. That runtime PM action calls into the clk framework and
           tries to grab the clk prepare_lock while the disabling of unused
           clks holds the prepare_lock and is waiting for that runtime PM
           action to complete.
      
           The fix is to runtime resume all the clk provider devices before
           grabbing the clk prepare_lock during disable unused.
      
         - A build fix to provide an empty devm_clk_rate_exclusive_get()
           function when CONFIG_COMMON_CLK=n"
      
      * tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux:
        clk: mediatek: mt7988-infracfg: fix clocks for 2nd PCIe port
        clk: mediatek: Do a runtime PM get on controllers during probe
        clk: Get runtime PM before walking tree for clk_summary
        clk: Get runtime PM before walking tree during disable_unused
        clk: Initialize struct clk_core kref earlier
        clk: Don't hold prepare_lock when calling kref_put()
        clk: Remove prepare_lock hold assertion in __clk_release()
        clk: Provide !COMMON_CLK dummy for devm_clk_rate_exclusive_get()
      560d4e77
    • James Bottomley's avatar
      MAINTAINERS: update to working email address · 366c5cec
      James Bottomley authored
      jejb@linux.ibm.com no longer works.
      Signed-off-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
      366c5cec
  5. 19 Apr, 2024 8 commits
    • Linus Torvalds's avatar
      Merge tag 'perf-tools-fixes-for-v6.9-2024-04-19' of... · 13a2e429
      Linus Torvalds authored
      Merge tag 'perf-tools-fixes-for-v6.9-2024-04-19' of git://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools
      
      Pull perf tools fixes from Namhyung Kim:
       "A random set of small bug fixes:
      
         - Fix perf annotate TUI when used with data type profiling
      
         - Work around BPF verifier about sighand lock checking
      
        And a set of kernel header synchronization"
      
      * tag 'perf-tools-fixes-for-v6.9-2024-04-19' of git://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools:
        tools/include: Sync arm64 asm/cputype.h with the kernel sources
        tools/include: Sync asm-generic/bitops/fls.h with the kernel sources
        tools/include: Sync x86 asm/msr-index.h with the kernel sources
        tools/include: Sync x86 asm/irq_vectors.h with the kernel sources
        tools/include: Sync x86 CPU feature headers with the kernel sources
        tools/include: Sync uapi/sound/asound.h with the kernel sources
        tools/include: Sync uapi/linux/kvm.h and asm/kvm.h with the kernel sources
        tools/include: Sync uapi/linux/fs.h with the kernel sources
        tools/include: Sync uapi/drm/i915_drm.h with the kernel sources
        perf lock contention: Add a missing NULL check
        perf annotate: Make sure to call symbol__annotate2() in TUI
      13a2e429
    • Linus Torvalds's avatar
      Merge tag 'hardening-v6.9-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux · 2d412262
      Linus Torvalds authored
      Pull hardening fixes from Kees Cook:
      
       - Correctly disable UBSAN configs in configs/hardening (Nathan
         Chancellor)
      
       - Add missing signed integer overflow trap types to arm64 handler
      
      * tag 'hardening-v6.9-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux:
        ubsan: Add awareness of signed integer overflow traps
        configs/hardening: Disable CONFIG_UBSAN_SIGNED_WRAP
        configs/hardening: Fix disabling UBSAN configurations
      2d412262
    • Linus Torvalds's avatar
      Merge tag 'for-linus-iommufd' of git://git.kernel.org/pub/scm/linux/kernel/git/jgg/iommufd · 50a1317f
      Linus Torvalds authored
      Pull iommufd fixes from Jason Gunthorpe:
       "Two fixes for the selftests:
      
         - CONFIG_IOMMUFD_TEST needs CONFIG_IOMMUFD_DRIVER to work
      
         - The kconfig fragment sshould include fault injection so the fault
           injection test can work"
      
      * tag 'for-linus-iommufd' of git://git.kernel.org/pub/scm/linux/kernel/git/jgg/iommufd:
        iommufd: Add config needed for iommufd_fail_nth
        iommufd: Add missing IOMMUFD_DRIVER kconfig for the selftest
      50a1317f
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma · 2bf5dd7c
      Linus Torvalds authored
      Pull rdma fixes from Jason Gunthorpe:
      
       - Add a missing mutex_destroy() in rxe
      
       - Enhance the debugging print for cm_destroy failures to help debug
         these
      
       - Fix mlx5 MAD processing in cases where multiport devices are running
         in switchedev mode
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma:
        RDMA/mlx5: Fix port number for counter query in multi-port configuration
        RDMA/cm: Print the old state when cm_destroy_id gets timeout
        RDMA/rxe: Fix the problem "mutex_destroy missing"
      2bf5dd7c
    • Linus Torvalds's avatar
      Merge tag '9p-fixes-for-6.9-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/ericvh/v9fs · 46b28503
      Linus Torvalds authored
      Pull fs/9p fixes from Eric Van Hensbergen:
       "This contains a reversion of one of the original 6.9 patches which
        seems to have been the cause of most of the instability. It also
        incorporates several fixes to legacy support and cache fixes.
      
        There are few additional changes to improve stability, but I want
        another week of testing before sending them upstream"
      
      * tag '9p-fixes-for-6.9-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/ericvh/v9fs:
        fs/9p: drop inodes immediately on non-.L too
        fs/9p: Revert "fs/9p: fix dups even in uncached mode"
        fs/9p: remove erroneous nlink init from legacy stat2inode
        9p: explicitly deny setlease attempts
        fs/9p: fix the cache always being enabled on files with qid flags
        fs/9p: translate O_TRUNC into OTRUNC
        fs/9p: only translate RWX permissions for plain 9P2000
      46b28503
    • Linus Torvalds's avatar
      Merge tag 'fuse-fixes-6.9-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse · daa75776
      Linus Torvalds authored
      Pull fuse fixes from Miklos Szeredi:
      
       - Fix two bugs in the new passthrough mode
      
       - Fix a statx bug introduced in v6.6
      
       - Fix code documentation
      
      * tag 'fuse-fixes-6.9-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/fuse:
        cuse: add kernel-doc comments to cuse_process_init_reply()
        fuse: fix leaked ENOSYS error on first statx call
        fuse: fix parallel dio write on file open in passthrough mode
        fuse: fix wrong ff->iomode state changes from parallel dio write
      daa75776
    • Linus Torvalds's avatar
      Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux · 25ec51ec
      Linus Torvalds authored
      Pull arm64 fixes from Catalin Marinas:
      
       - Fix a kernel fault during page table walking in huge_pte_alloc() with
         PTABLE_LEVELS=5 due to using p4d_offset() instead of p4d_alloc()
      
       - head.S fix and cleanup to disable the MMU before toggling the
         HCR_EL2.E2H bit when entering the kernel with the MMU on from the EFI
         stub. Changing this bit (currently from VHE to nVHE) causes some
         system registers as well as page table descriptors to be interpreted
         differently, potentially resulting in spurious MMU faults
      
       - Fix translation fault in swsusp_save() accessing MEMBLOCK_NOMAP
         memory ranges due to kernel_page_present() returning true in most
         configurations other than rodata_full == true,
         CONFIG_DEBUG_PAGEALLOC=y or CONFIG_KFENCE=y
      
      * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
        arm64: hibernate: Fix level3 translation fault in swsusp_save()
        arm64/head: Disable MMU at EL2 before clearing HCR_EL2.E2H
        arm64/head: Drop unnecessary pre-disable-MMU workaround
        arm64/hugetlb: Fix page table walk in huge_pte_alloc()
      25ec51ec
    • Linus Torvalds's avatar
      Merge tag 's390-6.9-4' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux · 3cdb4559
      Linus Torvalds authored
      Pull s390 updates from Alexander Gordeev:
      
       - Fix NULL pointer dereference in program check handler
      
       - Fake IRBs are important events relevant for problem analysis. Add
         traces when queueing and delivering
      
       - Fix a race condition in ccw_device_set_online() that can cause the
         online process to fail
      
       - Deferred condition code 1 response indicates that I/O was not started
         and should be retried. The current QDIO implementation handles a cc1
         response as an error, resulting in a failed QDIO setup. Fix that by
         retrying the setup when a cc1 response is received
      
      * tag 's390-6.9-4' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux:
        s390/mm: Fix NULL pointer dereference
        s390/cio: log fake IRB events
        s390/cio: fix race condition during online processing
        s390/qdio: handle deferred cc1
      3cdb4559