1. 23 9月, 2016 6 次提交
  2. 22 9月, 2016 10 次提交
  3. 21 9月, 2016 16 次提交
  4. 20 9月, 2016 8 次提交
    • Y
      qed: Fix stack corruption on probe · 67a99b70
      Yuval Mintz 提交于
      Commit fe56b9e6 ("qed: Add module with basic common support")
      has introduced a stack corruption during probe, where filling a
      local struct with data to be sent to management firmware is incorrectly
      filled; The data is written outside of the struct and corrupts
      the stack.
      
      Changes from v1:
      ----------------
       - Correct the value written [Caught by David Laight]
      
      Fixes: fe56b9e6 ("qed: Add module with basic common support")
      Signed-off-by: NYuval Mintz <Yuval.Mintz@caviumnetworks.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      67a99b70
    • A
      MAINTAINERS: Add an entry for the core network DSA code · 3ed6e498
      Andrew Lunn 提交于
      The core distributed switch architecture code currently does not have
      a MAINTAINERS entry, which results in some contributions not landing
      in the right peoples inbox.
      Signed-off-by: NAndrew Lunn <andrew@lunn.ch>
      Acked-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Acked-by: NVivien Didelot <vivien.didelot@savoirfairelinux.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      3ed6e498
    • V
      net: ipv6: fallback to full lookup if table lookup is unsuitable · a435a07f
      Vincent Bernat 提交于
      Commit 8c14586f ("net: ipv6: Use passed in table for nexthop
      lookups") introduced a regression: insertion of an IPv6 route in a table
      not containing the appropriate connected route for the gateway but which
      contained a non-connected route (like a default gateway) fails while it
      was previously working:
      
          $ ip link add eth0 type dummy
          $ ip link set up dev eth0
          $ ip addr add 2001:db8::1/64 dev eth0
          $ ip route add ::/0 via 2001:db8::5 dev eth0 table 20
          $ ip route add 2001:db8:cafe::1/128 via 2001:db8::6 dev eth0 table 20
          RTNETLINK answers: No route to host
          $ ip -6 route show table 20
          default via 2001:db8::5 dev eth0  metric 1024  pref medium
      
      After this patch, we get:
      
          $ ip route add 2001:db8:cafe::1/128 via 2001:db8::6 dev eth0 table 20
          $ ip -6 route show table 20
          2001:db8:cafe::1 via 2001:db8::6 dev eth0  metric 1024  pref medium
          default via 2001:db8::5 dev eth0  metric 1024  pref medium
      
      Fixes: 8c14586f ("net: ipv6: Use passed in table for nexthop lookups")
      Signed-off-by: NVincent Bernat <vincent@bernat.im>
      Acked-by: NDavid Ahern <dsa@cumulusnetworks.com>
      Tested-by: NDavid Ahern <dsa@cumulusnetworks.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a435a07f
    • D
      Merge branch 'mlx5-fixes' · 7675bb2b
      David S. Miller 提交于
      Or Gerlitz says:
      
      ====================
      mlx5 fixes to 4.8-rc6
      
      This series series has a fix from Roi to memory corruption bug in
      the bulk flow counters code and two late and hopefully last fixes
      from me to the new eswitch offloads code.
      
      Series done over net commit 37dd3482 "bna: fix crash in bnad_get_strings()"
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      7675bb2b
    • O
      net/mlx5: E-Switch, Handle mode change failures · 6c419ba8
      Or Gerlitz 提交于
      E-switch mode changes involve creating HW tables, potentially allocating
      netdevices, etc, and things can fail. Add an attempt to rollback to the
      existing mode when changing to the new mode fails. Only if rollback fails,
      getting proper SRIOV functionality requires module unload or sriov
      disablement/enablement.
      Signed-off-by: NOr Gerlitz <ogerlitz@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6c419ba8
    • O
      net/mlx5: E-Switch, Fix error flow in the SRIOV e-switch init code · 4eea37d7
      Or Gerlitz 提交于
      When enablement of the SRIOV e-switch in certain mode (switchdev or legacy)
      fails, we must set the mode to none. Otherwise, we'll run into double free
      based crashes when further attempting to deal with the e-switch (such
      as when disabling sriov or unloading the driver).
      Signed-off-by: NOr Gerlitz <ogerlitz@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      4eea37d7
    • R
      net/mlx5: Fix flow counter bulk command out mailbox allocation · babd6134
      Roi Dayan 提交于
      The FW command output length should be only the length of struct
      mlx5_cmd_fc_bulk out field. Failing to do so will cause the memcpy
      call which is invoked later in the driver to write over wrong memory
      address and corrupt kernel memory which results in random crashes.
      
      This bug was found using the kernel address sanitizer (kasan).
      
      Fixes: a351a1b0 ('net/mlx5: Introduce bulk reading of flow counters')
      Signed-off-by: NRoi Dayan <roid@mellanox.com>
      Signed-off-by: NOr Gerlitz <ogerlitz@mellanox.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      babd6134
    • L
      Merge branch 'akpm' (patches from Andrew) · d2ffb010
      Linus Torvalds 提交于
      Merge fixes from Andrew Morton:
       "20 fixes"
      
      * emailed patches from Andrew Morton <akpm@linux-foundation.org>:
        rapidio/rio_cm: avoid GFP_KERNEL in atomic context
        Revert "ocfs2: bump up o2cb network protocol version"
        ocfs2: fix start offset to ocfs2_zero_range_for_truncate()
        cgroup: duplicate cgroup reference when cloning sockets
        mm: memcontrol: make per-cpu charge cache IRQ-safe for socket accounting
        ocfs2: fix double unlock in case retry after free truncate log
        fanotify: fix list corruption in fanotify_get_response()
        fsnotify: add a way to stop queueing events on group shutdown
        ocfs2: fix trans extend while free cached blocks
        ocfs2: fix trans extend while flush truncate log
        ipc/shm: fix crash if CONFIG_SHMEM is not set
        mm: fix the page_swap_info() BUG_ON check
        autofs: use dentry flags to block walks during expire
        MAINTAINERS: update email for VLYNQ bus entry
        mm: avoid endless recursion in dump_page()
        mm, thp: fix leaking mapped pte in __collapse_huge_page_swapin()
        khugepaged: fix use-after-free in collapse_huge_page()
        MAINTAINERS: Maik has moved
        ocfs2/dlm: fix race between convert and migration
        mem-hotplug: don't clear the only node in new_node_page()
      d2ffb010