doc/share/security/patches/SA-05:08/kmem4.patch
Bjoern A. Zeeb 3571e53040 Import FreeBSD Security Advisories and Errata Notices, as well as their
patches for easier mirroring, to eliminate a special copy, to make
www.freebsd.org/security a full copy of security.freebsd.org and be
eventually be the same.

For now files are just sitting there.   The symlinks are missing.

Discussed on:	www (repository location)
Discussed with:	simon (so)
2012-08-15 06:19:40 +00:00

75 lines
2.9 KiB
Diff

Index: sys/kern/vfs_subr.c
===================================================================
RCS file: /home/ncvs/src/sys/kern/vfs_subr.c,v
retrieving revision 1.249.2.31
diff -u -p -r1.249.2.31 vfs_subr.c
--- sys/kern/vfs_subr.c 9 Aug 2003 16:21:20 -0000 1.249.2.31
+++ sys/kern/vfs_subr.c 5 May 2005 05:39:37 -0000
@@ -2302,6 +2302,7 @@ sysctl_ovfs_conf(SYSCTL_HANDLER_ARGS)
struct ovfsconf ovfs;
for (vfsp = vfsconf; vfsp; vfsp = vfsp->vfc_next) {
+ bzero(&ovfs, sizeof(ovfs));
ovfs.vfc_vfsops = vfsp->vfc_vfsops; /* XXX used as flag */
strcpy(ovfs.vfc_name, vfsp->vfc_name);
ovfs.vfc_index = vfsp->vfc_typenum;
Index: sys/net/if_mib.c
===================================================================
RCS file: /home/ncvs/src/sys/net/if_mib.c,v
retrieving revision 1.8.2.2
diff -u -p -r1.8.2.2 if_mib.c
--- sys/net/if_mib.c 4 May 2004 10:52:54 -0000 1.8.2.2
+++ sys/net/if_mib.c 5 May 2005 05:39:37 -0000
@@ -91,6 +91,7 @@ sysctl_ifdata(SYSCTL_HANDLER_ARGS) /* XX
return ENOENT;
case IFDATA_GENERAL:
+ bzero(&ifmd, sizeof(ifmd));
ifnlen = snprintf(workbuf, sizeof(workbuf),
"%s%d", ifp->if_name, ifp->if_unit);
if(ifnlen + 1 > sizeof ifmd.ifmd_name) {
Index: sys/netinet/ip_divert.c
===================================================================
RCS file: /home/ncvs/src/sys/netinet/ip_divert.c,v
retrieving revision 1.42.2.7
diff -u -p -r1.42.2.7 ip_divert.c
--- sys/netinet/ip_divert.c 1 Dec 2004 11:16:04 -0000 1.42.2.7
+++ sys/netinet/ip_divert.c 5 May 2005 05:39:37 -0000
@@ -478,6 +478,7 @@ div_pcblist(SYSCTL_HANDLER_ARGS)
inp = inp_list[i];
if (inp->inp_gencnt <= gencnt) {
struct xinpcb xi;
+ bzero(&xi, sizeof(xi));
xi.xi_len = sizeof xi;
/* XXX should avoid extra copy */
bcopy(inp, &xi.xi_inp, sizeof *inp);
Index: sys/netinet/raw_ip.c
===================================================================
RCS file: /home/ncvs/src/sys/netinet/raw_ip.c,v
retrieving revision 1.64.2.19
diff -u -p -r1.64.2.19 raw_ip.c
--- sys/netinet/raw_ip.c 16 Jun 2004 06:57:49 -0000 1.64.2.19
+++ sys/netinet/raw_ip.c 5 May 2005 05:39:38 -0000
@@ -686,6 +686,7 @@ rip_pcblist(SYSCTL_HANDLER_ARGS)
inp = inp_list[i];
if (inp->inp_gencnt <= gencnt) {
struct xinpcb xi;
+ bzero(&xi, sizeof(xi));
xi.xi_len = sizeof xi;
/* XXX should avoid extra copy */
bcopy(inp, &xi.xi_inp, sizeof *inp);
Index: sys/netinet/udp_usrreq.c
===================================================================
RCS file: /home/ncvs/src/sys/netinet/udp_usrreq.c,v
retrieving revision 1.64.2.19
diff -u -p -r1.64.2.19 udp_usrreq.c
--- sys/netinet/udp_usrreq.c 9 Sep 2003 19:09:22 -0000 1.64.2.19
+++ sys/netinet/udp_usrreq.c 5 May 2005 05:39:39 -0000
@@ -612,6 +612,7 @@ udp_pcblist(SYSCTL_HANDLER_ARGS)
inp = inp_list[i];
if (inp->inp_gencnt <= gencnt) {
struct xinpcb xi;
+ bzero(&xi, sizeof(xi));
xi.xi_len = sizeof xi;
/* XXX should avoid extra copy */
bcopy(inp, &xi.xi_inp, sizeof *inp);