Comments (4)
Can you please share the pkt-gen
command you used?
from netmap.
Can you please share the
pkt-gen
command you used?
i just use the demo parameters:
pkt-gen -i eth0 -f tx -l 60
actually, when this command is entered, it halted after print
337.846397 main [3036] interface is eth0
337.846456 main [3159] using default burst size: 512
337.846516 main [3167] running on 1 cpus (have 16)
337.846854 extract_ip_range [477] range is 10.0.0.1:1234 to 10.0.0.1:1234
337.846865 extract_ip_range [477] range is 10.1.0.1:1234 to 10.1.0.1:1234
system is still responsing... i got the kernel dump via dmesg
command.
from netmap.
Do we have an estimated time frame for when the issue with the detected buffer overflow in strcpy
will be addressed?
from netmap.
I am seeing the same fortify panic for a strcpy()
overflow on Ubuntu 22.04.3 kernel version 6.5.0-14-generic using netmap 5bb6334. I have other systems running kernel version 5.15.0-91-generic and using netmap without issue. In both cases I am using the generic/emulated adapter driver. I believe the issue must be the only strcpy()
call in tc_configure()
:
strcpy(((void *)attr_kind) + NLA_HDRLEN, qdisc_name);
I configured an interface for single-queue with ethtool -L enp33s0f0np0 combined 1
then ran pkt-gen -f tx -i enp33s0f0np0
and saw the buffer overflow. tc_configure()
was passed qdisc_name=netmapemu
.
Then I configured the interface for 2 queues ethtool -L enp33s0f0np0 combined 2
, ran pkt-gen
again and saw the same overflow. This time tc_configure()
was passed qdisc_name=mq
.
While looking for strcpy()
in netmap_linux.c
I found one other use in netmap_sink_init()
I don't understand.
strlcpy(netdev->name, "nmsink", sizeof(netdev->name));
netdev->features = NETIF_F_HIGHDMA;
strcpy(netdev->name, "nmsink%d");
Why do the strlcpy()
followed by a strcpy()
? Is %d
desired to be part of the name or was it supposed to be used with snprintf()
? I don't think it's involved in this overflow but it jumped out to me.
from netmap.
Related Issues (20)
- nm_open with range of queues HOT 4
- Failure accessing netmap: Invalid argument HOT 1
- netmap causing hang of kernel worker.
- netmap i40e not support 6.6.4
- ProxMox + VirtIO (KVM)
- igc driver does not seem to work HOT 2
- num_slots on RX rings are zero HOT 2
- igb_netmap_rxsync error HOT 1
- Can't build ICE drivers HOT 5
- netmap_ring_reinit problems when running Zeek with netmap pipes
- Can't build netmap with ice 1.13.7 driver HOT 1
- netmap vm Question
- Is it possible to apply a patch to an external driver before configure checks it? HOT 1
- netmap_ring request size too large HOT 2
- netmap_ring request size 65792 too large HOT 1
- Adding in support for Azure Netvsc. HOT 4
- Build problem: Debian , Kernel 6.1 HOT 2
- Speed limited to 10Mbps when using virtio_net interfaces HOT 1
- e1000e driver cannot capture the packet,always show "Truncate incomplete fragment at" in dmesg
- Multi queue with multiple host rings HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from netmap.