<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-linux, branch jd/rcu-barrier</title>
<subtitle>WireGuard for the Linux kernel</subtitle>
<id>http://git.waynecole.info/wireguard-linux/atom?h=jd%2Frcu-barrier</id>
<link rel='self' href='http://git.waynecole.info/wireguard-linux/atom?h=jd%2Frcu-barrier'/>
<link rel='alternate' type='text/html' href='http://git.waynecole.info/wireguard-linux/'/>
<updated>2024-06-13T11:59:10Z</updated>
<entry>
<title>wireguard: allowedips: use kfree_rcu() and don't wait on rcu_barrier()</title>
<updated>2024-06-13T11:59:10Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2024-06-13T11:59:10Z</published>
<link rel='alternate' type='text/html' href='http://git.waynecole.info/wireguard-linux/commit/?id=79105ecd70479b71a990463c8da343d3b4281ce9'/>
<id>urn:sha1:79105ecd70479b71a990463c8da343d3b4281ce9</id>
<content type='text'>
Since SLOB was removed, it is not necessary to use call_rcu() when the
callback only performs kmem_cache_free(), so we can use kfree_rcu()
directly. kfree_rcu() happens in batches and doesn't need to wait on
rcu_barrier() to complete, so also remove the barrier.

Cc: Paul E. McKenney &lt;paulmck@kernel.org&gt;
Cc: Vlastimil Babka &lt;vbabka@suse.cz&gt;
Cc: Julia Lawall &lt;Julia.Lawall@inria.fr&gt;
Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
<entry>
<title>wireguard: selftests: use acpi=off instead of -no-acpi for recent QEMU</title>
<updated>2024-06-07T14:59:29Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2024-06-07T14:57:47Z</published>
<link rel='alternate' type='text/html' href='http://git.waynecole.info/wireguard-linux/commit/?id=5452ce7667be85f4fe757ace58b6bbc6a5d7abfb'/>
<id>urn:sha1:5452ce7667be85f4fe757ace58b6bbc6a5d7abfb</id>
<content type='text'>
QEMU 9.0 removed -no-acpi, in favor of machine properties, so update the
Makefile to use the correct QEMU invocation.

Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
<entry>
<title>liquidio: Adjust a NULL pointer handling path in lio_vf_rep_copy_packet</title>
<updated>2024-06-07T13:22:19Z</updated>
<author>
<name>Aleksandr Mishin</name>
<email>amishin@t-argos.ru</email>
</author>
<published>2024-06-05T10:11:35Z</published>
<link rel='alternate' type='text/html' href='http://git.waynecole.info/wireguard-linux/commit/?id=c44711b78608c98a3e6b49ce91678cd0917d5349'/>
<id>urn:sha1:c44711b78608c98a3e6b49ce91678cd0917d5349</id>
<content type='text'>
In lio_vf_rep_copy_packet() pg_info-&gt;page is compared to a NULL value,
but then it is unconditionally passed to skb_add_rx_frag() which looks
strange and could lead to null pointer dereference.

lio_vf_rep_copy_packet() call trace looks like:
	octeon_droq_process_packets
	 octeon_droq_fast_process_packets
	  octeon_droq_dispatch_pkt
	   octeon_create_recv_info
	    ...search in the dispatch_list...
	     -&gt;disp_fn(rdisp-&gt;rinfo, ...)
	      lio_vf_rep_pkt_recv(struct octeon_recv_info *recv_info, ...)
In this path there is no code which sets pg_info-&gt;page to NULL.
So this check looks unneeded and doesn't solve potential problem.
But I guess the author had reason to add a check and I have no such card
and can't do real test.
In addition, the code in the function liquidio_push_packet() in
liquidio/lio_core.c does exactly the same.

Based on this, I consider the most acceptable compromise solution to
adjust this issue by moving skb_add_rx_frag() into conditional scope.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: 1f233f327913 ("liquidio: switchdev support for LiquidIO NIC")
Signed-off-by: Aleksandr Mishin &lt;amishin@t-argos.ru&gt;
Reviewed-by: Simon Horman &lt;horms@kernel.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>Merge branch 'hns3-fixes'</title>
<updated>2024-06-07T11:20:28Z</updated>
<author>
<name>David S. Miller</name>
<email>davem@davemloft.net</email>
</author>
<published>2024-06-07T11:20:28Z</published>
<link rel='alternate' type='text/html' href='http://git.waynecole.info/wireguard-linux/commit/?id=dbfb8864650ec0b69e0a1b9b667bf79c25ca33ca'/>
<id>urn:sha1:dbfb8864650ec0b69e0a1b9b667bf79c25ca33ca</id>
<content type='text'>
Jijie Shao says:

====================
There are some bugfix for the HNS3 ethernet driver

There are some bugfix for the HNS3 ethernet driver
====================

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: hns3: add cond_resched() to hns3 ring buffer init process</title>
<updated>2024-06-07T11:20:28Z</updated>
<author>
<name>Jie Wang</name>
<email>wangjie125@huawei.com</email>
</author>
<published>2024-06-05T07:20:58Z</published>
<link rel='alternate' type='text/html' href='http://git.waynecole.info/wireguard-linux/commit/?id=968fde83841a8c23558dfbd0a0c69d636db52b55'/>
<id>urn:sha1:968fde83841a8c23558dfbd0a0c69d636db52b55</id>
<content type='text'>
Currently hns3 ring buffer init process would hold cpu too long with big
Tx/Rx ring depth. This could cause soft lockup.

So this patch adds cond_resched() to the process. Then cpu can break to
run other tasks instead of busy looping.

Fixes: a723fb8efe29 ("net: hns3: refine for set ring parameters")
Signed-off-by: Jie Wang &lt;wangjie125@huawei.com&gt;
Signed-off-by: Jijie Shao &lt;shaojijie@huawei.com&gt;
Reviewed-by: Simon Horman &lt;horms@kernel.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: hns3: fix kernel crash problem in concurrent scenario</title>
<updated>2024-06-07T11:20:28Z</updated>
<author>
<name>Yonglong Liu</name>
<email>liuyonglong@huawei.com</email>
</author>
<published>2024-06-05T07:20:57Z</published>
<link rel='alternate' type='text/html' href='http://git.waynecole.info/wireguard-linux/commit/?id=12cda920212a49fa22d9e8b9492ac4ea013310a4'/>
<id>urn:sha1:12cda920212a49fa22d9e8b9492ac4ea013310a4</id>
<content type='text'>
When link status change, the nic driver need to notify the roce
driver to handle this event, but at this time, the roce driver
may uninit, then cause kernel crash.

To fix the problem, when link status change, need to check
whether the roce registered, and when uninit, need to wait link
update finish.

Fixes: 45e92b7e4e27 ("net: hns3: add calling roce callback function when link status change")
Signed-off-by: Yonglong Liu &lt;liuyonglong@huawei.com&gt;
Signed-off-by: Jijie Shao &lt;shaojijie@huawei.com&gt;
Reviewed-by: Simon Horman &lt;horms@kernel.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>dt-bindings: net: dp8386x: Add MIT license along with GPL-2.0</title>
<updated>2024-06-07T11:16:22Z</updated>
<author>
<name>Udit Kumar</name>
<email>u-kumar1@ti.com</email>
</author>
<published>2024-05-31T16:57:25Z</published>
<link rel='alternate' type='text/html' href='http://git.waynecole.info/wireguard-linux/commit/?id=b472b996a43404a912c5cb4f27050022fdbce10c'/>
<id>urn:sha1:b472b996a43404a912c5cb4f27050022fdbce10c</id>
<content type='text'>
Modify license to include dual licensing as GPL-2.0-only OR MIT
license for TI specific phy header files. This allows for Linux
kernel files to be used in other Operating System ecosystems
such as Zephyr or FreeBSD.

While at this, update the GPL-2.0 to be GPL-2.0-only to be in sync
with latest SPDX conventions (GPL-2.0 is deprecated).

While at this, update the TI copyright year to sync with current year
to indicate license change.

Cc: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Cc: Trent Piepho &lt;tpiepho@impinj.com&gt;
Cc: Wadim Egorov &lt;w.egorov@phytec.de&gt;
Cc: Kip Broadhurst &lt;kbroadhurst@ti.com&gt;
Signed-off-by: Udit Kumar &lt;u-kumar1@ti.com&gt;
Acked-by: Wadim Egorov &lt;w.egorov@phytec.de&gt;
Acked-by: Rob Herring &lt;robh@kernel.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: sfp: Always call `sfp_sm_mod_remove()` on remove</title>
<updated>2024-06-07T00:34:03Z</updated>
<author>
<name>Csókás, Bence</name>
<email>csokas.bence@prolan.hu</email>
</author>
<published>2024-06-05T08:42:51Z</published>
<link rel='alternate' type='text/html' href='http://git.waynecole.info/wireguard-linux/commit/?id=e96b2933152fd87b6a41765b2f58b158fde855b6'/>
<id>urn:sha1:e96b2933152fd87b6a41765b2f58b158fde855b6</id>
<content type='text'>
If the module is in SFP_MOD_ERROR, `sfp_sm_mod_remove()` will
not be run. As a consequence, `sfp_hwmon_remove()` is not getting
run either, leaving a stale `hwmon` device behind. `sfp_sm_mod_remove()`
itself checks `sfp-&gt;sm_mod_state` anyways, so this check was not
really needed in the first place.

Fixes: d2e816c0293f ("net: sfp: handle module remove outside state machine")
Signed-off-by: "Csókás, Bence" &lt;csokas.bence@prolan.hu&gt;
Reviewed-by: Andrew Lunn &lt;andrew@lunn.ch&gt;
Link: https://lore.kernel.org/r/20240605084251.63502-1-csokas.bence@prolan.hu
Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
</content>
</entry>
<entry>
<title>Merge tag 'net-6.10-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net</title>
<updated>2024-06-06T16:55:27Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2024-06-06T16:55:27Z</published>
<link rel='alternate' type='text/html' href='http://git.waynecole.info/wireguard-linux/commit/?id=d30d0e49da71de8df10bf3ff1b3de880653af562'/>
<id>urn:sha1:d30d0e49da71de8df10bf3ff1b3de880653af562</id>
<content type='text'>
Pull networking fixes from Jakub Kicinski:
 "Including fixes from BPF and big collection of fixes for WiFi core and
  drivers.

  Current release - regressions:

   - vxlan: fix regression when dropping packets due to invalid src
     addresses

   - bpf: fix a potential use-after-free in bpf_link_free()

   - xdp: revert support for redirect to any xsk socket bound to the
     same UMEM as it can result in a corruption

   - virtio_net:
      - add missing lock protection when reading return code from
        control_buf
      - fix false-positive lockdep splat in DIM
      - Revert "wifi: wilc1000: convert list management to RCU"

   - wifi: ath11k: fix error path in ath11k_pcic_ext_irq_config

  Previous releases - regressions:

   - rtnetlink: make the "split" NLM_DONE handling generic, restore the
     old behavior for two cases where we started coalescing those
     messages with normal messages, breaking sloppily-coded userspace

   - wifi:
      - cfg80211: validate HE operation element parsing
      - cfg80211: fix 6 GHz scan request building
      - mt76: mt7615: add missing chanctx ops
      - ath11k: move power type check to ASSOC stage, fix connecting to
        6 GHz AP
      - ath11k: fix WCN6750 firmware crash caused by 17 num_vdevs
      - rtlwifi: ignore IEEE80211_CONF_CHANGE_RETRY_LIMITS
      - iwlwifi: mvm: fix a crash on 7265

  Previous releases - always broken:

   - ncsi: prevent multi-threaded channel probing, a spec violation

   - vmxnet3: disable rx data ring on dma allocation failure

   - ethtool: init tsinfo stats if requested, prevent unintentionally
     reporting all-zero stats on devices which don't implement any

   - dst_cache: fix possible races in less common IPv6 features

   - tcp: auth: don't consider TCP_CLOSE to be in TCP_AO_ESTABLISHED

   - ax25: fix two refcounting bugs

   - eth: ionic: fix kernel panic in XDP_TX action

  Misc:

   - tcp: count CLOSE-WAIT sockets for TCP_MIB_CURRESTAB"

* tag 'net-6.10-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (107 commits)
  selftests: net: lib: set 'i' as local
  selftests: net: lib: avoid error removing empty netns name
  selftests: net: lib: support errexit with busywait
  net: ethtool: fix the error condition in ethtool_get_phy_stats_ethtool()
  ipv6: fix possible race in __fib6_drop_pcpu_from()
  af_unix: Annotate data-race of sk-&gt;sk_shutdown in sk_diag_fill().
  af_unix: Use skb_queue_len_lockless() in sk_diag_show_rqlen().
  af_unix: Use skb_queue_empty_lockless() in unix_release_sock().
  af_unix: Use unix_recvq_full_lockless() in unix_stream_connect().
  af_unix: Annotate data-race of net-&gt;unx.sysctl_max_dgram_qlen.
  af_unix: Annotate data-races around sk-&gt;sk_sndbuf.
  af_unix: Annotate data-races around sk-&gt;sk_state in UNIX_DIAG.
  af_unix: Annotate data-race of sk-&gt;sk_state in unix_stream_read_skb().
  af_unix: Annotate data-races around sk-&gt;sk_state in sendmsg() and recvmsg().
  af_unix: Annotate data-race of sk-&gt;sk_state in unix_accept().
  af_unix: Annotate data-race of sk-&gt;sk_state in unix_stream_connect().
  af_unix: Annotate data-races around sk-&gt;sk_state in unix_write_space() and poll().
  af_unix: Annotate data-race of sk-&gt;sk_state in unix_inq_len().
  af_unix: Annodate data-races around sk-&gt;sk_state for writers.
  af_unix: Set sk-&gt;sk_state under unix_state_lock() for truly disconencted peer.
  ...
</content>
</entry>
<entry>
<title>Merge tag 'tomoyo-pr-20240606' of git://git.code.sf.net/p/tomoyo/tomoyo</title>
<updated>2024-06-06T16:48:57Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2024-06-06T16:48:57Z</published>
<link rel='alternate' type='text/html' href='http://git.waynecole.info/wireguard-linux/commit/?id=2faf6332c506fc3bd23815f8fe8f6d0c35271c17'/>
<id>urn:sha1:2faf6332c506fc3bd23815f8fe8f6d0c35271c17</id>
<content type='text'>
Pull tomoyo fixlet from Tetsuo Handa:
 "Single patch to update project links, no behavior changes"

* tag 'tomoyo-pr-20240606' of git://git.code.sf.net/p/tomoyo/tomoyo:
  tomoyo: update project links
</content>
</entry>
</feed>
