Commit Graph

250226 Commits

Author SHA1 Message Date
msaitoh
6bddabc9e6 regen. 2017-04-19 06:54:14 +00:00
msaitoh
85ce0132f1 Add BCM4401 B0 step. Old BCM4401 B0 entry is changed to B1. From OpenBSD. 2017-04-19 06:53:52 +00:00
msaitoh
28ec51dec1 Use macro. No binary change. 2017-04-19 06:52:11 +00:00
nonaka
db7c0f95e8 remove prototypes of nonexistent function. 2017-04-19 06:43:05 +00:00
pgoyette
05aa8c5f12 Be consistent about checking for text section address being 0, and
don't ignore errors by falling through to the next section(s).

As discussed on tech-kern@
2017-04-19 06:19:02 +00:00
sjg
d5e210c750 We cannot use buf as both src and destination for snprintf. 2017-04-19 04:54:17 +00:00
ozaki-r
46b7ac74ac Fix indentations (NFC) 2017-04-19 03:43:34 +00:00
ozaki-r
6208c22585 Tweak KEYDEBUG macros
Let's avoid passing statements to a macro.
2017-04-19 03:42:11 +00:00
ozaki-r
50d790a0e8 Change panic if DIAGNOSTIC to KASSERT
One can be changed to CTASSERT.
2017-04-19 03:40:58 +00:00
ozaki-r
ef67739a78 Retire ipsec_osdep.h
We don't need to care other OSes (FreeBSD) anymore.

Some macros are alive in ipsec_private.h.
2017-04-19 03:39:14 +00:00
ozaki-r
43d1c23762 Improve message on assertion failure 2017-04-19 03:28:19 +00:00
ozaki-r
641f918792 Fix build without INET6 2017-04-19 03:23:06 +00:00
jmcneill
f76ec87293 Fix value for RE_TDESC_CMD_LGSEND_V6 (currently unused) 2017-04-19 02:21:53 +00:00
jmcneill
cf1efaaa6a Performance improvements for PCIe and 8168 based devices:
- When using the countdown timer for interrupt moderation on PCIe devices,
   use a timer rate value based on a 125MHz PCIe reference clock instead of
   33 MHz.
 - For 8168 based devices, ditch the countdown timer and instead use the
   (undocumented) hardware interrupt moderation feature.
 - Support TSOv4 on 8168D and later devices.
2017-04-19 00:20:02 +00:00
riastradh
415d159521 Offering for the wiz daemon. 2017-04-19 00:17:30 +00:00
riastradh
c248891802 Modularize ualea(4).
Unclear why we have a separate xyz.ioconf for module and XYZ.ioconf
for rump component, but at least xyz_modcmd obviates the need for
xyz_component.c (though evidently the latter could have been replaced
anyway by RUMP_COMPONENT=ioconf in the rump component Makefile).
2017-04-19 00:01:38 +00:00
palle
c36416f80a sun4v: Add handling of trap 0x06c @ trap level 1 - based on code from OpenBSD, but slightly adapted to NetBSD. verified using qemu 2017-04-18 20:02:50 +00:00
riastradh
f7eaf9902f Make comment match. 2017-04-18 19:41:27 +00:00
riastradh
82d8a876d9 regen 2017-04-18 19:10:58 +00:00
riastradh
cf753d303a gson@ informs me the Alea I and II have the same USB product id.
Thus, ualea(4) should work for both of them.  Rename USB product id
ARANEUS ALEA_II to ARANEUS ALEA to reflect this.

No functional change intended, except perhaps via usbdevs.
2017-04-18 19:09:12 +00:00
riastradh
1cd7590af6 Fix the same typo again in the same comment.
Still no functional change.
2017-04-18 19:04:25 +00:00
riastradh
9f481a9fd6 Fix typo in comment. No functional change. 2017-04-18 19:03:43 +00:00
christos
58d0ae12d1 new OpenSSH 2017-04-18 18:44:06 +00:00
christos
d440e953df bump libssh 2017-04-18 18:43:11 +00:00
christos
62b22b0671 bump 2017-04-18 18:41:59 +00:00
christos
41768fc151 merge conflicts 2017-04-18 18:41:46 +00:00
christos
6ef342f61a PR/52174: Remove root test, it is too verbose. XXX: need to come up with
something better.
2017-04-18 18:07:29 +00:00
maya
e0c33d5694 Remove redundant duplicate assignment.
from clang static analyzer
2017-04-18 17:28:18 +00:00
maya
99104d1158 Remove duplicate assignment.
We assign the same value unconditionally just before.

from clang static analyzer

XXX surrounding code seems fishy
2017-04-18 17:05:05 +00:00
maya
8ac9ff4e15 remove redundant assignments
nchan is overwritten before it is used in all cases. so is i.

from clang static analyzer
ok riastradh
2017-04-18 16:30:21 +00:00
maya
e35f5d4d09 switch pmc_ncounters to unsigned int.
matches userland pmc, makes it clear to static analyzers that if the loop
in pmc_nmi (for (i = 0; i < pmc_ncounters; i++) ) is not entered, then the
condition i == pmc_ncounters (== 0) is satisfied and no null derefs occur

this change only helps analyzers read the code, null deref was not possible
before.
2017-04-18 15:14:28 +00:00
flxd
f1871fd136 First pass reducing magic numbers adding register defines.
No change to register values/writes, except VLPCI_MISC_CTL_HIADDR_DIS added.
2017-04-18 14:11:42 +00:00
maya
b24bc65591 always initialize iovcnt
from clang static analyzer
2017-04-18 12:34:07 +00:00
flxd
158f698af5 KNF, whitespace. 2017-04-18 12:17:12 +00:00
knakahara
d4788006bc change aprint_verbose() to know easily msi devices affinity to CPU#0 or not.
suggested by msaitoh@n.o.
2017-04-18 11:49:50 +00:00
knakahara
49db86375d use DPRINTF instead of #define INTRDEBUG and printf(). 2017-04-18 11:44:37 +00:00
maya
0e5a550a5b avoid calloc(1,0).
from clang static analyzer

ok christos
2017-04-18 11:35:34 +00:00
ozaki-r
6f17ca6088 Use %zu for size_t (fix build of 32bit archs) 2017-04-18 10:49:35 +00:00
msaitoh
61b9e2edb2 Add missing ':' 2017-04-18 10:00:26 +00:00
uwe
34951e704c Swap arguments to strncmp() so that the thing we are testing, the
section name, comes first; and so that the length of the string
constant is right next to that constant.
2017-04-18 07:44:20 +00:00
uwe
084859f23d Move deallocation of shstrsz inside the block where it is allocated. 2017-04-18 06:39:54 +00:00
ozaki-r
2620e166df Convert IPSEC_ASSERT to KASSERT or KASSERTMSG
IPSEC_ASSERT just discarded specified message...
2017-04-18 05:26:41 +00:00
ozaki-r
b4d2d2c260 Remove __FreeBSD__ and __NetBSD__ switches
No functional changes (except for a debug printf).

Note that there remain some __FreeBSD__ for sysctl knobs which counerparts
to NetBSD don't exist. And ipsec_osdep.h isn't touched yet; tidying it up
requires actual code changes.
2017-04-18 05:25:32 +00:00
msaitoh
a607c0a0a4 Enable PCIe's interrupt as much as possilbe in ppb(4) to detect and count
status change event. HotPlug function itself have not implemented yet.

 - Interrupt and each event are counted by evcnt(9). Example:

   ppb0 Interrupt                                                0    0 intr
   ppb0 Attention Button Pressed                                 0    0 misc
   ppb0 Power Fault Detected                                     0    0 misc
   ppb0 MRL Sensor Changed                                       0    0 misc
   ppb0 Presence Detect Changed                                  0    0 misc
   ppb0 Command Completed                                        0    0 misc
   ppb0 Data Link Layer State Changed                            0    0 misc

 - Print message if ppb_printevent is not zero. The default vaule is 0.
   The output messages:

   Attention Button Pressed
   Power Fault Detected
   MRL Sensor Changed
   Presence Detect Changed
   Command Completed
   Data Link Layer State Changed

 - Remove workaround code to disable interrupt (ppb.c rev. 1.35).

 Tested with Dell Latitude 2120 without if_bge.c rev. 1.304's workaround.
dmesg when bge's device timeout occured:

   ppb3: Presence Detect Changed
   ppb3: Data Link Layer State Changed
   ppb3: Presence Detect Changed

vmstat -e |grep ppb

   ppb3 Interrupt                                             2    0 intr
   ppb3 Presence Detect Changed                               2    0 misc
   ppb3 Data Link Layer State Changed                         1    0 misc
2017-04-18 05:21:34 +00:00
maya
341df6449e Remove dummy breaks and returns after bc_exit
bc_exit being marked nonreturn silences compiler warnings.
2017-04-18 04:35:18 +00:00
agc
932ce0ffe2 libnetpgpverify major bump to 5 2017-04-17 23:38:51 +00:00
nat
c65925dd1f Improved mixing function - more expensive in cycles though.
hw.driverN.saturate is no longer needed and has been removed.

Mixing function thanks to jmcneill@.
2017-04-17 22:40:06 +00:00
nat
fda69a13cf hw.driverN.saturate bool->integer (default 16).
This means for a greater number than 16 (or user set value) the saturate
function is turned off.  Results in better listening if a large number of
channels are in use.
2017-04-17 20:17:08 +00:00
agc
5626760fb3 Bumped libnetpgpverify major from 4 to 5 2017-04-17 19:51:11 +00:00
agc
32d959bfe0 Update netpgpverify sources in base from 20160617 to 20170201 (i.e. bring
over changes from master sources in pkgsrc/security/netpgpverify, version 20170201):

Changes:

Update netpgpverify (and libnetpgpverify) to 20160614
	+ handle signatures created by gpg with "--no-emit-version", don't assume
	there will always be a version string.
	+ add a test for above
	Fixes security PR  51240.
	Thanks to xnox@ubuntu.com for reporting the error

Update netpgpverify and libnetpgpverify to 20160615:
	Simplify the method of finding the end of the versioning information
	in the signature - back up to the "\n" character at the end of the
	signature start:

		"-----BEGIN PGP SIGNATURE-----\n"

	and then find the "\n\n" character sequence to denote the start of the
	signature itself. The previous version worked, but this is more efficient.

Update netpgpverify and libnetpgpverify to 20160616
	+ bring over joerg's printflike change from the netpgpverify
	version in src/crypto
	+ add a test for cleartext signatures with version information
	to complement the one with no version information

Update netpgpverify and libnetpgpverify to 20160622 during freeze to fix PR  51262
	+ take a bit of a step backwards, and don't use stdbool.h, just to appease
	Solaris 10 compiler

Update netpgpverify and libnetpgpverify to 20160623
	+ remove use of asprintf and vasprintf from libverify. Inspired
	by work from Dimitri John Ledkov. Should allow building on Linux
	without superfluous definitions.
	+ also free the BIGNUM struct in PGPV_BN_clear() - from Dimitri
	John Ledkov

Update netpgpverify and libnetpgpverify to 20160626
	+ make the pgpv_t and pgpv_cursor_t structures opaque
	+ add new accessor functions for fields in the pgpv_cursor_t struct
	+ add new creation functions for the pgpv_t and pgpv_cursor_t structs

Update netpgpverify and libnetpgpverify to 20160704
	+ get rid of redundant PGPV_ARRAY definition in libverify.c, brought in when
	the definitions moved from verify.h
	+ fix obuf_add_mem() to use a const void *, as any struct can be
	dumped using it
	+ remove redundant NO_SUBKEYS definition - unused
	+ add an (unused as yet) ARRAY_FREE() macro

Update netpgpverify and libnetpgpverify to 20160705
	External API changes
	====================
	+ add a pgpv_cursor_close() function to free resources associated with
	a cursor
	Better memory management
	========================
	+ restructure the way dynamic arrays are used, to avoid memory
	corruption issues and memory leaks - keep all dynamic arrays in the global
	data structure, and use indices in the other data structures to index them.
	Means lack of data localisation, but avoids stale pointers, and leaks.
	+ make signer field of signature a uint8_t array, rather than a pointer
	+ use our own version of strdup(3) - don't depend on it being
	available in standard library
	+ keep track of whether litdata filenames and userid were allocated or not,
	and free memory in pgpv_close() if it was allocated
	+ free up allocated resources which were allocated in pgpv_close()

Update netpgpverify and libnetpgpverify to 20160706
	+ 20160705 introduced a bug whereby a key subid would match and verify
	fine, but, if formatted, would not display the correct subkey
	information.  Fix to show the correct information in this case.

Update netpgpverify and libnetpgpverify to 20160707 to fix some
	unusual build errors shown by old gcc versions (works fine for
	gcc-5.2.1 on ubuntu and gcc-5.3.0 on NetBSD 7.99.32)
	+ use ULL suffix on unsigned 64bit constants, not UL
	+ don't typedef the public structs twice - second time just define it
	without the typedef
	Fixes PR   51327

Update netpgpverify and libnetpgpverify to 20160708
	+ clear and free bignums properly - helps immensely with plugging
	memory leaks

Update netpgpverify and libnetpgpverify to 20160828
	+ bring over change from christos in src/crypto to check for
	the end of an ASCII-armored signature
	+ no need for namespace protection in array.h any more, now
	that netpgp/verify.h now contains opaque structures
	+ minor typo clean-up in a definition (benign, ignored by compiler)

update netpgpverify and libnetpgpverify to 20170201
	+ make sure howmany() macro is defined
	pointed out by cube - thanks!
2017-04-17 19:50:27 +00:00