P J P
69f9cb16de
net: imx: limit buffer descriptor count
...
i.MX Fast Ethernet Controller uses buffer descriptors to manage
data flow to/fro receive & transmit queues. While transmitting
packets, it could continue to read buffer descriptors if a buffer
descriptor has length of zero and has crafted values in bd.flags.
Set an upper limit to number of buffer descriptors.
Reported-by: Li Qiang <liqiang6-s@360.cn >
Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org >
[BR: CVE-2016-7907 BSC#1002549]
Signed-off-by: Bruce Rogers <brogers@suse.com >
2021-03-17 09:45:50 -06:00
Jean-Christophe Dubois
eccfa35e9f
i.MX: Add missing descriptions in devices.
...
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Signed-off-by: Jean-Christophe Dubois <jcd@tribudubois.net >
Message-id: f1f565eb9dffdeb582feb1b15ba9e8b0afcf5468.1456868959.git.jcd@tribudubois.net
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2016-03-16 17:42:18 +00:00
Peter Maydell
8ef94f0bc9
arm: Clean up includes
...
Clean up includes so that osdep.h is included first and headers
which it implies are not included manually.
This commit was created with scripts/clean-includes.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: 1453832250-766-13-git-send-email-peter.maydell@linaro.org
2016-01-29 15:07:23 +00:00
Jean-Christophe Dubois
b72d8d257c
i.MX: Standardize i.MX FEC debug
...
The goal is to have debug code always compiled during build.
We standardize all debug output on the following format:
[QOM_TYPE_NAME]reporting_function: debug message
The qemu_log_mask() output is following the same format as the
above debug.
Reviewed-by: Peter Crosthwaite <crosthwaite.peter@gmail.com >
Signed-off-by: Jean-Christophe Dubois <jcd@tribudubois.net >
Message-id: 57e565982db94fb433c32dfa17608888464d21de.1445781957.git.jcd@tribudubois.net
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2015-10-27 15:59:46 +00:00
Jean-Christophe Dubois
fcbd8018e6
i.MX: Add FEC Ethernet Emulator
...
This is based on mcf_fec.c FEC implementation for Coldfire
* A generic PHY was added (borrowwed from LAN9118)
* The buffer management is also modified as buffers are
slightly different between Coldfire and i.MX
Signed-off-by: Jean-Christophe Dubois <jcd@tribudubois.net >
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com >
Message-id: fb314f8a120aa49f8f6ad886f312c649b484fb5a.1441057361.git.jcd@tribudubois.net
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2015-09-07 10:39:30 +01:00