Commit Graph

251742 Commits

Author SHA1 Message Date
maxv c946e3d519 dumb instruction 2017-06-25 12:29:32 +00:00
maxv 49bf63c13e spl leak, found by Mootja 2017-06-25 12:27:13 +00:00
maxv 5d59d12047 two spl leaks, found by Mootja 2017-06-25 12:25:02 +00:00
maxv 5a2b751d3f spl leak, found by Mootja 2017-06-25 12:21:00 +00:00
maxv 6302dc5aed uninitialized var, found by Mootja; don't know which value to put, so add
a big XXX
2017-06-25 12:15:04 +00:00
maxv 124dc82122 memory leak, found by Mootja 2017-06-25 12:11:30 +00:00
maxv cb93557c8e spl leak, found by Mootja 2017-06-25 12:07:23 +00:00
maxv 5d5e3e94f7 uninitialized variable, found by Mootja 2017-06-25 12:04:37 +00:00
maxv 9737d7fadf spl leak, found by Mootja a long time ago 2017-06-25 12:02:59 +00:00
nat 3bd1421aac Don't autoconfig for 24 bits precision. It does not work as yet. 2017-06-25 10:28:22 +00:00
skrll 4da65738bc Comment out a bunch of thing so that a GENERIC kernel boots on my cats
with cyclone firmware
2017-06-25 10:06:27 +00:00
nat 3b2cb78ffd Don't start playback or recording on the hw ring only stream ring buffers. 2017-06-25 09:42:40 +00:00
nat 007b784021 Set hw parameters for linear to ulaw filters.
Tested by flxd@.
2017-06-25 09:40:17 +00:00
isaki 57e298b4f8 Avoid panic when the device is closed when not playing. 2017-06-25 06:26:40 +00:00
snj 4e609ee710 fix typo 2017-06-25 04:10:47 +00:00
nat edb4ba2fe2 Check validbits against precision in vchan_autoconfig. At present
validbits != precision is not supported.

This change will most likely break autoconfig on vs(4), for these machines
the parameters can be set to the paramaters reported at attach time via
sysctl.
2017-06-25 02:47:28 +00:00
nat ef1ca21e92 Use LINEARNTOMULAW for 8 bits as well. 2017-06-25 02:16:41 +00:00
nat f10f926732 Remove stray ";" from defines. 2017-06-25 02:14:16 +00:00
nat 2ec7bb632d Use pustream params when clearing the next block in the mixring. 2017-06-25 02:11:40 +00:00
nat 43b6c59788 rfill and pfill mixed up. 2017-06-25 02:09:47 +00:00
jmcneill 28029423df Revert part of previous; the SD card spec recommends not to issue a DISCARD
command to the file system area.
2017-06-24 23:25:01 +00:00
jmcneill e56880414f Read SD status register and print card status when a new SD card is found:
sdmmc0: SD card status: 4-bit, C10, U1, V10

If the SD status register reports discard support, set the DISCARD arg to
the ERASE operation to let the card know that the host doesn't care if the
erase is performed.
2017-06-24 23:07:35 +00:00
joerg 0bc4a2dabe Update VM_DEFAULT_ADDRESS32_TOPDOWN to include guard area. 2017-06-24 13:43:36 +00:00
hannken 3764143ef7 Refuse to open a block device with zero open count when it has
a mountpoint set.  This may happen after forced detach or unplug
of a mounted block device.
2017-06-24 12:14:21 +00:00
hannken 5985f10515 No need to call vflush from failing udf_mount(). If the system nodes
really have to disappear we should change vrele() to vrecycle() here.
2017-06-24 12:13:16 +00:00
mlelstv 0b6b65ff23 Fix session cleanup. 2017-06-24 11:31:26 +00:00
jmcneill 087ef2d977 Add discard support to ld@sdmmc using the ERASE (CMD38) command. 2017-06-24 11:27:33 +00:00
kre 7f75cc46b5 Another ancient (highly improbable) bug bites the dust. This one
caused by incorrect macro usage (ie: using the wrong one) which has
been in the sources since version 1.1 (ie: forever).

Like the previous (STACKSTRNUL) bug, the probability of this one
actually occurring has been infinitesimal but the LINENO code increases
that to infinitesimal and a smidgen... (or a few, depending upon usage).

Still, apparently that was enough, Kamil Rytarowski discovered that the
zsh configure script (damn competition!) managed to trigger this problem.
2017-06-24 11:23:35 +00:00
kre 8b5ee9a5ac Give this test a promotion! This was the test that enabled the sh's
STACKSTRNUL() bug to eventually be found.   Not any of the test cases
directly - the shell running the tests (the same /bin/sh) managed to
build one of the f_variable_syntax sub-tests incorrectly, and that was
enough to eventually allow the bug to be located and squashed.

Like all good promotions, this one comes with increased work, and no extra pay.
2017-06-24 11:09:42 +00:00
kre 82288f99fc NFC: Added some comments (about other comments)
We currently parse var expansions like "${x-"a b c"}" incorrectly
according to POSIX (and ancient tradition) though in a way that is
generally unexpcted (there are 2 quoted strings there, according
to the standard, "${x-" and "}" and 'a b c' is unquoted.)  This has
never been fixed in our sh, as like in many other shells, it is just
a little unbelievable, most people expect that inside the {} is a
whole new ballpark, and everything starts again, and it does in cases
like "${x%"a b c"}" (the newer matching operators.)  There have been
comments in this test explaining how the test is actually testing for
incorrect behaviour for a while now.

But I have since learned of POSIX bug #221 (2010), the resolution of which is
to make the problem case unspecified.  This will not actually become part
of posix until the next major version (POSIX 8) whenever that appears (still
years away I expect) - but at least we now can feel happier about the
way our code works and not worry quite so much about testing that incorrect
code keeps working incorrectly....
2017-06-24 11:06:17 +00:00
gson 557e6caeb6 Reduce the number of iterations in the bsize_torture test from 65535
to 1000 to make the ATF test suite as a whole take less time.  Before
the change, this single test case could take more than two hours to
run on a qemu emulated ARM.
2017-06-24 10:25:23 +00:00
skrll e90fc54cd1 Use pte_set 2017-06-24 07:30:17 +00:00
skrll 633ea46fa8 Provide a pte_set 2017-06-24 07:19:59 +00:00
skrll 8109a47ea0 Provide pte_set 2017-06-24 07:00:37 +00:00
skrll 659c16eaca Trailing whitespace 2017-06-24 05:49:50 +00:00
skrll 8d59a50047 Use __BIT(0) for PV_KENTER. NFC. 2017-06-24 05:39:53 +00:00
skrll e4bfdd1c38 Whitespace - comment alignment. 2017-06-24 05:34:37 +00:00
skrll 0070107f88 Multiple inclusion protection define consistency 2017-06-24 05:31:03 +00:00
jdolecek 9a6e2c3d91 remove panicstr KASSERT() in pmap_kremove_local() - kernel dump can legitimely
invoked also without panic - via reboot -d

fixes PR kern/49610 by Manuel Bouyer
2017-06-23 23:40:00 +00:00
joerg b77121f193 Recommit exec_subr.c revision 1.79:
Always include a 1MB guard area beyond the end of stack. While ASLR will
  normally create a guard area as well, this provides a deterministic area
  for all binaries.

  Mitigates the rest of CVE-2017-1000374 and CVE-2017-1000375 from
  Qualys.

Additionally, change VM_DEFAULT_ADDRESS_TOPDOWN to include
user_stack_guard_size in the size reservation.
2017-06-23 21:28:38 +00:00
macallan 023c931755 - don't use embedded font name if -N is given
- assume mono bitmap font when reading from stdin
2017-06-23 18:40:03 +00:00
macallan 6722e01bac avoid sign compare error 2017-06-23 17:40:15 +00:00
joerg a7f7db4a1a Remove old assert that only two segments exist. The rest of the code has
been changed to cope with more and at least Go actively creates them.
Adjust the mapping size computation to use the maximum and not depend on
PT_LOAD segments to be in order.
2017-06-23 15:29:21 +00:00
flxd 7b140168d2 Add vax. 2017-06-23 15:24:35 +00:00
rjs 753b0e65ff Make arguments match debug message. 2017-06-23 15:13:21 +00:00
knakahara 80c7310999 fix cryptosoft.c:r1.51 mistake. swcrypto_attach() must not be called from module_init_class().
swcrypto_attach() will call softint_establish(), it must be called after cpus
attached. module_init_class() is too early to call softint_establish().
2017-06-23 11:41:58 +00:00
msaitoh ea7cddc8fa Remove unused "cached_autoc". It was removed in ixgbe_82599.c rev.1.12
(FreeBSD r280182).
2017-06-23 09:02:48 +00:00
ryo 1f8d76d027 fix problem for ESDHC/USDHC due to change of r1.96
on ESDHC/USDHC, even if the iosize is less than SDHC_HOST_CTL_VERSION,
specver must be an appropriate value.
2017-06-23 08:43:59 +00:00
msaitoh 7d5876a6ad Print verbose outout in ixgbe_update_link_status() correctly on 5Gbps and
2.5Gbps (NBASE-T) for X550T[12] and newer.
2017-06-23 06:33:35 +00:00
msaitoh df7ce75080 Don't print the Image Unique ID if an NVM is iNVM (i210 and I211). 2017-06-23 06:10:31 +00:00