<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lwn.git/net/ieee802154, branch header-removal</title>
<subtitle>Linux kernel documentation tree maintained by Jonathan Corbet</subtitle>
<id>http://mirrors.hust.edu.cn/git/lwn.git/atom?h=header-removal</id>
<link rel='self' href='http://mirrors.hust.edu.cn/git/lwn.git/atom?h=header-removal'/>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/'/>
<updated>2021-08-13T13:41:22+00:00</updated>
<entry>
<title>Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net</title>
<updated>2021-08-13T13:41:22+00:00</updated>
<author>
<name>Jakub Kicinski</name>
<email>kuba@kernel.org</email>
</author>
<published>2021-08-13T13:41:22+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=f4083a752a3b7dc2076432129c8469d02c25318e'/>
<id>urn:sha1:f4083a752a3b7dc2076432129c8469d02c25318e</id>
<content type='text'>
Conflicts:

drivers/net/ethernet/broadcom/bnxt/bnxt_ptp.h
  9e26680733d5 ("bnxt_en: Update firmware call to retrieve TX PTP timestamp")
  9e518f25802c ("bnxt_en: 1PPS functions to configure TSIO pins")
  099fdeda659d ("bnxt_en: Event handler for PPS events")

kernel/bpf/helpers.c
include/linux/bpf-cgroup.h
  a2baf4e8bb0f ("bpf: Fix potentially incorrect results with bpf_get_local_storage()")
  c7603cfa04e7 ("bpf: Add ambient BPF runtime context stored in current")

drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c
  5957cc557dc5 ("net/mlx5: Set all field of mlx5_irq before inserting it to the xarray")
  2d0b41a37679 ("net/mlx5: Refcount mlx5_irq with integer")

MAINTAINERS
  7b637cd52f02 ("MAINTAINERS: fix Microchip CAN BUS Analyzer Tool entry typo")
  7d901a1e878a ("net: phy: add Maxlinear GPY115/21x/24x driver")

Signed-off-by: Jakub Kicinski &lt;kuba@kernel.org&gt;
</content>
</entry>
<entry>
<title>net: Fix memory leak in ieee802154_raw_deliver</title>
<updated>2021-08-10T10:18:10+00:00</updated>
<author>
<name>Takeshi Misawa</name>
<email>jeliantsurux@gmail.com</email>
</author>
<published>2021-08-05T07:54:14+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=1090340f7ee53e824fd4eef66a4855d548110c5b'/>
<id>urn:sha1:1090340f7ee53e824fd4eef66a4855d548110c5b</id>
<content type='text'>
If IEEE-802.15.4-RAW is closed before receive skb, skb is leaked.
Fix this, by freeing sk_receive_queue in sk-&gt;sk_destruct().

syzbot report:
BUG: memory leak
unreferenced object 0xffff88810f644600 (size 232):
  comm "softirq", pid 0, jiffies 4294967032 (age 81.270s)
  hex dump (first 32 bytes):
    10 7d 4b 12 81 88 ff ff 10 7d 4b 12 81 88 ff ff  .}K......}K.....
    00 00 00 00 00 00 00 00 40 7c 4b 12 81 88 ff ff  ........@|K.....
  backtrace:
    [&lt;ffffffff83651d4a&gt;] skb_clone+0xaa/0x2b0 net/core/skbuff.c:1496
    [&lt;ffffffff83fe1b80&gt;] ieee802154_raw_deliver net/ieee802154/socket.c:369 [inline]
    [&lt;ffffffff83fe1b80&gt;] ieee802154_rcv+0x100/0x340 net/ieee802154/socket.c:1070
    [&lt;ffffffff8367cc7a&gt;] __netif_receive_skb_one_core+0x6a/0xa0 net/core/dev.c:5384
    [&lt;ffffffff8367cd07&gt;] __netif_receive_skb+0x27/0xa0 net/core/dev.c:5498
    [&lt;ffffffff8367cdd9&gt;] netif_receive_skb_internal net/core/dev.c:5603 [inline]
    [&lt;ffffffff8367cdd9&gt;] netif_receive_skb+0x59/0x260 net/core/dev.c:5662
    [&lt;ffffffff83fe6302&gt;] ieee802154_deliver_skb net/mac802154/rx.c:29 [inline]
    [&lt;ffffffff83fe6302&gt;] ieee802154_subif_frame net/mac802154/rx.c:102 [inline]
    [&lt;ffffffff83fe6302&gt;] __ieee802154_rx_handle_packet net/mac802154/rx.c:212 [inline]
    [&lt;ffffffff83fe6302&gt;] ieee802154_rx+0x612/0x620 net/mac802154/rx.c:284
    [&lt;ffffffff83fe59a6&gt;] ieee802154_tasklet_handler+0x86/0xa0 net/mac802154/main.c:35
    [&lt;ffffffff81232aab&gt;] tasklet_action_common.constprop.0+0x5b/0x100 kernel/softirq.c:557
    [&lt;ffffffff846000bf&gt;] __do_softirq+0xbf/0x2ab kernel/softirq.c:345
    [&lt;ffffffff81232f4c&gt;] do_softirq kernel/softirq.c:248 [inline]
    [&lt;ffffffff81232f4c&gt;] do_softirq+0x5c/0x80 kernel/softirq.c:235
    [&lt;ffffffff81232fc1&gt;] __local_bh_enable_ip+0x51/0x60 kernel/softirq.c:198
    [&lt;ffffffff8367a9a4&gt;] local_bh_enable include/linux/bottom_half.h:32 [inline]
    [&lt;ffffffff8367a9a4&gt;] rcu_read_unlock_bh include/linux/rcupdate.h:745 [inline]
    [&lt;ffffffff8367a9a4&gt;] __dev_queue_xmit+0x7f4/0xf60 net/core/dev.c:4221
    [&lt;ffffffff83fe2db4&gt;] raw_sendmsg+0x1f4/0x2b0 net/ieee802154/socket.c:295
    [&lt;ffffffff8363af16&gt;] sock_sendmsg_nosec net/socket.c:654 [inline]
    [&lt;ffffffff8363af16&gt;] sock_sendmsg+0x56/0x80 net/socket.c:674
    [&lt;ffffffff8363deec&gt;] __sys_sendto+0x15c/0x200 net/socket.c:1977
    [&lt;ffffffff8363dfb6&gt;] __do_sys_sendto net/socket.c:1989 [inline]
    [&lt;ffffffff8363dfb6&gt;] __se_sys_sendto net/socket.c:1985 [inline]
    [&lt;ffffffff8363dfb6&gt;] __x64_sys_sendto+0x26/0x30 net/socket.c:1985

Fixes: 9ec767160357 ("net: add IEEE 802.15.4 socket family implementation")
Reported-and-tested-by: syzbot+1f68113fa907bf0695a8@syzkaller.appspotmail.com
Signed-off-by: Takeshi Misawa &lt;jeliantsurux@gmail.com&gt;
Acked-by: Alexander Aring &lt;aahringo@redhat.com&gt;
Link: https://lore.kernel.org/r/20210805075414.GA15796@DESKTOP
Signed-off-by: Stefan Schmidt &lt;stefan@datenfreihafen.org&gt;
</content>
</entry>
<entry>
<title>net: Remove redundant if statements</title>
<updated>2021-08-05T12:27:50+00:00</updated>
<author>
<name>Yajun Deng</name>
<email>yajun.deng@linux.dev</email>
</author>
<published>2021-08-05T11:55:27+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=1160dfa178eb848327e9dec39960a735f4dc1685'/>
<id>urn:sha1:1160dfa178eb848327e9dec39960a735f4dc1685</id>
<content type='text'>
The 'if (dev)' statement already move into dev_{put , hold}, so remove
redundant if statements.

Signed-off-by: Yajun Deng &lt;yajun.deng@linux.dev&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>net: socket: rework compat_ifreq_ioctl()</title>
<updated>2021-07-23T13:20:25+00:00</updated>
<author>
<name>Arnd Bergmann</name>
<email>arnd@arndb.de</email>
</author>
<published>2021-07-22T14:29:03+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=29c4964822aad42c960d9edf67fb8209f1886baa'/>
<id>urn:sha1:29c4964822aad42c960d9edf67fb8209f1886baa</id>
<content type='text'>
compat_ifreq_ioctl() is one of the last users of copy_in_user() and
compat_alloc_user_space(), as it attempts to convert the 'struct ifreq'
arguments from 32-bit to 64-bit format as used by dev_ioctl() and a
couple of socket family specific interpretations.

The current implementation works correctly when calling dev_ioctl(),
inet_ioctl(), ieee802154_sock_ioctl(), atalk_ioctl(), qrtr_ioctl()
and packet_ioctl(). The ioctl handlers for x25, netrom, rose and x25 do
not interpret the arguments and only block the corresponding commands,
so they do not care.

For af_inet6 and af_decnet however, the compat conversion is slightly
incorrect, as it will copy more data than the native handler accesses,
both of them use a structure that is shorter than ifreq.

Replace the copy_in_user() conversion with a pair of accessor functions
to read and write the ifreq data in place with the correct length where
needed, while leaving the other ones to copy the (already compatible)
structures directly.

Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Reviewed-by: Christoph Hellwig &lt;hch@lst.de&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>ieee802154: fix error return code in ieee802154_llsec_getparams()</title>
<updated>2021-06-03T08:59:49+00:00</updated>
<author>
<name>Wei Yongjun</name>
<email>weiyongjun1@huawei.com</email>
</author>
<published>2021-05-19T14:16:14+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=373e864cf52403b0974c2f23ca8faf9104234555'/>
<id>urn:sha1:373e864cf52403b0974c2f23ca8faf9104234555</id>
<content type='text'>
Fix to return negative error code -ENOBUFS from the error handling
case instead of 0, as done elsewhere in this function.

Fixes: 3e9c156e2c21 ("ieee802154: add netlink interfaces for llsec")
Reported-by: Hulk Robot &lt;hulkci@huawei.com&gt;
Signed-off-by: Wei Yongjun &lt;weiyongjun1@huawei.com&gt;
Link: https://lore.kernel.org/r/20210519141614.3040055-1-weiyongjun1@huawei.com
Signed-off-by: Stefan Schmidt &lt;stefan@datenfreihafen.org&gt;
</content>
</entry>
<entry>
<title>ieee802154: fix error return code in ieee802154_add_iface()</title>
<updated>2021-06-03T08:50:08+00:00</updated>
<author>
<name>Zhen Lei</name>
<email>thunder.leizhen@huawei.com</email>
</author>
<published>2021-05-08T06:25:17+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=79c6b8ed30e54b401c873dbad2511f2a1c525fd5'/>
<id>urn:sha1:79c6b8ed30e54b401c873dbad2511f2a1c525fd5</id>
<content type='text'>
Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.

Fixes: be51da0f3e34 ("ieee802154: Stop using NLA_PUT*().")
Reported-by: Hulk Robot &lt;hulkci@huawei.com&gt;
Signed-off-by: Zhen Lei &lt;thunder.leizhen@huawei.com&gt;
Link: https://lore.kernel.org/r/20210508062517.2574-1-thunder.leizhen@huawei.com
Signed-off-by: Stefan Schmidt &lt;stefan@datenfreihafen.org&gt;
</content>
</entry>
<entry>
<title>net/ieee802154: drop unneeded assignment in llsec_iter_devkeys()</title>
<updated>2021-06-03T08:09:36+00:00</updated>
<author>
<name>Yang Li</name>
<email>yang.lee@linux.alibaba.com</email>
</author>
<published>2021-04-25T10:24:59+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=ad6f5cc5f6c261f881e44ecd750f17952df2b496'/>
<id>urn:sha1:ad6f5cc5f6c261f881e44ecd750f17952df2b496</id>
<content type='text'>
In order to keep the code style consistency of the whole file,
redundant return value ‘rc’ and its assignments should be deleted

The clang_analyzer complains as follows:
net/ieee802154/nl-mac.c:1203:12: warning: Although the value stored to
'rc' is used in the enclosing expression, the value is never actually
read from 'rc'

No functional change, only more efficient.

Reported-by: Abaci Robot &lt;abaci@linux.alibaba.com&gt;
Signed-off-by: Yang Li &lt;yang.lee@linux.alibaba.com&gt;
Link: https://lore.kernel.org/r/1619346299-40237-1-git-send-email-yang.lee@linux.alibaba.com
Signed-off-by: Stefan Schmidt &lt;stefan@datenfreihafen.org&gt;
</content>
</entry>
<entry>
<title>net: ieee802154: fix null deref in parse dev addr</title>
<updated>2021-04-23T14:57:27+00:00</updated>
<author>
<name>Dan Robertson</name>
<email>dan@dlrobertson.com</email>
</author>
<published>2021-04-23T04:02:13+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=9fdd04918a452980631ecc499317881c1d120b70'/>
<id>urn:sha1:9fdd04918a452980631ecc499317881c1d120b70</id>
<content type='text'>
Fix a logic error that could result in a null deref if the user sets
the mode incorrectly for the given addr type.

Signed-off-by: Dan Robertson &lt;dan@dlrobertson.com&gt;
Acked-by: Alexander Aring &lt;aahringo@redhat.com&gt;
Link: https://lore.kernel.org/r/20210423040214.15438-2-dan@dlrobertson.com
Signed-off-by: Stefan Schmidt &lt;stefan@datenfreihafen.org&gt;
</content>
</entry>
<entry>
<title>net: ieee802154: stop dump llsec params for monitors</title>
<updated>2021-04-06T20:34:38+00:00</updated>
<author>
<name>Alexander Aring</name>
<email>aahringo@redhat.com</email>
</author>
<published>2021-04-05T00:30:54+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=1534efc7bbc1121e92c86c2dabebaf2c9dcece19'/>
<id>urn:sha1:1534efc7bbc1121e92c86c2dabebaf2c9dcece19</id>
<content type='text'>
This patch stops dumping llsec params for monitors which we don't support
yet. Otherwise we will access llsec mib which isn't initialized for
monitors.

Reported-by: syzbot+cde43a581a8e5f317bc2@syzkaller.appspotmail.com
Signed-off-by: Alexander Aring &lt;aahringo@redhat.com&gt;
Link: https://lore.kernel.org/r/20210405003054.256017-16-aahringo@redhat.com
Signed-off-by: Stefan Schmidt &lt;stefan@datenfreihafen.org&gt;
</content>
</entry>
<entry>
<title>net: ieee802154: forbid monitor for del llsec seclevel</title>
<updated>2021-04-06T20:32:52+00:00</updated>
<author>
<name>Alexander Aring</name>
<email>aahringo@redhat.com</email>
</author>
<published>2021-04-05T00:30:53+00:00</published>
<link rel='alternate' type='text/html' href='http://mirrors.hust.edu.cn/git/lwn.git/commit/?id=9dde130937e95b72adfae64ab21d6e7e707e2dac'/>
<id>urn:sha1:9dde130937e95b72adfae64ab21d6e7e707e2dac</id>
<content type='text'>
This patch forbids to del llsec seclevel for monitor interfaces which we
don't support yet. Otherwise we will access llsec mib which isn't
initialized for monitors.

Reported-by: syzbot+fbf4fc11a819824e027b@syzkaller.appspotmail.com
Signed-off-by: Alexander Aring &lt;aahringo@redhat.com&gt;
Link: https://lore.kernel.org/r/20210405003054.256017-15-aahringo@redhat.com
Signed-off-by: Stefan Schmidt &lt;stefan@datenfreihafen.org&gt;
</content>
</entry>
</feed>
