1. 26 Sep, 2024 30 commits
    • Linus Torvalds's avatar
      Merge tag 'efi-next-for-v6.12' of git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi · 1abcb8c9
      Linus Torvalds authored
      Pull EFI updates from Ard Biesheuvel:
       "Not a lot happening in EFI land this cycle.
      
         - Prevent kexec from crashing on a corrupted TPM log by using a
           memory type that is reserved by default
      
         - Log correctable errors reported via CPER
      
         - A couple of cosmetic fixes"
      
      * tag 'efi-next-for-v6.12' of git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi:
        efi: Remove redundant null pointer checks in efi_debugfs_init()
        efistub/tpm: Use ACPI reclaim memory for event log to avoid corruption
        efi/cper: Print correctable AER information
        efi: Remove unused declaration efi_initialize_iomem_resources()
      1abcb8c9
    • Linus Torvalds's avatar
      Revert "binfmt_elf, coredump: Log the reason of the failed core dumps" · a78282e2
      Linus Torvalds authored
      This reverts commit fb97d2eb.
      
      The logging was questionable to begin with, but it seems to actively
      deadlock on the task lock.
      
       "On second thought, let's not log core dump failures. 'Tis a silly place"
      
      because if you can't tell your core dump is truncated, maybe you should
      just fix your debugger instead of adding bugs to the kernel.
      Reported-by: default avatarVegard Nossum <vegard.nossum@oracle.com>
      Link: https://lore.kernel.org/all/d122ece6-3606-49de-ae4d-8da88846bef2@oracle.com/Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      a78282e2
    • Linus Torvalds's avatar
      Merge tag 'net-6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net · 62a0e2fa
      Linus Torvalds authored
      Pull networking fixes from Paolo Abeni:
       "Including fixes from netfilter.
      
        It looks like that most people are still traveling: both the ML volume
        and the processing capacity are low.
      
        Previous releases - regressions:
      
          - netfilter:
              - nf_reject_ipv6: fix nf_reject_ip6_tcphdr_put()
              - nf_tables: keep deleted flowtable hooks until after RCU
      
          - tcp: check skb is non-NULL in tcp_rto_delta_us()
      
          - phy: aquantia: fix -ETIMEDOUT PHY probe failure when firmware not
            present
      
          - eth: virtio_net: fix mismatched buf address when unmapping for
            small packets
      
          - eth: stmmac: fix zero-division error when disabling tc cbs
      
          - eth: bonding: fix unnecessary warnings and logs from
            bond_xdp_get_xmit_slave()
      
        Previous releases - always broken:
      
          - netfilter:
              - fix clash resolution for bidirectional flows
              - fix allocation with no memcg accounting
      
          - eth: r8169: add tally counter fields added with RTL8125
      
          - eth: ravb: fix rx and tx frame size limit"
      
      * tag 'net-6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (35 commits)
        selftests: netfilter: Avoid hanging ipvs.sh
        kselftest: add test for nfqueue induced conntrack race
        netfilter: nfnetlink_queue: remove old clash resolution logic
        netfilter: nf_tables: missing objects with no memcg accounting
        netfilter: nf_tables: use rcu chain hook list iterator from netlink dump path
        netfilter: ctnetlink: compile ctnetlink_label_size with CONFIG_NF_CONNTRACK_EVENTS
        netfilter: nf_reject: Fix build warning when CONFIG_BRIDGE_NETFILTER=n
        netfilter: nf_tables: Keep deleted flowtable hooks until after RCU
        docs: tproxy: ignore non-transparent sockets in iptables
        netfilter: ctnetlink: Guard possible unused functions
        selftests: netfilter: nft_tproxy.sh: add tcp tests
        selftests: netfilter: add reverse-clash resolution test case
        netfilter: conntrack: add clash resolution for reverse collisions
        netfilter: nf_nat: don't try nat source port reallocation for reverse dir clash
        selftests/net: packetdrill: increase timing tolerance in debug mode
        usbnet: fix cyclical race on disconnect with work queue
        net: stmmac: set PP_FLAG_DMA_SYNC_DEV only if XDP is enabled
        virtio_net: Fix mismatched buf address when unmapping for small packets
        bonding: Fix unnecessary warnings and logs from bond_xdp_get_xmit_slave()
        r8169: add missing MODULE_FIRMWARE entry for RTL8126A rev.b
        ...
      62a0e2fa
    • Linus Torvalds's avatar
      Merge tag 'char-misc-6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc · 5e546643
      Linus Torvalds authored
      Pull char / misc driver updates from Greg KH:
       "Here is the "big" set of char/misc and other driver subsystem changes
        for 6.12-rc1.
      
        Lots of changes in here, primarily dominated by the usual IIO driver
        updates and additions, but there are also small driver subsystem
        updates all over the place. Included in here are:
      
         - lots and lots of new IIO drivers and updates to existing ones
      
         - interconnect subsystem updates and new drivers
      
         - nvmem subsystem updates and new drivers
      
         - mhi driver updates
      
         - power supply subsystem updates
      
         - kobj_type const work for many different small subsystems
      
         - comedi driver fix
      
         - coresight subsystem and driver updates
      
         - fpga subsystem improvements
      
         - slimbus fixups
      
         - binder new feature addition for "frozen" notifications
      
         - lots and lots of other small driver updates and cleanups
      
        All of these have been in linux-next for a long time with no reported
        problems"
      
      * tag 'char-misc-6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (354 commits)
        greybus: gb-beagleplay: Add firmware upload API
        arm64: dts: ti: k3-am625-beagleplay: Add bootloader-backdoor-gpios to cc1352p7
        dt-bindings: net: ti,cc1352p7: Add bootloader-backdoor-gpios
        MAINTAINERS: Update path for U-Boot environment variables YAML
        nvmem: layouts: add U-Boot env layout
        comedi: ni_routing: tools: Check when the file could not be opened
        ocxl: Remove the unused declarations in headr file
        hpet: Fix the wrong format specifier
        uio: Constify struct kobj_type
        cxl: Constify struct kobj_type
        binder: modify the comment for binder_proc_unlock
        iio: adc: axp20x_adc: add support for AXP717 ADC
        dt-bindings: iio: adc: Add AXP717 compatible
        iio: adc: axp20x_adc: Add adc_en1 and adc_en2 to axp_data
        w1: ds2482: Drop explicit initialization of struct i2c_device_id::driver_data to 0
        tools: iio: rm .*.cmd when make clean
        iio: adc: standardize on formatting for id match tables
        iio: proximity: aw96103: Add support for aw96103/aw96105 proximity sensor
        bus: mhi: host: pci_generic: Enable EDL trigger for Foxconn modems
        bus: mhi: host: pci_generic: Update EDL firmware path for Foxconn modems
        ...
      5e546643
    • Linus Torvalds's avatar
      Merge tag 'staging-6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging · b707512b
      Linus Torvalds authored
      Pull staging driver updates from Greg KH:
       "Here is the big set of staging driver cleanups and removals for
        6.12-rc1.
      
        Nothing exciting here, just slow, constant, forward progress in
        removing code and cleaning up some old drivers, along with removing
        one of them that was not being used anymore at all. In discussions
        with some developers this past week, even more deletions will be
        happening for the next major merge window, as we seems to have code
        here that obviously no one is using anymore.
      
        Along with the normal cleanups is the good vme_user code forward
        progress, the one major bright spot in the staging subsystem for code
        that people rely on, and is getting good development behind it.
        Hopefully it can graduate out of staging "soon".
      
        All of these changes have been in linux-next for a long time with no
        reported problems"
      
      * tag 'staging-6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (141 commits)
        staging: vt6655: Rename variable apTD1Rings
        staging: vt6655: Rename variable apTD0Rings
        staging: rtl8723bs: remove unused 'poll_cnt' from rtw_set_rpwm()
        staging: rtl8723bs: remove unused cnt from recv_func()
        staging: rtl8723bs: remove unused efuseValue from efuse_OneByteWrite()
        staging: rtl8712: remove unused drvinfo_sz from update_recvframe_attrib
        staging: vt6655: mac.h: Fix possible precedence issue in macros
        staging: rtl8723bs: include: Remove spaces before tabs in rtw_security.h
        staging: rtl8723bs: include: Fix trailing */ position in rtw_security.h
        staging: rtl8723bs: include: Fix indent for else block struct in rtw_security.h
        staging: rtl8723bs: include: Fix indent for struct _byte_ in rtw_security.h
        staging: rtl8723bs: include: Fix use of tabs for indent in rtw_security.h
        staging: rtl8723bs: include: Fix indent for switch block in rtw_security.h
        staging: rtl8723bs: include: Fix indent for switch case in rtw_security.h
        staging: rtl8723bs: include: Fix open brace position in rtw_security.h
        staging: nvec: Use IRQF_NO_AUTOEN flag in request_irq()
        staging: rtl8723bs: Remove unused file rtw_rf.c
        staging: rtl8723bs: Remove unused function rtw_ch2freq
        staging: rtl8723bs: Remove unused files rtw_debug.c and rtw_debug.h
        staging: rtl8723bs: Remove unused function dump_4_regs
        ...
      b707512b
    • Linus Torvalds's avatar
      Merge tag 'tty-6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty · 356a0319
      Linus Torvalds authored
      Pull tty / serial driver updates from Greg KH:
       "Here is the "big" set of tty/serial driver updates for 6.12-rc1.
      
        Nothing major in here, just nice forward progress in the slow cleanup
        of the serial apis, and lots of other driver updates and fixes.
      
        Included in here are:
      
         - serial api updates from Jiri to make things more uniform and sane
      
         - 8250_platform driver cleanups
      
         - samsung serial driver fixes and updates
      
         - qcom-geni serial driver fixes from Johan for the bizarre UART
           engine that that chip seems to have. Hopefully it's in a better
           state now, but hardware designers still seem to come up with more
           ways to make broken UARTS 40+ years after this all should have
           finished.
      
         - sc16is7xx driver updates
      
         - omap 8250 driver updates
      
         - 8250_bcm2835aux driver updates
      
         - a few new serial driver bindings added
      
         - other serial minor driver updates
      
        All of these have been in linux-next for a long time with no reported
        problems"
      
      * tag 'tty-6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty: (65 commits)
        tty: serial: samsung: Fix serial rx on Apple A7-A9
        tty: serial: samsung: Fix A7-A11 serial earlycon SError
        tty: serial: samsung: Use bit manipulation macros for APPLE_S5L_*
        tty: rp2: Fix reset with non forgiving PCIe host bridges
        serial: 8250_aspeed_vuart: Enable module autoloading
        serial: qcom-geni: fix polled console corruption
        serial: qcom-geni: disable interrupts during console writes
        serial: qcom-geni: fix console corruption
        serial: qcom-geni: introduce qcom_geni_serial_poll_bitfield()
        serial: qcom-geni: fix arg types for qcom_geni_serial_poll_bit()
        soc: qcom: geni-se: add GP_LENGTH/IRQ_EN_SET/IRQ_EN_CLEAR registers
        serial: qcom-geni: fix false console tx restart
        serial: qcom-geni: fix fifo polling timeout
        tty: hvc: convert comma to semicolon
        mxser: convert comma to semicolon
        serial: 8250_bcm2835aux: Fix clock imbalance in PM resume
        serial: sc16is7xx: convert bitmask definitions to use BIT() macro
        serial: sc16is7xx: fix copy-paste errors in EFR_SWFLOWx_BIT constants
        serial: sc16is7xx: remove SC16IS7XX_MSR_DELTA_MASK
        serial: xilinx_uartps: Make cdns_rs485_supported static
        ...
      356a0319
    • Linus Torvalds's avatar
      Merge tag 'usb-6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb · 4965ddb1
      Linus Torvalds authored
      Pull USB/Thunderbolt updates from Greg KH:
       "Here is the large set of USB and Thunderbolt changes for 6.12-rc1.
      
        Nothing "major" in here, except for a new 9p network gadget that has
        been worked on for a long time (all of the needed acks are here)
      
        Other than that, it's the usual set of:
      
         - Thunderbolt / USB4 driver updates and additions for new hardware
      
         - dwc3 driver updates and new features added
      
         - xhci driver updates
      
         - typec driver updates
      
         - USB gadget updates and api additions to make some gadgets more
           configurable by userspace
      
         - dwc2 driver updates
      
         - usb phy driver updates
      
         - usbip feature additions
      
         - other minor USB driver updates
      
        All of these have been in linux-next for a long time with no reported
        issues"
      
      * tag 'usb-6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (145 commits)
        sub: cdns3: Use predefined PCI vendor ID constant
        sub: cdns2: Use predefined PCI vendor ID constant
        USB: misc: yurex: fix race between read and write
        USB: misc: cypress_cy7c63: check for short transfer
        USB: appledisplay: close race between probe and completion handler
        USB: class: CDC-ACM: fix race between get_serial and set_serial
        usb: r8a66597-hcd: make read-only const arrays static
        usb: typec: ucsi: Fix busy loop on ASUS VivoBooks
        usb: dwc3: rtk: Clean up error code in __get_dwc3_maximum_speed()
        usb: storage: ene_ub6250: Fix right shift warnings
        usb: roles: Improve the fix for a false positive recursive locking complaint
        locking/mutex: Introduce mutex_init_with_key()
        locking/mutex: Define mutex_init() once
        net/9p/usbg: fix CONFIG_USB_GADGET dependency
        usb: xhci: fix loss of data on Cadence xHC
        usb: xHCI: add XHCI_RESET_ON_RESUME quirk for Phytium xHCI host
        usb: dwc3: imx8mp: disable SS_CON and U3 wakeup for system sleep
        usb: dwc3: imx8mp: add 2 software managed quirk properties for host mode
        usb: host: xhci-plat: Parse xhci-missing_cas_quirk and apply quirk
        usb: misc: onboard_usb_dev: add Microchip usb5744 SMBus programming support
        ...
      4965ddb1
    • Linus Torvalds's avatar
      Merge tag 'hid-for-linus-2024092601' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid · 13882369
      Linus Torvalds authored
      Pull HID fix from Jiri Kosina:
       "A revert of Device Tree binding for Goodix SPI HID driver (while
        keeping ACPI still available), as it conflicted with already existing
        binding and the original submitter didn't respond in time with a fix.
      
        We will be looking into ways how to reintroduce it properly (we have
        to agree on a way how to handle cases where vendor uses the very same
        product ID for I2C and SPI parts, leading to this kind conflict). But
        before that is settled, let's revert the to unbreak everybody else
        (Krzysztof Kozlowski)"
      
      * tag 'hid-for-linus-2024092601' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid:
        dt-bindings: input: Revert "dt-bindings: input: Goodix SPI HID Touchscreen"
        HID: hid-goodix: drop unsupported and undocumented DT part
      13882369
    • Linus Torvalds's avatar
      Merge tag 'v6.12-rc-smb3-client-fixes-part2' of git://git.samba.org/sfrench/cifs-2.6 · ac34bb40
      Linus Torvalds authored
      Pull smb client fixes from Steve French:
       "Most are from the recent SMB3.1.1 test event, and also an important
        netfs fix for a cifs mtime write regression
      
         - fix mode reported by stat of readonly directories and files
      
         - DFS (global namespace) related fixes
      
         - fixes for special file support via reparse points
      
         - mount improvement and reconnect fix
      
         - fix for noisy log message on umount
      
         - two netfs related fixes, one fixing a recent regression, and add
           new write tracepoint"
      
      * tag 'v6.12-rc-smb3-client-fixes-part2' of git://git.samba.org/sfrench/cifs-2.6:
        netfs, cifs: Fix mtime/ctime update for mmapped writes
        cifs: update internal version number
        smb: client: print failed session logoffs with FYI
        cifs: Fix reversion of the iter in cifs_readv_receive().
        smb3: fix incorrect mode displayed for read-only files
        smb: client: fix parsing of device numbers
        smb: client: set correct device number on nfs reparse points
        smb: client: propagate error from cifs_construct_tcon()
        smb: client: fix DFS failover in multiuser mounts
        cifs: Make the write_{enter,done,err} tracepoints display netfs info
        smb: client: fix DFS interlink failover
        smb: client: improve purging of cached referrals
        smb: client: avoid unnecessary reconnects when refreshing referrals
      ac34bb40
    • Linus Torvalds's avatar
      Merge tag 'probes-v6.12' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace · 5159938e
      Linus Torvalds authored
      Pull probes updates from Masami Hiramatsu:
      
       - uprobes: make trace_uprobe->nhit counter a per-CPU one
      
         This makes uprobe event's hit counter per-CPU for improving
         scalability on multi-core environment
      
       - kprobes: Remove obsoleted declaration for init_test_probes
      
         Remove unused init_test_probes() from header
      
       - Raw tracepoint probe supports raw tracepoint events on modules:
           - add a function for iterating over all tracepoints in all modules
           - add a function for iterating over tracepoints in a module
           - support raw tracepoint events on modules
           - support raw tracepoints on future loaded modules
           - add a test for tracepoint events on modules"
      
      * tag 'probes-v6.12' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace:
        sefltests/tracing: Add a test for tracepoint events on modules
        tracing/fprobe: Support raw tracepoints on future loaded modules
        tracing/fprobe: Support raw tracepoint events on modules
        tracepoint: Support iterating tracepoints in a loading module
        tracepoint: Support iterating over tracepoints on modules
        kprobes: Remove obsoleted declaration for init_test_probes
        uprobes: turn trace_uprobe's nhit counter to be per-CPU one
      5159938e
    • Linus Torvalds's avatar
      Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost · 0181f8c8
      Linus Torvalds authored
      Pull virtio updates from Michael Tsirkin:
       "Several new features here:
      
         - virtio-balloon supports new stats
      
         - vdpa supports setting mac address
      
         - vdpa/mlx5 suspend/resume as well as MKEY ops are now faster
      
         - virtio_fs supports new sysfs entries for queue info
      
         - virtio/vsock performance has been improved
      
        And fixes, cleanups all over the place"
      
      * tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost: (34 commits)
        vsock/virtio: avoid queuing packets when intermediate queue is empty
        vsock/virtio: refactor virtio_transport_send_pkt_work
        fw_cfg: Constify struct kobj_type
        vdpa/mlx5: Postpone MR deletion
        vdpa/mlx5: Introduce init/destroy for MR resources
        vdpa/mlx5: Rename mr_mtx -> lock
        vdpa/mlx5: Extract mr members in own resource struct
        vdpa/mlx5: Rename function
        vdpa/mlx5: Delete direct MKEYs in parallel
        vdpa/mlx5: Create direct MKEYs in parallel
        MAINTAINERS: add virtio-vsock driver in the VIRTIO CORE section
        virtio_fs: add sysfs entries for queue information
        virtio_fs: introduce virtio_fs_put_locked helper
        vdpa: Remove unused declarations
        vdpa/mlx5: Parallelize VQ suspend/resume for CVQ MQ command
        vdpa/mlx5: Small improvement for change_num_qps()
        vdpa/mlx5: Keep notifiers during suspend but ignore
        vdpa/mlx5: Parallelize device resume
        vdpa/mlx5: Parallelize device suspend
        vdpa/mlx5: Use async API for vq modify commands
        ...
      0181f8c8
    • Paolo Abeni's avatar
      Merge tag 'nf-24-09-26' of git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf · aef3a58b
      Paolo Abeni authored
      Pablo Neira Ayuso says:
      
      ====================
      Netfilter fixes for net
      
      v2: with kdoc fixes per Paolo Abeni.
      
      The following patchset contains Netfilter fixes for net:
      
      Patch #1 and #2 handle an esoteric scenario: Given two tasks sending UDP
      packets to one another, two packets of the same flow in each direction
      handled by different CPUs that result in two conntrack objects in NEW
      state, where reply packet loses race. Then, patch #3 adds a testcase for
      this scenario. Series from Florian Westphal.
      
      1) NAT engine can falsely detect a port collision if it happens to pick
         up a reply packet as NEW rather than ESTABLISHED. Add extra code to
         detect this and suppress port reallocation in this case.
      
      2) To complete the clash resolution in the reply direction, extend conntrack
         logic to detect clashing conntrack in the reply direction to existing entry.
      
      3) Adds a test case.
      
      Then, an assorted list of fixes follow:
      
      4) Add a selftest for tproxy, from Antonio Ojea.
      
      5) Guard ctnetlink_*_size() functions under
         #if defined(CONFIG_NETFILTER_NETLINK_GLUE_CT) || defined(CONFIG_NF_CONNTRACK_EVENTS)
         From Andy Shevchenko.
      
      6) Use -m socket --transparent in iptables tproxy documentation.
         From XIE Zhibang.
      
      7) Call kfree_rcu() when releasing flowtable hooks to address race with
         netlink dump path, from Phil Sutter.
      
      8) Fix compilation warning in nf_reject with CONFIG_BRIDGE_NETFILTER=n.
         From Simon Horman.
      
      9) Guard ctnetlink_label_size() under CONFIG_NF_CONNTRACK_EVENTS which
         is its only user, to address a compilation warning. From Simon Horman.
      
      10) Use rcu-protected list iteration over basechain hooks from netlink
          dump path.
      
      11) Fix memcg for nf_tables, use GFP_KERNEL_ACCOUNT is not complete.
      
      12) Remove old nfqueue conntrack clash resolution. Instead trying to
          use same destination address consistently which requires double DNAT,
          use the existing clash resolution which allows clashing packets
          go through with different destination. Antonio Ojea originally
          reported an issue from the postrouting chain, I proposed a fix:
          https://lore.kernel.org/netfilter-devel/ZuwSwAqKgCB2a51-@calendula/T/
          which he reported it did not work for him.
      
      13) Adds a selftest for patch 12.
      
      14) Fixes ipvs.sh selftest.
      
      netfilter pull request 24-09-26
      
      * tag 'nf-24-09-26' of git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf:
        selftests: netfilter: Avoid hanging ipvs.sh
        kselftest: add test for nfqueue induced conntrack race
        netfilter: nfnetlink_queue: remove old clash resolution logic
        netfilter: nf_tables: missing objects with no memcg accounting
        netfilter: nf_tables: use rcu chain hook list iterator from netlink dump path
        netfilter: ctnetlink: compile ctnetlink_label_size with CONFIG_NF_CONNTRACK_EVENTS
        netfilter: nf_reject: Fix build warning when CONFIG_BRIDGE_NETFILTER=n
        netfilter: nf_tables: Keep deleted flowtable hooks until after RCU
        docs: tproxy: ignore non-transparent sockets in iptables
        netfilter: ctnetlink: Guard possible unused functions
        selftests: netfilter: nft_tproxy.sh: add tcp tests
        selftests: netfilter: add reverse-clash resolution test case
        netfilter: conntrack: add clash resolution for reverse collisions
        netfilter: nf_nat: don't try nat source port reallocation for reverse dir clash
      ====================
      
      Link: https://patch.msgid.link/20240926110717.102194-1-pablo@netfilter.orgSigned-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
      aef3a58b
    • Phil Sutter's avatar
      selftests: netfilter: Avoid hanging ipvs.sh · fc786304
      Phil Sutter authored
      If the client can't reach the server, the latter remains listening
      forever. Kill it after 5s of waiting.
      
      Fixes: 867d2190 ("selftests: netfilter: add ipvs test script")
      Signed-off-by: default avatarPhil Sutter <phil@nwl.cc>
      Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
      fc786304
    • Florian Westphal's avatar
      kselftest: add test for nfqueue induced conntrack race · e306e373
      Florian Westphal authored
      The netfilter race happens when two packets with the same tuple are DNATed
      and enqueued with nfqueue in the postrouting hook.
      
      Once one of the packet is reinjected it may be DNATed again to a different
      destination, but the conntrack entry remains the same and the return packet
      was dropped.
      
      Based on earlier patch from Antonio Ojea.
      
      Link: https://bugzilla.netfilter.org/show_bug.cgi?id=1766Co-developed-by: default avatarAntonio Ojea <aojea@google.com>
      Signed-off-by: default avatarAntonio Ojea <aojea@google.com>
      Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
      Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
      e306e373
    • Florian Westphal's avatar
      netfilter: nfnetlink_queue: remove old clash resolution logic · 8af79d3e
      Florian Westphal authored
      For historical reasons there are two clash resolution spots in
      netfilter, one in nfnetlink_queue and one in conntrack core.
      
      nfnetlink_queue one was added first: If a colliding entry is found, NAT
      NAT transformation is reversed by calling nat engine again with altered
      tuple.
      
      See commit 368982cd ("netfilter: nfnetlink_queue: resolve clash for
      unconfirmed conntracks") for details.
      
      One problem is that nf_reroute() won't take an action if the queueing
      doesn't occur in the OUTPUT hook, i.e. when queueing in forward or
      postrouting, packet will be sent via the wrong path.
      
      Another problem is that the scenario addressed (2nd UDP packet sent with
      identical addresses while first packet is still being processed) can also
      occur without any nfqueue involvement due to threaded resolvers doing
      A and AAAA requests back-to-back.
      
      This lead us to add clash resolution logic to the conntrack core, see
      commit 6a757c07 ("netfilter: conntrack: allow insertion of clashing
      entries").  Instead of fixing the nfqueue based logic, lets remove it
      and let conntrack core handle this instead.
      
      Retain the ->update hook for sake of nfqueue based conntrack helpers.
      We could axe this hook completely but we'd have to split confirm and
      helper logic again, see commit ee04805f ("netfilter: conntrack: make
      conntrack userspace helpers work again").
      
      This SHOULD NOT be backported to kernels earlier than v5.6; they lack
      adequate clash resolution handling.
      
      Patch was originally written by Pablo Neira Ayuso.
      Reported-by: default avatarAntonio Ojea <aojea@google.com>
      Closes: https://bugzilla.netfilter.org/show_bug.cgi?id=1766Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
      Tested-by: default avatarAntonio Ojea <aojea@google.com>
      Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
      8af79d3e
    • Pablo Neira Ayuso's avatar
      netfilter: nf_tables: missing objects with no memcg accounting · 69e687ce
      Pablo Neira Ayuso authored
      Several ruleset objects are still not using GFP_KERNEL_ACCOUNT for
      memory accounting, update them. This includes:
      
      - catchall elements
      - compat match large info area
      - log prefix
      - meta secctx
      - numgen counters
      - pipapo set backend datastructure
      - tunnel private objects
      
      Fixes: 33758c89 ("memcg: enable accounting for nft objects")
      Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
      69e687ce
    • Pablo Neira Ayuso's avatar
      netfilter: nf_tables: use rcu chain hook list iterator from netlink dump path · 4ffcf5ca
      Pablo Neira Ayuso authored
      Lockless iteration over hook list is possible from netlink dump path,
      use rcu variant to iterate over the hook list as is done with flowtable
      hooks.
      
      Fixes: b9703ed4 ("netfilter: nf_tables: support for adding new devices to an existing netdev chain")
      Reported-by: default avatarPhil Sutter <phil@nwl.cc>
      Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
      4ffcf5ca
    • Simon Horman's avatar
      netfilter: ctnetlink: compile ctnetlink_label_size with CONFIG_NF_CONNTRACK_EVENTS · e1f1ee0e
      Simon Horman authored
      Only provide ctnetlink_label_size when it is used,
      which is when CONFIG_NF_CONNTRACK_EVENTS is configured.
      
      Flagged by clang-18 W=1 builds as:
      
      .../nf_conntrack_netlink.c:385:19: warning: unused function 'ctnetlink_label_size' [-Wunused-function]
        385 | static inline int ctnetlink_label_size(const struct nf_conn *ct)
            |                   ^~~~~~~~~~~~~~~~~~~~
      
      The condition on CONFIG_NF_CONNTRACK_LABELS being removed by
      this patch guards compilation of non-trivial implementations
      of ctnetlink_dump_labels() and ctnetlink_label_size().
      
      However, this is not necessary as each of these functions
      will always return 0 if CONFIG_NF_CONNTRACK_LABELS is not defined
      as each function starts with the equivalent of:
      
      	struct nf_conn_labels *labels = nf_ct_labels_find(ct);
      
      	if (!labels)
      		return 0;
      
      And nf_ct_labels_find always returns NULL if CONFIG_NF_CONNTRACK_LABELS
      is not enabled.  So I believe that the compiler optimises the code away
      in such cases anyway.
      
      Found by inspection.
      Compile tested only.
      
      Originally splitted in two patches, Pablo Neira Ayuso collapsed them and
      added Fixes: tag.
      
      Fixes: 0ceabd83 ("netfilter: ctnetlink: deliver labels to userspace")
      Link: https://lore.kernel.org/netfilter-devel/20240909151712.GZ2097826@kernel.org/Signed-off-by: default avatarSimon Horman <horms@kernel.org>
      Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
      e1f1ee0e
    • Simon Horman's avatar
      netfilter: nf_reject: Fix build warning when CONFIG_BRIDGE_NETFILTER=n · fc56878c
      Simon Horman authored
      If CONFIG_BRIDGE_NETFILTER is not enabled, which is the case for x86_64
      defconfig, then building nf_reject_ipv4.c and nf_reject_ipv6.c with W=1
      using gcc-14 results in the following warnings, which are treated as
      errors:
      
      net/ipv4/netfilter/nf_reject_ipv4.c: In function 'nf_send_reset':
      net/ipv4/netfilter/nf_reject_ipv4.c:243:23: error: variable 'niph' set but not used [-Werror=unused-but-set-variable]
        243 |         struct iphdr *niph;
            |                       ^~~~
      cc1: all warnings being treated as errors
      net/ipv6/netfilter/nf_reject_ipv6.c: In function 'nf_send_reset6':
      net/ipv6/netfilter/nf_reject_ipv6.c:286:25: error: variable 'ip6h' set but not used [-Werror=unused-but-set-variable]
        286 |         struct ipv6hdr *ip6h;
            |                         ^~~~
      cc1: all warnings being treated as errors
      
      Address this by reducing the scope of these local variables to where
      they are used, which is code only compiled when CONFIG_BRIDGE_NETFILTER
      enabled.
      
      Compile tested and run through netfilter selftests.
      Reported-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Closes: https://lore.kernel.org/netfilter-devel/20240906145513.567781-1-andriy.shevchenko@linux.intel.com/Signed-off-by: default avatarSimon Horman <horms@kernel.org>
      Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
      fc56878c
    • Phil Sutter's avatar
      netfilter: nf_tables: Keep deleted flowtable hooks until after RCU · 642c89c4
      Phil Sutter authored
      Documentation of list_del_rcu() warns callers to not immediately free
      the deleted list item. While it seems not necessary to use the
      RCU-variant of list_del() here in the first place, doing so seems to
      require calling kfree_rcu() on the deleted item as well.
      
      Fixes: 3f0465a9 ("netfilter: nf_tables: dynamically allocate hooks per net_device in flowtables")
      Signed-off-by: default avatarPhil Sutter <phil@nwl.cc>
      Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
      642c89c4
    • 谢致邦 (XIE Zhibang)'s avatar
      docs: tproxy: ignore non-transparent sockets in iptables · aa758763
      谢致邦 (XIE Zhibang) authored
      The iptables example was added in commit d2f26037 (netfilter: Add
      documentation for tproxy, 2008-10-08), but xt_socket 'transparent'
      option was added in commit a31e1ffd (netfilter: xt_socket: added new
      revision of the 'socket' match supporting flags, 2009-06-09).
      
      Now add the 'transparent' option to the iptables example to ignore
      non-transparent sockets, which is also consistent with the nft example.
      Signed-off-by: default avatar谢致邦 (XIE Zhibang) <Yeking@Red54.com>
      Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
      aa758763
    • Andy Shevchenko's avatar
      netfilter: ctnetlink: Guard possible unused functions · 2cadd3b1
      Andy Shevchenko authored
      Some of the functions may be unused (CONFIG_NETFILTER_NETLINK_GLUE_CT=n
      and CONFIG_NF_CONNTRACK_EVENTS=n), it prevents kernel builds with clang,
      `make W=1` and CONFIG_WERROR=y:
      
      net/netfilter/nf_conntrack_netlink.c:657:22: error: unused function 'ctnetlink_acct_size' [-Werror,-Wunused-function]
        657 | static inline size_t ctnetlink_acct_size(const struct nf_conn *ct)
            |                      ^~~~~~~~~~~~~~~~~~~
      net/netfilter/nf_conntrack_netlink.c:667:19: error: unused function 'ctnetlink_secctx_size' [-Werror,-Wunused-function]
        667 | static inline int ctnetlink_secctx_size(const struct nf_conn *ct)
            |                   ^~~~~~~~~~~~~~~~~~~~~
      net/netfilter/nf_conntrack_netlink.c:683:22: error: unused function 'ctnetlink_timestamp_size' [-Werror,-Wunused-function]
        683 | static inline size_t ctnetlink_timestamp_size(const struct nf_conn *ct)
            |                      ^~~~~~~~~~~~~~~~~~~~~~~~
      
      Fix this by guarding possible unused functions with ifdeffery.
      
      See also commit 6863f564 ("kbuild: allow Clang to find unused static
      inline functions for W=1 build").
      Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Reviewed-by: default avatarSimon Horman <horms@kernel.org>
      Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
      2cadd3b1
    • Antonio Ojea's avatar
      selftests: netfilter: nft_tproxy.sh: add tcp tests · 7e37e0ea
      Antonio Ojea authored
      The TPROXY functionality is widely used, however, there are only mptcp
      selftests covering this feature.
      
      The selftests represent the most common scenarios and can also be used
      as selfdocumentation of the feature.
      
      UDP and TCP testcases are split in different files because of the
      different nature of the protocols, specially due to the challenges that
      present to reliable test UDP due to the connectionless nature of the
      protocol. UDP only covers the scenarios involving the prerouting hook.
      
      The UDP tests are signfinicantly slower than the TCP ones, hence they
      use a larger timeout, it takes 20 seconds to run the full UDP suite
      on a 48 vCPU Intel(R) Xeon(R) CPU @2.60GHz.
      Signed-off-by: default avatarAntonio Ojea <aojea@google.com>
      Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
      7e37e0ea
    • Florian Westphal's avatar
      selftests: netfilter: add reverse-clash resolution test case · a57856c0
      Florian Westphal authored
      Add test program that is sending UDP packets in both directions
      and check that packets arrive without source port modification.
      Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
      Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
      a57856c0
    • Florian Westphal's avatar
      netfilter: conntrack: add clash resolution for reverse collisions · a4e6a103
      Florian Westphal authored
      Given existing entry:
      ORIGIN: a:b -> c:d
      REPLY:  c:d -> a:b
      
      And colliding entry:
      ORIGIN: c:d -> a:b
      REPLY:  a:b -> c:d
      
      The colliding ct (and the associated skb) get dropped on insert.
      Permit this by checking if the colliding entry matches the reply
      direction.
      
      Happens when both ends send packets at same time, both requests are picked
      up as NEW, rather than NEW for the 'first' and 'ESTABLISHED' for the
      second packet.
      
      This is an esoteric condition, as ruleset must permit NEW connections
      in either direction and both peers must already have a bidirectional
      traffic flow at the time conntrack gets enabled.
      
      Allow the 'reverse' skb to pass and assign the existing (clashing)
      entry.
      
      While at it, also drop the extra 'dying' check, this is already
      tested earlier by the calling function.
      Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
      Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
      a4e6a103
    • Florian Westphal's avatar
      netfilter: nf_nat: don't try nat source port reallocation for reverse dir clash · d8f84a9b
      Florian Westphal authored
      A conntrack entry can be inserted to the connection tracking table if there
      is no existing entry with an identical tuple in either direction.
      
      Example:
      INITIATOR -> NAT/PAT -> RESPONDER
      
      Initiator passes through NAT/PAT ("us") and SNAT is done (saddr rewrite).
      Then, later, NAT/PAT machine itself also wants to connect to RESPONDER.
      
      This will not work if the SNAT done earlier has same IP:PORT source pair.
      
      Conntrack table has:
      ORIGINAL: $IP_INITATOR:$SPORT -> $IP_RESPONDER:$DPORT
      REPLY:    $IP_RESPONDER:$DPORT -> $IP_NAT:$SPORT
      
      and new locally originating connection wants:
      ORIGINAL: $IP_NAT:$SPORT -> $IP_RESPONDER:$DPORT
      REPLY:    $IP_RESPONDER:$DPORT -> $IP_NAT:$SPORT
      
      This is handled by the NAT engine which will do a source port reallocation
      for the locally originating connection that is colliding with an existing
      tuple by attempting a source port rewrite.
      
      This is done even if this new connection attempt did not go through a
      masquerade/snat rule.
      
      There is a rare race condition with connection-less protocols like UDP,
      where we do the port reallocation even though its not needed.
      
      This happens when new packets from the same, pre-existing flow are received
      in both directions at the exact same time on different CPUs after the
      conntrack table was flushed (or conntrack becomes active for first time).
      
      With strict ordering/single cpu, the first packet creates new ct entry and
      second packet is resolved as established reply packet.
      
      With parallel processing, both packets are picked up as new and both get
      their own ct entry.
      
      In this case, the 'reply' packet (picked up as ORIGINAL) can be mangled by
      NAT engine because a port collision is detected.
      
      This change isn't enough to prevent a packet drop later during
      nf_conntrack_confirm(), the existing clash resolution strategy will not
      detect such reverse clash case.  This is resolved by a followup patch.
      Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
      Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
      d8f84a9b
    • Willem de Bruijn's avatar
      selftests/net: packetdrill: increase timing tolerance in debug mode · 72ef0755
      Willem de Bruijn authored
      Some packetdrill tests are flaky in debug mode. As discussed, increase
      tolerance.
      
      We have been doing this for debug builds outside ksft too.
      
      Previous setting was 10000. A manual 50 runs in virtme-ng showed two
      failures that needed 12000. To be on the safe side, Increase to 14000.
      
      Link: https://lore.kernel.org/netdev/Zuhhe4-MQHd3EkfN@mini-arch/
      Fixes: 1e42f73f ("selftests/net: packetdrill: import tcp/zerocopy")
      Reported-by: default avatarStanislav Fomichev <sdf@fomichev.me>
      Signed-off-by: default avatarWillem de Bruijn <willemb@google.com>
      Reviewed-by: default avatarSimon Horman <horms@kernel.org>
      Acked-by: default avatarStanislav Fomichev <sdf@fomichev.me>
      Acked-by: default avatarMatthieu Baerts (NGI0) <matttbe@kernel.org>
      Link: https://patch.msgid.link/20240919124412.3014326-1-willemdebruijn.kernel@gmail.comSigned-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
      72ef0755
    • Oliver Neukum's avatar
      usbnet: fix cyclical race on disconnect with work queue · 04e90683
      Oliver Neukum authored
      The work can submit URBs and the URBs can schedule the work.
      This cycle needs to be broken, when a device is to be stopped.
      Use a flag to do so.
      This is a design issue as old as the driver.
      Signed-off-by: default avatarOliver Neukum <oneukum@suse.com>
      Fixes: 1da177e4 ("Linux-2.6.12-rc2")
      CC: stable@vger.kernel.org
      Link: https://patch.msgid.link/20240919123525.688065-1-oneukum@suse.comSigned-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
      04e90683
    • Furong Xu's avatar
      net: stmmac: set PP_FLAG_DMA_SYNC_DEV only if XDP is enabled · b514c47e
      Furong Xu authored
      Commit 5fabb012 ("net: stmmac: Add initial XDP support") sets
      PP_FLAG_DMA_SYNC_DEV flag for page_pool unconditionally,
      page_pool_recycle_direct() will call page_pool_dma_sync_for_device()
      on every page even the page is not going to be reused by XDP program.
      
      When XDP is not enabled, the page which holds the received buffer
      will be recycled once the buffer is copied into new SKB by
      skb_copy_to_linear_data(), then the MAC core will never reuse this
      page any longer. Always setting PP_FLAG_DMA_SYNC_DEV wastes CPU cycles
      on unnecessary calling of page_pool_dma_sync_for_device().
      
      After this patch, up to 9% noticeable performance improvement was observed
      on certain platforms.
      
      Fixes: 5fabb012 ("net: stmmac: Add initial XDP support")
      Signed-off-by: default avatarFurong Xu <0x1207@gmail.com>
      Link: https://patch.msgid.link/20240919121028.1348023-1-0x1207@gmail.comSigned-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
      b514c47e
    • Wenbo Li's avatar
      virtio_net: Fix mismatched buf address when unmapping for small packets · c11a49d5
      Wenbo Li authored
      Currently, the virtio-net driver will perform a pre-dma-mapping for
      small or mergeable RX buffer. But for small packets, a mismatched address
      without VIRTNET_RX_PAD and xdp_headroom is used for unmapping.
      
      That will result in unsynchronized buffers when SWIOTLB is enabled, for
      example, when running as a TDX guest.
      
      This patch unifies the address passed to the virtio core as the address of
      the virtnet header and fixes the mismatched buffer address.
      
      Changes from v2: unify the buf that passed to the virtio core in small
      and merge mode.
      Changes from v1: Use ctx to get xdp_headroom.
      
      Fixes: 295525e2 ("virtio_net: merge dma operations when filling mergeable buffers")
      Signed-off-by: default avatarWenbo Li <liwenbo.martin@bytedance.com>
      Signed-off-by: default avatarJiahui Cen <cenjiahui@bytedance.com>
      Signed-off-by: default avatarYing Fang <fangying.tommy@bytedance.com>
      Reviewed-by: default avatarXuan Zhuo <xuanzhuo@linux.alibaba.com>
      Link: https://patch.msgid.link/20240919081351.51772-1-liwenbo.martin@bytedance.comSigned-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
      c11a49d5
  2. 25 Sep, 2024 10 commits
    • Linus Torvalds's avatar
      Merge tag 'for-6.12/block-20240925' of git://git.kernel.dk/linux · 11a299a7
      Linus Torvalds authored
      Pull more block updates from Jens Axboe:
      
       - Improve blk-integrity segment counting and merging (Keith)
      
       - NVMe pull request via Keith:
            - Multipath fixes (Hannes)
            - Sysfs attribute list NULL terminate fix (Shin'ichiro)
            - Remove problematic read-back (Keith)
      
       - Fix for a regression with the IO scheduler switching freezing from
         6.11 (Damien)
      
       - Use a raw spinlock for sbitmap, as it may get called from preempt
         disabled context (Ming)
      
       - Cleanup for bd_claiming waiting, using var_waitqueue() rather than
         the bit waitqueues, as that more accurately describes that it does
         (Neil)
      
       - Various cleanups (Kanchan, Qiu-ji, David)
      
      * tag 'for-6.12/block-20240925' of git://git.kernel.dk/linux:
        nvme: remove CC register read-back during enabling
        nvme: null terminate nvme_tls_attrs
        nvme-multipath: avoid hang on inaccessible namespaces
        nvme-multipath: system fails to create generic nvme device
        lib/sbitmap: define swap_lock as raw_spinlock_t
        block: Remove unused blk_limits_io_{min,opt}
        drbd: Fix atomicity violation in drbd_uuid_set_bm()
        block: Fix elv_iosched_local_module handling of "none" scheduler
        block: remove bogus union
        block: change wait on bd_claiming to use a var_waitqueue
        blk-integrity: improved sg segment mapping
        block: unexport blk_rq_count_integrity_sg
        nvme-rdma: use request to get integrity segments
        scsi: use request to get integrity segments
        block: provide a request helper for user integrity segments
        blk-integrity: consider entire bio list for merging
        blk-integrity: properly account for segments
        blk-mq: set the nr_integrity_segments from bio
        blk-mq: unconditional nr_integrity_segments
      11a299a7
    • Linus Torvalds's avatar
      Merge tag 'spi-fix-v6.12-merge-window' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi · fe293938
      Linus Torvalds authored
      Pull spi fixes from Mark Brown:
       "Some driver specific fixes that came in during the merge window.
      
        Lorenzo Bianconi did some extra testing on the recently added arioha
        driver and found some issues, Alexander Dahl fixed some issues with
        signal delays in the Atmel QSPI driver and Jinjie Ruan has been fixing
        some nits with runtime PM cleanup"
      
      * tag 'spi-fix-v6.12-merge-window' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi:
        spi: atmel-quadspi: Avoid overwriting delay register settings
        spi: airoha: remove read cache in airoha_snand_dirmap_read()
        spi: spi-fsl-lpspi: Undo runtime PM changes at driver exit time
        spi: atmel-quadspi: Undo runtime PM changes at driver exit time
        spi: airoha: fix airoha_snand_{write,read}_data data_len estimation
        spi: airoha: fix dirmap_{read,write} operations
      fe293938
    • Linus Torvalds's avatar
      Merge tag 'rtc-6.12' of git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux · b2149f94
      Linus Torvalds authored
      Pull RTC updates from Alexandre Belloni:
       "More conversions of DT bindings to yaml. There is one new driver, for
        the DFRobot SD2405AL and support for important features of the stm32
        RTC. Summary:
      
        New driver:
         - DFRobot SD2405AL
      
        Drivers:
         - stm32: add alarm A out and LSCO support
         - sun6i: disable automatic clock input switching
         - m48t59: set range"
      
      * tag 'rtc-6.12' of git://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux:
        rtc: rc5t619: use proper module tables
        rtc: m48t59: set range
        dt-bindings: rtc: microcrystal,rv3028: add #clock-cells property
        rtc: m48t59: Remove division condition with direct comparison
        rtc: at91sam9: fix OF node leak in probe() error path
        rtc: sun6i: disable automatic clock input switching
        dt-bindings: rtc: Drop non-trivial duplicate compatibles
        dt-bindings: vendor-prefixes: Add DFRobot.
        dt-bindings: rtc: Add support for SD2405AL.
        rtc: Add driver for SD2405AL
        rtc: s35390a: Drop vendorless compatible string from match table
        rtc: twl: convert comma to semicolon
        dt-bindings: rtc: sprd,sc2731-rtc: convert to YAML
        rtc: stm32: add alarm A out feature
        rtc: stm32: add Low Speed Clock Output (LSCO) support
        rtc: stm32: add pinctrl and pinmux interfaces
        dt-bindings: rtc: stm32: describe pinmux nodes
      b2149f94
    • Krzysztof Kozlowski's avatar
      dt-bindings: input: Revert "dt-bindings: input: Goodix SPI HID Touchscreen" · 1ee68f17
      Krzysztof Kozlowski authored
      This reverts commit 9184b17f ("dt-bindings: input: Goodix SPI HID
      Touchscreen") because it duplicates existing binding leadings to errors:
      
        goodix,gt7986u.example.dtb:
        touchscreen@0: compatible: 'oneOf' conditional failed, one must be fixed:
              ['goodix,gt7986u'] is too short
              'goodix,gt7375p' was expected
      
      This was reported on mailing list on 6th of September, but no reaction
      happened from contributor or maintainer to fix it.
      
      Therefore let's drop binding which breaks and duplicates existing one.
      
      Fixes: 9184b17f ("dt-bindings: input: Goodix SPI HID Touchscreen")
      Reported-by: default avatarRob Herring <robh@kernel.org>
      Closes: https://lore.kernel.org/all/CAL_Jsq+QfTtRj_JCqXzktQ49H8VUnztVuaBjvvkg3fwEHniUHw@mail.gmail.com/Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.com>
      1ee68f17
    • Krzysztof Kozlowski's avatar
      HID: hid-goodix: drop unsupported and undocumented DT part · c6bae35f
      Krzysztof Kozlowski authored
      Drop support for Devicetree from, because the binding is being reverted
      (on basis of duplicating existing binding) and property was not added to
      the original binding.
      Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.com>
      c6bae35f
    • Linus Torvalds's avatar
      Merge tag 'memblock-v6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock · aa486552
      Linus Torvalds authored
      Pull memblock updates from Mike Rapoport:
      
       - new memblock_estimated_nr_free_pages() helper to replace
         totalram_pages() which is less accurate when
         CONFIG_DEFERRED_STRUCT_PAGE_INIT is set
      
       - fixes for memblock tests
      
      * tag 'memblock-v6.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock:
        s390/mm: get estimated free pages by memblock api
        kernel/fork.c: get estimated free pages by memblock api
        mm/memblock: introduce a new helper memblock_estimated_nr_free_pages()
        memblock test: fix implicit declaration of function 'strscpy'
        memblock test: fix implicit declaration of function 'isspace'
        memblock test: fix implicit declaration of function 'memparse'
        memblock test: add the definition of __setup()
        memblock test: fix implicit declaration of function 'virt_to_phys'
        tools/testing: abstract two init.h into common include directory
        memblock tests: include export.h in linkage.h as kernel dose
        memblock tests: include memory_hotplug.h in mmzone.h as kernel dose
      aa486552
    • Linus Torvalds's avatar
      Merge tag 'sparc-for-6.12-tag1' of... · eb5b0f98
      Linus Torvalds authored
      Merge tag 'sparc-for-6.12-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/alarsson/linux-sparc
      
      Pull sparc32 update from Andreas Larsson:
      
       - Remove an unused variable for sparc32
      
      * tag 'sparc-for-6.12-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/alarsson/linux-sparc:
        arch/sparc: remove unused varible paddrbase in function leon_swprobe()
      eb5b0f98
    • Linus Torvalds's avatar
      Merge tag 'powerpc-6.12-2' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · 4ffc4580
      Linus Torvalds authored
      Pull powerpc fixes from Michael Ellerman:
      
       - Fix build error in vdso32 when building 64-bit with COMPAT=y and -Os
      
       - Fix build error in pseries EEH when CONFIG_DEBUG_FS is not set
      
      Thanks to Christophe Leroy, Narayana Murty N, Christian Zigotzky, and
      Ritesh Harjani.
      
      * tag 'powerpc-6.12-2' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
        powerpc/pseries/eeh: move pseries_eeh_err_inject() outside CONFIG_DEBUG_FS block
        powerpc/vdso32: Fix use of crtsavres for PPC64
      4ffc4580
    • Linus Torvalds's avatar
      Merge tag 'clang-format-6.12' of https://github.com/ojeda/linux · e520813b
      Linus Torvalds authored
      Pull clang-format updates from Miguel Ojeda:
       "A routine update of the 'for_each' macro list"
      
      * tag 'clang-format-6.12' of https://github.com/ojeda/linux:
        clang-format: Update with v6.11-rc1's `for_each` macro list
      e520813b
    • Linus Torvalds's avatar
      Kbuild: make MODVERSIONS support depend on not being a compile test build · 1f9c4a99
      Linus Torvalds authored
      Currently the Rust support is gated on not having MODVERSIONS enabled,
      and as a result an "allmodconfig" build will disable Rust build tests.
      
      While MODVERSIONS configurations are worth build testing, the feature is
      not actually meaningful unless you run the result, and I'd rather get
      build coverage of Rust than MODVERSIONS.  So let's disable MODVERSIONS
      for build testing until the Rust side clears up.
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      1f9c4a99