Skip to content
  1. Feb 04, 2021
    • Linus Torvalds's avatar
      Merge tag 'for-linus-5.11-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml · 61556703
      Linus Torvalds authored
      Pull UML fixes from Richard Weinberger:
      
       - Make sure to set a default console, otherwise ttynull is selected
      
       - Revert initial ARCH_HAS_SET_MEMORY support, this needs more work
      
       - Fix a regression due to ubd refactoring
      
       - Various small fixes
      
      * tag 'for-linus-5.11-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml:
        um: time: fix initialization in time-travel mode
        um: fix os_idle_sleep() to not hang
        Revert "um: support some of ARCH_HAS_SET_MEMORY"
        Revert "um: allocate a guard page to helper threads"
        um: virtio: free vu_dev only with the contained struct device
        um: kmsg_dumper: always dump when not tty console
        um: stdio_console: Make preferred console
        um: return error from ioremap()
        um: ubd: fix command line handling of ubd
      61556703
    • Linus Torvalds's avatar
      Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux · 3afe9076
      Linus Torvalds authored
      Pull arm64 fixes from Catalin Marinas:
       "Fix the arm64 linear map range detection for tagged addresses and
        replace the bitwise operations with subtract (virt_addr_valid(),
        __is_lm_address(), __lm_to_phys())"
      
      * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
        arm64: Use simpler arithmetics for the linear map macros
        arm64: Do not pass tagged addresses to __is_lm_address()
      3afe9076
    • Linus Torvalds's avatar
      Merge tag 'trace-v5.11-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace · dbc15d24
      Linus Torvalds authored
      Pull tracing fixes from Steven Rostedt:
      
       - Initialize tracing-graph-pause at task creation, not start of
         function tracing, to avoid corrupting the pause counter.
      
       - Set "pause-on-trace" for latency tracers as that option breaks their
         output (regression).
      
       - Fix the wrong error return for setting kretprobes on future modules
         (before they are loaded).
      
       - Fix re-registering the same kretprobe.
      
       - Add missing value check for added RCU variable reload.
      
      * tag 'trace-v5.11-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
        tracepoint: Fix race between tracing and removing tracepoint
        kretprobe: Avoid re-registration of the same kretprobe earlier
        tracing/kprobe: Fix to support kretprobe events on unloaded modules
        tracing: Use pause-on-trace with the latency tracers
        fgraph: Initialize tracing_graph_pause at task creation
      dbc15d24
    • Linus Torvalds's avatar
      Merge tag 'arm-soc-fixes-v5.11-3' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc · 54fe3ffe
      Linus Torvalds authored
      Pull ARM SoC fixes from Arnd Bergmann:
       "The code fixes in this round are all for the Texas Instruments OMAP
        platform, addressing several regressions related to the ti-sysc
        interconnect changes that was merged in linux-5.11 and one recently
        introduced RCU usage warning.
      
        Tero Kristo updates his maintainer file entries as he is changing to a
        new employer.
      
        The other changes are for devicetree files across eight different
        platforms:
      
        TI OMAP:
         - multiple gpio related one-line fixes
      
        Allwinner/sunxi:
         - ARM: dts: sun7i: a20: bananapro: Fix ethernet phy-mode
         - soc: sunxi: mbus: Remove DE2 display engine compatibles
      
        NXP lpc32xx:
         - ARM: dts: lpc32xx: Revert set default clock rate of HCLK PLL
      
        STMicroelectronics stm32
         - multiple minor fixes for DHCOM/DHCOR boards
      
        NXP Layerscape:
         - Fix DCFG address range on LS1046A SoC
      
        Amlogic meson:
         - fix reboot issue on odroid C4
         - revert an ethernet change that caused a regression
         - meson-g12: Set FL-adj property value
      
        Rockchip:
         - multiple minor fixes on 64-bit rockchip machines
      
        Qualcomm:
         - Regression fixes for Lenovo Yoga touchpad and for interconnect
           configuration
         - Boot fixes for 'LPASS' clock configuration on two machines"
      
      * tag 'arm-soc-fixes-v5.11-3' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc: (31 commits)
        ARM: dts: lpc32xx: Revert set default clock rate of HCLK PLL
        ARM: dts: sun7i: a20: bananapro: Fix ethernet phy-mode
        arm64: dts: ls1046a: fix dcfg address range
        soc: sunxi: mbus: Remove DE2 display engine compatibles
        arm64: dts: meson: switch TFLASH_VDD_EN pin to open drain on Odroid-C4
        Revert "arm64: dts: amlogic: add missing ethernet reset ID"
        arm64: dts: rockchip: Disable display for NanoPi R2S
        ARM: dts: omap4-droid4: Fix lost keypad slide interrupts for droid4
        arm64: dts: rockchip: remove interrupt-names property from rk3399 vdec node
        drivers: bus: simple-pm-bus: Fix compatibility with simple-bus for auxdata
        ARM: OMAP2+: Fix booting for am335x after moving to simple-pm-bus
        ARM: OMAP2+: Fix suspcious RCU usage splats for omap_enter_idle_coupled
        ARM: dts: stm32: Fix GPIO hog flags on DHCOM DRC02
        ARM: dts: stm32: Fix GPIO hog flags on DHCOM PicoITX
        ARM: dts: stm32: Fix GPIO hog names on DHCOM
        ARM: dts: stm32: Disable optional TSC2004 on DRC02 board
        ARM: dts: stm32: Disable WP on DHCOM uSD slot
        ARM: dts: stm32: Connect card-detect signal on DHCOM
        ARM: dts: stm32: Fix polarity of the DH DRC02 uSD card detect
        arm64: dts: qcom: sdm845: Reserve LPASS clocks in gcc
        ...
      54fe3ffe
    • Linus Torvalds's avatar
      Merge tag 'gpio-fixes-for-v5.11-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux · 40615974
      Linus Torvalds authored
      Pull gpio fixes from Bartosz Golaszewski:
       "Some more fixes from the GPIO subsystem for this release. This time
        it's only core fixes:
      
         - fix a memory leak in error path in gpiolib
      
         - clear debounce period in output mode in the character device code
      
         - remove shadowed variable"
      
      * tag 'gpio-fixes-for-v5.11-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux:
        gpio: gpiolib: remove shadowed variable
        gpiolib: free device name on error path to fix kmemleak
        gpiolib: cdev: clear debounce period if line set to output
      40615974
    • Linus Torvalds's avatar
      Merge tag 'platform-drivers-x86-v5.11-3' of... · 4aa2fb4e
      Linus Torvalds authored
      Merge tag 'platform-drivers-x86-v5.11-3' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86
      
      Pull x86 platform driver fixes from Hans de Goede:
       "Two last minute small but important fixes.
      
        The hp-wmi change fixes an issue which is actively being hit by users:
      
          https://bugzilla.redhat.com/show_bug.cgi?id=1918255
          https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3564
      
        And the dell-wmi-sysman patch fixes a bug in the new dell-wmi-sysman
        driver which causes some systems to hang at boot when the driver
        loads"
      
      * tag 'platform-drivers-x86-v5.11-3' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86:
        platform/x86: dell-wmi-sysman: fix a NULL pointer dereference
        platform/x86: hp-wmi: Disable tablet-mode reporting by default
      4aa2fb4e
  2. Feb 03, 2021
    • Arnd Bergmann's avatar
      Merge tag 'sunxi-fixes-for-5.11-2' of... · 459630a3
      Arnd Bergmann authored
      
      Merge tag 'sunxi-fixes-for-5.11-2' of git://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux into arm/fixes
      
      One fix for a phy-mode ethernet issue, and one to fix the display output on
      SoCs with the Display Engine 2
      
      * tag 'sunxi-fixes-for-5.11-2' of git://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux:
        ARM: dts: sun7i: a20: bananapro: Fix ethernet phy-mode
        soc: sunxi: mbus: Remove DE2 display engine compatibles
      
      Link: https://lore.kernel.org/r/f8298059-f9ca-43b4-9e29-35bc0e0c9b15.lettre@localhost
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      459630a3
    • Alexandre Belloni's avatar
      ARM: dts: lpc32xx: Revert set default clock rate of HCLK PLL · 5638159f
      Alexandre Belloni authored
      This reverts commit c17e9377
      
      .
      
      The lpc32xx clock driver is not able to actually change the PLL rate as
      this would require reparenting ARM_CLK, DDRAM_CLK, PERIPH_CLK to SYSCLK,
      then stop the PLL, update the register, restart the PLL and wait for the
      PLL to lock and finally reparent ARM_CLK, DDRAM_CLK, PERIPH_CLK to HCLK
      PLL.
      
      Currently, the HCLK driver simply updates the registers but this has no
      real effect and all the clock rate calculation end up being wrong. This is
      especially annoying for the peripheral (e.g. UARTs, I2C, SPI).
      
      Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
      Tested-by: default avatarGregory CLEMENT <gregory.clement@bootlin.com>
      Link: https://lore.kernel.org/r/20210203090320.GA3760268@piout.net'
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      5638159f
    • Hermann Lauer's avatar
      ARM: dts: sun7i: a20: bananapro: Fix ethernet phy-mode · a900cac3
      Hermann Lauer authored
      BPi Pro needs TX and RX delay for Gbit to work reliable and avoid high
      packet loss rates. The realtek phy driver overrides the settings of the
      pull ups for the delays, so fix this for BananaPro.
      
      Fix the phy-mode description to correctly reflect this so that the
      implementation doesn't reconfigure the delays incorrectly. This
      happened with commit bbc4d71d ("net: phy: realtek: fix rtl8211e
      rx/tx delay config").
      
      Fixes: 10662a33
      
       ("ARM: dts: sun7i: Add dts file for Bananapro board")
      Signed-off-by: default avatarHermann Lauer <Hermann.Lauer@uni-heidelberg.de>
      Signed-off-by: default avatarMaxime Ripard <maxime@cerno.tech>
      Link: https://lore.kernel.org/r/20210128111842.GA11919@lemon.iwr.uni-heidelberg.de
      a900cac3
    • Arnd Bergmann's avatar
      Merge tag 'imx-fixes-5.11-3' of... · 62c31574
      Arnd Bergmann authored
      
      Merge tag 'imx-fixes-5.11-3' of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux into arm/fixes
      
      i.MX fixes for 5.11, round 3:
      
      - Fix DCFG address range on LS1046A SoC.
      
      * tag 'imx-fixes-5.11-3' of git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux:
        arm64: dts: ls1046a: fix dcfg address range
      
      Link: https://lore.kernel.org/r/20210202071441.GP907@dragon
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      62c31574
    • Linus Torvalds's avatar
      Merge tag 'clang-format-for-linux-v5.11-rc7' of git://github.com/ojeda/linux · 3aaf0a27
      Linus Torvalds authored
      Pull clang-format update from Miguel Ojeda:
       "Update with the latest for_each macro list"
      
      * tag 'clang-format-for-linux-v5.11-rc7' of git://github.com/ojeda/linux:
        clang-format: Update with the latest for_each macro list
      3aaf0a27
    • Linus Torvalds's avatar
      Merge tag 'dma-mapping-5.11-1' of git://git.infradead.org/users/hch/dma-mapping · 7d36ccd4
      Linus Torvalds authored
      Pull dma-mapping fix from Christoph Hellwig:
       "Fix a kernel crash in the new dma-mapping benchmark test (Barry Song)"
      
      * tag 'dma-mapping-5.11-1' of git://git.infradead.org/users/hch/dma-mapping:
        dma-mapping: benchmark: fix kernel crash when dma_map_single fails
      7d36ccd4
    • Linus Torvalds's avatar
      Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost · 2e02677e
      Linus Torvalds authored
      Pull vdpa fix from Michael Tsirkin:
       "A single mlx bugfix"
      
      * tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost:
        vdpa/mlx5: Fix memory key MTT population
      2e02677e
    • Linus Torvalds's avatar
      Merge tag 'net-5.11-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net · a9925628
      Linus Torvalds authored
      Pull networking fixes from Jakub Kicinski:
       "Networking fixes for 5.11-rc7, including fixes from bpf and mac80211
        trees.
      
        Current release - regressions:
      
         - ip_tunnel: fix mtu calculation
      
         - mlx5: fix function calculation for page trees
      
        Previous releases - regressions:
      
         - vsock: fix the race conditions in multi-transport support
      
         - neighbour: prevent a dead entry from updating gc_list
      
         - dsa: mv88e6xxx: override existent unicast portvec in port_fdb_add
      
        Previous releases - always broken:
      
         - bpf, cgroup: two copy_{from,to}_user() warn_on_once splats for BPF
           cgroup getsockopt infra when user space is trying to race against
           optlen, from Loris Reiff.
      
         - bpf: add missing fput() in BPF inode storage map update helper
      
         - udp: ipv4: manipulate network header of NATed UDP GRO fraglist
      
         - mac80211: fix station rate table updates on assoc
      
         - r8169: work around RTL8125 UDP HW bug
      
         - igc: report speed and duplex as unknown when device is runtime
           suspended
      
         - rxrpc: fix deadlock around release of dst cached on udp tunnel"
      
      * tag 'net-5.11-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (36 commits)
        net: hsr: align sup_multicast_addr in struct hsr_priv to u16 boundary
        net: ipa: fix two format specifier errors
        net: ipa: use the right accessor in ipa_endpoint_status_skip()
        net: ipa: be explicit about endianness
        net: ipa: add a missing __iomem attribute
        net: ipa: pass correct dma_handle to dma_free_coherent()
        r8169: fix WoL on shutdown if CONFIG_DEBUG_SHIRQ is set
        net/rds: restrict iovecs length for RDS_CMSG_RDMA_ARGS
        net: mvpp2: TCAM entry enable should be written after SRAM data
        net: lapb: Copy the skb before sending a packet
        net/mlx5e: Release skb in case of failure in tc update skb
        net/mlx5e: Update max_opened_tc also when channels are closed
        net/mlx5: Fix leak upon failure of rule creation
        net/mlx5: Fix function calculation for page trees
        docs: networking: swap words in icmp_errors_use_inbound_ifaddr doc
        udp: ipv4: manipulate network header of NATed UDP GRO fraglist
        net: ip_tunnel: fix mtu calculation
        vsock: fix the race conditions in multi-transport support
        net: sched: replaced invalid qdisc tree flush helper in qdisc_replace
        ibmvnic: device remove has higher precedence over reset
        ...
      a9925628
    • Catalin Marinas's avatar
      arm64: Use simpler arithmetics for the linear map macros · 22cd5edb
      Catalin Marinas authored
      
      
      Because of the tagged addresses, the __is_lm_address() and
      __lm_to_phys() macros grew to some harder to understand bitwise
      operations using PAGE_OFFSET. Since these macros only accept untagged
      addresses, use a simple subtract operation.
      
      Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
      Acked-by: default avatarArd Biesheuvel <ardb@kernel.org>
      Cc: Will Deacon <will@kernel.org>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Link: https://lore.kernel.org/r/20210201190634.22942-3-catalin.marinas@arm.com
      22cd5edb
    • Catalin Marinas's avatar
      arm64: Do not pass tagged addresses to __is_lm_address() · 91cb2c8b
      Catalin Marinas authored
      Commit 519ea6f1 ("arm64: Fix kernel address detection of
      __is_lm_address()") fixed the incorrect validation of addresses below
      PAGE_OFFSET. However, it no longer allowed tagged addresses to be passed
      to virt_addr_valid().
      
      Fix this by explicitly resetting the pointer tag prior to invoking
      __is_lm_address(). This is consistent with the __lm_to_phys() macro.
      
      Fixes: 519ea6f1
      
       ("arm64: Fix kernel address detection of __is_lm_address()")
      Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
      Acked-by: default avatarArd Biesheuvel <ardb@kernel.org>
      Cc: <stable@vger.kernel.org> # 5.4.x
      Cc: Will Deacon <will@kernel.org>
      Cc: Vincenzo Frascino <vincenzo.frascino@arm.com>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Link: https://lore.kernel.org/r/20210201190634.22942-2-catalin.marinas@arm.com
      91cb2c8b
    • Andreas Oetken's avatar
      net: hsr: align sup_multicast_addr in struct hsr_priv to u16 boundary · 6c9f18f2
      Andreas Oetken authored
      
      
      sup_multicast_addr is passed to ether_addr_equal for address comparison
      which casts the address inputs to u16 leading to an unaligned access.
      Aligning the sup_multicast_addr to u16 boundary fixes the issue.
      
      Signed-off-by: default avatarAndreas Oetken <andreas.oetken@siemens.com>
      Link: https://lore.kernel.org/r/20210202090304.2740471-1-ennoerlangen@gmail.com
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      6c9f18f2
    • Jakub Kicinski's avatar
      Merge tag 'mlx5-fixes-2021-02-01' of git://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux · 5a4cb546
      Jakub Kicinski authored
      
      
      Saeed Mahameed says:
      
      ====================
      mlx5 fixes 2021-02-01
      
      Please note the first patch in this series
      ("Fix function calculation for page trees") is fixing a regression
      due to previous fix in net which you didn't include in your previous
      rc pr. So I hope this series will make it into your next rc pr,
      so mlx5 won't be broken in the next rc.
      
      * tag 'mlx5-fixes-2021-02-01' of git://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux:
        net/mlx5e: Release skb in case of failure in tc update skb
        net/mlx5e: Update max_opened_tc also when channels are closed
        net/mlx5: Fix leak upon failure of rule creation
        net/mlx5: Fix function calculation for page trees
      ====================
      
      Link: https://lore.kernel.org/r/20210202070703.617251-1-saeed@kernel.org
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      5a4cb546
    • Jakub Kicinski's avatar
      Merge branch 'net-ipa-a-few-bug-fixes' · f2539e14
      Jakub Kicinski authored
      
      
      Alex Elder says:
      
      ====================
      net: ipa: a few bug fixes
      
      This series fixes four minor bugs.  The first two are things that
      sparse points out.  All four are very simple and each patch should
      explain itself pretty well.
      ====================
      
      Link: https://lore.kernel.org/r/20210201232609.3524451-1-elder@linaro.org
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      f2539e14
    • Alex Elder's avatar
      net: ipa: fix two format specifier errors · 113b6ea0
      Alex Elder authored
      
      
      Fix two format specifiers that used %lu for a size_t in "ipa_mem.c".
      
      Signed-off-by: default avatarAlex Elder <elder@linaro.org>
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      113b6ea0
    • Alex Elder's avatar
      net: ipa: use the right accessor in ipa_endpoint_status_skip() · c13899f1
      Alex Elder authored
      
      
      When extracting the destination endpoint ID from the status in
      ipa_endpoint_status_skip(), u32_get_bits() is used.  This happens to
      work, but it's wrong: the structure field is only 8 bits wide
      instead of 32.
      
      Fix this by using u8_get_bits() to get the destination endpoint ID.
      
      Signed-off-by: default avatarAlex Elder <elder@linaro.org>
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      c13899f1
    • Alex Elder's avatar
      net: ipa: be explicit about endianness · 088f8a23
      Alex Elder authored
      
      
      Sparse warns that the assignment of the metadata mask for a QMAP
      endpoint in ipa_endpoint_init_hdr_metadata_mask() is a bad
      assignment.  We know we want the mask value to be big endian, even
      though the value we write is in host byte order.  Use a __force
      tag to indicate we really mean it.
      
      Signed-off-by: default avatarAlex Elder <elder@linaro.org>
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      088f8a23
    • Alex Elder's avatar
      net: ipa: add a missing __iomem attribute · e6cdd6d8
      Alex Elder authored
      
      
      The virt local variable in gsi_channel_state() does not have an
      __iomem attribute but should.  Fix this.
      
      Signed-off-by: default avatarAlex Elder <elder@linaro.org>
      Reviewed-by: default avatarAmy Parker <enbyamy@gmail.com>
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      e6cdd6d8
    • Dan Carpenter's avatar
      net: ipa: pass correct dma_handle to dma_free_coherent() · 4ace7a6e
      Dan Carpenter authored
      The "ring->addr = addr;" assignment is done a few lines later so we
      can't use "ring->addr" yet.  The correct dma_handle is "addr".
      
      Fixes: 650d1603
      
       ("soc: qcom: ipa: the generic software interface")
      Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
      Reviewed-by: default avatarAlex Elder <elder@linaro.org>
      Link: https://lore.kernel.org/r/YBjpTU2oejkNIULT@mwanda
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      4ace7a6e
    • Heiner Kallweit's avatar
      r8169: fix WoL on shutdown if CONFIG_DEBUG_SHIRQ is set · cc9f07a8
      Heiner Kallweit authored
      So far phy_disconnect() is called before free_irq(). If CONFIG_DEBUG_SHIRQ
      is set and interrupt is shared, then free_irq() creates an "artificial"
      interrupt by calling the interrupt handler. The "link change" flag is set
      in the interrupt status register, causing phylib to eventually call
      phy_suspend(). Because the net_device is detached from the PHY already,
      the PHY driver can't recognize that WoL is configured and powers down the
      PHY.
      
      Fixes: f1e911d5
      
       ("r8169: add basic phylib support")
      Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
      Link: https://lore.kernel.org/r/fe732c2c-a473-9088-3974-df83cfbd6efd@gmail.com
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      cc9f07a8
    • Sabyrzhan Tasbolatov's avatar
      net/rds: restrict iovecs length for RDS_CMSG_RDMA_ARGS · a11148e6
      Sabyrzhan Tasbolatov authored
      
      
      syzbot found WARNING in rds_rdma_extra_size [1] when RDS_CMSG_RDMA_ARGS
      control message is passed with user-controlled
      0x40001 bytes of args->nr_local, causing order >= MAX_ORDER condition.
      
      The exact value 0x40001 can be checked with UIO_MAXIOV which is 0x400.
      So for kcalloc() 0x400 iovecs with sizeof(struct rds_iovec) = 0x10
      is the closest limit, with 0x10 leftover.
      
      Same condition is currently done in rds_cmsg_rdma_args().
      
      [1] WARNING: mm/page_alloc.c:5011
      [..]
      Call Trace:
       alloc_pages_current+0x18c/0x2a0 mm/mempolicy.c:2267
       alloc_pages include/linux/gfp.h:547 [inline]
       kmalloc_order+0x2e/0xb0 mm/slab_common.c:837
       kmalloc_order_trace+0x14/0x120 mm/slab_common.c:853
       kmalloc_array include/linux/slab.h:592 [inline]
       kcalloc include/linux/slab.h:621 [inline]
       rds_rdma_extra_size+0xb2/0x3b0 net/rds/rdma.c:568
       rds_rm_size net/rds/send.c:928 [inline]
      
      Reported-by: default avatar <syzbot+1bd2b07f93745fa38425@syzkaller.appspotmail.com>
      Signed-off-by: default avatarSabyrzhan Tasbolatov <snovitoll@gmail.com>
      Acked-by: default avatarSantosh Shilimkar <santosh.shilimkar@oracle.com>
      Link: https://lore.kernel.org/r/20210201203233.1324704-1-snovitoll@gmail.com
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      a11148e6
    • Stefan Chulski's avatar
      net: mvpp2: TCAM entry enable should be written after SRAM data · 43f4a20a
      Stefan Chulski authored
      Last TCAM data contains TCAM enable bit.
      It should be written after SRAM data before entry enabled.
      
      Fixes: 3f518509
      
       ("ethernet: Add new driver for Marvell Armada 375 network unit")
      Signed-off-by: default avatarStefan Chulski <stefanc@marvell.com>
      Link: https://lore.kernel.org/r/1612172139-28343-1-git-send-email-stefanc@marvell.com
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      43f4a20a
    • Arnd Bergmann's avatar
      Merge tag 'ti-k3-maintainer-for-v5.12' of... · 6102f9e7
      Arnd Bergmann authored
      
      Merge tag 'ti-k3-maintainer-for-v5.12' of git://git.kernel.org/pub/scm/linux/kernel/git/nmenon/linux into arm/fixes
      
      Maintainer changes for TI for v5.12 merge window:
      
      - Tero switches to kernel.org address
      
      * tag 'ti-k3-maintainer-for-v5.12' of git://git.kernel.org/pub/scm/linux/kernel/git/nmenon/linux:
        MAINTAINERS: Update my email address and maintainer level status
      
      Link: https://lore.kernel.org/r/20210130131411.afna4wj72r7xscqn@skinny
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      6102f9e7
    • Xie He's avatar
      net: lapb: Copy the skb before sending a packet · 88c7a9fd
      Xie He authored
      When sending a packet, we will prepend it with an LAPB header.
      This modifies the shared parts of a cloned skb, so we should copy the
      skb rather than just clone it, before we prepend the header.
      
      In "Documentation/networking/driver.rst" (the 2nd point), it states
      that drivers shouldn't modify the shared parts of a cloned skb when
      transmitting.
      
      The "dev_queue_xmit_nit" function in "net/core/dev.c", which is called
      when an skb is being sent, clones the skb and sents the clone to
      AF_PACKET sockets. Because the LAPB drivers first remove a 1-byte
      pseudo-header before handing over the skb to us, if we don't copy the
      skb before prepending the LAPB header, the first byte of the packets
      received on AF_PACKET sockets can be corrupted.
      
      Fixes: 1da177e4
      
       ("Linux-2.6.12-rc2")
      Signed-off-by: default avatarXie He <xie.he.0141@gmail.com>
      Acked-by: default avatarMartin Schiller <ms@dev.tdt.de>
      Link: https://lore.kernel.org/r/20210201055706.415842-1-xie.he.0141@gmail.com
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      88c7a9fd
    • Jakub Kicinski's avatar
      Merge tag 'mac80211-for-net-2021-02-02' of... · f418bad6
      Jakub Kicinski authored
      
      Merge tag 'mac80211-for-net-2021-02-02' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211
      
      Johannes Berg says:
      
      ====================
      Two fixes:
       - station rate tables were not updated correctly
         after association, leading to bad configuration
       - rtl8723bs (staging) was initializing data incorrectly
         after the previous fix and needed to move the init
         later
      
      * tag 'mac80211-for-net-2021-02-02' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211:
        staging: rtl8723bs: Move wiphy setup to after reading the regulatory settings from the chip
        mac80211: fix station rate table updates on assoc
      ====================
      
      Link: https://lore.kernel.org/r/20210202143505.37610-1-johannes@sipsolutions.net
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      f418bad6
  3. Feb 02, 2021