netdevsim: drop the ability to change max_vfs via debugfs
Subsystems (3)
PATCH v2 1/1 netdevsim: drop the ability to change max_vfs via debugfs
This debugfs file isn't used by kernel's selftests, so drop it.
---
v2:
* Changed the approach as suggested by Jakub
* Subject line has changed
v1:
* https://lore.kernel.org/all/[email protected]/T/
--- drivers/net/netdevsim/bus.c | 3 -- drivers/net/netdevsim/dev.c | 79 +------------------------------ drivers/net/netdevsim/netdevsim.h | 2 +- 3 files changed, 3 insertions(+), 81 deletions(-)
drivers/net/netdevsim/bus.c +0 -3
@@ -443,8 +443,6 @@ static const struct bus_type nsim_bus = { .num_vf = nsim_num_vf, }; -#define NSIM_BUS_DEV_MAX_VFS 4 -static struct nsim_bus_dev *nsim_bus_dev_new (unsigned int id,unsigned int port_count,unsigned int num_queues) {
@@ -464,7 +462,6 @@ nsim_bus_dev_new(unsigned int id, unsigned int port_count, unsigned int num_queu nsim_bus_dev->port_count = port_count; nsim_bus_dev->num_queues = num_queues; nsim_bus_dev->initial_net = current->nsproxy->net_ns; - nsim_bus_dev->max_vfs =NSIM_BUS_DEV_MAX_VFS ;/* Disallow using nsim_bus_dev */ smp_store_release (&nsim_bus_dev->init, false);
drivers/net/netdevsim/dev.c +2 -77
103 lines not on this page · raw message
drivers/net/netdevsim/netdevsim.h +1 -1
@@ -472,6 +472,7 @@ nsim_psp_handle_ext(struct sk_buff *skb, struct skb_ext *psp_ext) {}int nsim_setup_tc (struct net_device *dev,enum tc_setup_type type,void *type_data); +#define NSIM_BUS_DEV_MAX_VFS 4struct nsim_bus_dev {struct device dev;struct list_head list;
@@ -480,7 +481,6 @@ struct nsim_bus_dev {struct net *initial_net;/* Purpose of this is to carry net pointer * during the probe time only. */ -unsigned int max_vfs;unsigned int num_vfs;bool init; };
Signature · 1 line
2.55.0
syzbot ci has tested the following series
syzbot ci has tested the following series
[v2] netdevsim: drop the ability to change max_vfs via debugfs
https://lore.kernel.org/all/[email protected]
* [PATCH v2] netdevsim: drop the ability to change max_vfs via debugfs
and found no issues.
Full report is available here:
https://ci.syzbot.org/series/08bc631f-f11f-4aa5-9ab7-0547f2eb942a
***
If these findings have caused you to resend the series or submit a separate fix, please add the following tag to your commit message:
---
This report is generated by a bot. It may contain errors. syzbot ci engineers can be reached at [email protected].
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 8 lines · On Mon, 10 Aug 2026 10:57:17 +0200 you wrote:
This debugfs file isn't used by kernel's selftests, so drop it.
Reported-by [email protected]Suggested-by Jakub Kicinski <[email protected]>Signed-off-by Slawomir Stepien <[email protected]>[...]
Here is the summary with links:
- [v2] netdevsim: drop the ability to change max_vfs via debugfs
https://git.kernel.org/netdev/net-next/c/b3217bdb0091
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html