Skip to content
  1. Mar 26, 2021
  2. Mar 25, 2021
    • Potnuri Bharat Teja's avatar
      RDMA/cxgb4: Fix adapter LE hash errors while destroying ipv6 listening server · 3408be14
      Potnuri Bharat Teja authored
      Not setting the ipv6 bit while destroying ipv6 listening servers may
      result in potential fatal adapter errors due to lookup engine memory hash
      errors. Therefore always set ipv6 field while destroying ipv6 listening
      servers.
      
      Fixes: 830662f6 ("RDMA/cxgb4: Add support for active and passive open connection with IPv6 address")
      Link: https://lore.kernel.org/r/20210324190453.8171-1-bharat@chelsio.com
      
      
      Signed-off-by: default avatarPotnuri Bharat Teja <bharat@chelsio.com>
      Reviewed-by: default avatarLeon Romanovsky <leonro@nvidia.com>
      Signed-off-by: default avatarJason Gunthorpe <jgg@nvidia.com>
      3408be14
    • Rich Wiley's avatar
      arm64: kernel: disable CNP on Carmel · 20109a85
      Rich Wiley authored
      
      
      On NVIDIA Carmel cores, CNP behaves differently than it does on standard
      ARM cores. On Carmel, if two cores have CNP enabled and share an L2 TLB
      entry created by core0 for a specific ASID, a non-shareable TLBI from
      core1 may still see the shared entry. On standard ARM cores, that TLBI
      will invalidate the shared entry as well.
      
      This causes issues with patchsets that attempt to do local TLBIs based
      on cpumasks instead of broadcast TLBIs. Avoid these issues by disabling
      CNP support for NVIDIA Carmel cores.
      
      Signed-off-by: default avatarRich Wiley <rwiley@nvidia.com>
      Link: https://lore.kernel.org/r/20210324002809.30271-1-rwiley@nvidia.com
      
      
      [will: Fix pre-existing whitespace issue]
      Signed-off-by: default avatarWill Deacon <will@kernel.org>
      20109a85
    • Maninder Singh's avatar
      arm64/process.c: fix Wmissing-prototypes build warnings · baa96377
      Maninder Singh authored
      Fix GCC warnings reported when building with "-Wmissing-prototypes":
      
        arch/arm64/kernel/process.c:261:6: warning: no previous prototype for '__show_regs' [-Wmissing-prototypes]
            261 | void __show_regs(struct pt_regs *regs)
                |      ^~~~~~~~~~~
        arch/arm64/kernel/process.c:307:6: warning: no previous prototype for '__show_regs_alloc_free' [-Wmissing-prototypes]
            307 | void __show_regs_alloc_free(struct pt_regs *regs)
                |      ^~~~~~~~~~~~~~~~~~~~~~
        arch/arm64/kernel/process.c:365:5: warning: no previous prototype for 'arch_dup_task_struct' [-Wmissing-prototypes]
            365 | int arch_dup_task_struct(struct task_struct *dst, struct task_struct *src)
                |     ^~~~~~~~~~~~~~~~~~~~
        arch/arm64/kernel/process.c:546:41: warning: no previous prototype for '__switch_to' [-Wmissing-prototypes]
            546 | __notrace_funcgraph struct task_struct *__switch_to(struct task_struct *prev,
                |                                         ^~~~~~~~~~~
        arch/arm64/kernel/process.c:710:25: warning: no previous prototype for 'arm64_preempt_schedule_irq' [-Wmissing-prototypes]
            710 | asmlinkage void __sched arm64_preempt_schedule_irq(void)
                |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~
      
      Link: https://lore.kernel.org/lkml/202103192250.AennsfXM-lkp@intel.com
      
      
      Reported-by: default avatarkernel test robot <lkp@intel.com>
      Signed-off-by: default avatarManinder Singh <maninder1.s@samsung.com>
      Link: https://lore.kernel.org/r/1616568899-986-1-git-send-email-maninder1.s@samsung.com
      
      
      Signed-off-by: default avatarWill Deacon <will@kernel.org>
      baa96377
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net · e1381380
      Linus Torvalds authored
      Pull networking fixes from David Miller:
       "Various fixes, all over:
      
         1) Fix overflow in ptp_qoriq_adjfine(), from Yangbo Lu.
      
         2) Always store the rx queue mapping in veth, from Maciej
            Fijalkowski.
      
         3) Don't allow vmlinux btf in map_create, from Alexei Starovoitov.
      
         4) Fix memory leak in octeontx2-af from Colin Ian King.
      
         5) Use kvalloc in bpf x86 JIT for storing jit'd addresses, from
            Yonghong Song.
      
         6) Fix tx ptp stats in mlx5, from Aya Levin.
      
         7) Check correct ip version in tun decap, fropm Roi Dayan.
      
         8) Fix rate calculation in mlx5 E-Switch code, from arav Pandit.
      
         9) Work item memork leak in mlx5, from Shay Drory.
      
        10) Fix ip6ip6 tunnel crash with bpf, from Daniel Borkmann.
      
        11) Lack of preemptrion awareness in macvlan, from Eric Dumazet.
      
        12) Fix data race in pxa168_eth, from Pavel Andrianov.
      
        13) Range validate stab in red_check_params(), from Eric Dumazet.
      
        14) Inherit vlan filtering setting properly in b53 driver, from
            Florian Fainelli.
      
        15) Fix rtnl locking in igc driver, from Sasha Neftin.
      
        16) Pause handling fixes in igc driver, from Muhammad Husaini
            Zulkifli.
      
        17) Missing rtnl locking in e1000_reset_task, from Vitaly Lifshits.
      
        18) Use after free in qlcnic, from Lv Yunlong.
      
        19) fix crash in fritzpci mISDN, from Tong Zhang.
      
        20) Premature rx buffer reuse in igb, from Li RongQing.
      
        21) Missing termination of ip[a driver message handler arrays, from
            Alex Elder.
      
        22) Fix race between "x25_close" and "x25_xmit"/"x25_rx" in hdlc_x25
            driver, from Xie He.
      
        23) Use after free in c_can_pci_remove(), from Tong Zhang.
      
        24) Uninitialized variable use in nl80211, from Jarod Wilson.
      
        25) Off by one size calc in bpf verifier, from Piotr Krysiuk.
      
        26) Use delayed work instead of deferrable for flowtable GC, from
            Yinjun Zhang.
      
        27) Fix infinite loop in NPC unmap of octeontx2 driver, from
            Hariprasad Kelam.
      
        28) Fix being unable to change MTU of dwmac-sun8i devices due to lack
            of fifo sizes, from Corentin Labbe.
      
        29) DMA use after free in r8169 with WoL, fom Heiner Kallweit.
      
        30) Mismatched prototypes in isdn-capi, from Arnd Bergmann.
      
        31) Fix psample UAPI breakage, from Ido Schimmel"
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (171 commits)
        psample: Fix user API breakage
        math: Export mul_u64_u64_div_u64
        ch_ktls: fix enum-conversion warning
        octeontx2-af: Fix memory leak of object buf
        ptp_qoriq: fix overflow in ptp_qoriq_adjfine() u64 calcalation
        net: bridge: don't notify switchdev for local FDB addresses
        net/sched: act_ct: clear post_ct if doing ct_clear
        net: dsa: don't assign an error value to tag_ops
        isdn: capi: fix mismatched prototypes
        net/mlx5: SF, do not use ecpu bit for vhca state processing
        net/mlx5e: Fix division by 0 in mlx5e_select_queue
        net/mlx5e: Fix error path for ethtool set-priv-flag
        net/mlx5e: Offload tuple rewrite for non-CT flows
        net/mlx5e: Allow to match on MPLS parameters only for MPLS over UDP
        net/mlx5: Add back multicast stats for uplink representor
        net: ipconfig: ic_dev can be NULL in ic_close_devs
        MAINTAINERS: Combine "QLOGIC QLGE 10Gb ETHERNET DRIVER" sections into one
        docs: networking: Fix a typo
        r8169: fix DMA being used after buffer free if WoL is enabled
        net: ipa: fix init header command validation
        ...
      e1381380
    • Ido Schimmel's avatar
      psample: Fix user API breakage · e43accba
      Ido Schimmel authored
      Cited commit added a new attribute before the existing group reference
      count attribute, thereby changing its value and breaking existing
      applications on new kernels.
      
      Before:
      
       # psample -l
       libpsample ERROR psample_group_foreach: failed to recv message: Operation not supported
      
      After:
      
       # psample -l
       Group Num       Refcount        Group Seq
       1               1               0
      
      Fix by restoring the value of the old attribute and remove the
      misleading comments from the enumerator to avoid future bugs.
      
      Cc: stable@vger.kernel.org
      Fixes: d8bed686
      
       ("net: psample: Add tunnel support")
      Signed-off-by: default avatarIdo Schimmel <idosch@nvidia.com>
      Reported-by: default avatarAdiel Bidani <adielb@nvidia.com>
      Reviewed-by: default avatarJiri Pirko <jiri@nvidia.com>
      Reviewed-by: default avatarPetr Machata <petrm@nvidia.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      e43accba
    • David S. Miller's avatar
      math: Export mul_u64_u64_div_u64 · bf459478
      David S. Miller authored
      Fixes: f51d7bf1
      
       ("ptp_qoriq: fix overflow in ptp_qoriq_adjfine() u64 calcalation")
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      bf459478
    • Arnd Bergmann's avatar
      ch_ktls: fix enum-conversion warning · 6f235a69
      Arnd Bergmann authored
      gcc points out an incorrect enum assignment:
      
      drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/chcr_ktls.c: In function 'chcr_ktls_cpl_set_tcb_rpl':
      drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/chcr_ktls.c:684:22: warning: implicit conversion from 'enum <anonymous>' to 'enum ch_ktls_open_state' [-Wenum-conversion]
      
      This appears harmless, and should apparently use 'CH_KTLS_OPEN_SUCCESS'
      instead of 'false', with the same value '0'.
      
      Fixes: efca3878
      
       ("ch_ktls: Issue if connection offload fails")
      Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      6f235a69
    • Colin Ian King's avatar
      octeontx2-af: Fix memory leak of object buf · 9e0a537d
      Colin Ian King authored
      Currently the error return path when lfs fails to allocate is not free'ing
      the memory allocated to buf. Fix this by adding the missing kfree.
      
      Addresses-Coverity: ("Resource leak")
      Fixes: f7884097
      
       ("octeontx2-af: Formatting debugfs entry rsrc_alloc.")
      Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
      Acked-by: default avatarSunil Goutham <sgoutham@marvell.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      9e0a537d
    • Yangbo Lu's avatar
      ptp_qoriq: fix overflow in ptp_qoriq_adjfine() u64 calcalation · f51d7bf1
      Yangbo Lu authored
      
      
      Current calculation for diff of TMR_ADD register value may have
      64-bit overflow in this code line, when long type scaled_ppm is
      large.
      
      adj *= scaled_ppm;
      
      This patch is to resolve it by using mul_u64_u64_div_u64().
      
      Signed-off-by: default avatarYangbo Lu <yangbo.lu@nxp.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      f51d7bf1
    • Linus Torvalds's avatar
      Merge tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux · 4ee998b0
      Linus Torvalds authored
      Pull clk fixes from Stephen Boyd:
       "Three fixes for the Qualcomm clk driver: two for regressions this
        merge window and one for a long-standing problem that only popped up
        now that eMMC is being used"
      
      * tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux:
        clk: qcom: gcc-sc7180: Use floor ops for the correct sdcc1 clk
        clk: qcom: rcg2: Rectify clk_gfx3d rate rounding without mux division
        clk: qcom: rpmh: Update the XO clock source for SC7280
      4ee998b0
    • Linus Torvalds's avatar
      Merge tag 'platform-drivers-x86-v5.12-2' of... · a0a4df6a
      Linus Torvalds authored
      Merge tag 'platform-drivers-x86-v5.12-2' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86
      
      Pull x86 platform drivers fixes from Hans de Goede:
       "A set of bug-fixes and some model specific quirks.
      
        Summary:
      
         - dell-wmi-sysman: A set of probe-error-exit-handling fixes to fix
           some systems which advertise the WMI GUIDs, but are not compatible,
           not booting
      
         - intel-vbtn/intel-hid: Misc. bugfixes
      
         - intel_pmc: Bug-fixes + a quirk to lower suspend power-consumption
           on Tiger Lake
      
         - thinkpad_acpi: misc bugfixes"
      
      * tag 'platform-drivers-x86-v5.12-2' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86:
        platform/x86: intel_pmc_core: Ignore GBE LTR on Tiger Lake platforms
        platform/x86: intel_pmc_core: Update Kconfig
        platform/x86: intel_pmt_crashlog: Fix incorrect macros
        platform/x86: intel_pmt_class: Initial resource to 0
        platform/x86: intel-vbtn: Stop reporting SW_DOCK events
        platform/x86: dell-wmi-sysman: Cleanup create_attributes_level_sysfs_files()
        platform/x86: dell-wmi-sysman: Make sysman_init() return -ENODEV of the interfaces are not found
        platform/x86: dell-wmi-sysman: Cleanup sysman_init() error-exit handling
        platform/x86: dell-wmi-sysman: Fix release_attributes_data() getting called twice on init_bios_attributes() failure
        platform/x86: dell-wmi-sysman: Make it safe to call exit_foo_attributes() multiple times
        platform/x86: dell-wmi-sysman: Fix possible NULL pointer deref on exit
        platform/x86: dell-wmi-sysman: Fix crash caused by calling kset_unregister twice
        platform/x86: thinkpad_acpi: Disable DYTC CQL mode around switching to balanced mode
        platform/x86: thinkpad_acpi: Allow the FnLock LED to change state
        platform/x86: thinkpad_acpi: check dytc version for lapmode sysfs
        platform/x86: intel-hid: Support Lenovo ThinkPad X1 Tablet Gen 2
      a0a4df6a