CVS commit: [netbsd-7] src/doc
Module Name:src Committed By: martin Date: Mon Nov 25 15:47:16 UTC 2019 Modified Files: src/doc [netbsd-7]: CHANGES-7.3 Log Message: Ticket #1714 To generate a diff of this commit: cvs rdiff -u -r1.1.2.68 -r1.1.2.69 src/doc/CHANGES-7.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/doc/CHANGES-7.3 diff -u src/doc/CHANGES-7.3:1.1.2.68 src/doc/CHANGES-7.3:1.1.2.69 --- src/doc/CHANGES-7.3:1.1.2.68 Sat Nov 16 16:17:37 2019 +++ src/doc/CHANGES-7.3 Mon Nov 25 15:47:16 2019 @@ -1,4 +1,4 @@ -# $NetBSD: CHANGES-7.3,v 1.1.2.68 2019/11/16 16:17:37 martin Exp $ +# $NetBSD: CHANGES-7.3,v 1.1.2.69 2019/11/25 15:47:16 martin Exp $ A complete list of changes from the NetBSD 7.2 release to the NetBSD 7.3 release: @@ -726,3 +726,8 @@ sys/dev/usb/usbdi.h1.97 (patch) Work around memory corruption problem triggered by axe(4). [mrg, ticket #1713] +sys/kern/subr_cprng.c1.33 + + Use cprng_strong, not cprng_fast, for sysctl kern.arnd. + [riastradh, ticket #1714] +
CVS commit: [netbsd-7] src/doc
Module Name:src Committed By: martin Date: Mon Nov 25 15:47:16 UTC 2019 Modified Files: src/doc [netbsd-7]: CHANGES-7.3 Log Message: Ticket #1714 To generate a diff of this commit: cvs rdiff -u -r1.1.2.68 -r1.1.2.69 src/doc/CHANGES-7.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-7] src/sys/kern
Module Name:src Committed By: martin Date: Mon Nov 25 15:46:39 UTC 2019 Modified Files: src/sys/kern [netbsd-7]: subr_cprng.c Log Message: Pull up following revision(s) (requested by riastradh in ticket #1714): sys/kern/subr_cprng.c: revision 1.33 Use cprng_strong, not cprng_fast, for sysctl kern.arnd. To generate a diff of this commit: cvs rdiff -u -r1.24.2.2 -r1.24.2.3 src/sys/kern/subr_cprng.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/kern/subr_cprng.c diff -u src/sys/kern/subr_cprng.c:1.24.2.2 src/sys/kern/subr_cprng.c:1.24.2.3 --- src/sys/kern/subr_cprng.c:1.24.2.2 Tue Sep 3 12:20:43 2019 +++ src/sys/kern/subr_cprng.c Mon Nov 25 15:46:39 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: subr_cprng.c,v 1.24.2.2 2019/09/03 12:20:43 martin Exp $ */ +/* $NetBSD: subr_cprng.c,v 1.24.2.3 2019/11/25 15:46:39 martin Exp $ */ /*- * Copyright (c) 2011-2013 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: subr_cprng.c,v 1.24.2.2 2019/09/03 12:20:43 martin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: subr_cprng.c,v 1.24.2.3 2019/11/25 15:46:39 martin Exp $"); #include #include @@ -508,6 +508,7 @@ cprng_strong_rndsink_callback(void *cont mutex_exit(>cs_lock); } +static ONCE_DECL(sysctl_prng_once); static cprng_strong_t *sysctl_prng; static int @@ -527,10 +528,9 @@ makeprng(void) static int sysctl_kern_urnd(SYSCTLFN_ARGS) { - static ONCE_DECL(control); int v, rv; - RUN_ONCE(, makeprng); + RUN_ONCE(_prng_once, makeprng); rv = cprng_strong(sysctl_prng, , sizeof(v), 0); if (rv == sizeof(v)) { struct sysctlnode node = *rnode; @@ -559,6 +559,7 @@ sysctl_kern_arnd(SYSCTLFN_ARGS) int error; void *v; struct sysctlnode node = *rnode; + size_t n __diagused; switch (*oldlenp) { case 0: @@ -567,8 +568,10 @@ sysctl_kern_arnd(SYSCTLFN_ARGS) if (*oldlenp > 256) { return E2BIG; } + RUN_ONCE(_prng_once, makeprng); v = kmem_alloc(*oldlenp, KM_SLEEP); - cprng_fast(v, *oldlenp); + n = cprng_strong(sysctl_prng, v, *oldlenp, 0); + KASSERT(n == *oldlenp); node.sysctl_data = v; node.sysctl_size = *oldlenp; error = sysctl_lookup(SYSCTLFN_CALL());
CVS commit: [netbsd-7] src/sys/kern
Module Name:src Committed By: martin Date: Mon Nov 25 15:46:39 UTC 2019 Modified Files: src/sys/kern [netbsd-7]: subr_cprng.c Log Message: Pull up following revision(s) (requested by riastradh in ticket #1714): sys/kern/subr_cprng.c: revision 1.33 Use cprng_strong, not cprng_fast, for sysctl kern.arnd. To generate a diff of this commit: cvs rdiff -u -r1.24.2.2 -r1.24.2.3 src/sys/kern/subr_cprng.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-7] src/doc
Module Name:src Committed By: martin Date: Sat Nov 16 16:17:37 UTC 2019 Modified Files: src/doc [netbsd-7]: CHANGES-7.3 Log Message: Ticket #1713 To generate a diff of this commit: cvs rdiff -u -r1.1.2.67 -r1.1.2.68 src/doc/CHANGES-7.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/doc/CHANGES-7.3 diff -u src/doc/CHANGES-7.3:1.1.2.67 src/doc/CHANGES-7.3:1.1.2.68 --- src/doc/CHANGES-7.3:1.1.2.67 Thu Nov 14 18:17:19 2019 +++ src/doc/CHANGES-7.3 Sat Nov 16 16:17:37 2019 @@ -1,4 +1,4 @@ -# $NetBSD: CHANGES-7.3,v 1.1.2.67 2019/11/14 18:17:19 martin Exp $ +# $NetBSD: CHANGES-7.3,v 1.1.2.68 2019/11/16 16:17:37 martin Exp $ A complete list of changes from the NetBSD 7.2 release to the NetBSD 7.3 release: @@ -719,3 +719,10 @@ sys/dev/pci/pucdata.c1.105 a clock multiplier of 8, just like the 16C1050 controller. [hauke, ticket #1712] +sys/dev/usb/usb_subr.c1.239 (patch) +sys/dev/usb/usbdi.c1.186 (patch) +sys/dev/usb/usbdi.h1.97 (patch) + + Work around memory corruption problem triggered by axe(4). + [mrg, ticket #1713] +
CVS commit: [netbsd-7] src/doc
Module Name:src Committed By: martin Date: Sat Nov 16 16:17:37 UTC 2019 Modified Files: src/doc [netbsd-7]: CHANGES-7.3 Log Message: Ticket #1713 To generate a diff of this commit: cvs rdiff -u -r1.1.2.67 -r1.1.2.68 src/doc/CHANGES-7.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-7] src/sys/dev/usb
Module Name:src Committed By: martin Date: Sat Nov 16 16:13:56 UTC 2019 Modified Files: src/sys/dev/usb [netbsd-7]: usb_subr.c usbdi.c usbdi.h Log Message: Pull up following revision(s) (requested by mrg in ticket #1713): sys/dev/usb/usbdi.h: revision 1.97 (via patch) sys/dev/usb/usbdi.c: revision 1.186 (via patch) sys/dev/usb/usb_subr.c: revision 1.239 (via patch) add new usbd_do_request_len() that can allocate a larger than request size buffer. reimplement usbd_do_request_flags() in terms of this. use this for fetching string descriptors. fixes a very strange problem where an axe(4) attaching (either has ugen(4) or axe(4)) would ask for 2 bytes, usb_mem.c would allocate a 2 byte fragment, perform the operation, and sometime shortly afterwards (usually by the time the next allocation is made for this fragment), would become corrupted (usually two bytes were written with 0x0304.) (initial request of 4 bytes also avoids the problem on this device. it really seems like a HC problem -- host should not allow the device to write more than req.wLength! nor should it allow this write to happen after completion.) avoid an (almost) always double-log in usbd_transfer(). To generate a diff of this commit: cvs rdiff -u -r1.196.4.5 -r1.196.4.6 src/sys/dev/usb/usb_subr.c cvs rdiff -u -r1.161.2.4 -r1.161.2.5 src/sys/dev/usb/usbdi.c cvs rdiff -u -r1.90.2.2 -r1.90.2.3 src/sys/dev/usb/usbdi.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/dev/usb/usb_subr.c diff -u src/sys/dev/usb/usb_subr.c:1.196.4.5 src/sys/dev/usb/usb_subr.c:1.196.4.6 --- src/sys/dev/usb/usb_subr.c:1.196.4.5 Wed Aug 8 10:17:11 2018 +++ src/sys/dev/usb/usb_subr.c Sat Nov 16 16:13:56 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: usb_subr.c,v 1.196.4.5 2018/08/08 10:17:11 martin Exp $ */ +/* $NetBSD: usb_subr.c,v 1.196.4.6 2019/11/16 16:13:56 martin Exp $ */ /* $FreeBSD: src/sys/dev/usb/usb_subr.c,v 1.18 1999/11/17 22:33:47 n_hibma Exp $ */ /* @@ -32,7 +32,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: usb_subr.c,v 1.196.4.5 2018/08/08 10:17:11 martin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: usb_subr.c,v 1.196.4.6 2019/11/16 16:13:56 martin Exp $"); #ifdef _KERNEL_OPT #include "opt_compat_netbsd.h" @@ -157,13 +157,20 @@ usbd_get_string_desc(struct usbd_device usbd_status err; int actlen; + /* + * Pass a full-sized buffer to usbd_do_request_len(). At least + * one device has been seen returning additional data beyond the + * provided buffers (2-bytes written shortly after the request + * claims to have completed and returned the 2 byte header, + * corrupting other memory.) + */ req.bmRequestType = UT_READ_DEVICE; req.bRequest = UR_GET_DESCRIPTOR; USETW2(req.wValue, UDESC_STRING, sindex); USETW(req.wIndex, langid); USETW(req.wLength, 2); /* only size byte first */ - err = usbd_do_request_flags(dev, , sdesc, USBD_SHORT_XFER_OK, - , USBD_DEFAULT_TIMEOUT); + err = usbd_do_request_len(dev, , sizeof(*sdesc), sdesc, + USBD_SHORT_XFER_OK, , USBD_DEFAULT_TIMEOUT); if (err) return err; @@ -171,8 +178,8 @@ usbd_get_string_desc(struct usbd_device return USBD_SHORT_XFER; USETW(req.wLength, sdesc->bLength); /* the whole string */ - err = usbd_do_request_flags(dev, , sdesc, USBD_SHORT_XFER_OK, - , USBD_DEFAULT_TIMEOUT); + err = usbd_do_request_len(dev, , sizeof(*sdesc), sdesc, + USBD_SHORT_XFER_OK, , USBD_DEFAULT_TIMEOUT); if (err) return err; @@ -1192,7 +1199,7 @@ usbd_get_initial_ddesc(struct usbd_devic req.bRequest = UR_GET_DESCRIPTOR; USETW2(req.wValue, UDESC_DEVICE, 0); USETW(req.wIndex, 0); - USETW(req.wLength, 64); + USETW(req.wLength, 8); res = usbd_do_request_flags(dev, , buf, USBD_SHORT_XFER_OK, , USBD_DEFAULT_TIMEOUT); if (res) Index: src/sys/dev/usb/usbdi.c diff -u src/sys/dev/usb/usbdi.c:1.161.2.4 src/sys/dev/usb/usbdi.c:1.161.2.5 --- src/sys/dev/usb/usbdi.c:1.161.2.4 Fri Jan 11 15:58:23 2019 +++ src/sys/dev/usb/usbdi.c Sat Nov 16 16:13:56 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: usbdi.c,v 1.161.2.4 2019/01/11 15:58:23 martin Exp $ */ +/* $NetBSD: usbdi.c,v 1.161.2.5 2019/11/16 16:13:56 martin Exp $ */ /* * Copyright (c) 1998, 2012, 2015 The NetBSD Foundation, Inc. @@ -32,7 +32,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: usbdi.c,v 1.161.2.4 2019/01/11 15:58:23 martin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: usbdi.c,v 1.161.2.5 2019/11/16 16:13:56 martin Exp $"); #ifdef _KERNEL_OPT #include "opt_usb.h" @@ -331,6 +331,8 @@ usbd_transfer(struct usbd_xfer *xfer) * accepted by the HCD for some reason. It needs removing * from the pipe queue. */ + USBHIST_LOG(usbdebug, "xfer failed: %s, reinserting", + err, 0, 0, 0); usbd_lock_pipe(pipe); SIMPLEQ_REMOVE_HEAD(>up_queue, ux_next); if (pipe->up_serialise) @@ -1072,13 +1074,23 @@ usbd_status usbd_do_request_flags(struct usbd_device *dev, usb_device_request_t
CVS commit: [netbsd-7] src/sys/dev/usb
Module Name:src Committed By: martin Date: Sat Nov 16 16:13:56 UTC 2019 Modified Files: src/sys/dev/usb [netbsd-7]: usb_subr.c usbdi.c usbdi.h Log Message: Pull up following revision(s) (requested by mrg in ticket #1713): sys/dev/usb/usbdi.h: revision 1.97 (via patch) sys/dev/usb/usbdi.c: revision 1.186 (via patch) sys/dev/usb/usb_subr.c: revision 1.239 (via patch) add new usbd_do_request_len() that can allocate a larger than request size buffer. reimplement usbd_do_request_flags() in terms of this. use this for fetching string descriptors. fixes a very strange problem where an axe(4) attaching (either has ugen(4) or axe(4)) would ask for 2 bytes, usb_mem.c would allocate a 2 byte fragment, perform the operation, and sometime shortly afterwards (usually by the time the next allocation is made for this fragment), would become corrupted (usually two bytes were written with 0x0304.) (initial request of 4 bytes also avoids the problem on this device. it really seems like a HC problem -- host should not allow the device to write more than req.wLength! nor should it allow this write to happen after completion.) avoid an (almost) always double-log in usbd_transfer(). To generate a diff of this commit: cvs rdiff -u -r1.196.4.5 -r1.196.4.6 src/sys/dev/usb/usb_subr.c cvs rdiff -u -r1.161.2.4 -r1.161.2.5 src/sys/dev/usb/usbdi.c cvs rdiff -u -r1.90.2.2 -r1.90.2.3 src/sys/dev/usb/usbdi.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-7] src/doc
Module Name:src Committed By: martin Date: Thu Nov 14 18:17:19 UTC 2019 Modified Files: src/doc [netbsd-7]: CHANGES-7.3 Log Message: Ticket #1712 To generate a diff of this commit: cvs rdiff -u -r1.1.2.66 -r1.1.2.67 src/doc/CHANGES-7.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/doc/CHANGES-7.3 diff -u src/doc/CHANGES-7.3:1.1.2.66 src/doc/CHANGES-7.3:1.1.2.67 --- src/doc/CHANGES-7.3:1.1.2.66 Mon Nov 4 14:53:35 2019 +++ src/doc/CHANGES-7.3 Thu Nov 14 18:17:19 2019 @@ -1,4 +1,4 @@ -# $NetBSD: CHANGES-7.3,v 1.1.2.66 2019/11/04 14:53:35 martin Exp $ +# $NetBSD: CHANGES-7.3,v 1.1.2.67 2019/11/14 18:17:19 martin Exp $ A complete list of changes from the NetBSD 7.2 release to the NetBSD 7.3 release: @@ -713,3 +713,9 @@ sys/compat/netbsd32/netbsd32_systrace_ar For netbsd32_readlinkat(2), bufsize is netbsd_size_t, not size_t. [rin, ticket #1711] +sys/dev/pci/pucdata.c1.105 + + puc(4): the 16C1054 and 16C1058 serial multi-port controllers need + a clock multiplier of 8, just like the 16C1050 controller. + [hauke, ticket #1712] +
CVS commit: [netbsd-7] src/doc
Module Name:src Committed By: martin Date: Thu Nov 14 18:17:19 UTC 2019 Modified Files: src/doc [netbsd-7]: CHANGES-7.3 Log Message: Ticket #1712 To generate a diff of this commit: cvs rdiff -u -r1.1.2.66 -r1.1.2.67 src/doc/CHANGES-7.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-7] src/sys/dev/pci
Module Name:src Committed By: martin Date: Thu Nov 14 15:43:59 UTC 2019 Modified Files: src/sys/dev/pci [netbsd-7]: pucdata.c Log Message: Pull up following revision(s) (requested by hauke in ticket #1712): sys/dev/pci/pucdata.c: revision 1.105 The 16C1054 and 16C1058 serial multi-port controllers need a clock multiplier of 8, just like the 16C1050 controller. Verified with an ExSys EX-41388. ryo@ checked back with the hardware his original commit was based on, and confirmed the change. XXX Pull-up to netbsd-{7,8,9} To generate a diff of this commit: cvs rdiff -u -r1.93.4.3 -r1.93.4.4 src/sys/dev/pci/pucdata.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-7] src/sys/dev/pci
Module Name:src Committed By: martin Date: Thu Nov 14 15:43:59 UTC 2019 Modified Files: src/sys/dev/pci [netbsd-7]: pucdata.c Log Message: Pull up following revision(s) (requested by hauke in ticket #1712): sys/dev/pci/pucdata.c: revision 1.105 The 16C1054 and 16C1058 serial multi-port controllers need a clock multiplier of 8, just like the 16C1050 controller. Verified with an ExSys EX-41388. ryo@ checked back with the hardware his original commit was based on, and confirmed the change. XXX Pull-up to netbsd-{7,8,9} To generate a diff of this commit: cvs rdiff -u -r1.93.4.3 -r1.93.4.4 src/sys/dev/pci/pucdata.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/dev/pci/pucdata.c diff -u src/sys/dev/pci/pucdata.c:1.93.4.3 src/sys/dev/pci/pucdata.c:1.93.4.4 --- src/sys/dev/pci/pucdata.c:1.93.4.3 Wed Jan 3 21:37:36 2018 +++ src/sys/dev/pci/pucdata.c Thu Nov 14 15:43:59 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: pucdata.c,v 1.93.4.3 2018/01/03 21:37:36 snj Exp $ */ +/* $NetBSD: pucdata.c,v 1.93.4.4 2019/11/14 15:43:59 martin Exp $ */ /* * Copyright (c) 1998, 1999 Christopher G. Demetriou. All rights reserved. @@ -36,7 +36,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: pucdata.c,v 1.93.4.3 2018/01/03 21:37:36 snj Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pucdata.c,v 1.93.4.4 2019/11/14 15:43:59 martin Exp $"); #include #include @@ -2833,10 +2833,10 @@ const struct puc_device_description puc_ { PCI_VENDOR_SYSTEMBASE, PCI_PRODUCT_SYSTEMBASE_SB16C1054, 0, 0 }, { 0x, 0x, 0, 0 }, { - { PUC_PORT_TYPE_COM, PCI_BAR0, 0x00, COM_FREQ }, - { PUC_PORT_TYPE_COM, PCI_BAR0, 0x08, COM_FREQ }, - { PUC_PORT_TYPE_COM, PCI_BAR0, 0x10, COM_FREQ }, - { PUC_PORT_TYPE_COM, PCI_BAR0, 0x18, COM_FREQ }, + { PUC_PORT_TYPE_COM, PCI_BAR0, 0x00, COM_FREQ * 8 }, + { PUC_PORT_TYPE_COM, PCI_BAR0, 0x08, COM_FREQ * 8 }, + { PUC_PORT_TYPE_COM, PCI_BAR0, 0x10, COM_FREQ * 8 }, + { PUC_PORT_TYPE_COM, PCI_BAR0, 0x18, COM_FREQ * 8 }, }, }, @@ -2845,14 +2845,14 @@ const struct puc_device_description puc_ { PCI_VENDOR_SYSTEMBASE, PCI_PRODUCT_SYSTEMBASE_SB16C1058, 0, 0 }, { 0x, 0x, 0, 0 }, { - { PUC_PORT_TYPE_COM, PCI_BAR0, 0x00, COM_FREQ }, - { PUC_PORT_TYPE_COM, PCI_BAR0, 0x08, COM_FREQ }, - { PUC_PORT_TYPE_COM, PCI_BAR0, 0x10, COM_FREQ }, - { PUC_PORT_TYPE_COM, PCI_BAR0, 0x18, COM_FREQ }, - { PUC_PORT_TYPE_COM, PCI_BAR0, 0x20, COM_FREQ }, - { PUC_PORT_TYPE_COM, PCI_BAR0, 0x28, COM_FREQ }, - { PUC_PORT_TYPE_COM, PCI_BAR0, 0x30, COM_FREQ }, - { PUC_PORT_TYPE_COM, PCI_BAR0, 0x38, COM_FREQ }, + { PUC_PORT_TYPE_COM, PCI_BAR0, 0x00, COM_FREQ * 8 }, + { PUC_PORT_TYPE_COM, PCI_BAR0, 0x08, COM_FREQ * 8 }, + { PUC_PORT_TYPE_COM, PCI_BAR0, 0x10, COM_FREQ * 8 }, + { PUC_PORT_TYPE_COM, PCI_BAR0, 0x18, COM_FREQ * 8 }, + { PUC_PORT_TYPE_COM, PCI_BAR0, 0x20, COM_FREQ * 8 }, + { PUC_PORT_TYPE_COM, PCI_BAR0, 0x28, COM_FREQ * 8 }, + { PUC_PORT_TYPE_COM, PCI_BAR0, 0x30, COM_FREQ * 8 }, + { PUC_PORT_TYPE_COM, PCI_BAR0, 0x38, COM_FREQ * 8 }, }, },
CVS commit: [netbsd-7] src/doc
Module Name:src Committed By: martin Date: Mon Nov 4 14:53:35 UTC 2019 Modified Files: src/doc [netbsd-7]: CHANGES-7.3 Log Message: Ticket #1711 To generate a diff of this commit: cvs rdiff -u -r1.1.2.65 -r1.1.2.66 src/doc/CHANGES-7.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/doc/CHANGES-7.3 diff -u src/doc/CHANGES-7.3:1.1.2.65 src/doc/CHANGES-7.3:1.1.2.66 --- src/doc/CHANGES-7.3:1.1.2.65 Thu Oct 31 01:53:00 2019 +++ src/doc/CHANGES-7.3 Mon Nov 4 14:53:35 2019 @@ -1,4 +1,4 @@ -# $NetBSD: CHANGES-7.3,v 1.1.2.65 2019/10/31 01:53:00 martin Exp $ +# $NetBSD: CHANGES-7.3,v 1.1.2.66 2019/11/04 14:53:35 martin Exp $ A complete list of changes from the NetBSD 7.2 release to the NetBSD 7.3 release: @@ -702,3 +702,14 @@ sys/modules/filemon/Makefile 1.4 (manu Do not install the filemon module. [maya, ticket #1710] +sys/compat/netbsd32/syscalls.master 1.129 +sys/compat/netbsd32/netbsd32_syscallargs.h (regen) +sys/compat/netbsd32/netbsd32_syscall.h (regen) +sys/compat/netbsd32/netbsd32_sysent.c (regen) +sys/compat/netbsd32/netbsd32_syscalls.c (regen) +sys/compat/netbsd32/netbsd32_syscalls_autoload.c (regen) +sys/compat/netbsd32/netbsd32_systrace_args.c (regen) + + For netbsd32_readlinkat(2), bufsize is netbsd_size_t, not size_t. + [rin, ticket #1711] +
CVS commit: [netbsd-7] src/doc
Module Name:src Committed By: martin Date: Mon Nov 4 14:53:35 UTC 2019 Modified Files: src/doc [netbsd-7]: CHANGES-7.3 Log Message: Ticket #1711 To generate a diff of this commit: cvs rdiff -u -r1.1.2.65 -r1.1.2.66 src/doc/CHANGES-7.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-7] src/sys/compat/netbsd32
Module Name:src Committed By: martin Date: Mon Nov 4 14:52:15 UTC 2019 Modified Files: src/sys/compat/netbsd32 [netbsd-7]: netbsd32_syscall.h netbsd32_syscallargs.h netbsd32_syscalls.c netbsd32_sysent.c Log Message: Regen for ticket #1711 To generate a diff of this commit: cvs rdiff -u -r1.109.2.3 -r1.109.2.4 \ src/sys/compat/netbsd32/netbsd32_syscall.h \ src/sys/compat/netbsd32/netbsd32_syscallargs.h cvs rdiff -u -r1.108.2.3 -r1.108.2.4 \ src/sys/compat/netbsd32/netbsd32_syscalls.c \ src/sys/compat/netbsd32/netbsd32_sysent.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-7] src/sys/compat/netbsd32
Module Name:src Committed By: martin Date: Mon Nov 4 14:52:15 UTC 2019 Modified Files: src/sys/compat/netbsd32 [netbsd-7]: netbsd32_syscall.h netbsd32_syscallargs.h netbsd32_syscalls.c netbsd32_sysent.c Log Message: Regen for ticket #1711 To generate a diff of this commit: cvs rdiff -u -r1.109.2.3 -r1.109.2.4 \ src/sys/compat/netbsd32/netbsd32_syscall.h \ src/sys/compat/netbsd32/netbsd32_syscallargs.h cvs rdiff -u -r1.108.2.3 -r1.108.2.4 \ src/sys/compat/netbsd32/netbsd32_syscalls.c \ src/sys/compat/netbsd32/netbsd32_sysent.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/netbsd32/netbsd32_syscall.h diff -u src/sys/compat/netbsd32/netbsd32_syscall.h:1.109.2.3 src/sys/compat/netbsd32/netbsd32_syscall.h:1.109.2.4 --- src/sys/compat/netbsd32/netbsd32_syscall.h:1.109.2.3 Fri Nov 6 09:19:24 2015 +++ src/sys/compat/netbsd32/netbsd32_syscall.h Mon Nov 4 14:52:15 2019 @@ -1,10 +1,10 @@ -/* $NetBSD: netbsd32_syscall.h,v 1.109.2.3 2015/11/06 09:19:24 martin Exp $ */ +/* $NetBSD: netbsd32_syscall.h,v 1.109.2.4 2019/11/04 14:52:15 martin Exp $ */ /* * System call numbers. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.101.2.3 2015/11/06 09:16:48 martin Exp + * created from NetBSD: syscalls.master,v 1.101.2.4 2019/11/04 14:51:31 martin Exp */ #ifndef _NETBSD32_SYS_SYSCALL_H_ @@ -1231,7 +1231,7 @@ /* syscall: "netbsd32_openat" ret: "int" args: "int" "const netbsd32_charp" "int" "..." */ #define NETBSD32_SYS_netbsd32_openat 468 -/* syscall: "netbsd32_readlinkat" ret: "netbsd32_ssize_t" args: "int" "const netbsd32_charp" "netbsd32_charp" "size_t" */ +/* syscall: "netbsd32_readlinkat" ret: "netbsd32_ssize_t" args: "int" "const netbsd32_charp" "netbsd32_charp" "netbsd32_size_t" */ #define NETBSD32_SYS_netbsd32_readlinkat 469 /* syscall: "netbsd32_symlinkat" ret: "int" args: "const netbsd32_charp" "int" "const netbsd32_charp" */ Index: src/sys/compat/netbsd32/netbsd32_syscallargs.h diff -u src/sys/compat/netbsd32/netbsd32_syscallargs.h:1.109.2.3 src/sys/compat/netbsd32/netbsd32_syscallargs.h:1.109.2.4 --- src/sys/compat/netbsd32/netbsd32_syscallargs.h:1.109.2.3 Fri Nov 6 09:19:24 2015 +++ src/sys/compat/netbsd32/netbsd32_syscallargs.h Mon Nov 4 14:52:15 2019 @@ -1,10 +1,10 @@ -/* $NetBSD: netbsd32_syscallargs.h,v 1.109.2.3 2015/11/06 09:19:24 martin Exp $ */ +/* $NetBSD: netbsd32_syscallargs.h,v 1.109.2.4 2019/11/04 14:52:15 martin Exp $ */ /* * System call argument lists. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.101.2.3 2015/11/06 09:16:48 martin Exp + * created from NetBSD: syscalls.master,v 1.101.2.4 2019/11/04 14:51:31 martin Exp */ #ifndef _NETBSD32_SYS_SYSCALLARGS_H_ @@ -2416,7 +2416,7 @@ struct netbsd32_readlinkat_args { syscallarg(int) fd; syscallarg(const netbsd32_charp) path; syscallarg(netbsd32_charp) buf; - syscallarg(size_t) bufsize; + syscallarg(netbsd32_size_t) bufsize; }; check_syscall_args(netbsd32_readlinkat) Index: src/sys/compat/netbsd32/netbsd32_syscalls.c diff -u src/sys/compat/netbsd32/netbsd32_syscalls.c:1.108.2.3 src/sys/compat/netbsd32/netbsd32_syscalls.c:1.108.2.4 --- src/sys/compat/netbsd32/netbsd32_syscalls.c:1.108.2.3 Fri Nov 6 09:19:24 2015 +++ src/sys/compat/netbsd32/netbsd32_syscalls.c Mon Nov 4 14:52:15 2019 @@ -1,14 +1,14 @@ -/* $NetBSD: netbsd32_syscalls.c,v 1.108.2.3 2015/11/06 09:19:24 martin Exp $ */ +/* $NetBSD: netbsd32_syscalls.c,v 1.108.2.4 2019/11/04 14:52:15 martin Exp $ */ /* * System call names. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.101.2.3 2015/11/06 09:16:48 martin Exp + * created from NetBSD: syscalls.master,v 1.101.2.4 2019/11/04 14:51:31 martin Exp */ #include -__KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls.c,v 1.108.2.3 2015/11/06 09:19:24 martin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: netbsd32_syscalls.c,v 1.108.2.4 2019/11/04 14:52:15 martin Exp $"); #if defined(_KERNEL_OPT) #if defined(_KERNEL_OPT) Index: src/sys/compat/netbsd32/netbsd32_sysent.c diff -u src/sys/compat/netbsd32/netbsd32_sysent.c:1.108.2.3 src/sys/compat/netbsd32/netbsd32_sysent.c:1.108.2.4 --- src/sys/compat/netbsd32/netbsd32_sysent.c:1.108.2.3 Fri Nov 6 09:19:24 2015 +++ src/sys/compat/netbsd32/netbsd32_sysent.c Mon Nov 4 14:52:15 2019 @@ -1,14 +1,14 @@ -/* $NetBSD: netbsd32_sysent.c,v 1.108.2.3 2015/11/06 09:19:24 martin Exp $ */ +/* $NetBSD: netbsd32_sysent.c,v 1.108.2.4 2019/11/04 14:52:15 martin Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. - * created from NetBSD: syscalls.master,v 1.101.2.3 2015/11/06 09:16:48 martin Exp + * created from NetBSD: syscalls.master,v 1.101.2.4 2019/11/04 14:51:31 martin Exp */ #include
CVS commit: [netbsd-7] src/sys/compat/netbsd32
Module Name:src Committed By: martin Date: Mon Nov 4 14:51:31 UTC 2019 Modified Files: src/sys/compat/netbsd32 [netbsd-7]: syscalls.master Log Message: Pull up following revision(s) (requested by rin in ticket #1711): sys/compat/netbsd32/syscalls.master: revision 1.129 For netbsd32_readlinkat(2), bufsize is netbsd_size_t, not size_t. Since bufsize is the last argument, this affects only LP64EB. XXX pullup to netbsd-9, -8, and -7 To generate a diff of this commit: cvs rdiff -u -r1.101.2.3 -r1.101.2.4 src/sys/compat/netbsd32/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-7] src/sys/compat/netbsd32
Module Name:src Committed By: martin Date: Mon Nov 4 14:51:31 UTC 2019 Modified Files: src/sys/compat/netbsd32 [netbsd-7]: syscalls.master Log Message: Pull up following revision(s) (requested by rin in ticket #1711): sys/compat/netbsd32/syscalls.master: revision 1.129 For netbsd32_readlinkat(2), bufsize is netbsd_size_t, not size_t. Since bufsize is the last argument, this affects only LP64EB. XXX pullup to netbsd-9, -8, and -7 To generate a diff of this commit: cvs rdiff -u -r1.101.2.3 -r1.101.2.4 src/sys/compat/netbsd32/syscalls.master Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/compat/netbsd32/syscalls.master diff -u src/sys/compat/netbsd32/syscalls.master:1.101.2.3 src/sys/compat/netbsd32/syscalls.master:1.101.2.4 --- src/sys/compat/netbsd32/syscalls.master:1.101.2.3 Fri Nov 6 09:16:48 2015 +++ src/sys/compat/netbsd32/syscalls.master Mon Nov 4 14:51:31 2019 @@ -1,4 +1,4 @@ - $NetBSD: syscalls.master,v 1.101.2.3 2015/11/06 09:16:48 martin Exp $ + $NetBSD: syscalls.master,v 1.101.2.4 2019/11/04 14:51:31 martin Exp $ ; from: NetBSD: syscalls.master,v 1.81 1998/07/05 08:49:50 jonathan Exp ; @(#)syscalls.master 8.2 (Berkeley) 1/13/94 @@ -1016,7 +1016,7 @@ 469 STD { netbsd32_ssize_t|netbsd32||readlinkat(int fd, \ const netbsd32_charp path, \ netbsd32_charp buf, \ - size_t bufsize); } + netbsd32_size_t bufsize); } 470 STD { int|netbsd32||symlinkat(const netbsd32_charp path1, \ int fd, \ const netbsd32_charp path2); }
CVS commit: [netbsd-7] src
Module Name:src Committed By: martin Date: Thu Oct 31 01:53:00 UTC 2019 Modified Files: src/distrib/sets/lists/modules [netbsd-7]: md.amd64 md.evbppc.powerpc md.i386 src/doc [netbsd-7]: CHANGES-7.3 Log Message: Fix set lists for ticket #1710 To generate a diff of this commit: cvs rdiff -u -r1.41.2.3 -r1.41.2.4 src/distrib/sets/lists/modules/md.amd64 cvs rdiff -u -r1.3.4.1 -r1.3.4.2 \ src/distrib/sets/lists/modules/md.evbppc.powerpc cvs rdiff -u -r1.46.2.2 -r1.46.2.3 src/distrib/sets/lists/modules/md.i386 cvs rdiff -u -r1.1.2.64 -r1.1.2.65 src/doc/CHANGES-7.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/distrib/sets/lists/modules/md.amd64 diff -u src/distrib/sets/lists/modules/md.amd64:1.41.2.3 src/distrib/sets/lists/modules/md.amd64:1.41.2.4 --- src/distrib/sets/lists/modules/md.amd64:1.41.2.3 Sat Mar 21 17:11:35 2015 +++ src/distrib/sets/lists/modules/md.amd64 Thu Oct 31 01:53:00 2019 @@ -1,4 +1,4 @@ -# $NetBSD: md.amd64,v 1.41.2.3 2015/03/21 17:11:35 snj Exp $ +# $NetBSD: md.amd64,v 1.41.2.4 2019/10/31 01:53:00 martin Exp $ # # NOTE that there are two sets of files here: # @MODULEDIR@ and amd64-xen @@ -292,8 +292,8 @@ ./stand/amd64-xen/@OSRELEASE@/modules/ffs/ffs.kmod base-kernel-modules kmod,compatmodules ./stand/amd64-xen/@OSRELEASE@/modules/filecorebase-kernel-modules kmod,compatmodules ./stand/amd64-xen/@OSRELEASE@/modules/filecore/filecore.kmod base-kernel-modules kmod,compatmodules -./stand/amd64-xen/@OSRELEASE@/modules/filemonbase-kernel-modules kmod,compatmodules -./stand/amd64-xen/@OSRELEASE@/modules/filemon/filemon.kmod base-kernel-modules kmod,compatmodules +./stand/amd64-xen/@OSRELEASE@/modules/filemonbase-obsolete obsolete +./stand/amd64-xen/@OSRELEASE@/modules/filemon/filemon.kmod base-obsolete obsolete ./stand/amd64-xen/@OSRELEASE@/modules/finsiobase-kernel-modules kmod,compatmodules ./stand/amd64-xen/@OSRELEASE@/modules/finsio/finsio.kmod base-kernel-modules kmod,compatmodules ./stand/amd64-xen/@OSRELEASE@/modules/flashbase-kernel-modules kmod,compatmodules Index: src/distrib/sets/lists/modules/md.evbppc.powerpc diff -u src/distrib/sets/lists/modules/md.evbppc.powerpc:1.3.4.1 src/distrib/sets/lists/modules/md.evbppc.powerpc:1.3.4.2 --- src/distrib/sets/lists/modules/md.evbppc.powerpc:1.3.4.1 Sat Mar 21 17:11:35 2015 +++ src/distrib/sets/lists/modules/md.evbppc.powerpc Thu Oct 31 01:53:00 2019 @@ -1,4 +1,4 @@ -# $NetBSD: md.evbppc.powerpc,v 1.3.4.1 2015/03/21 17:11:35 snj Exp $ +# $NetBSD: md.evbppc.powerpc,v 1.3.4.2 2019/10/31 01:53:00 martin Exp $ ./stand/powerpc-4xx base-kernel-modules kmod,compatmodules ./stand/powerpc-4xx/@OSRELEASE@ base-kernel-modules kmod,compatmodules ./stand/powerpc-4xx/@OSRELEASE@/modules base-kernel-modules kmod,compatmodules @@ -70,8 +70,8 @@ ./stand/powerpc-4xx/@OSRELEASE@/modules/ffs/ffs.kmod base-kernel-modules kmod,compatmodules ./stand/powerpc-4xx/@OSRELEASE@/modules/filecore base-kernel-modules kmod,compatmodules ./stand/powerpc-4xx/@OSRELEASE@/modules/filecore/filecore.kmod base-kernel-modules kmod,compatmodules -./stand/powerpc-4xx/@OSRELEASE@/modules/filemonbase-kernel-modules kmod,compatmodules -./stand/powerpc-4xx/@OSRELEASE@/modules/filemon/filemon.kmod base-kernel-modules kmod,compatmodules +./stand/powerpc-4xx/@OSRELEASE@/modules/filemonbase-obsolete obsolete +./stand/powerpc-4xx/@OSRELEASE@/modules/filemon/filemon.kmod base-obsolete obsolete ./stand/powerpc-4xx/@OSRELEASE@/modules/flashbase-kernel-modules kmod,compatmodules ./stand/powerpc-4xx/@OSRELEASE@/modules/flash/flash.kmod base-kernel-modules kmod,compatmodules ./stand/powerpc-4xx/@OSRELEASE@/modules/fssbase-kernel-modules kmod,compatmodules @@ -307,8 +307,8 @@ ./stand/powerpc-booke/@OSRELEASE@/modules/ffs/ffs.kmod base-kernel-modules kmod,compatmodules ./stand/powerpc-booke/@OSRELEASE@/modules/filecorebase-kernel-modules kmod,compatmodules ./stand/powerpc-booke/@OSRELEASE@/modules/filecore/filecore.kmod base-kernel-modules kmod,compatmodules -./stand/powerpc-booke/@OSRELEASE@/modules/filemonbase-kernel-modules kmod,compatmodules -./stand/powerpc-booke/@OSRELEASE@/modules/filemon/filemon.kmod base-kernel-modules kmod,compatmodules +./stand/powerpc-booke/@OSRELEASE@/modules/filemonbase-obsolete obsolete +./stand/powerpc-booke/@OSRELEASE@/modules/filemon/filemon.kmod base-obsolete obsolete ./stand/powerpc-booke/@OSRELEASE@/modules/flashbase-kernel-modules kmod,compatmodules ./stand/powerpc-booke/@OSRELEASE@/modules/flash/flash.kmod base-kernel-modules kmod,compatmodules ./stand/powerpc-booke/@OSRELEASE@/modules/fssbase-kernel-modules kmod,compatmodules Index: src/distrib/sets/lists/modules/md.i386 diff -u src/distrib/sets/lists/modules/md.i386:1.46.2.2 src/distrib/sets/lists/modules/md.i386:1.46.2.3 ---
CVS commit: [netbsd-7] src
Module Name:src Committed By: martin Date: Thu Oct 31 01:53:00 UTC 2019 Modified Files: src/distrib/sets/lists/modules [netbsd-7]: md.amd64 md.evbppc.powerpc md.i386 src/doc [netbsd-7]: CHANGES-7.3 Log Message: Fix set lists for ticket #1710 To generate a diff of this commit: cvs rdiff -u -r1.41.2.3 -r1.41.2.4 src/distrib/sets/lists/modules/md.amd64 cvs rdiff -u -r1.3.4.1 -r1.3.4.2 \ src/distrib/sets/lists/modules/md.evbppc.powerpc cvs rdiff -u -r1.46.2.2 -r1.46.2.3 src/distrib/sets/lists/modules/md.i386 cvs rdiff -u -r1.1.2.64 -r1.1.2.65 src/doc/CHANGES-7.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-7] src/doc
Module Name:src Committed By: martin Date: Mon Oct 28 18:04:15 UTC 2019 Modified Files: src/doc [netbsd-7]: CHANGES-7.3 Log Message: Ticket #1710 To generate a diff of this commit: cvs rdiff -u -r1.1.2.63 -r1.1.2.64 src/doc/CHANGES-7.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/doc/CHANGES-7.3 diff -u src/doc/CHANGES-7.3:1.1.2.63 src/doc/CHANGES-7.3:1.1.2.64 --- src/doc/CHANGES-7.3:1.1.2.63 Sat Sep 28 07:50:46 2019 +++ src/doc/CHANGES-7.3 Mon Oct 28 18:04:15 2019 @@ -1,4 +1,4 @@ -# $NetBSD: CHANGES-7.3,v 1.1.2.63 2019/09/28 07:50:46 martin Exp $ +# $NetBSD: CHANGES-7.3,v 1.1.2.64 2019/10/28 18:04:15 martin Exp $ A complete list of changes from the NetBSD 7.2 release to the NetBSD 7.3 release: @@ -692,3 +692,10 @@ sys/netbt/hci_event.c1.26 CVE-2019-9506. [plunky, ticket #1709] +distrib/sets/lists/modules/mi 1.127 +sys/modules/Makefile1.229,1.230 +sys/modules/filemon/Makefile 1.4 (manually adjusted) + + Do not install the filemon module. + [maya, ticket #1710] +
CVS commit: [netbsd-7] src/doc
Module Name:src Committed By: martin Date: Mon Oct 28 18:04:15 UTC 2019 Modified Files: src/doc [netbsd-7]: CHANGES-7.3 Log Message: Ticket #1710 To generate a diff of this commit: cvs rdiff -u -r1.1.2.63 -r1.1.2.64 src/doc/CHANGES-7.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-7] src
Module Name:src Committed By: martin Date: Mon Oct 28 18:03:46 UTC 2019 Modified Files: src/distrib/sets/lists/modules [netbsd-7]: mi src/sys/modules/filemon [netbsd-7]: Makefile Log Message: Pull up following revision(s) (requested by maya in ticket #1710): distrib/sets/lists/modules/mi: revision 1.127 sys/modules/Makefile: revision 1.230 sys/modules/filemon/Makefile: revision 1.4 (manually adjusted) sys/modules/Makefile: revision 1.229 Disable filemon. It isn't suited for general use (that is, it poses security risks), but the existence of the module means it is auto-loaded when /dev/filemon is opened, which can be done by any user. Thanks Ilja van Sprundel for the heads up. - Continue to build the filemon module, but don't install it. Hopefully this will help us detect any additional bit-rot that might occur. XXX It might be a good idea to modify the file permissions on /dev/filemon XXX to prevent auto-loading of the driver module by non-privileged users. To generate a diff of this commit: cvs rdiff -u -r1.69.2.1 -r1.69.2.2 src/distrib/sets/lists/modules/mi cvs rdiff -u -r1.1 -r1.1.40.1 src/sys/modules/filemon/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-7] src
Module Name:src Committed By: martin Date: Mon Oct 28 18:03:46 UTC 2019 Modified Files: src/distrib/sets/lists/modules [netbsd-7]: mi src/sys/modules/filemon [netbsd-7]: Makefile Log Message: Pull up following revision(s) (requested by maya in ticket #1710): distrib/sets/lists/modules/mi: revision 1.127 sys/modules/Makefile: revision 1.230 sys/modules/filemon/Makefile: revision 1.4 (manually adjusted) sys/modules/Makefile: revision 1.229 Disable filemon. It isn't suited for general use (that is, it poses security risks), but the existence of the module means it is auto-loaded when /dev/filemon is opened, which can be done by any user. Thanks Ilja van Sprundel for the heads up. - Continue to build the filemon module, but don't install it. Hopefully this will help us detect any additional bit-rot that might occur. XXX It might be a good idea to modify the file permissions on /dev/filemon XXX to prevent auto-loading of the driver module by non-privileged users. To generate a diff of this commit: cvs rdiff -u -r1.69.2.1 -r1.69.2.2 src/distrib/sets/lists/modules/mi cvs rdiff -u -r1.1 -r1.1.40.1 src/sys/modules/filemon/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/distrib/sets/lists/modules/mi diff -u src/distrib/sets/lists/modules/mi:1.69.2.1 src/distrib/sets/lists/modules/mi:1.69.2.2 --- src/distrib/sets/lists/modules/mi:1.69.2.1 Sat Mar 21 17:11:35 2015 +++ src/distrib/sets/lists/modules/mi Mon Oct 28 18:03:46 2019 @@ -1,4 +1,4 @@ -# $NetBSD: mi,v 1.69.2.1 2015/03/21 17:11:35 snj Exp $ +# $NetBSD: mi,v 1.69.2.2 2019/10/28 18:03:46 martin Exp $ # # Note: don't delete entries from here - mark them as "obsolete" instead. # @@ -76,8 +76,8 @@ ./@MODULEDIR@/ffs/ffs.kmod base-kernel-modules kmod ./@MODULEDIR@/filecorebase-kernel-modules kmod ./@MODULEDIR@/filecore/filecore.kmod base-kernel-modules kmod -./@MODULEDIR@/filemonbase-kernel-modules kmod -./@MODULEDIR@/filemon/filemon.kmod base-kernel-modules kmod +./@MODULEDIR@/filemonbase-obsolete obsolete +./@MODULEDIR@/filemon/filemon.kmod base-obsolete obsolete ./@MODULEDIR@/flashbase-kernel-modules kmod ./@MODULEDIR@/flash/flash.kmod base-kernel-modules kmod ./@MODULEDIR@/fssbase-kernel-modules kmod Index: src/sys/modules/filemon/Makefile diff -u src/sys/modules/filemon/Makefile:1.1 src/sys/modules/filemon/Makefile:1.1.40.1 --- src/sys/modules/filemon/Makefile:1.1 Thu Sep 9 00:10:16 2010 +++ src/sys/modules/filemon/Makefile Mon Oct 28 18:03:46 2019 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1 2010/09/09 00:10:16 sjg Exp $ +# $NetBSD: Makefile,v 1.1.40.1 2019/10/28 18:03:46 martin Exp $ .include "../Makefile.inc" @@ -8,4 +8,10 @@ KMOD = filemon SRCS = filemon.c filemon_wrapper.c NOMAN = no +# Due to security concerns, we don't install the filemon module. We +# do, however, want to keep building it to prevent bit-rot. Define +# an empty install target for this. + +kmodinstall: + .include
CVS commit: [netbsd-7] src/doc
Module Name:src Committed By: martin Date: Sat Sep 28 07:50:46 UTC 2019 Modified Files: src/doc [netbsd-7]: CHANGES-7.3 Log Message: Ticket #1709 To generate a diff of this commit: cvs rdiff -u -r1.1.2.62 -r1.1.2.63 src/doc/CHANGES-7.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/doc/CHANGES-7.3 diff -u src/doc/CHANGES-7.3:1.1.2.62 src/doc/CHANGES-7.3:1.1.2.63 --- src/doc/CHANGES-7.3:1.1.2.62 Tue Sep 17 18:07:54 2019 +++ src/doc/CHANGES-7.3 Sat Sep 28 07:50:46 2019 @@ -1,4 +1,4 @@ -# $NetBSD: CHANGES-7.3,v 1.1.2.62 2019/09/17 18:07:54 martin Exp $ +# $NetBSD: CHANGES-7.3,v 1.1.2.63 2019/09/28 07:50:46 martin Exp $ A complete list of changes from the NetBSD 7.2 release to the NetBSD 7.3 release: @@ -683,3 +683,12 @@ sys/netinet6/ip6_input.c 1.209 (patch) m_pullup() when needed. [bouyer, ticket #1708] +sys/netbt/hci.h 1.46 +sys/netbt/hci_event.c1.26 + + When encrypted connections are configured, verify that the encryption + key length has a minimum size when the adaptor supports that. + This addresses the 'Key Negotiation of Bluetooth' attack, + CVE-2019-9506. + [plunky, ticket #1709] +
CVS commit: [netbsd-7] src/sys/netbt
Module Name:src Committed By: martin Date: Sat Sep 28 07:50:23 UTC 2019 Modified Files: src/sys/netbt [netbsd-7]: hci.h hci_event.c Log Message: Pull up following revision(s) (requested by plunky in ticket #1709): sys/netbt/hci_event.c: revision 1.26 sys/netbt/hci.h: revision 1.46 When encrypted connections are configured, verify that the encryption key length has a minimum size when the adaptor supports that. This addresses the 'Key Negotiation of Bluetooth' attack, CVE-2019-9506 https://www.bluetooth.com/security/statement-key-negotiation-of-bluetooth/ To generate a diff of this commit: cvs rdiff -u -r1.39 -r1.39.2.1 src/sys/netbt/hci.h cvs rdiff -u -r1.23 -r1.23.28.1 src/sys/netbt/hci_event.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-7] src/doc
Module Name:src Committed By: martin Date: Sat Sep 28 07:50:46 UTC 2019 Modified Files: src/doc [netbsd-7]: CHANGES-7.3 Log Message: Ticket #1709 To generate a diff of this commit: cvs rdiff -u -r1.1.2.62 -r1.1.2.63 src/doc/CHANGES-7.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-7] src/sys/netbt
Module Name:src Committed By: martin Date: Sat Sep 28 07:50:23 UTC 2019 Modified Files: src/sys/netbt [netbsd-7]: hci.h hci_event.c Log Message: Pull up following revision(s) (requested by plunky in ticket #1709): sys/netbt/hci_event.c: revision 1.26 sys/netbt/hci.h: revision 1.46 When encrypted connections are configured, verify that the encryption key length has a minimum size when the adaptor supports that. This addresses the 'Key Negotiation of Bluetooth' attack, CVE-2019-9506 https://www.bluetooth.com/security/statement-key-negotiation-of-bluetooth/ To generate a diff of this commit: cvs rdiff -u -r1.39 -r1.39.2.1 src/sys/netbt/hci.h cvs rdiff -u -r1.23 -r1.23.28.1 src/sys/netbt/hci_event.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/netbt/hci.h diff -u src/sys/netbt/hci.h:1.39 src/sys/netbt/hci.h:1.39.2.1 --- src/sys/netbt/hci.h:1.39 Tue Jul 1 05:49:18 2014 +++ src/sys/netbt/hci.h Sat Sep 28 07:50:23 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: hci.h,v 1.39 2014/07/01 05:49:18 rtr Exp $ */ +/* $NetBSD: hci.h,v 1.39.2.1 2019/09/28 07:50:23 martin Exp $ */ /*- * Copyright (c) 2005 Iain Hibbert. @@ -54,7 +54,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: hci.h,v 1.39 2014/07/01 05:49:18 rtr Exp $ + * $Id: hci.h,v 1.39.2.1 2019/09/28 07:50:23 martin Exp $ * $FreeBSD: src/sys/netgraph/bluetooth/include/ng_hci.h,v 1.6 2005/01/07 01:45:43 imp Exp $ */ @@ -1786,6 +1786,17 @@ typedef struct { uint16_t accuracy; /* clock accuracy */ } __packed hci_read_clock_rp; +#define HCI_OCF_READ_ENCRYPTION_KEY_SIZE 0x0008 +#define HCI_CMD_READ_ENCRYPTION_KEY_SIZE 0x1408 +typedef struct { + uint16_t con_handle; /* connection handle */ +} __packed hci_read_encryption_key_size_cp; + +typedef struct { + uint8_t status; /* 0x00 - success */ + uint16_t con_handle; /* connection handle */ + uint8_t size; /* key size */ +} __packed hci_read_encryption_key_size_rp; /** ** Index: src/sys/netbt/hci_event.c diff -u src/sys/netbt/hci_event.c:1.23 src/sys/netbt/hci_event.c:1.23.28.1 --- src/sys/netbt/hci_event.c:1.23 Wed Jul 27 10:25:09 2011 +++ src/sys/netbt/hci_event.c Sat Sep 28 07:50:23 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: hci_event.c,v 1.23 2011/07/27 10:25:09 plunky Exp $ */ +/* $NetBSD: hci_event.c,v 1.23.28.1 2019/09/28 07:50:23 martin Exp $ */ /*- * Copyright (c) 2005 Iain Hibbert. @@ -31,7 +31,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: hci_event.c,v 1.23 2011/07/27 10:25:09 plunky Exp $"); +__KERNEL_RCSID(0, "$NetBSD: hci_event.c,v 1.23.28.1 2019/09/28 07:50:23 martin Exp $"); #include #include @@ -63,6 +63,7 @@ static void hci_cmd_read_local_features( static void hci_cmd_read_local_extended_features(struct hci_unit *, struct mbuf *); static void hci_cmd_read_local_ver(struct hci_unit *, struct mbuf *); static void hci_cmd_read_local_commands(struct hci_unit *, struct mbuf *); +static void hci_cmd_read_encryption_key_size(struct hci_unit *, struct mbuf *); static void hci_cmd_reset(struct hci_unit *, struct mbuf *); static void hci_cmd_create_con(struct hci_unit *unit, uint8_t status); @@ -351,6 +352,10 @@ hci_event_command_compl(struct hci_unit hci_cmd_read_local_commands(unit, m); break; + case HCI_CMD_READ_ENCRYPTION_KEY_SIZE: + hci_cmd_read_encryption_key_size(unit, m); + break; + case HCI_CMD_RESET: hci_cmd_reset(unit, m); break; @@ -618,10 +623,11 @@ hci_event_con_compl(struct hci_unit *uni return; } - /* XXX could check auth_enable here */ - - if (ep.encryption_mode) - link->hl_flags |= (HCI_LINK_AUTH | HCI_LINK_ENCRYPT); + /* + * We purposefully ignore ep.encryption_mode here - if that is set then + * the link will be authenticated and encrypted, but we still want to + * verify the key size and setmode sets the right flags + */ link->hl_state = HCI_LINK_OPEN; link->hl_handle = HCI_CON_HANDLE(le16toh(ep.con_handle)); @@ -772,17 +778,16 @@ hci_event_auth_compl(struct hci_unit *un /* * Encryption Change * - * The encryption status has changed. Basically, we note the change - * then notify the upper layer protocol unless further mode changes - * are pending. - * Note that if encryption gets disabled when it has been requested, - * we will attempt to enable it again.. (its a feature not a bug :) + * The encryption status has changed. Make a note if disabled, or + * check the key size if possible before allowing it is enabled. + * (checking of key size was enabled in 3.0 spec) */ static void hci_event_encryption_change(struct hci_unit *unit, struct mbuf *m) { hci_encryption_change_ep ep; struct hci_link *link; + uint16_t con_handle; int err; if (m->m_pkthdr.len < sizeof(ep)) @@
CVS commit: [netbsd-7] src/doc
Module Name:src Committed By: martin Date: Tue Sep 17 18:07:54 UTC 2019 Modified Files: src/doc [netbsd-7]: CHANGES-7.3 Log Message: Tickets #1707 and #1708 To generate a diff of this commit: cvs rdiff -u -r1.1.2.61 -r1.1.2.62 src/doc/CHANGES-7.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/doc/CHANGES-7.3 diff -u src/doc/CHANGES-7.3:1.1.2.61 src/doc/CHANGES-7.3:1.1.2.62 --- src/doc/CHANGES-7.3:1.1.2.61 Fri Sep 6 13:50:56 2019 +++ src/doc/CHANGES-7.3 Tue Sep 17 18:07:54 2019 @@ -1,4 +1,4 @@ -# $NetBSD: CHANGES-7.3,v 1.1.2.61 2019/09/06 13:50:56 martin Exp $ +# $NetBSD: CHANGES-7.3,v 1.1.2.62 2019/09/17 18:07:54 martin Exp $ A complete list of changes from the NetBSD 7.2 release to the NetBSD 7.3 release: @@ -671,3 +671,15 @@ lib/libc/nameser/ns_name.c 1.12 Fix buffer overrun. [maya, ticket #1706] +sys/dev/usb/xhci.c1.109,1.113 + + Fix ryzen usb issue and support xhci version 3.10. + [mrg, ticket #1707] + +sys/netinet/ip_input.c1.390 (patch) +sys/netinet6/ip6_input.c 1.209 (patch) + + Packet filters can return an mbuf chain with fragmented headers, so + m_pullup() when needed. + [bouyer, ticket #1708] +
CVS commit: [netbsd-7] src/sys
Module Name:src Committed By: martin Date: Tue Sep 17 18:07:15 UTC 2019 Modified Files: src/sys/netinet [netbsd-7]: ip_input.c src/sys/netinet6 [netbsd-7]: ip6_input.c Log Message: Pull up following revision(s) (requested by bouyer in ticket #1708): sys/netinet6/ip6_input.c: revision 1.209 via patch sys/netinet/ip_input.c: revision 1.390 via patch Packet filters can return an mbuf chain with fragmented headers, so m_pullup() it if needed and remove the KASSERT()s. To generate a diff of this commit: cvs rdiff -u -r1.319.2.1 -r1.319.2.2 src/sys/netinet/ip_input.c cvs rdiff -u -r1.149.2.3 -r1.149.2.4 src/sys/netinet6/ip6_input.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-7] src/sys
Module Name:src Committed By: martin Date: Tue Sep 17 18:07:15 UTC 2019 Modified Files: src/sys/netinet [netbsd-7]: ip_input.c src/sys/netinet6 [netbsd-7]: ip6_input.c Log Message: Pull up following revision(s) (requested by bouyer in ticket #1708): sys/netinet6/ip6_input.c: revision 1.209 via patch sys/netinet/ip_input.c: revision 1.390 via patch Packet filters can return an mbuf chain with fragmented headers, so m_pullup() it if needed and remove the KASSERT()s. To generate a diff of this commit: cvs rdiff -u -r1.319.2.1 -r1.319.2.2 src/sys/netinet/ip_input.c cvs rdiff -u -r1.149.2.3 -r1.149.2.4 src/sys/netinet6/ip6_input.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/netinet/ip_input.c diff -u src/sys/netinet/ip_input.c:1.319.2.1 src/sys/netinet/ip_input.c:1.319.2.2 --- src/sys/netinet/ip_input.c:1.319.2.1 Fri Feb 9 13:37:09 2018 +++ src/sys/netinet/ip_input.c Tue Sep 17 18:07:15 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: ip_input.c,v 1.319.2.1 2018/02/09 13:37:09 martin Exp $ */ +/* $NetBSD: ip_input.c,v 1.319.2.2 2019/09/17 18:07:15 martin Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -91,7 +91,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.319.2.1 2018/02/09 13:37:09 martin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ip_input.c,v 1.319.2.2 2019/09/17 18:07:15 martin Exp $"); #include "opt_inet.h" #include "opt_compat_netbsd.h" @@ -526,8 +526,25 @@ ip_input(struct mbuf *m) if (freed || m == NULL) { return; } + if (__predict_false(m->m_len < sizeof (struct ip))) { + if ((m = m_pullup(m, sizeof (struct ip))) == NULL) { +IP_STATINC(IP_STAT_TOOSMALL); +return; + } + } ip = mtod(m, struct ip *); hlen = ip->ip_hl << 2; + if (hlen < sizeof(struct ip)) { /* minimum header length */ + IP_STATINC(IP_STAT_BADHLEN); + goto bad; + } + if (hlen > m->m_len) { + if ((m = m_pullup(m, hlen)) == NULL) { +IP_STATINC(IP_STAT_BADHLEN); +return; + } + ip = mtod(m, struct ip *); + } /* * XXX The setting of "srcrt" here is to prevent ip_forward() Index: src/sys/netinet6/ip6_input.c diff -u src/sys/netinet6/ip6_input.c:1.149.2.3 src/sys/netinet6/ip6_input.c:1.149.2.4 --- src/sys/netinet6/ip6_input.c:1.149.2.3 Sun Feb 25 23:17:47 2018 +++ src/sys/netinet6/ip6_input.c Tue Sep 17 18:07:15 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: ip6_input.c,v 1.149.2.3 2018/02/25 23:17:47 snj Exp $ */ +/* $NetBSD: ip6_input.c,v 1.149.2.4 2019/09/17 18:07:15 martin Exp $ */ /* $KAME: ip6_input.c,v 1.188 2001/03/29 05:34:31 itojun Exp $ */ /* @@ -62,7 +62,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ip6_input.c,v 1.149.2.3 2018/02/25 23:17:47 snj Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ip6_input.c,v 1.149.2.4 2019/09/17 18:07:15 martin Exp $"); #include "opt_gateway.h" #include "opt_inet.h" @@ -352,6 +352,14 @@ ip6_input(struct mbuf *m) return; if (m == NULL) return; + if (__predict_false(m->m_len < sizeof(struct ip6_hdr))) { + struct ifnet *inifp = m->m_pkthdr.rcvif; + if ((m = m_pullup(m, sizeof(struct ip6_hdr))) == NULL) { +IP6_STATINC(IP6_STAT_TOOSMALL); +in6_ifstat_inc(inifp, ifs6_in_hdrerr); +return; + } + } ip6 = mtod(m, struct ip6_hdr *); srcrt = !IN6_ARE_ADDR_EQUAL(, >ip6_dst); }
CVS commit: [netbsd-7] src/sys/dev/usb
Module Name:src Committed By: martin Date: Tue Sep 17 18:04:15 UTC 2019 Modified Files: src/sys/dev/usb [netbsd-7]: xhci.c Log Message: Pull up following revision(s) (requested by mrg in ticket #1707): sys/dev/usb/xhci.c: revision 1.113 sys/dev/usb/xhci.c: revision 1.109 match xhci version 3.10. allows properly finding all the USB busses on new ryzen 3 based systems. unfortunately, the USB busses are still non-functional. - fix ryzen usb issue: we set TD size to '1', where has xhci spec 4.11.2.4 says final TRB for a TD should have this set to '0'. since we currently only generate sinel TRB TDs, set this to 0. XXX: pullup-all from sc.dying To generate a diff of this commit: cvs rdiff -u -r1.23.2.8 -r1.23.2.9 src/sys/dev/usb/xhci.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/dev/usb/xhci.c diff -u src/sys/dev/usb/xhci.c:1.23.2.8 src/sys/dev/usb/xhci.c:1.23.2.9 --- src/sys/dev/usb/xhci.c:1.23.2.8 Sat Aug 25 14:57:35 2018 +++ src/sys/dev/usb/xhci.c Tue Sep 17 18:04:15 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: xhci.c,v 1.23.2.8 2018/08/25 14:57:35 martin Exp $ */ +/* $NetBSD: xhci.c,v 1.23.2.9 2019/09/17 18:04:15 martin Exp $ */ /* * Copyright (c) 2013 Jonathan A. Kollasch @@ -34,7 +34,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: xhci.c,v 1.23.2.8 2018/08/25 14:57:35 martin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: xhci.c,v 1.23.2.9 2019/09/17 18:04:15 martin Exp $"); #ifdef _KERNEL_OPT #include "opt_usb.h" @@ -753,6 +753,8 @@ hexdump(const char *msg, const void *bas static void xhci_id_protocols(struct xhci_softc *sc, bus_size_t ecp) { + XHCIHIST_FUNC(); XHCIHIST_CALLED(); + /* XXX Cache this lot */ const uint32_t w0 = xhci_read_4(sc, ecp); @@ -776,6 +778,7 @@ xhci_id_protocols(struct xhci_softc *sc, case 0x0200: case 0x0300: case 0x0301: + case 0x0310: aprint_debug_dev(sc->sc_dev, " %s ports %d - %d\n", major == 3 ? "ss" : "hs", cpo, cpo + cpc -1); break; @@ -3792,7 +3795,7 @@ xhci_device_ctrl_start(struct usbd_xfer parameter = DMAADDR(dma, 0); KASSERTMSG(len <= 0x1, "len %d", len); status = XHCI_TRB_2_IRQ_SET(0) | - XHCI_TRB_2_TDSZ_SET(1) | + XHCI_TRB_2_TDSZ_SET(0) | XHCI_TRB_2_BYTES_SET(len); control = (isread ? XHCI_TRB_3_DIR_IN : 0) | XHCI_TRB_3_TYPE_SET(XHCI_TRB_TYPE_DATA_STAGE) | @@ -3919,7 +3922,7 @@ xhci_device_bulk_start(struct usbd_xfer */ KASSERTMSG(len <= 0x1, "len %d", len); status = XHCI_TRB_2_IRQ_SET(0) | - XHCI_TRB_2_TDSZ_SET(1) | + XHCI_TRB_2_TDSZ_SET(0) | XHCI_TRB_2_BYTES_SET(len); control = XHCI_TRB_3_TYPE_SET(XHCI_TRB_TYPE_NORMAL) | (usbd_xfer_isread(xfer) ? XHCI_TRB_3_ISP_BIT : 0) | @@ -4026,7 +4029,7 @@ xhci_device_intr_start(struct usbd_xfer parameter = DMAADDR(dma, 0); KASSERTMSG(len <= 0x1, "len %d", len); status = XHCI_TRB_2_IRQ_SET(0) | - XHCI_TRB_2_TDSZ_SET(1) | + XHCI_TRB_2_TDSZ_SET(0) | XHCI_TRB_2_BYTES_SET(len); control = XHCI_TRB_3_TYPE_SET(XHCI_TRB_TYPE_NORMAL) | (usbd_xfer_isread(xfer) ? XHCI_TRB_3_ISP_BIT : 0) |
CVS commit: [netbsd-7] src/doc
Module Name:src Committed By: martin Date: Fri Sep 6 13:50:56 UTC 2019 Modified Files: src/doc [netbsd-7]: CHANGES-7.3 Log Message: Ticket #1706 To generate a diff of this commit: cvs rdiff -u -r1.1.2.60 -r1.1.2.61 src/doc/CHANGES-7.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/doc/CHANGES-7.3 diff -u src/doc/CHANGES-7.3:1.1.2.60 src/doc/CHANGES-7.3:1.1.2.61 --- src/doc/CHANGES-7.3:1.1.2.60 Tue Sep 3 12:21:49 2019 +++ src/doc/CHANGES-7.3 Fri Sep 6 13:50:56 2019 @@ -1,4 +1,4 @@ -# $NetBSD: CHANGES-7.3,v 1.1.2.60 2019/09/03 12:21:49 martin Exp $ +# $NetBSD: CHANGES-7.3,v 1.1.2.61 2019/09/06 13:50:56 martin Exp $ A complete list of changes from the NetBSD 7.2 release to the NetBSD 7.3 release: @@ -666,3 +666,8 @@ sys/sys/cprng.h 1.13-1.15 Switch from NIST CTR_DRBG with AES to NIST Hash_DRBG with SHA-256. [riastradh, ticket #1705] +lib/libc/nameser/ns_name.c 1.12 + + Fix buffer overrun. + [maya, ticket #1706] +
CVS commit: [netbsd-7] src/doc
Module Name:src Committed By: martin Date: Fri Sep 6 13:50:56 UTC 2019 Modified Files: src/doc [netbsd-7]: CHANGES-7.3 Log Message: Ticket #1706 To generate a diff of this commit: cvs rdiff -u -r1.1.2.60 -r1.1.2.61 src/doc/CHANGES-7.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-7] src/lib/libc/nameser
Module Name:src Committed By: martin Date: Fri Sep 6 13:50:03 UTC 2019 Modified Files: src/lib/libc/nameser [netbsd-7]: ns_name.c Log Message: Pull up following revision(s) (requested by maya in ticket #1706): lib/libc/nameser/ns_name.c: revision 1.12 Since we advance cp after the bounds check, we need to test for bounds again before using it. Discovered via fuzzing, reported by enh at google, via: https://android-review.googlesource.com/c/platform/bionic/+/1093130 To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.11.4.1 src/lib/libc/nameser/ns_name.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/lib/libc/nameser/ns_name.c diff -u src/lib/libc/nameser/ns_name.c:1.11 src/lib/libc/nameser/ns_name.c:1.11.4.1 --- src/lib/libc/nameser/ns_name.c:1.11 Fri Mar 7 01:07:01 2014 +++ src/lib/libc/nameser/ns_name.c Fri Sep 6 13:50:03 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: ns_name.c,v 1.11 2014/03/07 01:07:01 christos Exp $ */ +/* $NetBSD: ns_name.c,v 1.11.4.1 2019/09/06 13:50:03 martin Exp $ */ /* * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC") @@ -22,7 +22,7 @@ #ifdef notdef static const char rcsid[] = "Id: ns_name.c,v 1.11 2009/01/23 19:59:16 each Exp"; #else -__RCSID("$NetBSD: ns_name.c,v 1.11 2014/03/07 01:07:01 christos Exp $"); +__RCSID("$NetBSD: ns_name.c,v 1.11.4.1 2019/09/06 13:50:03 martin Exp $"); #endif #endif @@ -696,7 +696,7 @@ ns_name_skip(const u_char **ptrptr, cons { const u_char *cp; u_int n; - int l; + int l = 0; cp = *ptrptr; while (cp < eom && (n = *cp++) != 0) { @@ -706,7 +706,7 @@ ns_name_skip(const u_char **ptrptr, cons cp += n; continue; case NS_TYPE_ELT: /*%< EDNS0 extended label */ - if ((l = labellen(cp - 1)) < 0) { + if (cp < eom && (l = labellen(cp - 1)) < 0) { errno = EMSGSIZE; /*%< XXX */ return (-1); }
CVS commit: [netbsd-7] src/lib/libc/nameser
Module Name:src Committed By: martin Date: Fri Sep 6 13:50:03 UTC 2019 Modified Files: src/lib/libc/nameser [netbsd-7]: ns_name.c Log Message: Pull up following revision(s) (requested by maya in ticket #1706): lib/libc/nameser/ns_name.c: revision 1.12 Since we advance cp after the bounds check, we need to test for bounds again before using it. Discovered via fuzzing, reported by enh at google, via: https://android-review.googlesource.com/c/platform/bionic/+/1093130 To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.11.4.1 src/lib/libc/nameser/ns_name.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-7] src/doc
Module Name:src Committed By: martin Date: Tue Sep 3 12:21:49 UTC 2019 Modified Files: src/doc [netbsd-7]: CHANGES-7.3 Log Message: Ticket #1705 To generate a diff of this commit: cvs rdiff -u -r1.1.2.59 -r1.1.2.60 src/doc/CHANGES-7.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/doc/CHANGES-7.3 diff -u src/doc/CHANGES-7.3:1.1.2.59 src/doc/CHANGES-7.3:1.1.2.60 --- src/doc/CHANGES-7.3:1.1.2.59 Sun Sep 1 10:03:09 2019 +++ src/doc/CHANGES-7.3 Tue Sep 3 12:21:49 2019 @@ -1,4 +1,4 @@ -# $NetBSD: CHANGES-7.3,v 1.1.2.59 2019/09/01 10:03:09 martin Exp $ +# $NetBSD: CHANGES-7.3,v 1.1.2.60 2019/09/03 12:21:49 martin Exp $ A complete list of changes from the NetBSD 7.2 release to the NetBSD 7.3 release: @@ -643,3 +643,26 @@ external/gpl3/gdb/dist/bfd/srec.c (appl fall-through warnings. [mrg, ticket #1704] +sys/conf/files 1.1238 +sys/crypto/nist_ctr_drbg/files.nist_ctr_drbg delete +sys/crypto/nist_ctr_drbg/nist_ctr_aes_rijndael.h delete +sys/crypto/nist_ctr_drbg/nist_ctr_drbg.c delete +sys/crypto/nist_ctr_drbg/nist_ctr_drbg.h delete +sys/crypto/nist_ctr_drbg/nist_ctr_drbg_aes128.h delete +sys/crypto/nist_ctr_drbg/nist_ctr_drbg_aes256.h delete +sys/crypto/nist_ctr_drbg/nist_ctr_drbg_config.h delete +sys/crypto/nist_hash_drbg/files.nist_hash_drbg 1.1 +sys/crypto/nist_hash_drbg/nist_hash_drbg.c 1.1 +sys/crypto/nist_hash_drbg/nist_hash_drbg.h 1.1 +sys/dev/rndpseudo.c1.38 +sys/kern/subr_cprng.c1.31 +sys/rump/kern/lib/libcrypto/Makefile 1.5 +sys/rump/librump/rumpkern/Makefile.rumpkern 1.176 +sys/sys/cprng.h 1.13-1.15 + + cprng.h: use static __inline for consistency with other include + headers and remove an unused function. + + Switch from NIST CTR_DRBG with AES to NIST Hash_DRBG with SHA-256. + [riastradh, ticket #1705] +
CVS commit: [netbsd-7] src/doc
Module Name:src Committed By: martin Date: Tue Sep 3 12:21:49 UTC 2019 Modified Files: src/doc [netbsd-7]: CHANGES-7.3 Log Message: Ticket #1705 To generate a diff of this commit: cvs rdiff -u -r1.1.2.59 -r1.1.2.60 src/doc/CHANGES-7.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-7] src/sys
Module Name:src Committed By: martin Date: Tue Sep 3 12:20:43 UTC 2019 Modified Files: src/sys/conf [netbsd-7]: files src/sys/dev [netbsd-7]: rndpseudo.c src/sys/kern [netbsd-7]: subr_cprng.c src/sys/rump/kern/lib/libcrypto [netbsd-7]: Makefile src/sys/rump/librump/rumpkern [netbsd-7]: Makefile.rumpkern src/sys/sys [netbsd-7]: cprng.h Added Files: src/sys/crypto/nist_hash_drbg [netbsd-7]: files.nist_hash_drbg nist_hash_drbg.c nist_hash_drbg.h Removed Files: src/sys/crypto/nist_ctr_drbg [netbsd-7]: files.nist_ctr_drbg nist_ctr_aes_rijndael.h nist_ctr_drbg.c nist_ctr_drbg.h nist_ctr_drbg_aes128.h nist_ctr_drbg_aes256.h nist_ctr_drbg_config.h Log Message: Pull up following revision(s) (requested by riastradh in ticket #1705): sys/crypto/nist_hash_drbg/nist_hash_drbg.c: revision 1.1 sys/crypto/nist_hash_drbg/nist_hash_drbg.h: revision 1.1 sys/rump/kern/lib/libcrypto/Makefile: revision 1.5 sys/crypto/nist_hash_drbg/files.nist_hash_drbg: revision 1.1 sys/rump/librump/rumpkern/Makefile.rumpkern: revision 1.176 sys/crypto/nist_ctr_drbg/nist_ctr_drbg_aes256.h: file removal sys/crypto/nist_ctr_drbg/nist_ctr_drbg_config.h: file removal sys/conf/files: revision 1.1238 sys/dev/rndpseudo.c: revision 1.38 sys/crypto/nist_ctr_drbg/nist_ctr_drbg.c: file removal sys/sys/cprng.h: revision 1.13 - 1.15 sys/crypto/nist_ctr_drbg/nist_ctr_drbg.h: file removal sys/crypto/nist_ctr_drbg/nist_ctr_aes_rijndael.h: file removal sys/crypto/nist_ctr_drbg/files.nist_ctr_drbg: file removal sys/kern/subr_cprng.c: revision 1.31 sys/crypto/nist_ctr_drbg/nist_ctr_drbg_aes128.h: file removal cprng.h: use static __inline for consistency with other include headers and remove an unused function. - Switch from NIST CTR_DRBG with AES to NIST Hash_DRBG with SHA-256. Benefits: - larger seeds -- a 128-bit key alone is not enough for `128-bit security' - better resistance to timing side channels than AES - a better-understood security story (https://eprint.iacr.org/2018/349;>https://eprint.iacr.org/2018/349) - no loss in compliance with US government standards that nobody ever got fired for choosing, at least in the US-dominated western world - no dirty endianness tricks - self-tests Drawbacks: - performance hit: throughput is reduced to about 1/3 in naive measurements => possible to mitigate by using hardware SHA-256 instructions => all you really need is 32 bytes to seed a userland PRNG anyway => if we just used ChaCha this would go away... To generate a diff of this commit: cvs rdiff -u -r1.1096.2.9 -r1.1096.2.10 src/sys/conf/files cvs rdiff -u -r1.1 -r0 src/sys/crypto/nist_ctr_drbg/files.nist_ctr_drbg \ src/sys/crypto/nist_ctr_drbg/nist_ctr_aes_rijndael.h \ src/sys/crypto/nist_ctr_drbg/nist_ctr_drbg.c \ src/sys/crypto/nist_ctr_drbg/nist_ctr_drbg_config.h cvs rdiff -u -r1.2 -r0 src/sys/crypto/nist_ctr_drbg/nist_ctr_drbg.h \ src/sys/crypto/nist_ctr_drbg/nist_ctr_drbg_aes128.h \ src/sys/crypto/nist_ctr_drbg/nist_ctr_drbg_aes256.h cvs rdiff -u -r0 -r1.1.6.2 src/sys/crypto/nist_hash_drbg/files.nist_hash_drbg \ src/sys/crypto/nist_hash_drbg/nist_hash_drbg.c \ src/sys/crypto/nist_hash_drbg/nist_hash_drbg.h cvs rdiff -u -r1.21.2.1 -r1.21.2.2 src/sys/dev/rndpseudo.c cvs rdiff -u -r1.24.2.1 -r1.24.2.2 src/sys/kern/subr_cprng.c cvs rdiff -u -r1.3 -r1.3.4.1 src/sys/rump/kern/lib/libcrypto/Makefile cvs rdiff -u -r1.148 -r1.148.2.1 \ src/sys/rump/librump/rumpkern/Makefile.rumpkern cvs rdiff -u -r1.10 -r1.10.2.1 src/sys/sys/cprng.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-7] src/sys
Module Name:src Committed By: martin Date: Tue Sep 3 12:20:43 UTC 2019 Modified Files: src/sys/conf [netbsd-7]: files src/sys/dev [netbsd-7]: rndpseudo.c src/sys/kern [netbsd-7]: subr_cprng.c src/sys/rump/kern/lib/libcrypto [netbsd-7]: Makefile src/sys/rump/librump/rumpkern [netbsd-7]: Makefile.rumpkern src/sys/sys [netbsd-7]: cprng.h Added Files: src/sys/crypto/nist_hash_drbg [netbsd-7]: files.nist_hash_drbg nist_hash_drbg.c nist_hash_drbg.h Removed Files: src/sys/crypto/nist_ctr_drbg [netbsd-7]: files.nist_ctr_drbg nist_ctr_aes_rijndael.h nist_ctr_drbg.c nist_ctr_drbg.h nist_ctr_drbg_aes128.h nist_ctr_drbg_aes256.h nist_ctr_drbg_config.h Log Message: Pull up following revision(s) (requested by riastradh in ticket #1705): sys/crypto/nist_hash_drbg/nist_hash_drbg.c: revision 1.1 sys/crypto/nist_hash_drbg/nist_hash_drbg.h: revision 1.1 sys/rump/kern/lib/libcrypto/Makefile: revision 1.5 sys/crypto/nist_hash_drbg/files.nist_hash_drbg: revision 1.1 sys/rump/librump/rumpkern/Makefile.rumpkern: revision 1.176 sys/crypto/nist_ctr_drbg/nist_ctr_drbg_aes256.h: file removal sys/crypto/nist_ctr_drbg/nist_ctr_drbg_config.h: file removal sys/conf/files: revision 1.1238 sys/dev/rndpseudo.c: revision 1.38 sys/crypto/nist_ctr_drbg/nist_ctr_drbg.c: file removal sys/sys/cprng.h: revision 1.13 - 1.15 sys/crypto/nist_ctr_drbg/nist_ctr_drbg.h: file removal sys/crypto/nist_ctr_drbg/nist_ctr_aes_rijndael.h: file removal sys/crypto/nist_ctr_drbg/files.nist_ctr_drbg: file removal sys/kern/subr_cprng.c: revision 1.31 sys/crypto/nist_ctr_drbg/nist_ctr_drbg_aes128.h: file removal cprng.h: use static __inline for consistency with other include headers and remove an unused function. - Switch from NIST CTR_DRBG with AES to NIST Hash_DRBG with SHA-256. Benefits: - larger seeds -- a 128-bit key alone is not enough for `128-bit security' - better resistance to timing side channels than AES - a better-understood security story (https://eprint.iacr.org/2018/349;>https://eprint.iacr.org/2018/349) - no loss in compliance with US government standards that nobody ever got fired for choosing, at least in the US-dominated western world - no dirty endianness tricks - self-tests Drawbacks: - performance hit: throughput is reduced to about 1/3 in naive measurements => possible to mitigate by using hardware SHA-256 instructions => all you really need is 32 bytes to seed a userland PRNG anyway => if we just used ChaCha this would go away... To generate a diff of this commit: cvs rdiff -u -r1.1096.2.9 -r1.1096.2.10 src/sys/conf/files cvs rdiff -u -r1.1 -r0 src/sys/crypto/nist_ctr_drbg/files.nist_ctr_drbg \ src/sys/crypto/nist_ctr_drbg/nist_ctr_aes_rijndael.h \ src/sys/crypto/nist_ctr_drbg/nist_ctr_drbg.c \ src/sys/crypto/nist_ctr_drbg/nist_ctr_drbg_config.h cvs rdiff -u -r1.2 -r0 src/sys/crypto/nist_ctr_drbg/nist_ctr_drbg.h \ src/sys/crypto/nist_ctr_drbg/nist_ctr_drbg_aes128.h \ src/sys/crypto/nist_ctr_drbg/nist_ctr_drbg_aes256.h cvs rdiff -u -r0 -r1.1.6.2 src/sys/crypto/nist_hash_drbg/files.nist_hash_drbg \ src/sys/crypto/nist_hash_drbg/nist_hash_drbg.c \ src/sys/crypto/nist_hash_drbg/nist_hash_drbg.h cvs rdiff -u -r1.21.2.1 -r1.21.2.2 src/sys/dev/rndpseudo.c cvs rdiff -u -r1.24.2.1 -r1.24.2.2 src/sys/kern/subr_cprng.c cvs rdiff -u -r1.3 -r1.3.4.1 src/sys/rump/kern/lib/libcrypto/Makefile cvs rdiff -u -r1.148 -r1.148.2.1 \ src/sys/rump/librump/rumpkern/Makefile.rumpkern cvs rdiff -u -r1.10 -r1.10.2.1 src/sys/sys/cprng.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/conf/files diff -u src/sys/conf/files:1.1096.2.9 src/sys/conf/files:1.1096.2.10 --- src/sys/conf/files:1.1096.2.9 Wed Apr 5 19:54:18 2017 +++ src/sys/conf/files Tue Sep 3 12:20:43 2019 @@ -1,4 +1,4 @@ -# $NetBSD: files,v 1.1096.2.9 2017/04/05 19:54:18 snj Exp $ +# $NetBSD: files,v 1.1096.2.10 2019/09/03 12:20:43 martin Exp $ # @(#)files.newconf 7.5 (Berkeley) 5/10/93 version 20100430 @@ -167,8 +167,8 @@ include "crypto/camellia/files.camellia" # General-purpose crypto processing framework. include "opencrypto/files.opencrypto" -# NIST SP800.90 CTR DRBG -include "crypto/nist_ctr_drbg/files.nist_ctr_drbg" +# NIST SP800-90A Hash_DRBG +include "crypto/nist_hash_drbg/files.nist_hash_drbg" # ChaCha-based fast PRNG include "crypto/cprng_fast/files.cprng_fast" Index: src/sys/dev/rndpseudo.c diff -u src/sys/dev/rndpseudo.c:1.21.2.1 src/sys/dev/rndpseudo.c:1.21.2.2 --- src/sys/dev/rndpseudo.c:1.21.2.1 Sun Nov 2 09:47:04 2014 +++ src/sys/dev/rndpseudo.c Tue Sep 3 12:20:43 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: rndpseudo.c,v 1.21.2.1 2014/11/02 09:47:04 martin Exp $ */ +/* $NetBSD:
CVS commit: [netbsd-7] src/doc
Module Name:src Committed By: martin Date: Sun Sep 1 10:03:09 UTC 2019 Modified Files: src/doc [netbsd-7]: CHANGES-7.3 Log Message: Ticket #1704 To generate a diff of this commit: cvs rdiff -u -r1.1.2.58 -r1.1.2.59 src/doc/CHANGES-7.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/doc/CHANGES-7.3 diff -u src/doc/CHANGES-7.3:1.1.2.58 src/doc/CHANGES-7.3:1.1.2.59 --- src/doc/CHANGES-7.3:1.1.2.58 Thu Aug 29 16:14:07 2019 +++ src/doc/CHANGES-7.3 Sun Sep 1 10:03:09 2019 @@ -1,4 +1,4 @@ -# $NetBSD: CHANGES-7.3,v 1.1.2.58 2019/08/29 16:14:07 martin Exp $ +# $NetBSD: CHANGES-7.3,v 1.1.2.59 2019/09/01 10:03:09 martin Exp $ A complete list of changes from the NetBSD 7.2 release to the NetBSD 7.3 release: @@ -633,3 +633,13 @@ sys/miscfs/procfs/procfs_vnops.c 1.207 Add missing operation VOP_GETPAGES() returning EFAULT. [hannken, ticket #1703] +external/gpl3/gdb/dist/bfd/coffgen.c (apply patch) +external/gpl3/gdb/dist/bfd/elf.c (apply patch) +external/gpl3/gdb/dist/bfd/elflink.c (apply patch) +external/gpl3/gdb/dist/bfd/reloc.c (apply patch) +external/gpl3/gdb/dist/bfd/srec.c (apply patch) + + Cherry-pick fixes for newer compilers from -current, avoiding + fall-through warnings. + [mrg, ticket #1704] +
CVS commit: [netbsd-7] src/doc
Module Name:src Committed By: martin Date: Sun Sep 1 10:03:09 UTC 2019 Modified Files: src/doc [netbsd-7]: CHANGES-7.3 Log Message: Ticket #1704 To generate a diff of this commit: cvs rdiff -u -r1.1.2.58 -r1.1.2.59 src/doc/CHANGES-7.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-7] src/external/gpl3/gdb/dist/bfd
Module Name:src Committed By: martin Date: Sun Sep 1 10:01:50 UTC 2019 Modified Files: src/external/gpl3/gdb/dist/bfd [netbsd-7]: coffgen.c elf.c elflink.c reloc.c srec.c Log Message: Apply patch, requested by mrg in ticket #1704: external/gpl3/gdb/dist/bfd/coffgen.c external/gpl3/gdb/dist/bfd/elf.c external/gpl3/gdb/dist/bfd/elflink.c external/gpl3/gdb/dist/bfd/reloc.c external/gpl3/gdb/dist/bfd/srec.c Cherry-pick fixes for newer compilers (fixing fallthrough warnings) from -current. To generate a diff of this commit: cvs rdiff -u -r1.1.1.3 -r1.1.1.3.2.1 src/external/gpl3/gdb/dist/bfd/coffgen.c \ src/external/gpl3/gdb/dist/bfd/elflink.c \ src/external/gpl3/gdb/dist/bfd/reloc.c \ src/external/gpl3/gdb/dist/bfd/srec.c cvs rdiff -u -r1.4 -r1.4.2.1 src/external/gpl3/gdb/dist/bfd/elf.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-7] src/external/gpl3/gdb/dist/bfd
Module Name:src Committed By: martin Date: Sun Sep 1 10:01:50 UTC 2019 Modified Files: src/external/gpl3/gdb/dist/bfd [netbsd-7]: coffgen.c elf.c elflink.c reloc.c srec.c Log Message: Apply patch, requested by mrg in ticket #1704: external/gpl3/gdb/dist/bfd/coffgen.c external/gpl3/gdb/dist/bfd/elf.c external/gpl3/gdb/dist/bfd/elflink.c external/gpl3/gdb/dist/bfd/reloc.c external/gpl3/gdb/dist/bfd/srec.c Cherry-pick fixes for newer compilers (fixing fallthrough warnings) from -current. To generate a diff of this commit: cvs rdiff -u -r1.1.1.3 -r1.1.1.3.2.1 src/external/gpl3/gdb/dist/bfd/coffgen.c \ src/external/gpl3/gdb/dist/bfd/elflink.c \ src/external/gpl3/gdb/dist/bfd/reloc.c \ src/external/gpl3/gdb/dist/bfd/srec.c cvs rdiff -u -r1.4 -r1.4.2.1 src/external/gpl3/gdb/dist/bfd/elf.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/external/gpl3/gdb/dist/bfd/coffgen.c diff -u src/external/gpl3/gdb/dist/bfd/coffgen.c:1.1.1.3 src/external/gpl3/gdb/dist/bfd/coffgen.c:1.1.1.3.2.1 --- src/external/gpl3/gdb/dist/bfd/coffgen.c:1.1.1.3 Sun Jun 22 23:39:47 2014 +++ src/external/gpl3/gdb/dist/bfd/coffgen.c Sun Sep 1 10:01:50 2019 @@ -2116,7 +2116,7 @@ coff_print_symbol (bfd *abfd, auxp->u.auxent.x_scn.x_comdat); break; } - /* Otherwise fall through. */ + /* Fall through. */ case C_EXT: case C_AIX_WEAKEXT: if (ISFCN (combined->u.syment.n_type)) @@ -2136,7 +2136,7 @@ coff_print_symbol (bfd *abfd, llnos, next); break; } - /* Otherwise fall through. */ + /* Fall through. */ default: fprintf (file, "AUX lnno %d size 0x%x tagndx %ld", auxp->u.auxent.x_sym.x_misc.x_lnsz.x_lnno, Index: src/external/gpl3/gdb/dist/bfd/elflink.c diff -u src/external/gpl3/gdb/dist/bfd/elflink.c:1.1.1.3 src/external/gpl3/gdb/dist/bfd/elflink.c:1.1.1.3.2.1 --- src/external/gpl3/gdb/dist/bfd/elflink.c:1.1.1.3 Sun Jun 22 23:39:55 2014 +++ src/external/gpl3/gdb/dist/bfd/elflink.c Sun Sep 1 10:01:50 2019 @@ -7698,6 +7698,7 @@ eval_symbol (bfd_vma *result, case 'S': symbol_is_section = TRUE; + /* Fall through. */ case 's': ++sym; symlen = strtol (sym, (char **) symp, 10); Index: src/external/gpl3/gdb/dist/bfd/reloc.c diff -u src/external/gpl3/gdb/dist/bfd/reloc.c:1.1.1.3 src/external/gpl3/gdb/dist/bfd/reloc.c:1.1.1.3.2.1 --- src/external/gpl3/gdb/dist/bfd/reloc.c:1.1.1.3 Sun Jun 22 23:39:47 2014 +++ src/external/gpl3/gdb/dist/bfd/reloc.c Sun Sep 1 10:01:50 2019 @@ -7254,12 +7254,15 @@ bfd_default_reloc_type_lookup (bfd *abfd { case 64: BFD_FAIL (); + break; case 32: return _howto_32; case 16: BFD_FAIL (); + break; default: BFD_FAIL (); + break; } default: BFD_FAIL (); Index: src/external/gpl3/gdb/dist/bfd/srec.c diff -u src/external/gpl3/gdb/dist/bfd/srec.c:1.1.1.3 src/external/gpl3/gdb/dist/bfd/srec.c:1.1.1.3.2.1 --- src/external/gpl3/gdb/dist/bfd/srec.c:1.1.1.3 Sun Jun 22 23:39:53 2014 +++ src/external/gpl3/gdb/dist/bfd/srec.c Sun Sep 1 10:01:50 2019 @@ -961,10 +961,12 @@ srec_write_record (bfd *abfd, case 7: TOHEX (dst, (address >> 24), check_sum); dst += 2; + /* Fall through. */ case 8: case 2: TOHEX (dst, (address >> 16), check_sum); dst += 2; + /* Fall through. */ case 9: case 1: case 0: Index: src/external/gpl3/gdb/dist/bfd/elf.c diff -u src/external/gpl3/gdb/dist/bfd/elf.c:1.4 src/external/gpl3/gdb/dist/bfd/elf.c:1.4.2.1 --- src/external/gpl3/gdb/dist/bfd/elf.c:1.4 Sun Jun 22 23:52:57 2014 +++ src/external/gpl3/gdb/dist/bfd/elf.c Sun Sep 1 10:01:50 2019 @@ -1595,7 +1595,7 @@ bfd_section_from_shdr (bfd *abfd, unsign if (hdr->sh_link == (SHN_LORESERVE & 0x) /* SHN_BEFORE */ || hdr->sh_link == ((SHN_LORESERVE + 1) & 0x) /* SHN_AFTER */) break; - /* Otherwise fall through. */ + /* Fall through. */ default: return FALSE; }
CVS commit: [netbsd-7] src/doc
Module Name:src Committed By: martin Date: Thu Aug 29 16:14:07 UTC 2019 Modified Files: src/doc [netbsd-7]: CHANGES-7.3 Log Message: Tickets #1702 and #1703 To generate a diff of this commit: cvs rdiff -u -r1.1.2.57 -r1.1.2.58 src/doc/CHANGES-7.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-7] src/doc
Module Name:src Committed By: martin Date: Thu Aug 29 16:14:07 UTC 2019 Modified Files: src/doc [netbsd-7]: CHANGES-7.3 Log Message: Tickets #1702 and #1703 To generate a diff of this commit: cvs rdiff -u -r1.1.2.57 -r1.1.2.58 src/doc/CHANGES-7.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/doc/CHANGES-7.3 diff -u src/doc/CHANGES-7.3:1.1.2.57 src/doc/CHANGES-7.3:1.1.2.58 --- src/doc/CHANGES-7.3:1.1.2.57 Fri Aug 9 19:25:47 2019 +++ src/doc/CHANGES-7.3 Thu Aug 29 16:14:07 2019 @@ -1,4 +1,4 @@ -# $NetBSD: CHANGES-7.3,v 1.1.2.57 2019/08/09 19:25:47 martin Exp $ +# $NetBSD: CHANGES-7.3,v 1.1.2.58 2019/08/29 16:14:07 martin Exp $ A complete list of changes from the NetBSD 7.2 release to the NetBSD 7.3 release: @@ -620,3 +620,16 @@ sys/external/bsd/ipf/netinet/fil.c 1.30 0x as bad. [christos, ticket #1701] +distrib/hpcarm/miniroot/list 1.11 +distrib/hpcmips/miniroot/list 1.19 +distrib/hpcsh/miniroot/list 1.11 + + sysctl(8) is useful to have in the install env when debugging. + [sevan, ticket #1702] + +sys/miscfs/kernfs/kernfs_vnops.c 1.161 +sys/miscfs/procfs/procfs_vnops.c 1.207 + + Add missing operation VOP_GETPAGES() returning EFAULT. + [hannken, ticket #1703] +
CVS commit: [netbsd-7] src/sys/miscfs
Module Name:src Committed By: martin Date: Thu Aug 29 16:13:37 UTC 2019 Modified Files: src/sys/miscfs/kernfs [netbsd-7]: kernfs_vnops.c src/sys/miscfs/procfs [netbsd-7]: procfs_vnops.c Log Message: Pull up following revision(s) (requested by hannken in ticket #1703): sys/miscfs/kernfs/kernfs_vnops.c: revision 1.161 sys/miscfs/procfs/procfs_vnops.c: revision 1.207 Add missing operation VOP_GETPAGES() returning EFAULT. Without this operation posix_fadvise(..., POSIX_FADV_WILLNEED) would leave the v_interlock held. Observed by maxv@ To generate a diff of this commit: cvs rdiff -u -r1.154 -r1.154.2.1 src/sys/miscfs/kernfs/kernfs_vnops.c cvs rdiff -u -r1.191 -r1.191.2.1 src/sys/miscfs/procfs/procfs_vnops.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/miscfs/kernfs/kernfs_vnops.c diff -u src/sys/miscfs/kernfs/kernfs_vnops.c:1.154 src/sys/miscfs/kernfs/kernfs_vnops.c:1.154.2.1 --- src/sys/miscfs/kernfs/kernfs_vnops.c:1.154 Fri Jul 25 08:20:52 2014 +++ src/sys/miscfs/kernfs/kernfs_vnops.c Thu Aug 29 16:13:37 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: kernfs_vnops.c,v 1.154 2014/07/25 08:20:52 dholland Exp $ */ +/* $NetBSD: kernfs_vnops.c,v 1.154.2.1 2019/08/29 16:13:37 martin Exp $ */ /* * Copyright (c) 1992, 1993 @@ -39,7 +39,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: kernfs_vnops.c,v 1.154 2014/07/25 08:20:52 dholland Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kernfs_vnops.c,v 1.154.2.1 2019/08/29 16:13:37 martin Exp $"); #include #include @@ -172,6 +172,7 @@ int kernfs_print(void *); int kernfs_pathconf(void *); #define kernfs_advlock genfs_einval #define kernfs_bwrite genfs_eopnotsupp +int kernfs_getpages(void *); #define kernfs_putpages genfs_putpages static int kernfs_xread(struct kernfs_node *, int, char **, @@ -219,6 +220,7 @@ const struct vnodeopv_entry_desc kernfs_ { _pathconf_desc, kernfs_pathconf }, /* pathconf */ { _advlock_desc, kernfs_advlock }, /* advlock */ { _bwrite_desc, kernfs_bwrite }, /* bwrite */ + { _getpages_desc, kernfs_getpages }, /* getpages */ { _putpages_desc, kernfs_putpages }, /* putpages */ { NULL, NULL } }; @@ -1171,3 +1173,23 @@ kernfs_symlink(void *v) VOP_ABORTOP(ap->a_dvp, ap->a_cnp); return (EROFS); } + +int +kernfs_getpages(void *v) +{ + struct vop_getpages_args /* { + struct vnode *a_vp; + voff_t a_offset; + struct vm_page **a_m; + int *a_count; + int a_centeridx; + vm_prot_t a_access_type; + int a_advice; + int a_flags; + } */ *ap = v; + + if ((ap->a_flags & PGO_LOCKED) == 0) + mutex_exit(ap->a_vp->v_interlock); + + return (EFAULT); +} Index: src/sys/miscfs/procfs/procfs_vnops.c diff -u src/sys/miscfs/procfs/procfs_vnops.c:1.191 src/sys/miscfs/procfs/procfs_vnops.c:1.191.2.1 --- src/sys/miscfs/procfs/procfs_vnops.c:1.191 Sun Jul 27 16:47:26 2014 +++ src/sys/miscfs/procfs/procfs_vnops.c Thu Aug 29 16:13:37 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: procfs_vnops.c,v 1.191 2014/07/27 16:47:26 hannken Exp $ */ +/* $NetBSD: procfs_vnops.c,v 1.191.2.1 2019/08/29 16:13:37 martin Exp $ */ /*- * Copyright (c) 2006, 2007, 2008 The NetBSD Foundation, Inc. @@ -105,7 +105,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: procfs_vnops.c,v 1.191 2014/07/27 16:47:26 hannken Exp $"); +__KERNEL_RCSID(0, "$NetBSD: procfs_vnops.c,v 1.191.2.1 2019/08/29 16:13:37 martin Exp $"); #include #include @@ -239,6 +239,7 @@ int procfs_pathconf(void *); #define procfs_islocked genfs_islocked #define procfs_advlock genfs_einval #define procfs_bwrite genfs_eopnotsupp +int procfs_getpages(void *); #define procfs_putpages genfs_null_putpages static int atoi(const char *, size_t); @@ -286,6 +287,7 @@ const struct vnodeopv_entry_desc procfs_ { _islocked_desc, procfs_islocked }, /* islocked */ { _pathconf_desc, procfs_pathconf }, /* pathconf */ { _advlock_desc, procfs_advlock }, /* advlock */ + { _getpages_desc, procfs_getpages }, /* getpages */ { _putpages_desc, procfs_putpages }, /* putpages */ { NULL, NULL } }; @@ -1709,6 +1711,26 @@ procfs_readlink(void *v) return error; } +int +procfs_getpages(void *v) +{ + struct vop_getpages_args /* { + struct vnode *a_vp; + voff_t a_offset; + struct vm_page **a_m; + int *a_count; + int a_centeridx; + vm_prot_t a_access_type; + int a_advice; + int a_flags; + } */ *ap = v; + + if ((ap->a_flags & PGO_LOCKED) == 0) + mutex_exit(ap->a_vp->v_interlock); + + return (EFAULT); +} + /* * convert decimal ascii to int */
CVS commit: [netbsd-7] src/sys/miscfs
Module Name:src Committed By: martin Date: Thu Aug 29 16:13:37 UTC 2019 Modified Files: src/sys/miscfs/kernfs [netbsd-7]: kernfs_vnops.c src/sys/miscfs/procfs [netbsd-7]: procfs_vnops.c Log Message: Pull up following revision(s) (requested by hannken in ticket #1703): sys/miscfs/kernfs/kernfs_vnops.c: revision 1.161 sys/miscfs/procfs/procfs_vnops.c: revision 1.207 Add missing operation VOP_GETPAGES() returning EFAULT. Without this operation posix_fadvise(..., POSIX_FADV_WILLNEED) would leave the v_interlock held. Observed by maxv@ To generate a diff of this commit: cvs rdiff -u -r1.154 -r1.154.2.1 src/sys/miscfs/kernfs/kernfs_vnops.c cvs rdiff -u -r1.191 -r1.191.2.1 src/sys/miscfs/procfs/procfs_vnops.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-7] src/distrib
Module Name:src Committed By: martin Date: Thu Aug 29 16:10:28 UTC 2019 Modified Files: src/distrib/hpcarm/miniroot [netbsd-7]: list src/distrib/hpcmips/miniroot [netbsd-7]: list src/distrib/hpcsh/miniroot [netbsd-7]: list Log Message: Pull up following revision(s) (requested by sevan in ticket #1702): distrib/hpcsh/miniroot/list: revision 1.11 distrib/hpcarm/miniroot/list: revision 1.11 distrib/hpcmips/miniroot/list: revision 1.19 sysctl(8) is useful to have in the install env when debugging To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.10.4.1 src/distrib/hpcarm/miniroot/list cvs rdiff -u -r1.18 -r1.18.4.1 src/distrib/hpcmips/miniroot/list cvs rdiff -u -r1.10 -r1.10.4.1 src/distrib/hpcsh/miniroot/list Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-7] src/distrib
Module Name:src Committed By: martin Date: Thu Aug 29 16:10:28 UTC 2019 Modified Files: src/distrib/hpcarm/miniroot [netbsd-7]: list src/distrib/hpcmips/miniroot [netbsd-7]: list src/distrib/hpcsh/miniroot [netbsd-7]: list Log Message: Pull up following revision(s) (requested by sevan in ticket #1702): distrib/hpcsh/miniroot/list: revision 1.11 distrib/hpcarm/miniroot/list: revision 1.11 distrib/hpcmips/miniroot/list: revision 1.19 sysctl(8) is useful to have in the install env when debugging To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.10.4.1 src/distrib/hpcarm/miniroot/list cvs rdiff -u -r1.18 -r1.18.4.1 src/distrib/hpcmips/miniroot/list cvs rdiff -u -r1.10 -r1.10.4.1 src/distrib/hpcsh/miniroot/list Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/distrib/hpcarm/miniroot/list diff -u src/distrib/hpcarm/miniroot/list:1.10 src/distrib/hpcarm/miniroot/list:1.10.4.1 --- src/distrib/hpcarm/miniroot/list:1.10 Sat Nov 30 08:27:17 2013 +++ src/distrib/hpcarm/miniroot/list Thu Aug 29 16:10:27 2019 @@ -1,4 +1,4 @@ -# $NetBSD: list,v 1.10 2013/11/30 08:27:17 nakayama Exp $ +# $NetBSD: list,v 1.10.4.1 2019/08/29 16:10:27 martin Exp $ # extras in bin PROG bin/csh @@ -13,6 +13,7 @@ PROG sbin/fdisk PROG sbin/fsck_msdos PROG sbin/mount_msdos PROG sbin/newfs_msdos +PROG sbin/sysctl # extras in /usr.bin PROG usr/bin/netstat Index: src/distrib/hpcmips/miniroot/list diff -u src/distrib/hpcmips/miniroot/list:1.18 src/distrib/hpcmips/miniroot/list:1.18.4.1 --- src/distrib/hpcmips/miniroot/list:1.18 Sat Nov 30 08:27:17 2013 +++ src/distrib/hpcmips/miniroot/list Thu Aug 29 16:10:27 2019 @@ -1,4 +1,4 @@ -# $NetBSD: list,v 1.18 2013/11/30 08:27:17 nakayama Exp $ +# $NetBSD: list,v 1.18.4.1 2019/08/29 16:10:27 martin Exp $ # extras in bin PROG bin/csh @@ -13,6 +13,7 @@ PROG sbin/fdisk PROG sbin/fsck_msdos PROG sbin/mount_msdos PROG sbin/newfs_msdos +PROG sbin/sysctl # extras in /usr.bin PROG usr/bin/netstat Index: src/distrib/hpcsh/miniroot/list diff -u src/distrib/hpcsh/miniroot/list:1.10 src/distrib/hpcsh/miniroot/list:1.10.4.1 --- src/distrib/hpcsh/miniroot/list:1.10 Sat Nov 30 08:27:18 2013 +++ src/distrib/hpcsh/miniroot/list Thu Aug 29 16:10:27 2019 @@ -1,4 +1,4 @@ -# $NetBSD: list,v 1.10 2013/11/30 08:27:18 nakayama Exp $ +# $NetBSD: list,v 1.10.4.1 2019/08/29 16:10:27 martin Exp $ # extras in bin #PROG bin/csh @@ -13,6 +13,7 @@ PROG sbin/fdisk PROG sbin/fsck_msdos PROG sbin/mount_msdos PROG sbin/newfs_msdos +PROG sbin/sysctl # extras in /usr.bin #PROG usr/bin/netstat
CVS commit: [netbsd-7] src/doc
Module Name:src Committed By: martin Date: Fri Aug 9 19:25:47 UTC 2019 Modified Files: src/doc [netbsd-7]: CHANGES-7.3 Log Message: Ticket #1701 To generate a diff of this commit: cvs rdiff -u -r1.1.2.56 -r1.1.2.57 src/doc/CHANGES-7.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-7] src/doc
Module Name:src Committed By: martin Date: Fri Aug 9 19:25:47 UTC 2019 Modified Files: src/doc [netbsd-7]: CHANGES-7.3 Log Message: Ticket #1701 To generate a diff of this commit: cvs rdiff -u -r1.1.2.56 -r1.1.2.57 src/doc/CHANGES-7.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/doc/CHANGES-7.3 diff -u src/doc/CHANGES-7.3:1.1.2.56 src/doc/CHANGES-7.3:1.1.2.57 --- src/doc/CHANGES-7.3:1.1.2.56 Sat Jun 15 16:00:20 2019 +++ src/doc/CHANGES-7.3 Fri Aug 9 19:25:47 2019 @@ -1,4 +1,4 @@ -# $NetBSD: CHANGES-7.3,v 1.1.2.56 2019/06/15 16:00:20 martin Exp $ +# $NetBSD: CHANGES-7.3,v 1.1.2.57 2019/08/09 19:25:47 martin Exp $ A complete list of changes from the NetBSD 7.2 release to the NetBSD 7.3 release: @@ -614,3 +614,9 @@ libexec/httpd/testsuite/test-simple 1.6 Avoid an assertion failure when using cgihandler (-C option). [mrg, ticket #1699] +sys/external/bsd/ipf/netinet/fil.c 1.30 + + PR/54443: ipf mistakenly regards UDP packet with checksum field + 0x as bad. + [christos, ticket #1701] +
CVS commit: [netbsd-7] src/sys/external/bsd/ipf/netinet
Module Name:src Committed By: martin Date: Fri Aug 9 19:24:22 UTC 2019 Modified Files: src/sys/external/bsd/ipf/netinet [netbsd-7]: fil.c Log Message: Pull up following revision(s) (requested by christos in ticket #1701): sys/external/bsd/ipf/netinet/fil.c: revision 1.30 PR/54443: Edgar Fu�: ipf mistakenly regards UDP packet with checksum field 0x as bad To generate a diff of this commit: cvs rdiff -u -r1.15.2.3 -r1.15.2.4 src/sys/external/bsd/ipf/netinet/fil.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-7] src/sys/external/bsd/ipf/netinet
Module Name:src Committed By: martin Date: Fri Aug 9 19:24:22 UTC 2019 Modified Files: src/sys/external/bsd/ipf/netinet [netbsd-7]: fil.c Log Message: Pull up following revision(s) (requested by christos in ticket #1701): sys/external/bsd/ipf/netinet/fil.c: revision 1.30 PR/54443: Edgar Fu�: ipf mistakenly regards UDP packet with checksum field 0x as bad To generate a diff of this commit: cvs rdiff -u -r1.15.2.3 -r1.15.2.4 src/sys/external/bsd/ipf/netinet/fil.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/external/bsd/ipf/netinet/fil.c diff -u src/sys/external/bsd/ipf/netinet/fil.c:1.15.2.3 src/sys/external/bsd/ipf/netinet/fil.c:1.15.2.4 --- src/sys/external/bsd/ipf/netinet/fil.c:1.15.2.3 Thu Jun 29 12:24:10 2017 +++ src/sys/external/bsd/ipf/netinet/fil.c Fri Aug 9 19:24:22 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: fil.c,v 1.15.2.3 2017/06/29 12:24:10 sborrill Exp $ */ +/* $NetBSD: fil.c,v 1.15.2.4 2019/08/09 19:24:22 martin Exp $ */ /* * Copyright (C) 2012 by Darren Reed. @@ -138,7 +138,7 @@ extern struct timeout ipf_slowtimer_ch; #if !defined(lint) #if defined(__NetBSD__) #include -__KERNEL_RCSID(0, "$NetBSD: fil.c,v 1.15.2.3 2017/06/29 12:24:10 sborrill Exp $"); +__KERNEL_RCSID(0, "$NetBSD: fil.c,v 1.15.2.4 2019/08/09 19:24:22 martin Exp $"); #else static const char sccsid[] = "@(#)fil.c 1.36 6/5/96 (C) 1993-2000 Darren Reed"; static const char rcsid[] = "@(#)Id: fil.c,v 1.1.1.2 2012/07/22 13:45:07 darrenr Exp $"; @@ -6474,8 +6474,11 @@ ipf_checkl4sum(fr_info_t *fin) /*NOTREACHED*/ } - if (csump != NULL) + if (csump != NULL) { hdrsum = *csump; + if (fin->fin_p == IPPROTO_UDP && hdrsum == 0x) + hdrsum = 0x; + } if (dosum) { sum = fr_cksum(fin, fin->fin_ip, fin->fin_p, fin->fin_dp);
CVS commit: [netbsd-7] src/doc
Module Name:src Committed By: martin Date: Sat Jun 15 16:00:20 UTC 2019 Modified Files: src/doc [netbsd-7]: CHANGES-7.3 Log Message: Fix typo in last entry To generate a diff of this commit: cvs rdiff -u -r1.1.2.55 -r1.1.2.56 src/doc/CHANGES-7.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/doc/CHANGES-7.3 diff -u src/doc/CHANGES-7.3:1.1.2.55 src/doc/CHANGES-7.3:1.1.2.56 --- src/doc/CHANGES-7.3:1.1.2.55 Sat Jun 15 15:55:39 2019 +++ src/doc/CHANGES-7.3 Sat Jun 15 16:00:20 2019 @@ -1,4 +1,4 @@ -# $NetBSD: CHANGES-7.3,v 1.1.2.55 2019/06/15 15:55:39 martin Exp $ +# $NetBSD: CHANGES-7.3,v 1.1.2.56 2019/06/15 16:00:20 martin Exp $ A complete list of changes from the NetBSD 7.2 release to the NetBSD 7.3 release: @@ -612,5 +612,5 @@ libexec/httpd/testsuite/test-simple 1.6 in the slashdir too. Avoid possible NULL dereference when sending a big request that timeout. Avoid an assertion failure when using cgihandler (-C option). - [mrg, ticket #1699} + [mrg, ticket #1699]
CVS commit: [netbsd-7] src/doc
Module Name:src Committed By: martin Date: Sat Jun 15 16:00:20 UTC 2019 Modified Files: src/doc [netbsd-7]: CHANGES-7.3 Log Message: Fix typo in last entry To generate a diff of this commit: cvs rdiff -u -r1.1.2.55 -r1.1.2.56 src/doc/CHANGES-7.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-7] src/doc
Module Name:src Committed By: martin Date: Sat Jun 15 15:55:39 UTC 2019 Modified Files: src/doc [netbsd-7]: CHANGES-7.3 Log Message: Ticket #1699 To generate a diff of this commit: cvs rdiff -u -r1.1.2.54 -r1.1.2.55 src/doc/CHANGES-7.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/doc/CHANGES-7.3 diff -u src/doc/CHANGES-7.3:1.1.2.54 src/doc/CHANGES-7.3:1.1.2.55 --- src/doc/CHANGES-7.3:1.1.2.54 Fri May 31 08:14:35 2019 +++ src/doc/CHANGES-7.3 Sat Jun 15 15:55:39 2019 @@ -1,4 +1,4 @@ -# $NetBSD: CHANGES-7.3,v 1.1.2.54 2019/05/31 08:14:35 martin Exp $ +# $NetBSD: CHANGES-7.3,v 1.1.2.55 2019/06/15 15:55:39 martin Exp $ A complete list of changes from the NetBSD 7.2 release to the NetBSD 7.3 release: @@ -584,3 +584,33 @@ sys/dev/scsipi/scsipi_ioctl.c 1.72 (pa Use correct size when copying outgoing sense data. [mlelstv, ticket #1698] +libexec/httpd/CHANGES1.31-1.40 +libexec/httpd/Makefile1.28 +libexec/httpd/auth-bozo.c 1.23-1.24 +libexec/httpd/bozohttpd.8 1.75-1.79 +libexec/httpd/bozohttpd.c 1.100-1.113 +libexec/httpd/bozohttpd.h 1.58-1.60 +libexec/httpd/cgi-bozo.c 1.46-1.48 +libexec/httpd/daemon-bozo.c 1.20-1.21 +libexec/httpd/dir-index-bozo.c 1.29-1.32 +libexec/httpd/ssl-bozo.c 1.26 +libexec/httpd/testsuite/Makefile 1.12-1.13 +libexec/httpd/testsuite/t11.out 1.2 +libexec/httpd/testsuite/test-bigfile 1.6 +libexec/httpd/testsuite/test-simple 1.6 + + Don't display special files in the directory index. + Use html tables for directory index. + Don't include "index.html" in html headers. + Fix CGI '+' param and error handling. + Remove unused parameter to daemon_poll_err(). + Avoid sign extension in % handling + Fix a few problems pointed out by clang static analyzer. + Add ssl specific timeout value (30s).--- + Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing). + Avoid .htpasswd exposure to authenticated users when .htpasswd is + in the slashdir too. + Avoid possible NULL dereference when sending a big request that timeout. + Avoid an assertion failure when using cgihandler (-C option). + [mrg, ticket #1699} +
CVS commit: [netbsd-7] src/doc
Module Name:src Committed By: martin Date: Sat Jun 15 15:55:39 UTC 2019 Modified Files: src/doc [netbsd-7]: CHANGES-7.3 Log Message: Ticket #1699 To generate a diff of this commit: cvs rdiff -u -r1.1.2.54 -r1.1.2.55 src/doc/CHANGES-7.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-7] src/libexec/httpd
Module Name:src Committed By: martin Date: Sat Jun 15 15:54:58 UTC 2019 Modified Files: src/libexec/httpd [netbsd-7]: CHANGES Makefile auth-bozo.c bozohttpd.8 bozohttpd.c bozohttpd.h cgi-bozo.c daemon-bozo.c dir-index-bozo.c ssl-bozo.c src/libexec/httpd/testsuite [netbsd-7]: Makefile t11.out test-bigfile test-simple Log Message: Pull up the following revisions (via patch) requested by mrg in ticket #1699: libexec/httpd/CHANGES 1.31-1.40 libexec/httpd/Makefile 1.28 libexec/httpd/auth-bozo.c 1.23-1.24 libexec/httpd/bozohttpd.8 1.75-1.79 libexec/httpd/bozohttpd.c 1.100-1.113 libexec/httpd/bozohttpd.h 1.58-1.60 libexec/httpd/cgi-bozo.c1.46-1.48 libexec/httpd/daemon-bozo.c 1.20-1.21 libexec/httpd/dir-index-bozo.c 1.29-1.32 libexec/httpd/ssl-bozo.c1.26 libexec/httpd/testsuite/Makefile1.12-1.13 libexec/httpd/testsuite/t11.out 1.2 libexec/httpd/testsuite/test-bigfile1.6 libexec/httpd/testsuite/test-simple 1.6 Don't display special files in the directory index. They aren't served, but links to them are generated. --- All from "Rajeev V. Pillai" : - use html tables for directory index. - don't include "index.html" in html headers - additional escaping of names - re-add top/bottom borders - adds an aquamarine table header - Zebra-stripes table rows using CSS instead of code - fix CGI '+' param and error handling. - remove unused parameter to daemon_poll_err(). - avoid sign extension in % handling fix a few problems pointed out by clang static analyzer: - bozostrnsep() may return with "in = NULL", so check for it. - nul terminating in bozo_escape_rfc3986() can be simpler - don't use uniinit variables in check_remap() - don't use re-used freed data in check_virtual(). - fix bozoprefs->size setting when increasing the size (new total was being added to the prior total.) however, bozostrdup() may reference request->hr_file. --- Add ssl specific timeout value (30s). If SSL_accept() doesn't work with in this timeout value, ssl setup now fails. --- Fix handling of bozo_set_timeout() timeouts (and `-T' option parsing) --- Avoid .htpasswd exposure to authenticated users when .htpasswd is in the slashdir too. --- Avoid possible NULL dereference when sending a big request that timeout. --- Use strings.h for strcasecmp (on linux) --- Account for cgihandler being set when counting the number of CGI environment headers we are about to set. Avoids an assertion failure (and overruninng the array) later. To generate a diff of this commit: cvs rdiff -u -r1.19.2.7 -r1.19.2.8 src/libexec/httpd/CHANGES cvs rdiff -u -r1.22.2.3 -r1.22.2.4 src/libexec/httpd/Makefile cvs rdiff -u -r1.13.2.3 -r1.13.2.4 src/libexec/httpd/auth-bozo.c cvs rdiff -u -r1.46.4.9 -r1.46.4.10 src/libexec/httpd/bozohttpd.8 cvs rdiff -u -r1.56.2.11 -r1.56.2.12 src/libexec/httpd/bozohttpd.c cvs rdiff -u -r1.33.2.8 -r1.33.2.9 src/libexec/httpd/bozohttpd.h cvs rdiff -u -r1.25.2.10 -r1.25.2.11 src/libexec/httpd/cgi-bozo.c cvs rdiff -u -r1.16.4.2 -r1.16.4.3 src/libexec/httpd/daemon-bozo.c cvs rdiff -u -r1.19.4.3 -r1.19.4.4 src/libexec/httpd/dir-index-bozo.c cvs rdiff -u -r1.18.2.2 -r1.18.2.3 src/libexec/httpd/ssl-bozo.c cvs rdiff -u -r1.4.24.4 -r1.4.24.5 src/libexec/httpd/testsuite/Makefile cvs rdiff -u -r1.1.4.2 -r1.1.4.3 src/libexec/httpd/testsuite/t11.out cvs rdiff -u -r1.1.1.1.30.4 -r1.1.1.1.30.5 \ src/libexec/httpd/testsuite/test-bigfile cvs rdiff -u -r1.2.4.4 -r1.2.4.5 src/libexec/httpd/testsuite/test-simple Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-7] src/doc
Module Name:src Committed By: martin Date: Fri May 31 08:14:35 UTC 2019 Modified Files: src/doc [netbsd-7]: CHANGES-7.3 Log Message: Ticket #1698 To generate a diff of this commit: cvs rdiff -u -r1.1.2.53 -r1.1.2.54 src/doc/CHANGES-7.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-7] src/doc
Module Name:src Committed By: martin Date: Fri May 31 08:14:35 UTC 2019 Modified Files: src/doc [netbsd-7]: CHANGES-7.3 Log Message: Ticket #1698 To generate a diff of this commit: cvs rdiff -u -r1.1.2.53 -r1.1.2.54 src/doc/CHANGES-7.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/doc/CHANGES-7.3 diff -u src/doc/CHANGES-7.3:1.1.2.53 src/doc/CHANGES-7.3:1.1.2.54 --- src/doc/CHANGES-7.3:1.1.2.53 Wed May 29 15:54:07 2019 +++ src/doc/CHANGES-7.3 Fri May 31 08:14:35 2019 @@ -1,4 +1,4 @@ -# $NetBSD: CHANGES-7.3,v 1.1.2.53 2019/05/29 15:54:07 martin Exp $ +# $NetBSD: CHANGES-7.3,v 1.1.2.54 2019/05/31 08:14:35 martin Exp $ A complete list of changes from the NetBSD 7.2 release to the NetBSD 7.3 release: @@ -579,3 +579,8 @@ sys/ufs/ffs/ffs_alloc.c1.164 Fix rare allocation botch in ffs_nodealloccg(). [kardel, ticket #1697] +sys/dev/scsipi/scsipi_ioctl.c 1.72 (patch) + + Use correct size when copying outgoing sense data. + [mlelstv, ticket #1698] +
CVS commit: [netbsd-7] src/sys/dev/scsipi
Module Name:src Committed By: martin Date: Fri May 31 08:13:53 UTC 2019 Modified Files: src/sys/dev/scsipi [netbsd-7]: scsipi_ioctl.c Log Message: Pull up following revision(s) (requested by mlelstv in ticket #1698): sys/dev/scsipi/scsipi_ioctl.c: revision 1.72 (via patch) use correct size when copying outgoing sense data. To generate a diff of this commit: cvs rdiff -u -r1.67 -r1.67.14.1 src/sys/dev/scsipi/scsipi_ioctl.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-7] src/sys/dev/scsipi
Module Name:src Committed By: martin Date: Fri May 31 08:13:53 UTC 2019 Modified Files: src/sys/dev/scsipi [netbsd-7]: scsipi_ioctl.c Log Message: Pull up following revision(s) (requested by mlelstv in ticket #1698): sys/dev/scsipi/scsipi_ioctl.c: revision 1.72 (via patch) use correct size when copying outgoing sense data. To generate a diff of this commit: cvs rdiff -u -r1.67 -r1.67.14.1 src/sys/dev/scsipi/scsipi_ioctl.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/dev/scsipi/scsipi_ioctl.c diff -u src/sys/dev/scsipi/scsipi_ioctl.c:1.67 src/sys/dev/scsipi/scsipi_ioctl.c:1.67.14.1 --- src/sys/dev/scsipi/scsipi_ioctl.c:1.67 Thu Apr 19 17:45:20 2012 +++ src/sys/dev/scsipi/scsipi_ioctl.c Fri May 31 08:13:53 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: scsipi_ioctl.c,v 1.67 2012/04/19 17:45:20 bouyer Exp $ */ +/* $NetBSD: scsipi_ioctl.c,v 1.67.14.1 2019/05/31 08:13:53 martin Exp $ */ /*- * Copyright (c) 1998, 2004 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: scsipi_ioctl.c,v 1.67 2012/04/19 17:45:20 bouyer Exp $"); +__KERNEL_RCSID(0, "$NetBSD: scsipi_ioctl.c,v 1.67.14.1 2019/05/31 08:13:53 martin Exp $"); #include "opt_compat_freebsd.h" #include "opt_compat_netbsd.h" @@ -162,14 +162,16 @@ scsipi_user_done(struct scsipi_xfer *xs) SC_DEBUG(periph, SCSIPI_DB3, ("have sense\n")); screq->senselen_used = min(sizeof(xs->sense.scsi_sense), SENSEBUFLEN); - memcpy(screq->sense, >sense.scsi_sense, screq->senselen); + memcpy(screq->sense, >sense.scsi_sense, + screq->senselen_used); screq->retsts = SCCMD_SENSE; break; case XS_SHORTSENSE: SC_DEBUG(periph, SCSIPI_DB3, ("have short sense\n")); screq->senselen_used = min(sizeof(xs->sense.atapi_sense), SENSEBUFLEN); - memcpy(screq->sense, >sense.scsi_sense, screq->senselen); + memcpy(screq->sense, >sense.atapi_sense, + screq->senselen_used); screq->retsts = SCCMD_UNKNOWN; /* XXX need a shortsense here */ break; case XS_DRIVER_STUFFUP:
CVS commit: [netbsd-7] src/doc
Module Name:src Committed By: martin Date: Wed May 29 15:54:07 UTC 2019 Modified Files: src/doc [netbsd-7]: CHANGES-7.3 Log Message: Ticket #1697 To generate a diff of this commit: cvs rdiff -u -r1.1.2.52 -r1.1.2.53 src/doc/CHANGES-7.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: [netbsd-7] src/doc
Module Name:src Committed By: martin Date: Wed May 29 15:54:07 UTC 2019 Modified Files: src/doc [netbsd-7]: CHANGES-7.3 Log Message: Ticket #1697 To generate a diff of this commit: cvs rdiff -u -r1.1.2.52 -r1.1.2.53 src/doc/CHANGES-7.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/doc/CHANGES-7.3 diff -u src/doc/CHANGES-7.3:1.1.2.52 src/doc/CHANGES-7.3:1.1.2.53 --- src/doc/CHANGES-7.3:1.1.2.52 Tue May 7 18:54:28 2019 +++ src/doc/CHANGES-7.3 Wed May 29 15:54:07 2019 @@ -1,4 +1,4 @@ -# $NetBSD: CHANGES-7.3,v 1.1.2.52 2019/05/07 18:54:28 martin Exp $ +# $NetBSD: CHANGES-7.3,v 1.1.2.53 2019/05/29 15:54:07 martin Exp $ A complete list of changes from the NetBSD 7.2 release to the NetBSD 7.3 release: @@ -573,3 +573,9 @@ sys/netsmb/smb_conn.c1.30 defined. [christos, ticket #1696] +sys/ufs/ffs/ffs_alloc.c1.164 + + PR 53990, PR 52380, PR 52102: + Fix rare allocation botch in ffs_nodealloccg(). + [kardel, ticket #1697] +
CVS commit: [netbsd-7] src/sys/ufs/ffs
Module Name:src Committed By: martin Date: Wed May 29 15:53:31 UTC 2019 Modified Files: src/sys/ufs/ffs [netbsd-7]: ffs_alloc.c Log Message: Pull up following revision(s) (requested by kardel in ticket #1697): sys/ufs/ffs/ffs_alloc.c: revision 1.164 PR/53990, PR/52380, PR/52102: UFS2 cylinder group inode allocation botch Fix rare allocation botch in ffs_nodealloccg(). Conditions: a) less than #_of_initialized_inodes(cg->cg_initediblk) - inodes_per_filesystem_block are allocated in the cylinder group b) cg->cg_irotor points to a uninterupted run of allocated inodes in the inode bitmap up to the end of dynamically initialized inodes (cg->cg_initediblk) In this case the next inode after this run was returned without initializing the respective inode block. As the block is not initialized these inodes could trigger panics on inode consistency due to old (uninitialized) disk data. In very rare cases data loss could occur when the uninitialized inode block is initialized via the normal mechanism. Further conditions to occur after the above: c) no panic d) no (forced) fsck e) and more than cg->cg_initediblk - inodes_per_filesystem_block allocated inodes. Fix: Always insure allocation always in initialized inode range extending the initialized inode range as needed. Add KASSERTMSG() safeguards. ok hannken@ To generate a diff of this commit: cvs rdiff -u -r1.146.2.1 -r1.146.2.2 src/sys/ufs/ffs/ffs_alloc.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/ufs/ffs/ffs_alloc.c diff -u src/sys/ufs/ffs/ffs_alloc.c:1.146.2.1 src/sys/ufs/ffs/ffs_alloc.c:1.146.2.2 --- src/sys/ufs/ffs/ffs_alloc.c:1.146.2.1 Fri Aug 14 05:29:14 2015 +++ src/sys/ufs/ffs/ffs_alloc.c Wed May 29 15:53:31 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: ffs_alloc.c,v 1.146.2.1 2015/08/14 05:29:14 msaitoh Exp $ */ +/* $NetBSD: ffs_alloc.c,v 1.146.2.2 2019/05/29 15:53:31 martin Exp $ */ /*- * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc. @@ -70,7 +70,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ffs_alloc.c,v 1.146.2.1 2015/08/14 05:29:14 msaitoh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ffs_alloc.c,v 1.146.2.2 2019/05/29 15:53:31 martin Exp $"); #if defined(_KERNEL_OPT) #include "opt_ffs.h" @@ -1283,7 +1283,7 @@ ffs_nodealloccg(struct inode *ip, int cg struct buf *bp, *ibp; u_int8_t *inosused; int error, start, len, loc, map, i; - int32_t initediblk; + int32_t initediblk, maxiblk, irotor; daddr_t nalloc; struct ufs2_dinode *dp2; const int needswap = UFS_FSNEEDSWAP(fs); @@ -1295,7 +1295,13 @@ ffs_nodealloccg(struct inode *ip, int cg return (0); mutex_exit(>um_lock); ibp = NULL; - initediblk = -1; + if (fs->fs_magic == FS_UFS2_MAGIC) { + initediblk = -1; + } else { + initediblk = fs->fs_ipg; + } + maxiblk = initediblk; + retry: error = bread(ip->i_devvp, FFS_FSBTODB(fs, cgtod(fs, cg)), (int)fs->fs_cgsize, NOCRED, B_MODIFY, ); @@ -1315,7 +1321,8 @@ retry: * Check to see if we need to initialize more inodes. */ if (fs->fs_magic == FS_UFS2_MAGIC && ibp == NULL) { - initediblk = ufs_rw32(cgp->cg_initediblk, needswap); + initediblk = ufs_rw32(cgp->cg_initediblk, needswap); + maxiblk = initediblk; nalloc = fs->fs_ipg - ufs_rw32(cgp->cg_cs.cs_nifree, needswap); if (nalloc + FFS_INOPB(fs) > initediblk && initediblk < ufs_rw32(cgp->cg_niblk, needswap)) { @@ -1331,6 +1338,9 @@ retry: FFS_NOBLK, fs->fs_bsize, false, ); if (error) goto fail; + + maxiblk += FFS_INOPB(fs); + goto retry; } } @@ -1340,14 +1350,22 @@ retry: (fs->fs_old_flags & FS_FLAGS_UPDATED)) cgp->cg_time = ufs_rw64(time_second, needswap); inosused = cg_inosused(cgp, needswap); + if (ipref) { ipref %= fs->fs_ipg; - if (isclr(inosused, ipref)) + /* safeguard to stay in (to be) allocated range */ + if (ipref < maxiblk && isclr(inosused, ipref)) goto gotit; } - start = ufs_rw32(cgp->cg_irotor, needswap) / NBBY; - len = howmany(fs->fs_ipg - ufs_rw32(cgp->cg_irotor, needswap), - NBBY); + + irotor = ufs_rw32(cgp->cg_irotor, needswap); + + KASSERTMSG(irotor < initediblk, "%s: allocation botch: cg=%d, irotor %d" + " out of bounds, initediblk=%d", + __func__, cg, irotor, initediblk); + + start = irotor / NBBY; + len = howmany(maxiblk - irotor, NBBY); loc = skpc(0xff, len, [start]); if (loc == 0) { len = start + 1; @@ -1367,9 +1385,17 @@ retry: printf("fs = %s\n", fs->fs_fsmnt); panic("ffs_nodealloccg: block not in map"); } + ipref = i * NBBY + ffs(map) - 1; + cgp->cg_irotor = ufs_rw32(ipref, needswap); + gotit: + KASSERTMSG(ipref < maxiblk, "%s: allocation botch: cg=%d attempt to " + "allocate inode index %d beyond max allocated index %d" + " of %d inodes/cg", + __func__, cg, (int)ipref, maxiblk, cgp->cg_niblk); +
CVS commit: [netbsd-7] src/sys/ufs/ffs
Module Name:src Committed By: martin Date: Wed May 29 15:53:31 UTC 2019 Modified Files: src/sys/ufs/ffs [netbsd-7]: ffs_alloc.c Log Message: Pull up following revision(s) (requested by kardel in ticket #1697): sys/ufs/ffs/ffs_alloc.c: revision 1.164 PR/53990, PR/52380, PR/52102: UFS2 cylinder group inode allocation botch Fix rare allocation botch in ffs_nodealloccg(). Conditions: a) less than #_of_initialized_inodes(cg->cg_initediblk) - inodes_per_filesystem_block are allocated in the cylinder group b) cg->cg_irotor points to a uninterupted run of allocated inodes in the inode bitmap up to the end of dynamically initialized inodes (cg->cg_initediblk) In this case the next inode after this run was returned without initializing the respective inode block. As the block is not initialized these inodes could trigger panics on inode consistency due to old (uninitialized) disk data. In very rare cases data loss could occur when the uninitialized inode block is initialized via the normal mechanism. Further conditions to occur after the above: c) no panic d) no (forced) fsck e) and more than cg->cg_initediblk - inodes_per_filesystem_block allocated inodes. Fix: Always insure allocation always in initialized inode range extending the initialized inode range as needed. Add KASSERTMSG() safeguards. ok hannken@ To generate a diff of this commit: cvs rdiff -u -r1.146.2.1 -r1.146.2.2 src/sys/ufs/ffs/ffs_alloc.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Re: CVS commit: [netbsd-7] src/sys/kern
On Thu, May 02, 2019 at 09:23:15PM +0200, Kamil Rytarowski wrote: > There was a regression with ATF pipe(2) tests.. I cannot find now the > references, but it could help to the issue triggered by syzkaller as well. bin/54068 -- Michael van Elst Internet: mlel...@serpens.de "A potential Snark may lurk in every tree."
Re: CVS commit: [netbsd-7] src/sys/kern
On Thu, May 02, 2019 at 08:59:28PM +0200, Maxime Villard wrote: > > Clean up pipe structure before recycling it. > > Handle half-closed pipes in FIONWRITE and FIONSPACE. > > This fixed this bug [1], right? > > [1] > https://syzkaller.appspot.com/bug?id=d16eb57ee450d86a0d0c02a3ff7e6837da2ab26f No idea. This was to fix a problem with the hanging pipe2_consume ATF test. But looking at the syzkaller trace, it could be caused by the same issue. Greetings, -- Michael van Elst Internet: mlel...@serpens.de "A potential Snark may lurk in every tree."
Re: CVS commit: [netbsd-7] src/sys/kern
On 02.05.2019 20:59, Maxime Villard wrote: > Le 01/05/2019 à 11:48, Martin Husemann a écrit : >> Module Name: src >> Committed By: martin >> Date: Wed May 1 09:48:56 UTC 2019 >> >> Modified Files: >> src/sys/kern [netbsd-7]: sys_pipe.c >> >> Log Message: >> Pull up following revision(s) (requested by mlelstv in ticket #1692): >> >> sys/kern/sys_pipe.c: revision 1.147 >> sys/kern/sys_pipe.c: revision 1.148 >> >> Clean up pipe structure before recycling it. >> >> Handle half-closed pipes in FIONWRITE and FIONSPACE. > > This fixed this bug [1], right? > > [1] > https://syzkaller.appspot.com/bug?id=d16eb57ee450d86a0d0c02a3ff7e6837da2ab26f > There was a regression with ATF pipe(2) tests.. I cannot find now the references, but it could help to the issue triggered by syzkaller as well. signature.asc Description: OpenPGP digital signature
Re: CVS commit: [netbsd-7] src/sys/kern
Le 01/05/2019 à 11:48, Martin Husemann a écrit : Module Name:src Committed By: martin Date: Wed May 1 09:48:56 UTC 2019 Modified Files: src/sys/kern [netbsd-7]: sys_pipe.c Log Message: Pull up following revision(s) (requested by mlelstv in ticket #1692): sys/kern/sys_pipe.c: revision 1.147 sys/kern/sys_pipe.c: revision 1.148 Clean up pipe structure before recycling it. Handle half-closed pipes in FIONWRITE and FIONSPACE. This fixed this bug [1], right? [1] https://syzkaller.appspot.com/bug?id=d16eb57ee450d86a0d0c02a3ff7e6837da2ab26f
Re: CVS commit: [netbsd-7] src/etc/powerd/scripts
On 25/08/2018 21:11, m...@netbsd.org wrote: it's an indicator for how long its been since there was a netbsd developer using it on a laptop & with working suspend. "Before we all switched to dhcpcd" I'm curious if there is one now. I dunno. I've had a urtwn for ages and constantly plugged and unplugged it during dhcpcd development which is what that bug implies. I've done that a lot until maybe netbsd-7. I dont think suspend has much todo with it. Roy
Re: CVS commit: [netbsd-7] src/etc/powerd/scripts
On Sat, Aug 25, 2018 at 07:30:10PM +0100, Roy Marples wrote: > On 25/08/2018 18:23, m...@netbsd.org wrote: > > On Sat, Aug 25, 2018 at 07:04:23PM +0200, Martin Husemann wrote: > > > On Sat, Aug 25, 2018 at 04:58:13PM +, m...@netbsd.org wrote: > > > > Please see the reply by mlelstv to > > > > https://gnats.netbsd.org/53233 > > > > > > How is that related to this script? > > > > > > Martin > > > > No usb wifi can handle suspend/resume without stopping > > dhcpcd/wpa_supplicant > > I still fail to see how that's related as dhcpcd was never in that script to > begin with, only wpa_supplicant. It's also been that way in -current and -8 > for quite a long time now, so this can hardly be a new thing. > > I'm also pretty sure that other applications would open similar sockets to > dhcpcd or wpa_supplicant from pkgsrc which would need to be in that script > or similar anyway, otherwise surely panics would still happen? > > Roy it's an indicator for how long its been since there was a netbsd developer using it on a laptop & with working suspend. "Before we all switched to dhcpcd" I'm curious if there is one now.
Re: CVS commit: [netbsd-7] src/etc/powerd/scripts
On 25/08/2018 18:23, m...@netbsd.org wrote: On Sat, Aug 25, 2018 at 07:04:23PM +0200, Martin Husemann wrote: On Sat, Aug 25, 2018 at 04:58:13PM +, m...@netbsd.org wrote: Please see the reply by mlelstv to https://gnats.netbsd.org/53233 How is that related to this script? Martin No usb wifi can handle suspend/resume without stopping dhcpcd/wpa_supplicant I still fail to see how that's related as dhcpcd was never in that script to begin with, only wpa_supplicant. It's also been that way in -current and -8 for quite a long time now, so this can hardly be a new thing. I'm also pretty sure that other applications would open similar sockets to dhcpcd or wpa_supplicant from pkgsrc which would need to be in that script or similar anyway, otherwise surely panics would still happen? Roy
Re: CVS commit: [netbsd-7] src/etc/powerd/scripts
On Sat, Aug 25, 2018 at 07:04:23PM +0200, Martin Husemann wrote: > On Sat, Aug 25, 2018 at 04:58:13PM +, m...@netbsd.org wrote: > > Please see the reply by mlelstv to > > https://gnats.netbsd.org/53233 > > How is that related to this script? > > Martin No usb wifi can handle suspend/resume without stopping dhcpcd/wpa_supplicant
Re: CVS commit: [netbsd-7] src/etc/powerd/scripts
On Sat, Aug 25, 2018 at 04:58:13PM +, m...@netbsd.org wrote: > Please see the reply by mlelstv to > https://gnats.netbsd.org/53233 How is that related to this script? Martin
Re: CVS commit: [netbsd-7] src/etc/powerd/scripts
Please see the reply by mlelstv to https://gnats.netbsd.org/53233 On Sat, Aug 25, 2018 at 02:54:19PM +, Martin Husemann wrote: > Module Name: src > Committed By: martin > Date: Sat Aug 25 14:54:18 UTC 2018 > > Modified Files: > src/etc/powerd/scripts [netbsd-7]: sleep_button > > Log Message: > Pull up following revision(s) (requested by roy in ticket #1631): > > etc/powerd/scripts/sleep_button: revision 1.11 > > Remove the stopping and starting of various network scripts on > sleep / resume. > > This should no longer be needed now the various applications > (dhcpcd, ntpd, wpa_supplicant et all) are more aware to the network state > as all interface carriers should be brought down and up again. > > Fixes PR misc/52397. > > > To generate a diff of this commit: > cvs rdiff -u -r1.10 -r1.10.22.1 src/etc/powerd/scripts/sleep_button > > Please note that diffs are not public domain; they are subject to the > copyright notices on the relevant files. > > Modified files: > > Index: src/etc/powerd/scripts/sleep_button > diff -u src/etc/powerd/scripts/sleep_button:1.10 > src/etc/powerd/scripts/sleep_button:1.10.22.1 > --- src/etc/powerd/scripts/sleep_button:1.10 Mon Oct 17 23:27:41 2011 > +++ src/etc/powerd/scripts/sleep_button Sat Aug 25 14:54:18 2018 > @@ -1,6 +1,6 @@ > #!/bin/sh - > # > -#$NetBSD: sleep_button,v 1.10 2011/10/17 23:27:41 jmcneill Exp $ > +#$NetBSD: sleep_button,v 1.10.22.1 2018/08/25 14:54:18 martin Exp $ > # > # Generic script for sleep button events. > # > @@ -10,13 +10,6 @@ > > case "${2}" in > pressed) > - > - /etc/rc.d/bluetooth stop > - /etc/rc.d/ntpd stop > - /etc/rc.d/dhclient stop > - /etc/rc.d/network stop > - /etc/rc.d/wpa_supplicant stop > - > if /sbin/sysctl -q hw.acpi.sleep.state; then > /sbin/sysctl -w hw.acpi.sleep.state=3 > elif /sbin/sysctl -q machdep.xen.suspend; then > @@ -31,13 +24,6 @@ pressed) > # ... waking up > sleep 1 > fi > - > - /etc/rc.d/wpa_supplicant start > - /etc/rc.d/network start > - /etc/rc.d/dhclient start > - /etc/rc.d/ntpdate start > - /etc/rc.d/ntpd start > - /etc/rc.d/bluetooth start > ;; > > released) >
Re: CVS commit: [netbsd-7] src
On Sun, 6 Aug 2017, sc dying wrote: Does rpi_machdep.c forget to set property "disable" in rpi_device_register? Looks like I missed that one, thanks for spotting it. I'll prepare a patch for pullup. Cheers, Jared
Re: CVS commit: [netbsd-7] src
On 2017/07/26 15:22, Soren Jacobsen wrote: > Module Name: src > Committed By: snj > Date: Wed Jul 26 15:22:37 UTC 2017 > > Modified Files: > src/external/broadcom/rpi-firmware/dist [netbsd-7]: bootcode.bin >fixup.dat fixup_cd.dat start.elf start_cd.elf > src/sys/arch/arm/arm32 [netbsd-7]: cpu.c > src/sys/arch/arm/broadcom [netbsd-7]: bcm2835_bsc.c bcm2835_plcom.c > src/sys/arch/arm/cortex [netbsd-7]: gtmr.c > src/sys/arch/arm/include [netbsd-7]: armreg.h vfpreg.h > src/sys/arch/arm/vfp [netbsd-7]: vfp_init.c > src/sys/arch/evbarm/rpi [netbsd-7]: rpi_machdep.c vcprop.h > > Log Message: > Pull up following revision(s) (requested by jmcneill in ticket #1435): > sys/arch/arm/arm32/cpu.c: 1.113 via patch > sys/arch/arm/broadcom/bcm2835_bsc.c: 1.6 via patch > sys/arch/arm/broadcom/bcm2835_plcom.c: 1.4 via patch > sys/arch/arm/cortex/gtmr.c: 1.18 via patch > sys/arch/arm/include/armreg.h: 1.110 via patch > sys/arch/arm/include/vfpreg.h: 1.15 via patch > sys/arch/arm/vfp/vfp_init.c: 1.50 via patch > sys/arch/evbarm/rpi/rpi_machdep.c: 1.59, 1.70-1.72 via patch > sys/arch/evbarm/rpi/vcprop.h: 1.16 > Get the RPI3 working (in aarch32 mode) by recognising Cortex A53 CPUs. > While I'm here add some A57/A72 info as well. > My RPI3 works with FB console - the uart needs some help with its clocks. > -- > Do invalidate the cache as RPI2 build with Clang can't fetch the memory > config otherwise. > -- > Use the VC property mailbox to request the UART clock rate and use it > appropriately > Newer firmwares use 48MHz > -- > Disable BSC0 on Raspberry Pi 3 and Zero W boards. Does rpi_machdep.c forget to set property "disable" in rpi_device_register?
Re: CVS commit: [netbsd-7] src/sys/net/npf
On Sun, 21 May 2017 08:08:34 +0900 (JST), Takahiro Kambe wrote: > By comparing code with current, one line seems to missing. > > Index: sys/net/npf/npf_inet.c > === > RCS file: /cvsroot/src/sys/net/npf/npf_inet.c,v > retrieving revision 1.32.2.1 > diff -u -r1.32.2.1 npf_inet.c > --- sys/net/npf/npf_inet.c12 May 2017 05:32:12 - 1.32.2.1 > +++ sys/net/npf/npf_inet.c20 May 2017 23:06:17 - > @@ -51,6 +51,7 @@ > > #include > #include > +#include > #include > #include > #include Confirmed. hauke -- Hauke FathErnst-Ludwig-Straße 15 64625 Bensheim Germany
Re: CVS commit: [netbsd-7] src/sys/net/npf
In messageon Wed, 17 May 2017 13:22:39 +0200, Hauke Fath wrote: > [properly re-sent to source-changes-d -- it was cribbed from the web > list archive] > > > The pull-up > >> Pull up following revision(s) (requested by jnemeth in ticket #1394): >> sys/net/npf/npf_inet.c: revisions 1.34, 1.35 via patch >> sys/net/npf/npf_mbuf.c: revision 1.16 >> sys/net/npf/npf_nat.c: revision 1.40 >> minimal changes necessary to link into an INET6-less kernel. >> -- >> fixup misplaced #endif > > leads to > > [...] > --- npf_nat.o --- > /u/netbsd-builds/7/amd64/tools/bin/x86_64--netbsd-gcc -mcmodel=kernel > -mno-red-zone -mno-mmx -mno-sse -mno-avx -msoft-float -ffreestanding > -fno-zero-initialized-in-bss -O2 -fno-omit-frame-pointer > -fstack-protector -Wstack-protector --param ssp-buffer-size=1 > -fno-strict-aliasing -fno-common -std=gnu99 -Werror -Wall -Wno-main > -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes > -Wstrict-prototypes -Wold-style-definition -Wswitch -Wshadow > -Wcast-qual -Wwrite-strings -Wno-unreachable-code -Wno-pointer-sign > -Wno-attributes -Wextra -Wno-unused-parameter -Wold-style-definition > -Wno-sign-compare --sysroot=/u/netbsd-builds/7/amd64/destdir -Damd64 > -Dx86_64 -I. -I/public/netbsd-7/sys/../common/include > -I/public/netbsd-7/sys/arch -I/public/netbsd-7/sys -nostdinc > -DCHILD_MAX=1024 -DOPEN_MAX=1024 -DIPSEC_ESP -DIPSEC_NAT_T > -DMAXUSERS=64 -D_KERNEL -D_KERNEL_OPT -std=gnu99 > -I/public/netbsd-7/sys/lib/libkern/../../../common/lib/libc/quad > -I/public/netbsd-7/sys/lib/libkern/../../../common/lib/libc/string > -I/public/netbsd-7/sys/lib/libkern/../../../common/lib/libc/arch/x86_64/string > -D_FORTIFY_SOURCE=2 -I/public/netbsd-7/sys/../common/include > -I/public/netbsd-7/sys/external/bsd/acpica/dist/include -c > /public/netbsd-7/sys/net/npf/npf_nat.c > --- npf_inet.o --- > /public/netbsd-7/sys/net/npf/npf_inet.c: In function 'npf_addr_dump': > /public/netbsd-7/sys/net/npf/npf_inet.c:759:2: error: implicit > declaration of function 'ip6_sprintf' > [-Werror=implicit-function-declaration] > return ip6_sprintf(addr); > ^ > /public/netbsd-7/sys/net/npf/npf_inet.c:759:2: error: return makes > pointer from integer without a cast [-Werror] > cc1: all warnings being treated as errors > *** [npf_inet.o] Error code 1 By comparing code with current, one line seems to missing. Index: sys/net/npf/npf_inet.c === RCS file: /cvsroot/src/sys/net/npf/npf_inet.c,v retrieving revision 1.32.2.1 diff -u -r1.32.2.1 npf_inet.c --- sys/net/npf/npf_inet.c 12 May 2017 05:32:12 - 1.32.2.1 +++ sys/net/npf/npf_inet.c 20 May 2017 23:06:17 - @@ -51,6 +51,7 @@ #include #include +#include #include #include #include -- Takahiro Kambe
Re: CVS commit: [netbsd-7] src/sys/net/npf
[properly re-sent to source-changes-d -- it was cribbed from the web list archive] The pull-up Pull up following revision(s) (requested by jnemeth in ticket #1394): sys/net/npf/npf_inet.c: revisions 1.34, 1.35 via patch sys/net/npf/npf_mbuf.c: revision 1.16 sys/net/npf/npf_nat.c: revision 1.40 minimal changes necessary to link into an INET6-less kernel. -- fixup misplaced #endif leads to [...] --- npf_nat.o --- /u/netbsd-builds/7/amd64/tools/bin/x86_64--netbsd-gcc -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -mno-avx -msoft-float -ffreestanding -fno-zero-initialized-in-bss -O2 -fno-omit-frame-pointer -fstack-protector -Wstack-protector --param ssp-buffer-size=1 -fno-strict-aliasing -fno-common -std=gnu99 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wold-style-definition -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-unreachable-code -Wno-pointer-sign -Wno-attributes -Wextra -Wno-unused-parameter -Wold-style-definition -Wno-sign-compare --sysroot=/u/netbsd-builds/7/amd64/destdir -Damd64 -Dx86_64 -I. -I/public/netbsd-7/sys/../common/include -I/public/netbsd-7/sys/arch -I/public/netbsd-7/sys -nostdinc -DCHILD_MAX=1024 -DOPEN_MAX=1024 -DIPSEC_ESP -DIPSEC_NAT_T -DMAXUSERS=64 -D_KERNEL -D_KERNEL_OPT -std=gnu99 -I/public/netbsd-7/sys/lib/libkern/../../../common/lib/libc/quad -I/public/netbsd-7/sys/lib/libkern/../../../common/lib/libc/string -I/public/netbsd-7/sys/lib/libkern/../../../common/lib/libc/arch/x86_64/string -D_FORTIFY_SOURCE=2 -I/public/netbsd-7/sys/../common/include -I/public/netbsd-7/sys/external/bsd/acpica/dist/include -c /public/netbsd-7/sys/net/npf/npf_nat.c --- npf_inet.o --- /public/netbsd-7/sys/net/npf/npf_inet.c: In function 'npf_addr_dump': /public/netbsd-7/sys/net/npf/npf_inet.c:759:2: error: implicit declaration of function 'ip6_sprintf' [-Werror=implicit-function-declaration] return ip6_sprintf(addr); ^ /public/netbsd-7/sys/net/npf/npf_inet.c:759:2: error: return makes pointer from integer without a cast [-Werror] cc1: all warnings being treated as errors *** [npf_inet.o] Error code 1 which, I guess, didn't show up in a build because we do not have a (standard) kernel config file that includes npf(4). Any reason why -current should not default GENERIC to npf? Cheerio, hauke -- The ASCII Ribbon CampaignHauke Fath () No HTML/RTF in email Institut für Nachrichtentechnik /\ No Word docs in email TU Darmstadt Respect for open standards Ruf +49-6151-16-21344
Re: CVS commit: [netbsd-7] src
On Wed, Apr 05, 2017 at 07:54:27PM +, Soren Jacobsen wrote: > Module Name: src > Committed By: snj > Date: Wed Apr 5 19:54:23 UTC 2017 > > Modified Files: .. > src/sys/external/bsd/common/include/linux [netbsd-7]: kernel.h > src/sys/external/bsd/drm2/dist/drm/radeon [netbsd-7]: > atombios_encoders.c radeon_legacy_encoders.c > src/sys/external/bsd/drm2/drm [netbsd-7]: files.drmkms > src/sys/external/bsd/drm2/i915drm [netbsd-7]: files.i915drmkms Mistake?
Re: CVS commit: [netbsd-7] src/sys/sys
Hi. On 2016/03/07 17:59, Takeshi Nakayama wrote: "SAITOH Masanobu"wrote Module Name:src Committed By: msaitoh Date: Mon Mar 7 08:08:52 UTC 2016 Modified Files: src/sys/sys [netbsd-7]: exec_elf.h Log Message: Pullup the following revision (requested by htodd in ticket #1132): sys/sys/exec_elf.h 1.143 Add definition of EM_IAMCU. This change fixes build break caused by ticket 1126. Wrong commit message? This is for 1.153 not 1.143. Sorry. Yo're right. I'll fix the commit message and doc/CHANGES-7.1 -- Takeshi Nakayama -- --- SAITOH Masanobu (msai...@execsw.org msai...@netbsd.org)
Re: CVS commit: [netbsd-7] src/sys/sys
>>> "SAITOH Masanobu"wrote > Module Name: src > Committed By: msaitoh > Date: Mon Mar 7 08:08:52 UTC 2016 > > Modified Files: > src/sys/sys [netbsd-7]: exec_elf.h > > Log Message: > Pullup the following revision (requested by htodd in ticket #1132): > > sys/sys/exec_elf.h1.143 > > Add definition of EM_IAMCU. This change fixes build break caused by > ticket 1126. Wrong commit message? This is for 1.153 not 1.143. -- Takeshi Nakayama
Re: CVS commit: [netbsd-7] src/sys
Hi, On 2015/11/05 02:46, Jeff Rizzo wrote: Module Name:src Committed By: riz Date: Wed Nov 4 17:46:21 UTC 2015 Modified Files: src/sys/compat/netbsd32 [netbsd-7]: files.netbsd32 netbsd32.h netbsd32_conv.h netbsd32_syscall.h netbsd32_syscallargs.h netbsd32_syscalls.c netbsd32_sysent.c syscalls.master src/sys/nfs [netbsd-7]: nfs_syscalls.c nfs_var.h Added Files: src/sys/compat/netbsd32 [netbsd-7]: netbsd32_nfssvc.c If conf file doesn't have options NFSSERVER, build fails on amd64: netbsd32_sysent.o:(.data+0x9b8): undefined reference to `netbsd32_nfssvc' Should compat/netbsd32/syscalls.master be same as in HEAD? Thanks, -- t-hash
Re: CVS commit: [netbsd-7] src
On 10/20 18:04, Takahiro Kambe wrote: > Hi, > > In message <20151015201153.3cc5...@cvs.netbsd.org> > on Thu, 15 Oct 2015 20:11:53 +, > "Soren Jacobsen"wrote: > > Module Name:src > > Committed By: snj > > Date: Thu Oct 15 20:11:53 UTC 2015 > > > > Modified Files: > > src/gnu/usr.bin/groff/tmac [netbsd-7]: mdoc.local > > src/sys/sys [netbsd-7]: param.h > > Added Files: > > src/doc [netbsd-7]: CHANGES-7.1 > > > > Log Message: > > 7.0_STABLE > "7.0_STABLE" instead of "7_STABLE"? Yes. This is how we've done it since NetBSD 2.0. Soren
Re: CVS commit: [netbsd-7] src
Hi, In message <20151015201153.3cc5...@cvs.netbsd.org> on Thu, 15 Oct 2015 20:11:53 +, "Soren Jacobsen"wrote: > Module Name: src > Committed By: snj > Date: Thu Oct 15 20:11:53 UTC 2015 > > Modified Files: > src/gnu/usr.bin/groff/tmac [netbsd-7]: mdoc.local > src/sys/sys [netbsd-7]: param.h > Added Files: > src/doc [netbsd-7]: CHANGES-7.1 > > Log Message: > 7.0_STABLE "7.0_STABLE" instead of "7_STABLE"? -- Takahiro Kambe
Re: CVS commit: [netbsd-7] src
On Fri, Sep 25, 2015 at 11:46:57PM -0700, John Nemeth wrote: > } -#define__NetBSD_Version__ 70001 /* NetBSD 7.0_RC3 */ > } +#define__NetBSD_Version__ 70001 /* NetBSD 7.0 */ > > Shouldn't the number just be 7? I just checked 6.0 > and see that it is 6. Why is there a "1" on the end? The libc ABI changed on the branch: share/man/man4/tcp.41.30 sys/netinet/tcp.h 1.31 sys/netinet/tcp_input.c 1.336 sys/netinet/tcp_output.c1.180 sys/netinet/tcp_subr.c 1.258 sys/netinet/tcp_usrreq.c1.203 sys/netinet/tcp_var.h 1.176-1.177 sys/sys/param.h (bump revision) Port over the TCP_INFO socket option from FreeBSD, originally from the Linux 2.6 TCP API. This permits the caller to query certain information about a TCP connection. [he, ticket #530] Martin
Re: CVS commit: [netbsd-7] src/sbin/raidctl
In article 20150608204801.c85e...@cvs.netbsd.org, Soren Jacobsen source-changes-d@NetBSD.org wrote: -=-=-=-=-=- Module Name: src Committed By: snj Date: Mon Jun 8 20:48:01 UTC 2015 Modified Files: src/sbin/raidctl [netbsd-7]: raidctl.c Log Message: Pull up following revision(s) (requested by manu in ticket #827): sbin/raidctl/raidctl.c: revision 1.58 Better sanity check numbers given to raidctl(8) Replace atoi(3) by strtol(3), and check that numbers are valid, positive, and in int32_t range. The previous lack of check could silently lead to the same serial being set to all RAID volumes for instance because given numbers were bigger than INT_MAX. The consequence is in an awful mess when RAIDframe would mix volumes... This has typos and it is easier to use strtou like in the next version. christos
Re: CVS commit: [netbsd-7] src
On 2015/05/09 17:37, SAITOH Masanobu wrote: Module Name: src Committed By: msaitoh Date: Sat May 9 08:37:32 UTC 2015 Modified Files: src/distrib/evbarm/instkernel/sshramdisk [netbsd-7]: Makefile src/sys/arch/evbarm/conf [netbsd-7]: RPI_INSTALL Log Message: Pull up following revision(s) (requested by snj in ticket #1957): s/1957/742/ distrib/evbarm/instkernel/sshramdisk/Makefile patch sys/arch/evbarm/conf/RPI_INSTALL patch Increase ramdisk size to fix build break. To generate a diff of this commit: cvs rdiff -u -r1.3.6.1 -r1.3.6.2 \ src/distrib/evbarm/instkernel/sshramdisk/Makefile cvs rdiff -u -r1.3 -r1.3.4.1 src/sys/arch/evbarm/conf/RPI_INSTALL Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. -- --- SAITOH Masanobu (msai...@execsw.org msai...@netbsd.org)
Re: CVS commit: [netbsd-7] src/sys/dev/pci
On 2015/04/19 15:45, Jeff Rizzo wrote: Module Name:src Committed By: riz Date: Sun Apr 19 06:45:17 UTC 2015 Modified Files: src/sys/dev/pci [netbsd-7]: files.pci src/sys/dev/pci/ixgbe [netbsd-7]: ixgbe.c ixgbe.h ixgbe_82598.c ixgbe_82599.c ixgbe_api.c ixgbe_api.h ixgbe_common.c ixgbe_common.h ixgbe_mbx.c ixgbe_mbx.h ixgbe_osdep.h ixgbe_phy.c ixgbe_phy.h ixgbe_type.h ixgbe_vf.c ixgbe_vf.h ixv.c ixv.h missing newly added ixgbe_8259[89].h and ixgbe_x540.[ch] ? Log Message: Apply patch (requested by msaitoh in ticket #697): sys/dev/pci/files.pci 1.375 via patch sys/dev/pci/ixgbe/ixgbe.c 1.24-1.27 via patch sys/dev/pci/ixgbe/ixgbe.h 1.4-1.6 via patch sys/dev/pci/ixgbe/ixgbe_82598.c 1.2-1.3 via patch sys/dev/pci/ixgbe/ixgbe_82598.h 1.1-1.2 via patch sys/dev/pci/ixgbe/ixgbe_82599.c 1.6-1.8 via patch sys/dev/pci/ixgbe/ixgbe_82599.h 1.1 via patch sys/dev/pci/ixgbe/ixgbe_api.c 1.5-1.6 via patch sys/dev/pci/ixgbe/ixgbe_api.h 1.2-1.3 via patch sys/dev/pci/ixgbe/ixgbe_common.c1.3-1.4 via patch sys/dev/pci/ixgbe/ixgbe_common.h1.2-1.3 via patch sys/dev/pci/ixgbe/ixgbe_mbx.c 1.2-1.3 via patch sys/dev/pci/ixgbe/ixgbe_mbx.h 1.2-1.3 via patch sys/dev/pci/ixgbe/ixgbe_osdep.h 1.4-1.6 via patch sys/dev/pci/ixgbe/ixgbe_phy.c 1.3-1.4 via patch sys/dev/pci/ixgbe/ixgbe_phy.h 1.2-1.3 via patch sys/dev/pci/ixgbe/ixgbe_type.h 1.8-1.9 via patch sys/dev/pci/ixgbe/ixgbe_vf.c1.2-1.3 via patch sys/dev/pci/ixgbe/ixgbe_vf.h1.3-1.4 via patch sys/dev/pci/ixgbe/ixgbe_x540.c 1.1-1.2 via patch sys/dev/pci/ixgbe/ixgbe_x540.h 1.1 via patch sys/dev/pci/ixgbe/ixv.c 1.5-1.7 via patch sys/dev/pci/ixgbe/ixv.h 1.4-1.5 via patch Synchronize our ixg(4) driver up to FreeBSD r243716: - Add X540 support. - Add TSO6 support. - Add 100BaseTX support. - The max size in dma tag is changed from 65535 to 262140 (IXGBE_TSO_SIZE). The value is the same as other *BSDs. The change might cause a address space shortage (ixgbe_dmamap_create() might fail) on some machines. - Show 1000Base-SX correctly. - Fix if_baudrate from 1G to 10G. - Fix a bug that ifconfig -z (SOICZIFDATA) doesn't work. - Fix a lot of bugs. - Improve performance. [msaitoh, ticket #697] -- t-hash
Re: CVS commit: [netbsd-7] src/sys/dev/i2c
Thank you for pulling up! On 2015/04/14 13:24, Soren Jacobsen wrote: Module Name:src Committed By: snj Date: Tue Apr 14 04:24:58 UTC 2015 Modified Files: src/sys/dev/i2c [netbsd-7]: ds1307.c ds1307reg.h Log Message: Pull up following revision(s) (requested by nonaka in ticket #672): sys/dev/i2c/ds1307.c: revisions 1.19, 1.20 sys/dev/i2c/ds1307reg.h: revision 1.5 - support DS3231 ( more or less a DS3232 without NVRAM it seems ) - support the DS3231's temperature sensor -- Initialize a variable that gcc thinks might be used uninitialized. To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.18.2.1 src/sys/dev/i2c/ds1307.c cvs rdiff -u -r1.4 -r1.4.14.1 src/sys/dev/i2c/ds1307reg.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. -- t-hash
Re: CVS commit: [netbsd-7] src/distrib/atari/floppies/common
Why doesn’t adding “-m68020=60” to CPUFLAGS work? curious, Erik Fair On Mar 29, 2015, at 00:44, Soren Jacobsen s...@netbsd.org wrote: Module Name: src Committed By: snj Date: Sun Mar 29 07:44:46 UTC 2015 Modified Files: src/distrib/atari/floppies/common [netbsd-7]: Makefile.images Log Message: Pull up following revision(s) (requested by martin in ticket #652): distrib/atari/floppies/common/Makefile.images: revision 1.9 Use -Os -m68020-60 for DBG. It seems to generate smaller objects than -Os. gcc48 with -Os: -rwxr-xr-x 1 tsutsui wheel 1319596 Nov 16 20:50 obj.atari/instbin gcc48 with -Os -m68020-60 -rwxr-xr-x 1 tsutsui wheel 1314516 Nov 16 20:49 obj.atari/instbin This allows ever growing sysinst.fs still fit into 1440KB even with gcc48. Acually we need a real solution (ustarfs based floppies etc.) soon but we can work around at least for NetBSD 7.0. Should be pulled up to netbsd-7 (if NetBSD/m68k 7.0 will switch to gcc48). To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.8.26.1 \ src/distrib/atari/floppies/common/Makefile.images Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Re: CVS commit: [netbsd-7] src/libexec/getty
Hi Matthew, matthew green m...@eterna.com.au writes: update the example to use dty00 instead of ttyd0 to reflect a current practice is this actually right? the example shows: # dialup at 1200 baud, no root logins dty00 /usr/libexec/getty d1200 dialup on # 555-1234 but i thought the dty was the dial *out* device, which matches eg, com.c 1.143's commit message. You're definitely right. The correct corresponding /dev entry should be tty00 for dialin on NetBSD. I'm waiting a bit for anyone to raise concerns and will fix in HEAD and request new pullups. Best regards, Aymeric
re: CVS commit: [netbsd-7] src/libexec/getty
Martin Husemann writes: Module Name: src Committed By: martin Date: Wed Feb 11 12:59:50 UTC 2015 Modified Files: src/libexec/getty [netbsd-7]: ttys.5 Log Message: Pull up following revision(s) (requested by aymeric in ticket #508): libexec/getty/ttys.5: revision 1.19 update the example to use dty00 instead of ttyd0 to reflect a current practice is this actually right? the example shows: # dialup at 1200 baud, no root logins dty00 /usr/libexec/getty d1200 dialup on # 555-1234 but i thought the dty was the dial *out* device, which matches eg, com.c 1.143's commit message. .mrg.
Re: CVS commit: [netbsd-7] src/sys/dev
On Fri, Jan 02, 2015 at 08:09:51AM +, John Klos wrote: Module Name: src Committed By: jklos Date: Fri Jan 2 08:09:51 UTC 2015 Modified Files: src/sys/dev/dec [netbsd-7]: dzkbd.c lk201_ws.c lk201var.h src/sys/dev/tc [netbsd-7]: zskbd.c Log Message: Patches from Björn Johannessonto fix DEC LK201 keyboards. To generate a diff of this commit: cvs rdiff -u -r1.26 -r1.26.12.1 src/sys/dev/dec/dzkbd.c cvs rdiff -u -r1.8 -r1.8.38.1 src/sys/dev/dec/lk201_ws.c cvs rdiff -u -r1.6 -r1.6.138.1 src/sys/dev/dec/lk201var.h cvs rdiff -u -r1.17 -r1.17.38.1 src/sys/dev/tc/zskbd.c Committed to wrong branch? Jonathan Kollasch
Re: CVS commit: [netbsd-7] src/distrib/sets/lists/debug
Whoops. Wrong tree. Let me revert and submit a pullup request. On Thu, 11 Dec 2014, Hisashi T Fujinaka wrote: Module Name:src Committed By: htodd Date: Thu Dec 11 23:44:13 UTC 2014 Modified Files: src/distrib/sets/lists/debug [netbsd-7]: shl.mi Log Message: Fix debug build. To generate a diff of this commit: cvs rdiff -u -r1.71.2.2 -r1.71.2.3 src/distrib/sets/lists/debug/shl.mi Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. -- Hisashi T Fujinaka - ht...@twofifty.com BSEE + BSChem + BAEnglish + MSCS + $2.50 = coffee
Re: CVS commit: [netbsd-7] src/sys/arch/x86/x86
On Oct 30, 6:58pm, Martin Husemann wrote: } } Module Name: src } Committed By: martin } Date: Thu Oct 30 18:58:45 UTC 2014 } } Modified Files: } src/sys/arch/x86/x86 [netbsd-7]: identcpu.c } } Log Message: } Pull up following revision(s) (requested by riz in ticket #171): } sys/arch/x86/x86/identcpu.c: revision 1.46 } sys/arch/x86/x86/identcpu.c: revision 1.47 } Force x86_xsave_features to 0 when running under XEN. } This prevents the use of xsave and xrstor thus fixing } the problem in PR/49150. The basic problem is that the way AMD } implements those instructions means that information can leak } between domains so XEN treats them as privileged. As discovered by riz, and noted with 1.47, the issue isn't just restricted to AMD CPUs. Of course, riz did discover the issue with an Intel CPU on an aws instance running an ancient version of Xen, so the issue may be related to that (the ancient version of Xen). }-- End of excerpt from Martin Husemann