1. 28 Mar, 2022 1 commit
  2. 23 Mar, 2022 1 commit
  3. 17 Mar, 2022 1 commit
  4. 23 Feb, 2022 1 commit
    • David Vernet's avatar
      livepatch: Skip livepatch tests if ftrace cannot be configured · 4327b9ea
      David Vernet authored
      livepatch has a set of selftests that are used to validate the behavior of
      the livepatching subsystem.  One of the testcases in the livepatch
      testsuite is test-ftrace.sh, which among other things, validates that
      livepatching gracefully fails when ftrace is disabled.  In the event that
      ftrace cannot be disabled using 'sysctl kernel.ftrace_enabled=0', the test
      will fail later due to it unexpectedly successfully loading the
      test_klp_livepatch module.
      
      While the livepatch selftests are careful to remove any of the livepatch
      test modules between testcases to avoid this situation, ftrace may still
      fail to be disabled if another trace is active on the system that was
      enabled with FTRACE_OPS_FL_PERMANENT.  For example, any active BPF programs
      that use trampolines will cause this test to fail due to the trampoline
      being implemented with register_ftrace_direct().  The following is an
      example of such a trace:
      
      tcp_drop (1) R I D      tramp: ftrace_regs_caller+0x0/0x58
      (call_direct_funcs+0x0/0x30)
              direct-->bpf_trampoline_6442550536_0+0x0/0x1000
      
      In order to make the test more resilient to system state that is out of its
      control, this patch updates set_ftrace_enabled() to detect sysctl failures,
      and skip the testrun when appropriate.
      Suggested-by: default avatarPetr Mladek <pmladek@suse.com>
      Signed-off-by: default avatarDavid Vernet <void@manifault.com>
      Acked-by: default avatarMiroslav Benes <mbenes@suse.cz>
      Reviewed-by: default avatarPetr Mladek <pmladek@suse.com>
      Tested-by: default avatarPetr Mladek <pmladek@suse.com>
      Acked-by: default avatarJoe Lawrence <joe.lawrence@redhat.com>
      Signed-off-by: default avatarPetr Mladek <pmladek@suse.com>
      Link: https://lore.kernel.org/r/20220216161100.3243100-1-void@manifault.com
      4327b9ea
  5. 16 Jan, 2022 7 commits
    • Linus Torvalds's avatar
      Merge tag 'livepatching-for-5.17' of... · 77dbd72b
      Linus Torvalds authored
      Merge tag 'livepatching-for-5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/livepatching/livepatching
      
      Pull livepatching updates from Petr Mladek:
      
       - Correctly handle kobjects when a livepatch init fails
      
       - Avoid CPU hogging when searching for many livepatched symbols
      
       - Add livepatch API page into documentation
      
      * tag 'livepatching-for-5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/livepatching/livepatching:
        livepatch: Avoid CPU hogging with cond_resched
        livepatch: Fix missing unlock on error in klp_enable_patch()
        livepatch: Fix kobject refcount bug on klp_init_patch_early failure path
        Documentation: livepatch: Add livepatch API page
      77dbd72b
    • Linus Torvalds's avatar
      Merge tag 'pci-v5.17-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci · d0a231f0
      Linus Torvalds authored
      Pull pci updates from Bjorn Helgaas:
       "Enumeration:
         - Use pci_find_vsec_capability() instead of open-coding it (Andy
           Shevchenko)
         - Convert pci_dev_present() stub from macro to static inline to avoid
           'unused variable' errors (Hans de Goede)
         - Convert sysfs slot attributes from default_attrs to default_groups
           (Greg Kroah-Hartman)
         - Use DWORD accesses for LTR, L1 SS to avoid BayHub OZ711LV2 erratum
           (Rajat Jain)
         - Remove unnecessary initialization of static variables (Longji Guo)
      
        Resource management:
         - Always write Intel I210 ROM BAR on update to work around device
           defect (Bjorn Helgaas)
      
        PCIe native device hotplug:
         - Fix pciehp lockdep errors on Thunderbolt undock (Hans de Goede)
         - Fix infinite loop in pciehp IRQ handler on power fault (Lukas
           Wunner)
      
        Power management:
         - Convert amd64-agp, sis-agp, via-agp from legacy PCI power
           management to generic power management (Vaibhav Gupta)
      
        IOMMU:
         - Add function 1 DMA alias quirk for Marvell 88SE9125 SATA controller
           so it can work with an IOMMU (Yifeng Li)
      
        Error handling:
         - Add PCI_ERROR_RESPONSE and related definitions for signaling and
           checking for transaction errors on PCI (Naveen Naidu)
         - Fabricate PCI_ERROR_RESPONSE data (~0) in config read wrappers,
           instead of in host controller drivers, when transactions fail on
           PCI (Naveen Naidu)
         - Use PCI_POSSIBLE_ERROR() to check for possible failure of config
           reads (Naveen Naidu)
      
        Peer-to-peer DMA:
         - Add Logan Gunthorpe as P2PDMA maintainer (Bjorn Helgaas)
      
        ASPM:
         - Calculate link L0s and L1 exit latencies when needed instead of
           caching them (Saheed O. Bolarinwa)
         - Calculate device L0s and L1 acceptable exit latencies when needed
           instead of caching them (Saheed O. Bolarinwa)
         - Remove struct aspm_latency since it's no longer needed (Saheed O.
           Bolarinwa)
      
        APM X-Gene PCIe controller driver:
         - Fix IB window setup, which was broken by the fact that IB resources
           are now sorted in address order instead of DT dma-ranges order (Rob
           Herring)
      
        Apple PCIe controller driver:
         - Enable clock gating to save power (Hector Martin)
         - Fix REFCLK1 enable/poll logic (Hector Martin)
      
        Broadcom STB PCIe controller driver:
         - Declare bitmap correctly for use by bitmap interfaces (Christophe
           JAILLET)
         - Clean up computation of legacy and non-legacy MSI bitmasks (Florian
           Fainelli)
         - Update suspend/resume/remove error handling to warn about errors
           and not fail the operation (Jim Quinlan)
         - Correct the "pcie" and "msi" interrupt descriptions in DT binding
           (Jim Quinlan)
         - Add DT bindings for endpoint voltage regulators (Jim Quinlan)
         - Split brcm_pcie_setup() into two functions (Jim Quinlan)
         - Add mechanism for turning on voltage regulators for connected
           devices (Jim Quinlan)
         - Turn voltage regulators for connected devices on/off when bus is
           added or removed (Jim Quinlan)
         - When suspending, don't turn off voltage regulators for wakeup
           devices (Jim Quinlan)
      
        Freescale i.MX6 PCIe controller driver:
         - Add i.MX8MM support (Richard Zhu)
      
        Freescale Layerscape PCIe controller driver:
         - Use DWC common ops instead of layerscape-specific link-up functions
           (Hou Zhiqiang)
      
        Intel VMD host bridge driver:
         - Honor platform ACPI _OSC feature negotiation for Root Ports below
           VMD (Kai-Heng Feng)
         - Add support for Raptor Lake SKUs (Karthik L Gopalakrishnan)
         - Reset everything below VMD before enumerating to work around
           failure to enumerate NVMe devices when guest OS reboots (Nirmal
           Patel)
      
        Bridge emulation (used by Marvell Aardvark and MVEBU):
         - Make emulated ROM BAR read-only by default (Pali Rohár)
         - Make some emulated legacy PCI bits read-only for PCIe devices (Pali
           Rohár)
         - Update reserved bits in emulated PCIe Capability (Pali Rohár)
         - Allow drivers to emulate different PCIe Capability versions (Pali
           Rohár)
         - Set emulated Capabilities List bit for all PCIe devices, since they
           must have at least a PCIe Capability (Pali Rohár)
      
        Marvell Aardvark PCIe controller driver:
         - Add bridge emulation definitions for PCIe DEVCAP2, DEVCTL2,
           DEVSTA2, LNKCAP2, LNKCTL2, LNKSTA2, SLTCAP2, SLTCTL2, SLTSTA2 (Pali
           Rohár)
         - Add aardvark support for DEVCAP2, DEVCTL2, LNKCAP2 and LNKCTL2
           registers (Pali Rohár)
         - Clear all MSIs at setup to avoid spurious interrupts (Pali Rohár)
         - Disable bus mastering when unbinding host controller driver (Pali
           Rohár)
         - Mask all interrupts when unbinding host controller driver (Pali
           Rohár)
         - Fix memory leak in host controller unbind (Pali Rohár)
         - Assert PERST# when unbinding host controller driver (Pali Rohár)
         - Disable link training when unbinding host controller driver (Pali
           Rohár)
         - Disable common PHY when unbinding host controller driver (Pali
           Rohár)
         - Fix resource type checking to check only IORESOURCE_MEM, not
           IORESOURCE_MEM_64, which is a flavor of IORESOURCE_MEM (Pali Rohár)
      
        Marvell MVEBU PCIe controller driver:
         - Implement pci_remap_iospace() for ARM so mvebu can use
           devm_pci_remap_iospace() instead of the previous ARM-specific
           pci_ioremap_io() interface (Pali Rohár)
         - Use the standard pci_host_probe() instead of the device-specific
           mvebu_pci_host_probe() (Pali Rohár)
         - Replace all uses of ARM-specific pci_ioremap_io() with the ARM
           implementation of the standard pci_remap_iospace() interface and
           remove pci_ioremap_io() (Pali Rohár)
         - Skip initializing invalid Root Ports (Pali Rohár)
         - Check for errors from pci_bridge_emul_init() (Pali Rohár)
         - Ignore any bridges at non-zero function numbers (Pali Rohár)
         - Return ~0 data for invalid config read size (Pali Rohár)
         - Disallow mapping interrupts on emulated bridges (Pali Rohár)
         - Clear Root Port Memory & I/O Space Enable and Bus Master Enable at
           initialization (Pali Rohár)
         - Make type bits in Root Port I/O Base register read-only (Pali
           Rohár)
         - Disable Root Port windows when base/limit set to invalid values
           (Pali Rohár)
         - Set controller to Root Complex mode (Pali Rohár)
         - Set Root Port Class Code to PCI Bridge (Pali Rohár)
         - Update emulated Root Port secondary bus numbers to better reflect
           the actual topology (Pali Rohár)
         - Add PCI_BRIDGE_CTL_BUS_RESET support to emulated Root Ports so
           pci_reset_secondary_bus() can reset connected devices (Pali Rohár)
         - Add PCI_EXP_DEVCTL Error Reporting Enable support to emulated Root
           Ports (Pali Rohár)
         - Add PCI_EXP_RTSTA PME Status bit support to emulated Root Ports
           (Pali Rohár)
         - Add DEVCAP2, DEVCTL2 and LNKCTL2 support to emulated Root Ports on
           Armada XP and newer devices (Pali Rohár)
         - Export mvebu-mbus.c symbols to allow pci-mvebu.c to be a module
           (Pali Rohár)
         - Add support for compiling as a module (Pali Rohár)
      
        MediaTek PCIe controller driver:
         - Assert PERST# for 100ms to allow power and clock to stabilize
           (qizhong cheng)
      
        MediaTek PCIe Gen3 controller driver:
         - Disable Mediatek DVFSRC voltage request since lack of DVFSRC to
           respond to the request causes failure to exit L1 PM Substate
           (Jianjun Wang)
      
        MediaTek MT7621 PCIe controller driver:
         - Declare mt7621_pci_ops static (Sergio Paracuellos)
         - Give pcibios_root_bridge_prepare() access to host bridge windows
           (Sergio Paracuellos)
         - Move MIPS I/O coherency unit setup from driver to
           pcibios_root_bridge_prepare() (Sergio Paracuellos)
         - Add missing MODULE_LICENSE() (Sergio Paracuellos)
         - Allow COMPILE_TEST for all arches (Sergio Paracuellos)
      
        Microsoft Hyper-V host bridge driver:
         - Add hv-internal interfaces to encapsulate arch IRQ dependencies
           (Sunil Muthuswamy)
         - Add arm64 Hyper-V vPCI support (Sunil Muthuswamy)
      
        Qualcomm PCIe controller driver:
         - Undo PM setup in qcom_pcie_probe() error handling path (Christophe
           JAILLET)
         - Use __be16 type to store return value from cpu_to_be16()
           (Manivannan Sadhasivam)
         - Constify static dw_pcie_ep_ops (Rikard Falkeborn)
      
        Renesas R-Car PCIe controller driver:
         - Fix aarch32 abort handler so it doesn't check the wrong bus clock
           before accessing the host controller (Marek Vasut)
      
        TI Keystone PCIe controller driver:
         - Add register offset for ti,syscon-pcie-id and ti,syscon-pcie-mode
           DT properties (Kishon Vijay Abraham I)
      
        MicroSemi Switchtec management driver:
         - Add Gen4 automotive device IDs (Kelvin Cao)
         - Declare state_names[] as static so it's not allocated and
           initialized for every call (Kelvin Cao)
      
        Host controller driver cleanups:
         - Use of_device_get_match_data(), not of_match_device(), when we only
           need the device data in altera, artpec6, cadence, designware-plat,
           dra7xx, keystone, kirin (Fan Fei)
         - Drop pointless of_device_get_match_data() cast in j721e (Bjorn
           Helgaas)
         - Drop redundant struct device * from j721e since struct cdns_pcie
           already has one (Bjorn Helgaas)
         - Rename driver structs to *_pcie in intel-gw, iproc, ls-gen4,
           mediatek-gen3, microchip, mt7621, rcar-gen2, tegra194, uniphier,
           xgene, xilinx, xilinx-cpm for consistency across drivers (Fan Fei)
         - Fix invalid address space conversions in hisi, spear13xx (Bjorn
           Helgaas)
      
        Miscellaneous:
         - Sort Intel Device IDs by value (Andy Shevchenko)
         - Change Capability offsets to hex to match spec (Baruch Siach)
         - Correct misspellings (Krzysztof Wilczyński)
         - Terminate statement with semicolon in pci_endpoint_test.c (Ming
           Wang)"
      
      * tag 'pci-v5.17-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci: (151 commits)
        PCI: mt7621: Allow COMPILE_TEST for all arches
        PCI: mt7621: Add missing MODULE_LICENSE()
        PCI: mt7621: Move MIPS setup to pcibios_root_bridge_prepare()
        PCI: Let pcibios_root_bridge_prepare() access bridge->windows
        PCI: mt7621: Declare mt7621_pci_ops static
        PCI: brcmstb: Do not turn off WOL regulators on suspend
        PCI: brcmstb: Add control of subdevice voltage regulators
        PCI: brcmstb: Add mechanism to turn on subdev regulators
        PCI: brcmstb: Split brcm_pcie_setup() into two funcs
        dt-bindings: PCI: Add bindings for Brcmstb EP voltage regulators
        dt-bindings: PCI: Correct brcmstb interrupts, interrupt-map.
        PCI: brcmstb: Fix function return value handling
        PCI: brcmstb: Do not use __GENMASK
        PCI: brcmstb: Declare 'used' as bitmap, not unsigned long
        PCI: hv: Add arm64 Hyper-V vPCI support
        PCI: hv: Make the code arch neutral by adding arch specific interfaces
        PCI: pciehp: Use down_read/write_nested(reset_lock) to fix lockdep errors
        x86/PCI: Remove initialization of static variables to false
        PCI: Use DWORD accesses for LTR, L1 SS to avoid erratum
        misc: pci_endpoint_test: Terminate statement with semicolon
        ...
      d0a231f0
    • Linus Torvalds's avatar
      Merge tag 'exfat-for-5.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/linkinjeon/exfat · 88db8458
      Linus Torvalds authored
      Pull exfat updates from Namjae Jeon:
      
       - Fix ->i_blocks truncation issue that still exists elsewhere.
      
       - Four cleanups & typos fixes.
      
       - Move super block magic number to magic.h
      
       - Fix missing REQ_SYNC in exfat_update_bhs().
      
      * tag 'exfat-for-5.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/linkinjeon/exfat:
        exfat: fix missing REQ_SYNC in exfat_update_bhs()
        exfat: remove argument 'sector' from exfat_get_dentry()
        exfat: move super block magic number to magic.h
        exfat: fix i_blocks for files truncated over 4 GiB
        exfat: reuse exfat_inode_info variable instead of calling EXFAT_I()
        exfat: make exfat_find_location() static
        exfat: fix typos in comments
        exfat: simplify is_valid_cluster()
      88db8458
    • Linus Torvalds's avatar
      Merge tag 'nfsd-5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux · 175398a0
      Linus Torvalds authored
      Pull nfsd updates from Chuck Lever:
       "Bruce has announced he is leaving Red Hat at the end of the month and
        is stepping back from his role as NFSD co-maintainer. As a result,
        this includes a patch removing him from the MAINTAINERS file.
      
        There is one patch in here that Jeff Layton was carrying in the locks
        tree. Since he had only one for this cycle, he asked us to send it to
        you via the nfsd tree.
      
        There continues to be 0-day reports from Robert Morris @MIT. This time
        we include a fix for a crash in the COPY_NOTIFY operation.
      
        Highlights:
         - Bruce steps down as NFSD maintainer
         - Prepare for dynamic nfsd thread management
         - More work on supporting re-exporting NFS mounts
         - One fs/locks patch on behalf of Jeff Layton
      
        Notable bug fixes:
         - Fix zero-length NFSv3 WRITEs
         - Fix directory cinfo on FS's that do not support iversion
         - Fix WRITE verifiers for stable writes
         - Fix crash on COPY_NOTIFY with a special state ID"
      
      * tag 'nfsd-5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux: (51 commits)
        SUNRPC: Fix sockaddr handling in svcsock_accept_class trace points
        SUNRPC: Fix sockaddr handling in the svc_xprt_create_error trace point
        fs/locks: fix fcntl_getlk64/fcntl_setlk64 stub prototypes
        nfsd: fix crash on COPY_NOTIFY with special stateid
        MAINTAINERS: remove bfields
        NFSD: Move fill_pre_wcc() and fill_post_wcc()
        Revert "nfsd: skip some unnecessary stats in the v4 case"
        NFSD: Trace boot verifier resets
        NFSD: Rename boot verifier functions
        NFSD: Clean up the nfsd_net::nfssvc_boot field
        NFSD: Write verifier might go backwards
        nfsd: Add a tracepoint for errors in nfsd4_clone_file_range()
        NFSD: De-duplicate net_generic(nf->nf_net, nfsd_net_id)
        NFSD: De-duplicate net_generic(SVC_NET(rqstp), nfsd_net_id)
        NFSD: Clean up nfsd_vfs_write()
        nfsd: Replace use of rwsem with errseq_t
        NFSD: Fix verifier returned in stable WRITEs
        nfsd: Retry once in nfsd_open on an -EOPENSTALE return
        nfsd: Add errno mapping for EREMOTEIO
        nfsd: map EBADF
        ...
      175398a0
    • Linus Torvalds's avatar
      Merge tag '9p-for-5.17-rc1' of git://github.com/martinetd/linux · 49ad227d
      Linus Torvalds authored
      Pull 9p updates from Dominique Martinet:
       "Fixes, split 9p_net_fd, and new reviewer:
      
         - fix possible uninitialized memory usage for setattr
      
         - fix fscache reading hole in a file just after it's been grown
      
         - split net/9p/trans_fd.c in its own module like other transports.
      
           The new transport module defaults to 9P_NET and is autoloaded if
           required so users should not be impacted
      
         - add Christian Schoenebeck to 9p reviewers
      
         - some more trivial cleanup"
      
      * tag '9p-for-5.17-rc1' of git://github.com/martinetd/linux:
        9p: fix enodata when reading growing file
        net/9p: show error message if user 'msize' cannot be satisfied
        MAINTAINERS: 9p: add Christian Schoenebeck as reviewer
        9p: only copy valid iattrs in 9P2000.L setattr implementation
        9p: Use BUG_ON instead of if condition followed by BUG.
        net/p9: load default transports
        9p/xen: autoload when xenbus service is available
        9p/trans_fd: split into dedicated module
        fs: 9p: remove unneeded variable
        9p/trans_virtio: Fix typo in the comment for p9_virtio_create()
      49ad227d
    • Linus Torvalds's avatar
      Merge tag 'drm-next-2022-01-14' of git://anongit.freedesktop.org/drm/drm · 59d41458
      Linus Torvalds authored
      Pull drm fixes from Daniel Vetter:
      "drivers fixes:
      
         - i915 fixes for ttm backend + one pm wakelock fix
      
         - amdgpu fixes, fairly big pile of small things all over. Note this
           doesn't yet containe the fixed version of the otg sync patch that
           blew up
      
         - small driver fixes: meson, sun4i, vga16fb probe fix
      
        drm core fixes:
      
         - cma-buf heap locking
      
         - ttm compilation
      
         - self refresh helper state check
      
         - wrong error message in atomic helpers
      
         - mipi-dbi buffer mapping"
      
      * tag 'drm-next-2022-01-14' of git://anongit.freedesktop.org/drm/drm: (49 commits)
        drm/mipi-dbi: Fix source-buffer address in mipi_dbi_buf_copy
        drm: fix error found in some cases after the patch d1af5cd86997
        drm/ttm: fix compilation on ARCH=um
        dma-buf: cma_heap: Fix mutex locking section
        video: vga16fb: Only probe for EGA and VGA 16 color graphic cards
        drm/amdkfd: Fix ASIC name typos
        drm/amdkfd: Fix DQM asserts on Hawaii
        drm/amdgpu: Use correct VIEWPORT_DIMENSION for DCN2
        drm/amd/pm: only send GmiPwrDnControl msg on master die (v3)
        drm/amdgpu: use spin_lock_irqsave to avoid deadlock by local interrupt
        drm/amdgpu: not return error on the init_apu_flags
        drm/amdkfd: Use prange->update_list head for remove_list
        drm/amdkfd: Use prange->list head for insert_list
        drm/amdkfd: make SPDX License expression more sound
        drm/amdkfd: Check for null pointer after calling kmemdup
        drm/amd/display: invalid parameter check in dmub_hpd_callback
        Revert "drm/amdgpu: Don't inherit GEM object VMAs in child process"
        drm/amd/display: reset dcn31 SMU mailbox on failures
        drm/amdkfd: use default_groups in kobj_type
        drm/amdgpu: use default_groups in kobj_type
        ...
      59d41458
    • Linus Torvalds's avatar
      Merge tag 'memblock-v5.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock · 2aab34f8
      Linus Torvalds authored
      Pull memblock cleanup from Mike Rapoport:
       "Remove #ifdef __KERNEL__ from memblock.h
      
        memblock.h is not a uAPI header, so __KERNEL__ guard can be deleted"
      
      * tag 'memblock-v5.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock:
        memblock: Remove #ifdef __KERNEL__ from memblock.h
      2aab34f8
  6. 15 Jan, 2022 29 commits