unregister_netdevice: waiting for DEV to become free (9)
Subsystems (6)
syzbot
syzbotHello,
syzbot found the following issue on:
HEAD commit: 5cbb61bf4168 arm64/fpsimd: ptrace: zero target's fpsimd_st.. git tree: git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci console output: https://syzkaller.appspot.com/x/log.txt?x=142f40ec580000 kernel config: https://syzkaller.appspot.com/x/.config?x=a834c6344141a58b dashboard link: https://syzkaller.appspot.com/bug?extid=e2af46126e0644cbebdd compiler: Debian clang version 21.1.8 (++20251221033036+2078da43e25a-1~exp1~20251221153213.50), Debian LLD 21.1.8 userspace arch: arm64 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=103f3dba580000
Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/04156ec16593/disk-5cbb61bf.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/6bfa041e2c79/vmlinux-5cbb61bf.xz
kernel image: https://storage.googleapis.com/syzbot-assets/a92d82d8a79e/Image-5cbb61bf.gz.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/7915d7230a1d/mount_6.gz
fsck result: failed (log: https://syzkaller.appspot.com/x/fsck.log?x=15005a73980000)
IMPORTANT: if you fix the issue, please add the following tag to the commit:
unregister_netdevice: waiting for netdevsim1 to become free. Usage count = 2ref_tracker: netdev@00000000f11a2c54 has 1/1 users at
__netdev_tracker_alloc include/linux/netdevice.h:4471 [inline]
netdev_tracker_alloc include/linux/netdevice.h:4483 [inline]
netdev_get_by_index+0x88/0xe0 net/core/dev.c:1027
fib6_nh_init+0x258/0x14bc net/ipv6/route.c:3606
ip6_route_info_create_nh+0x120/0x9a8 net/ipv6/route.c:3905
addrconf_f6i_alloc+0x1e4/0x3b4 net/ipv6/route.c:4697
ipv6_add_addr+0x458/0xd70 net/ipv6/addrconf.c:1126
addrconf_add_linklocal+0x1e0/0x378 net/ipv6/addrconf.c:3311
addrconf_addr_gen+0x27c/0x2e0 net/ipv6/addrconf.c:-1
addrconf_init_auto_addrs+0x390/0x764 net/ipv6/addrconf.c:-1
addrconf_notify+0x7a0/0xbe4 net/ipv6/addrconf.c:3752
notifier_call_chain+0x194/0x60c kernel/notifier.c:85
raw_notifier_call_chain+0x3c/0x50 kernel/notifier.c:453
call_netdevice_notifiers_info+0xb8/0x120 net/core/dev.c:2249
call_netdevice_notifiers_extack net/core/dev.c:2287 [inline]
call_netdevice_notifiers net/core/dev.c:2301 [inline]
__dev_notify_flags+0x160/0x27c net/core/dev.c:9794
netif_change_flags+0xd0/0x15c net/core/dev.c:9823
do_setlink+0xab0/0x31c0 net/core/rtnetlink.c:3180
rtnl_changelink net/core/rtnetlink.c:3799 [inline]
__rtnl_newlink net/core/rtnetlink.c:3972 [inline]
rtnl_newlink+0xd24/0x113c net/core/rtnetlink.c:4109netdevsim netdevsim2 netdevsim0 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
---
This report is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at [email protected].
syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.
If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)
If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report
If you want to undo deduplication, reply with:
#syz undup
syzbot
syzbotForwarded: [syzbot] test patch for unregister_netdevice
For archival purposes, forwarding an incoming command email to [email protected], [email protected].
For archival purposes, forwarding an incoming command email to [email protected], [email protected].
***
Subject: [syzbot] test patch for unregister_netdevice
Author: [email protected]
#syz test: git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git main
net/ipv6/addrconf.c +6 -0
@@ -3666,6 +3666,9 @@ static int addrconf_notify(struct notifier_block *this, unsigned long event,break ;case NETDEV_CHANGEMTU : +if (dev->reg_state ==NETREG_UNREGISTERING ) +break ; +/* if MTU under IPV6_MIN_MTU stop IPv6 on this interface. */ if (dev->mtu <IPV6_MIN_MTU ) {addrconf_ifdown (dev, dev != net->loopback_dev);
@@ -3691,6 +3694,9 @@ static int addrconf_notify(struct notifier_block *this, unsigned long event, fallthrough;case NETDEV_UP :case NETDEV_CHANGE : +if (dev->reg_state ==NETREG_UNREGISTERING ) +break ; +if (idev && idev->cnf.disable_ipv6)break ;
syzbot
syzbotForwarded: [syzbot] test [PATCH net v2] ipv6: addrconf: skip autoconf on unregistering devices
In reply to syzbotFor archival purposes, forwarding an incoming command email to [email protected], [email protected].
For archival purposes, forwarding an incoming command email to [email protected], [email protected].
***
Subject: [syzbot] test [PATCH net v2] ipv6: addrconf: skip autoconf on unregistering devices
Author: [email protected]
#syz test: git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git main
From: Xu Rao <[email protected]>
Date: Tue, 12 May 2026 20:44:10 +0800
Subject: [PATCH net v2] ipv6: addrconf: skip autoconf on unregistering devices
syzbot reports that unregister_netdevice() can wait forever for a netdevsim device whose reference count never drops to zero.
The leaked reference is held by an IPv6 local route created from addrconf. A late NETDEV_CHANGE notification can still reach addrconf_notify() after the device has entered NETREG_UNREGISTERING. The handler can then run automatic address configuration, add a link-local address and install its host route after unregister teardown has already started. The route nexthop takes a netdev reference in fib6_nh_init(), and there might not be a later ifdown pass to remove the newly created address and route.
Do not run MTU, UP or CHANGE based IPv6 autoconfiguration once the device is unregistering. Keep NETDEV_DOWN and NETDEV_UNREGISTER handling unchanged so the teardown path can still remove existing IPv6 state.
---
v2:
- Drop READ_ONCE() around dev->reg_state. addrconf_notify() is called from the netdevice notifier path, so a plain load is sufficient.
- Do not add a Fixes tag. The issue does not appear to be caused by a single commit, but by a long-standing unregister-time lifecycle gap.
net/ipv6/addrconf.c | 6 ++++++ 1 file changed, 6 insertions(+)
net/ipv6/addrconf.c +6 -0
@@ -3666,6 +3666,9 @@ static int addrconf_notify(struct notifier_block *this, unsigned long event,break ;case NETDEV_CHANGEMTU : +if (dev->reg_state ==NETREG_UNREGISTERING ) +break ; +/* if MTU under IPV6_MIN_MTU stop IPv6 on this interface. */ if (dev->mtu <IPV6_MIN_MTU ) {addrconf_ifdown (dev, dev != net->loopback_dev);
@@ -3691,6 +3694,9 @@ static int addrconf_notify(struct notifier_block *this, unsigned long event, fallthrough;case NETDEV_UP :case NETDEV_CHANGE : +if (dev->reg_state ==NETREG_UNREGISTERING ) +break ; +if (idev && idev->cnf.disable_ipv6)break ;
--
2.50.1
syzbot
syzbotForwarded: [syzbot] test [PATCH net v2] ipv6: addrconf: skip autoconf on unregistering devices
In reply to syzbotFor archival purposes, forwarding an incoming command email to [email protected], [email protected].
For archival purposes, forwarding an incoming command email to [email protected], [email protected].
***
Subject: [syzbot] test [PATCH net v2] ipv6: addrconf: skip autoconf on unregistering devices
Author: [email protected]
#syz test: git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git main
syzbot
syzbotForwarded: [syzbot] test [PATCH net v2] ipv6: addrconf: skip autoconf on unregistering devices
In reply to syzbotFor archival purposes, forwarding an incoming command email to [email protected], [email protected].
For archival purposes, forwarding an incoming command email to [email protected], [email protected].
***
Subject: [syzbot] test [PATCH net v2] ipv6: addrconf: skip autoconf on unregistering devices
Author: [email protected]
#syz test: git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git main
From: Xu Rao <[email protected]>
Subject: [PATCH net v2] ipv6: addrconf: skip autoconf on unregistering devices
syzbot reports that unregister_netdevice() can wait forever for a netdevsim device whose reference count never drops to zero.
The leaked reference is held by an IPv6 local route created from addrconf. A late NETDEV_CHANGE notification can still reach addrconf_notify() after the device has entered NETREG_UNREGISTERING. The handler can then run automatic address configuration, add a link-local address and install its host route after unregister teardown has already started. The route nexthop takes a netdev reference in fib6_nh_init(), and there might not be a later ifdown pass to remove the newly created address and route.
Do not run MTU, UP or CHANGE based IPv6 autoconfiguration once the device is unregistering. Keep NETDEV_DOWN and NETDEV_UNREGISTER handling unchanged so the teardown path can still remove existing IPv6 state.
---
v2:
- Drop READ_ONCE() around dev->reg_state. addrconf_notify() is called from the netdevice notifier path, so a plain load is sufficient.
- Do not add a Fixes tag. The issue does not appear to be caused by a single commit, but by a long-standing unregister-time lifecycle gap.
net/ipv6/addrconf.c | 6 ++++++ 1 file changed, 6 insertions(+)
net/ipv6/addrconf.c +6 -0
@@ -3666,6 +3666,9 @@ static int addrconf_notify(struct notifier_block *this, unsigned long event,break ;case NETDEV_CHANGEMTU : +if (dev->reg_state ==NETREG_UNREGISTERING ) +break ; +/* if MTU under IPV6_MIN_MTU stop IPv6 on this interface. */ if (dev->mtu <IPV6_MIN_MTU ) {addrconf_ifdown (dev, dev != net->loopback_dev);
@@ -3691,12 +3694,15 @@ static int addrconf_notify(struct notifier_block *this, unsigned long event, fallthrough;case NETDEV_UP :case NETDEV_CHANGE : +if (dev->reg_state ==NETREG_UNREGISTERING ) +break ; +if (idev && idev->cnf.disable_ipv6)break ;if (dev->priv_flags &IFF_NO_ADDRCONF ) {if (event ==NETDEV_UP && !IS_ERR_OR_NULL (idev) && dev->flags &IFF_UP && dev->flags &IFF_MULTICAST )ipv6_mc_up (idev);break ; }
--
2.50.1
syzbot
syzbotForwarded: [syzbot] test net main baseline
In reply to syzbotFor archival purposes, forwarding an incoming command email to [email protected], [email protected].
For archival purposes, forwarding an incoming command email to [email protected], [email protected].
***
Subject: [syzbot] test net main baseline
Author: [email protected]
#syz test: git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git main
syzbot
syzbotForwarded: [syzbot] test [PATCH net v2] ipv6: addrconf: skip autoconf on unregistering devices
In reply to syzbotFor archival purposes, forwarding an incoming command email to [email protected], [email protected].
For archival purposes, forwarding an incoming command email to [email protected], [email protected].
***
Subject: [syzbot] test [PATCH net v2] ipv6: addrconf: skip autoconf on unregistering devices
Author: [email protected]
#syz test: git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci
From: Xu Rao <[email protected]>
Subject: [PATCH net v2] ipv6: addrconf: skip autoconf on unregistering devices
syzbot reports that unregister_netdevice() can wait forever for a netdevsim device whose reference count never drops to zero.
The leaked reference is held by an IPv6 local route created from addrconf. A late NETDEV_CHANGE notification can still reach addrconf_notify() after the device has entered NETREG_UNREGISTERING. The handler can then run automatic address configuration, add a link-local address and install its host route after unregister teardown has already started. The route nexthop takes a netdev reference in fib6_nh_init(), and there might not be a later ifdown pass to remove the newly created address and route.
Do not run MTU, UP or CHANGE based IPv6 autoconfiguration once the device is unregistering. Keep NETDEV_DOWN and NETDEV_UNREGISTER handling unchanged so the teardown path can still remove existing IPv6 state.
---
v2:
- Drop READ_ONCE() around dev->reg_state. addrconf_notify() is called from the netdevice notifier path, so a plain load is sufficient.
- Do not add a Fixes tag. The issue does not appear to be caused by a single commit, but by a long-standing unregister-time lifecycle gap.
net/ipv6/addrconf.c | 6 ++++++ 1 file changed, 6 insertions(+)
net/ipv6/addrconf.c +6 -0
@@ -3666,6 +3666,9 @@ static int addrconf_notify(struct notifier_block *this, unsigned long event,break ;case NETDEV_CHANGEMTU : +if (dev->reg_state ==NETREG_UNREGISTERING ) +break ; +/* if MTU under IPV6_MIN_MTU stop IPv6 on this interface. */ if (dev->mtu <IPV6_MIN_MTU ) {addrconf_ifdown (dev, dev != net->loopback_dev);
@@ -3691,12 +3694,15 @@ static int addrconf_notify(struct notifier_block *this, unsigned long event, fallthrough;case NETDEV_UP :case NETDEV_CHANGE : +if (dev->reg_state ==NETREG_UNREGISTERING ) +break ; +if (idev && idev->cnf.disable_ipv6)break ;if (dev->priv_flags &IFF_NO_ADDRCONF ) {if (event ==NETDEV_UP && !IS_ERR_OR_NULL (idev) && dev->flags &IFF_UP && dev->flags &IFF_MULTICAST )ipv6_mc_up (idev);break ; }
--
2.50.1
syzbot
syzbotForwarded: [syzbot] test WARN_ON for addrconf on unregistering devices
In reply to syzbotFor archival purposes, forwarding an incoming command email to [email protected], [email protected].
For archival purposes, forwarding an incoming command email to [email protected], [email protected].
***
Subject: [syzbot] test WARN_ON for addrconf on unregistering devices
Author: [email protected]
#syz test: git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci
From: Xu Rao <[email protected]>
Subject: [PATCH debug] ipv6: addrconf: warn on autoconf for unregistering devices
Add WARN_ON() checks where the proposed fix skips IPv6 autoconf on unregistering devices. This is a diagnostic patch to confirm whether the syzbot reproducer reaches the MTU / UP / CHANGE paths after the netdevice has entered NETREG_UNREGISTERING.
--- net/ipv6/addrconf.c | 4 ++++ 1 file changed, 4 insertions(+)
net/ipv6/addrconf.c +4 -0
@@ -3666,6 +3666,8 @@ static int addrconf_notify(struct notifier_block *this, unsigned long event,break ;case NETDEV_CHANGEMTU : +WARN_ON (dev->reg_state ==NETREG_UNREGISTERING ); +/* if MTU under IPV6_MIN_MTU stop IPv6 on this interface. */ if (dev->mtu <IPV6_MIN_MTU ) {addrconf_ifdown (dev, dev != net->loopback_dev);
@@ -3691,12 +3693,14 @@ static int addrconf_notify(struct notifier_block *this, unsigned long event, fallthrough;case NETDEV_UP :case NETDEV_CHANGE : +WARN_ON (dev->reg_state ==NETREG_UNREGISTERING ); +if (idev && idev->cnf.disable_ipv6)break ;if (dev->priv_flags &IFF_NO_ADDRCONF ) {if (event ==NETDEV_UP && !IS_ERR_OR_NULL (idev) && dev->flags &IFF_UP && dev->flags &IFF_MULTICAST )ipv6_mc_up (idev);break ; }
--
2.50.1
syzbot
syzbotForwarded: [syzbot] test baseline for unregister_netdevice ref leak
In reply to syzbotFor archival purposes, forwarding an incoming command email to [email protected], [email protected].
For archival purposes, forwarding an incoming command email to [email protected], [email protected].
***
Subject: [syzbot] test baseline for unregister_netdevice ref leak
Author: [email protected]
#syz test: git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci
syzbot
syzbotsyzbot has found a reproducer for the following issue on:
syzbot has found a reproducer for the following issue on:
HEAD commit: 5445d6419962 arm64: Don't read GMID_EL1 when MTE is disabled git tree: git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci console output: https://syzkaller.appspot.com/x/log.txt?x=1250428e580000 kernel config: https://syzkaller.appspot.com/x/.config?x=56ed23170c168d4c dashboard link: https://syzkaller.appspot.com/bug?extid=e2af46126e0644cbebdd compiler: Debian clang version 22.1.8 (++20260613092233+e80beda6e255-1~exp1~20260613092250.77), Debian LLD 22.1.8 userspace arch: arm64 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=15b32471580000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=16d742d1580000
Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/e8b70e3bd109/disk-5445d641.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/e5227e56ac93/vmlinux-5445d641.xz
kernel image: https://storage.googleapis.com/syzbot-assets/54905f78be59/Image-5445d641.gz.xz
IMPORTANT: if you fix the issue, please add the following tag to the commit:
unregister_netdevice: waiting for netdevsim2 to become free. Usage count = 2ref_tracker: netdev@000000004118ac35 has 1/1 users at
__netdev_tracker_alloc include/linux/netdevice.h:4528 [inline]
netdev_tracker_alloc+0x68/0xb4 include/linux/netdevice.h:4540
fib_create_info+0x15cc/0x2184 net/ipv4/fib_semantics.c:1524
fib_table_insert+0xa4/0x12bc net/ipv4/fib_trie.c:1212
fib_magic+0x26c/0x344 net/ipv4/fib_frontend.c:1147
fib_add_ifaddr+0x114/0x500 net/ipv4/fib_frontend.c:1169
fib_inetaddr_event+0x114/0x1c0 net/ipv4/fib_frontend.c:1483
notifier_call_chain+0x1a4/0x624 kernel/notifier.c:85
blocking_notifier_call_chain+0x70/0xa0 kernel/notifier.c:380
__inet_insert_ifa+0x87c/0xa74 net/ipv4/devinet.c:566
inet_rtm_newaddr+0xba4/0x1140 net/ipv4/devinet.c:1001
rtnetlink_rcv_msg+0x66c/0x9bc net/core/rtnetlink.c:7132
netlink_rcv_skb+0x238/0x414 net/netlink/af_netlink.c:2556
rtnetlink_rcv+0x28/0x38 net/core/rtnetlink.c:7159
netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline]
netlink_unicast+0x600/0x7f8 net/netlink/af_netlink.c:1345
netlink_sendmsg+0x648/0x948 net/netlink/af_netlink.c:1900
sock_sendmsg_nosec net/socket.c:800 [inline]
__sock_sendmsg+0xc8/0x17c net/socket.c:815netdevsim netdevsim2 netdevsim1 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
---
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.
syzbot
syzbotForwarded: Re: [syzbot] [net?] unregister_netdevice: waiting for DEV to become free (9)
In reply to syzbotFor archival purposes, forwarding an incoming command email to [email protected], [email protected].
For archival purposes, forwarding an incoming command email to [email protected], [email protected].
***
Subject: Re: [syzbot] [net?] unregister_netdevice: waiting for DEV to become free (9)
Author: [email protected]
#syz test
include/linux/netdevice.h +13 -0
@@ -2153,6 +2153,8 @@ enum netdev_reg_state {* * FIXME: cleanup struct net_device such that network protocol info * moves out. +* +* @netdev_trace_buffer_list: Linked list for debugging refcount leak. */ struct net_device {
@@ -2312,6 +2314,9 @@ struct net_device {#if IS_ENABLED (CONFIG_TLS_DEVICE )const struct tlsdev_ops *tlsdev_ops;#endif +#if defined(CONFIG_NET_DEV_REFCNT_TRACKER ) && defined(CONFIG_KALLSYMS ) +struct list_head netdev_trace_buffer_list; +#endif unsigned int operstate;unsigned char link_mode;
@@ -4498,9 +4503,16 @@ static inline bool dev_nit_active(const struct net_device *dev)void dev_queue_xmit_nit (struct sk_buff *skb,struct net_device *dev); +#if defined(CONFIG_NET_DEV_REFCNT_TRACKER ) && defined(CONFIG_KALLSYMS ) +void save_netdev_trace_buffer (struct net_device *dev,int delta); +#else +static inline void save_netdev_trace_buffer (struct net_device *dev,int delta) { } +#endif +static inline void __dev_put (struct net_device *dev) {if (dev) { +save_netdev_trace_buffer (dev,-1 );#ifdef CONFIG_PCPU_DEV_REFCNT this_cpu_dec (*dev->pcpu_refcnt);#else
@@ -4512,6 +4524,7 @@ static inline void __dev_put(struct net_device *dev)static inline void __dev_hold (struct net_device *dev) {if (dev) { +save_netdev_trace_buffer (dev,1 );#ifdef CONFIG_PCPU_DEV_REFCNT this_cpu_inc (*dev->pcpu_refcnt);#else
kernel/rcu/tree.c +4 -0
@@ -2566,6 +2566,10 @@ static bool rcu_do_batch_check_time(long count, long tlimit,local_clock () >= tlimit; } +#if defined(CONFIG_NET_DEV_REFCNT_TRACKER ) && defined(CONFIG_KALLSYMS ) +static noinline void rcu_do_batch(struct rcu_data *rdp); +#endif +/* * Invoke any RCU callbacks that have made it to the end of their grace * period. Throttle as specified by rdp->blimit.
kernel/softirq.c +4 -0
@@ -599,6 +599,10 @@ static inline bool lockdep_softirq_start(void) { return false; }static inline void lockdep_softirq_end (bool in_hardirq) { }#endif +#if defined(CONFIG_NET_DEV_REFCNT_TRACKER ) && defined(CONFIG_KALLSYMS ) +static noinline void handle_softirqs(bool ksirqd); +#endif +static void handle_softirqs (bool ksirqd) {unsigned long end = jiffies +MAX_SOFTIRQ_TIME ;
kernel/workqueue.c +4 -0
@@ -3259,6 +3259,10 @@ static bool manage_workers(struct worker *worker)return true; } +#if defined(CONFIG_NET_DEV_REFCNT_TRACKER ) && defined(CONFIG_KALLSYMS ) +static noinline void process_one_work(struct worker *worker, struct work_struct *work); +#endif +/** * process_one_work - process single work * @worker: self
net/core/dev.c +272 -0
317 lines not on this page · raw message
net/socket.c +25 -7
@@ -723,7 +723,11 @@ struct socket *sock_alloc(void) }EXPORT_SYMBOL (sock_alloc); -static void __sock_release (struct socket *sock,struct inode *inode) +static +#if defined(CONFIG_NET_DEV_REFCNT_TRACKER ) && defined(CONFIG_KALLSYMS ) +noinline +#endif +void __sock_release (struct socket *sock,struct inode *inode) {const struct proto_ops *ops =READ_ONCE (sock->ops);
@@ -795,7 +799,13 @@ static noinline void call_trace_sock_send_length(struct sock *sk, int ret,trace_sock_send_length (sk, ret,0 ); } -static inline int sock_sendmsg_nosec (struct socket *sock,struct msghdr *msg) +static +#if defined(CONFIG_NET_DEV_REFCNT_TRACKER ) && defined(CONFIG_KALLSYMS ) +noinline +#else +inline +#endif +int sock_sendmsg_nosec(struct socket *sock, struct msghdr *msg) { int ret = INDIRECT_CALL_INET(READ_ONCE(sock->ops)->sendmsg, inet6_sendmsg, inet_sendmsg, sock, msg,
@@ -1145,8 +1155,13 @@ static noinline void call_trace_sock_recv_length(struct sock *sk, int ret, int ftrace_sock_recv_length (sk, ret, flags); } -static inline int sock_recvmsg_nosec (struct socket *sock,struct msghdr *msg, -int flags) +static +#if defined(CONFIG_NET_DEV_REFCNT_TRACKER ) && defined(CONFIG_KALLSYMS ) +noinline +#else +inline +#endif +int sock_recvmsg_nosec(struct socket *sock, struct msghdr *msg, int flags) { int ret = INDIRECT_CALL_INET(READ_ONCE(sock->ops)->recvmsg, inet6_recvmsg,
@@ -2653,9 +2668,12 @@ static int copy_msghdr_from_user(struct msghdr *kmsg,return err <0 ? err :0 ; } -static int ____sys_sendmsg (struct socket *sock,struct msghdr *msg_sys, -unsigned int flags,struct used_address *used_address, -unsigned int allowed_msghdr_flags) +static +#if defined(CONFIG_NET_DEV_REFCNT_TRACKER ) && defined(CONFIG_KALLSYMS ) +noinline +#endif +int ____sys_sendmsg (struct socket *sock,struct msghdr *msg_sys,unsigned int flags, +struct used_address *used_address,unsigned int allowed_msghdr_flags) {unsigned char ctl[sizeof (struct cmsghdr ) +20 ]__aligned(sizeof(__kernel_size_t)) ;
Signature · 1 line
2.52.0