mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-22 16:44:32 +01:00
Use m_dup() instead of m_copypacket() for the time being. Not all
of the code in the kernel properly checks for read-onlyness before writing into an mbuf data area. When that code is fixed, the m_dup() can go back to being m_copypacket(). Requested by: nsayer
This commit is contained in:
parent
39e31cdb6a
commit
763fcb92c5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=66313
@ -675,7 +675,7 @@ ng_bridge_rcvdata(hook_p hook, struct mbuf *m, meta_p meta,
|
|||||||
m2 = m;
|
m2 = m;
|
||||||
meta2 = meta;
|
meta2 = meta;
|
||||||
} else {
|
} else {
|
||||||
m2 = m_copypacket(m, M_NOWAIT); /* XXX m_dup()? */
|
m2 = m_dup(m, M_NOWAIT); /* XXX m_copypacket() */
|
||||||
if (m2 == NULL) {
|
if (m2 == NULL) {
|
||||||
link->stats.memoryFailures++;
|
link->stats.memoryFailures++;
|
||||||
NG_FREE_DATA(m, meta);
|
NG_FREE_DATA(m, meta);
|
||||||
|
Loading…
Reference in New Issue
Block a user