Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
  1. Aug 14, 2020
  2. Aug 13, 2020
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net · a1d21081
      Linus Torvalds authored
      Pull networking fixes from David Miller:
       "Some merge window fallout, some longer term fixes:
      
         1) Handle headroom properly in lapbether and x25_asy drivers, from
            Xie He.
      
         2) Fetch MAC address from correct r8152 device node, from Thierry
            Reding.
      
         3) In the sw kTLS path we should allow MSG_CMSG_COMPAT in sendmsg,
            from Rouven Czerwinski.
      
         4) Correct fdputs in socket layer, from Miaohe Lin.
      
         5) Revert troublesome sockptr_t optimization, from Christoph Hellwig.
      
         6) Fix TCP TFO key reading on big endian, from Jason Baron.
      
         7) Missing CAP_NET_RAW check in nfc, from Qingyu Li.
      
         8) Fix inet fastreuse optimization with tproxy sockets, from Tim
            Froidcoeur.
      
         9) Fix 64-bit divide in new SFC driver, from Edward Cree.
      
        10) Add a tracepoint for prandom_u32 so that we can more easily
            perform usage analysis. From Eric Dumazet.
      
        11) Fix rwlock imbalance in AF_PACKET, from John Ogness"
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (49 commits)
        net: openvswitch: introduce common code for flushing flows
        af_packet: TPACKET_V3: fix fill status rwlock imbalance
        random32: add a tracepoint for prandom_u32()
        Revert "ipv4: tunnel: fix compilation on ARCH=um"
        net: accept an empty mask in /sys/class/net/*/queues/rx-*/rps_cpus
        net: ethernet: stmmac: Disable hardware multicast filter
        net: stmmac: dwmac1000: provide multicast filter fallback
        ipv4: tunnel: fix compilation on ARCH=um
        vsock: fix potential null pointer dereference in vsock_poll()
        sfc: fix ef100 design-param checking
        net: initialize fastreuse on inet_inherit_port
        net: refactor bind_bucket fastreuse into helper
        net: phy: marvell10g: fix null pointer dereference
        net: Fix potential memory leak in proto_register()
        net: qcom/emac: add missed clk_disable_unprepare in error path of emac_clks_phase1_init
        ionic_lif: Use devm_kcalloc() in ionic_qcq_alloc()
        net/nfc/rawsock.c: add CAP_NET_RAW check.
        hinic: fix strncpy output truncated compile warnings
        drivers/net/wan/x25_asy: Added needed_headroom and a skb->len check
        net/tls: Fix kmap usage
        ...
      a1d21081
    • Linus Torvalds's avatar
      Merge branch 'i2c/for-5.9' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux · e764a1e3
      Linus Torvalds authored
      Pull i2c updates from Wolfram Sang:
      
       - bus recovery can now be given a pinctrl handle and the I2C core will
         do all the steps to switch to/from GPIO which can save quite some
         boilerplate code from drivers
      
       - "fallthrough" conversion
      
       - driver updates, mostly ID additions
      
      * 'i2c/for-5.9' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux: (32 commits)
        i2c: iproc: fix race between client unreg and isr
        i2c: eg20t: use generic power management
        i2c: eg20t: Drop PCI wakeup calls from .suspend/.resume
        i2c: mediatek: Fix i2c_spec_values description
        i2c: mediatek: Add i2c compatible for MediaTek MT8192
        dt-bindings: i2c: update bindings for MT8192 SoC
        i2c: mediatek: Add access to more than 8GB dram in i2c driver
        i2c: mediatek: Add apdma sync in i2c driver
        i2c: i801: Add support for Intel Tiger Lake PCH-H
        i2c: i801: Add support for Intel Emmitsburg PCH
        i2c: bcm2835: Replace HTTP links with HTTPS ones
        Documentation: i2c: dev: 'block process call' is supported
        i2c: at91: Move to generic GPIO bus recovery
        i2c: core: treat EPROBE_DEFER when acquiring SCL/SDA GPIOs
        i2c: core: add generic I2C GPIO recovery
        dt-bindings: i2c: add generic properties for GPIO bus recovery
        i2c: rcar: avoid race when unregistering slave
        i2c: tegra: Avoid tegra_i2c_init_dma() for Tegra210 vi i2c
        i2c: tegra: Fix runtime resume to re-init VI I2C
        i2c: tegra: Fix the error path in tegra_i2c_runtime_resume
        ...
      e764a1e3
    • Tonghao Zhang's avatar
      net: openvswitch: introduce common code for flushing flows · 1f3a090b
      Tonghao Zhang authored
      To avoid some issues, for example RCU usage warning and double free,
      we should flush the flows under ovs_lock. This patch refactors
      table_instance_destroy and introduces table_instance_flow_flush
      which can be invoked by __dp_destroy or ovs_flow_tbl_flush.
      
      Fixes: 50b0e61b
      
       ("net: openvswitch: fix possible memleak on destroy flow-table")
      Reported-by: default avatarJohan Knöös <jknoos@google.com>
      Reported-at: https://mail.openvswitch.org/pipermail/ovs-discuss/2020-August/050489.html
      
      
      Signed-off-by: default avatarTonghao Zhang <xiangxia.m.yue@gmail.com>
      Reviewed-by: default avatarCong Wang <xiyou.wangcong@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      1f3a090b
    • John Ogness's avatar
      af_packet: TPACKET_V3: fix fill status rwlock imbalance · 88fd1cb8
      John Ogness authored
      After @blk_fill_in_prog_lock is acquired there is an early out vnet
      situation that can occur. In that case, the rwlock needs to be
      released.
      
      Also, since @blk_fill_in_prog_lock is only acquired when @tp_version
      is exactly TPACKET_V3, only release it on that exact condition as
      well.
      
      And finally, add sparse annotation so that it is clearer that
      prb_fill_curr_block() and prb_clear_blk_fill_status() are acquiring
      and releasing @blk_fill_in_prog_lock, respectively. sparse is still
      unable to understand the balance, but the warnings are now on a
      higher level that make more sense.
      
      Fixes: 632ca50f
      
       ("af_packet: TPACKET_V3: replace busy-wait loop")
      Signed-off-by: default avatarJohn Ogness <john.ogness@linutronix.de>
      Reported-by: default avatarkernel test robot <lkp@intel.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      88fd1cb8
    • Eric Dumazet's avatar
      random32: add a tracepoint for prandom_u32() · 94c7eb54
      Eric Dumazet authored
      
      There has been some heat around prandom_u32() lately, and some people
      were wondering if there was a simple way to determine how often
      it was used, before considering making it maybe 10 times more expensive.
      
      This tracepoint exports the generated pseudo random value.
      
      Tested:
      
      perf list | grep prandom_u32
        random:prandom_u32                                 [Tracepoint event]
      
      perf record -a [-g] [-C1] -e random:prandom_u32 sleep 1
      [ perf record: Woken up 0 times to write data ]
      [ perf record: Captured and wrote 259.748 MB perf.data (924087 samples) ]
      
      perf report --nochildren
          ...
          97.67%  ksoftirqd/1     [kernel.vmlinux]  [k] prandom_u32
                  |
                  ---prandom_u32
                     prandom_u32
                     |
                     |--48.86%--tcp_v4_syn_recv_sock
                     |          tcp_check_req
                     |          tcp_v4_rcv
                     |          ...
                      --48.81%--tcp_conn_request
                                tcp_v4_conn_request
                                tcp_rcv_state_process
                                ...
      perf script
      
      Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
      Cc: Willy Tarreau <w@1wt.eu>
      Cc: Sedat Dilek <sedat.dilek@gmail.com>
      Tested-by: default avatarSedat Dilek <sedat.dilek@gmail.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      94c7eb54