Subject: Re: kern/29407: panic: m_copyback0: read-only
To: None <gnats-bugs@netbsd.org, kern-bug-people@netbsd.org,>
From: Christos Zoulas <christos@zoulas.com>
List: netbsd-bugs
Date: 02/16/2005 18:12:32
On Feb 16, 8:25pm, dlagno@mail.ru (Denis Lagno) wrote:
-- Subject: kern/29407: panic: m_copyback0: read-only
| >How-To-Repeat:
| >From scarce observations this panic arises when my first ftp access
| is from some other host in the local network. The host that panics
| is a gateway to Internet. I use NAT and ipsec.
| I first observed this panic with week-old -current. I updated system
| and the panic persist.
| >Fix:
| N/A
Try this:
Index: uipc_mbuf.c
===================================================================
RCS file: /cvsroot/src/sys/kern/uipc_mbuf.c,v
retrieving revision 1.92
diff -u -u -r1.92 uipc_mbuf.c
--- uipc_mbuf.c 24 Jan 2005 21:25:09 -0000 1.92
+++ uipc_mbuf.c 16 Feb 2005 23:11:52 -0000
@@ -1077,7 +1077,7 @@
#if defined(DEBUG)
error =
#endif /* defined(DEBUG) */
- m_copyback0(&m0, off, len, cp,
+ m_copyback0(&m0, off, len, cp, M_COPYBACK0_COW|
M_COPYBACK0_COPYBACK|M_COPYBACK0_EXTEND, M_DONTWAIT);
#if defined(DEBUG)