Link [ NetBSD | NetBSD OpenGrok source search | PR fulltext-search | Summary of daily snapshot builds | history of daily build result | pkgsrc commit viewer ]


   
        usage: [branch:branch] [user:user] [path@revision] keyword [... [-excludekeyword [...]]] (e.g. branch:MAIN sys/arch/arm, if_wm.c@1.234 )




switch to index mode

recent branches: MAIN (26m)  netbsd-8 (5d)  netbsd-10 (5d)  netbsd-9 (11d)  thorpej-ifq (175d)  thorpej-altq-separation (178d) 

2024-05-10 03:56:06 UTC Now

2016-02-21 04:16:36 UTC MAIN commitmail json YAML

2016-02-21 04:16:17 UTC MAIN commitmail json YAML

2016-02-21 03:34:28 UTC MAIN commitmail json YAML

2016-02-21 03:33:18 UTC MAIN commitmail json YAML

No debug, pic, or ctf for standalone code.
- debug makes things not fit
- ctf is useless
- pic does not work with the function call convention standalone uses

(christos)

2016-02-21 01:33:56 UTC MAIN commitmail json YAML

2016-02-21 00:56:44 UTC MAIN commitmail json YAML

Handle the last newline in the "special" import for new file like RCS does.
I.e. make_message_rcsvalid() removes it, and we put it back.

(christos)

2016-02-20 23:09:03 UTC MAIN commitmail json YAML

Clang 3.7 and newer provide the array size via DW_AT_count, not via
DW_AT_upper_bound. Recognize the former as well as the latter.

(joerg)

2016-02-20 22:08:44 UTC MAIN commitmail json YAML

2016-02-20 21:50:02 UTC MAIN commitmail json YAML

Shuffle include order to avoid missing free on glibc.

(joerg)

2016-02-20 21:11:15 UTC MAIN commitmail json YAML

remove a stray \n from an ACPI_INFO() call (which ends up adding its
own newline anyway.)

(mrg)

2016-02-20 20:11:37 UTC MAIN commitmail json YAML

PR/50133: Martin Husemann: Can't cache $TZ.
XXX: Pullup-7

(christos)

2016-02-20 17:07:32 UTC MAIN commitmail json YAML

One more s/0/NULL/

(skrll)

2016-02-20 16:42:33 UTC MAIN commitmail json YAML

2016-02-20 16:40:15 UTC MAIN commitmail json YAML

2016-02-20 16:37:51 UTC MAIN commitmail json YAML

2016-02-20 16:36:08 UTC MAIN commitmail json YAML

Unbreak LLVM MKREPRO=yes builds (since the build system sets MKREPRO now)

(christos)

2016-02-20 16:00:10 UTC MAIN commitmail json YAML

Note that SCHED_OTHER must have priority PRI_NONE.

(riastradh)

2016-02-20 15:20:23 UTC MAIN commitmail json YAML

2016-02-20 15:18:46 UTC MAIN commitmail json YAML

Provide a variable MKTOOLSDEBUG to build debugging versions of tools.

(christos)

2016-02-20 14:49:04 UTC MAIN commitmail json YAML

2016-02-20 14:48:13 UTC MAIN commitmail json YAML

2016-02-20 14:47:34 UTC MAIN commitmail json YAML

2016-02-20 14:46:50 UTC MAIN commitmail json YAML

2016-02-20 14:45:42 UTC MAIN commitmail json YAML

2016-02-20 14:44:49 UTC MAIN commitmail json YAML

2016-02-20 14:43:59 UTC MAIN commitmail json YAML

2016-02-20 14:43:14 UTC MAIN commitmail json YAML

2016-02-20 14:42:18 UTC MAIN commitmail json YAML

2016-02-20 14:41:11 UTC MAIN commitmail json YAML

2016-02-20 09:38:28 UTC MAIN commitmail json YAML

2016-02-20 02:50:33 UTC MAIN commitmail json YAML

2016-02-20 02:44:51 UTC MAIN commitmail json YAML

2016-02-20 02:44:02 UTC MAIN commitmail json YAML

2016-02-20 02:43:42 UTC MAIN commitmail json YAML

src/external/bsd/elftoolchain/dist/common/_elftc.h@1.4 / diff / nxr@1.4
src/external/bsd/elftoolchain/dist/common/elfdefinitions.h@1.3 / diff / nxr@1.3
src/external/bsd/elftoolchain/dist/libdwarf/_libdwarf.h@1.3 / diff / nxr@1.3
src/external/bsd/elftoolchain/dist/libdwarf/dwarf.3@1.3 / diff / nxr@1.3
src/external/bsd/elftoolchain/dist/libdwarf/dwarf.h@1.3 / diff / nxr@1.3
src/external/bsd/elftoolchain/dist/libdwarf/dwarf_abbrev.c@1.3 / diff / nxr@1.3
src/external/bsd/elftoolchain/dist/libdwarf/dwarf_add_AT_comp_dir.3@1.3 / diff / nxr@1.3
src/external/bsd/elftoolchain/dist/libdwarf/dwarf_add_AT_const_value_string.3@1.3 / diff / nxr@1.3
src/external/bsd/elftoolchain/dist/libdwarf/dwarf_add_AT_dataref.3@1.3 / diff / nxr@1.3
src/external/bsd/elftoolchain/dist/libdwarf/dwarf_add_AT_flag.3@1.3 / diff / nxr@1.3
src/external/bsd/elftoolchain/dist/libdwarf/dwarf_add_AT_location_expr.3@1.3 / diff / nxr@1.3
src/external/bsd/elftoolchain/dist/libdwarf/dwarf_add_AT_name.3@1.3 / diff / nxr@1.3
src/external/bsd/elftoolchain/dist/libdwarf/dwarf_add_AT_producer.3@1.3 / diff / nxr@1.3
src/external/bsd/elftoolchain/dist/libdwarf/dwarf_add_AT_ref_address.3@1.3 / diff / nxr@1.3
src/external/bsd/elftoolchain/dist/libdwarf/dwarf_add_AT_reference.3@1.3 / diff / nxr@1.3
src/external/bsd/elftoolchain/dist/libdwarf/dwarf_add_AT_signed_const.3@1.3 / diff / nxr@1.3
src/external/bsd/elftoolchain/dist/libdwarf/dwarf_add_AT_string.3@1.3 / diff / nxr@1.3
src/external/bsd/elftoolchain/dist/libdwarf/dwarf_add_AT_targ_address.3@1.3 / diff / nxr@1.3
src/external/bsd/elftoolchain/dist/libdwarf/dwarf_add_arange.3@1.3 / diff / nxr@1.3
src/external/bsd/elftoolchain/dist/libdwarf/dwarf_add_die_to_debug.3@1.3 / diff / nxr@1.3
      :
(more 289 files)
merge conflicts

(christos)

2016-02-20 02:39:47 UTC MAIN commitmail json YAML

- don't barf if the object does not have DWARF debug data.
- bump size of types to 1K to avoid string overflow
(both are needed for the new elftoolchain).

(christos)

2016-02-20 01:43:28 UTC MAIN commitmail json YAML

Spelling fixes.

(wiz)

2016-02-20 01:19:03 UTC MAIN commitmail json YAML

Add a knob .MAKE.SAVE_DOLLARS to control the behavior of $$ during :=

If TRUE '$$' are not consumed (saved).
If FALSE '$$' becomes '$' just like normal expansion rules.

default is TRUE.

Reviewed by: christos

(sjg)

2016-02-19 22:09:09 UTC MAIN commitmail json YAML

make debug code compile again
from christos

(macallan)

2016-02-19 21:41:59 UTC MAIN commitmail json YAML

Why KASSERT when you can KASSERTMSG

(skrll)

2016-02-19 21:10:18 UTC MAIN commitmail json YAML

In msleep use udelay if cold or sleep is small enough.  This is mostly
copied from the drm2 version.

(skrll)

2016-02-19 21:08:19 UTC MAIN commitmail json YAML

2016-02-19 20:45:21 UTC MAIN commitmail json YAML

2016-02-19 20:05:43 UTC MAIN commitmail json YAML

Implement a queue for if_link_state_change() calls to fix a race condition
introduced in the prior patch.

The queue has capacity to store 8 link state changes, if it overflows then
the oldest state change is lost, but the oldest DOWN state change is
preserved to ensure any subsequent UP state changes reflect properly.

Because there are only 3 states to queue, the queue itself is implemented
by storing 2-bit numbers in a bigger one.
To increase the size of the queue, just increase the size of the backing
store to a bigger number.

(roy)

2016-02-19 19:25:59 UTC MAIN commitmail json YAML

Don't use #pragma weak to implicitly change argument types.

(joerg)

2016-02-19 19:25:22 UTC MAIN commitmail json YAML

dmu_objset_rename is an alias for dsl_dataset_rename, but differs in
constness of the first argument. Newer clang checks for this and
prohibits it, so just be consistent by constifying the latter.

(joerg)

2016-02-19 18:47:24 UTC MAIN commitmail json YAML

switch powerpc ports to new binutils

(macallan)

2016-02-19 18:38:37 UTC MAIN commitmail json YAML

add cpu_lock

from freqlabs on irc

(pooka)

2016-02-19 17:05:40 UTC MAIN commitmail json YAML

2016-02-19 16:23:15 UTC nick-nhusb commitmail json YAML

2016-02-19 13:50:37 UTC MAIN commitmail json YAML

PR/50827: Richard Hansen: Fix default variable assignment with arithmetic,
from kre.

(christos)

2016-02-19 13:49:01 UTC MAIN commitmail json YAML

undo accidental commit

(christos)

2016-02-19 13:48:28 UTC MAIN commitmail json YAML

2016-02-19 08:22:40 UTC nick-nhusb commitmail json YAML

Fix typo in previous *sigh*

(skrll)

2016-02-19 06:19:06 UTC MAIN commitmail json YAML

Initialize curFile->depending in Parse_SetInput.

(sjg)

2016-02-19 04:18:32 UTC MAIN commitmail json YAML

Explicitly cast between char and unsigned char here.

(riastradh)

2016-02-19 03:54:37 UTC MAIN commitmail json YAML

Need <stdbool.h> for true/false.

(riastradh)

2016-02-19 03:53:47 UTC MAIN commitmail json YAML

Need <stdbool.h> for true/false.

(riastradh)

2016-02-19 03:43:42 UTC MAIN commitmail json YAML

Various housekeeping.

- Include <ufs/lfs/lfs.h> for union lfs_dinode &c.
- Include <string.h> or <sys/systm.h> for memcpy.
- Avoid signedness mismatch in lfs dino accessor for `rdev'.
- Avoid shadowing global `index'.

(riastradh)

2016-02-19 00:11:45 UTC MAIN commitmail json YAML

getBoolean:
We need :U to ensure we get an empty string if knob isn't set.

(sjg)

2016-02-18 23:33:25 UTC MAIN commitmail json YAML

Delete :@ loop iterator when done with it

(sjg)

2016-02-18 20:50:44 UTC MAIN commitmail json YAML

gcc does not pass floating point options to the assembler
by default, because it is afraid that the stricter tests
will break userland code. The new binutils is pickier about
this. Gcc 5.x fixes the issue so for now, set explicitly
the assembler soft-float flags when we build the kernel.
see: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64569

(macallan)

2016-02-18 20:33:41 UTC MAIN commitmail json YAML

2016-02-18 20:25:09 UTC MAIN commitmail json YAML

Add .export-literal to avoid the need for $$ dance when trying to put
unexpanded variables into environment.

Reviewed by: christos

(sjg)

2016-02-18 18:29:14 UTC MAIN commitmail json YAML

2016-02-18 17:38:37 UTC nick-nhusb commitmail json YAML

Tweak the usb_syncmem from the previous.

(skrll)

2016-02-18 17:34:30 UTC nick-nhusb commitmail json YAML

Only mark the last TD as "buffer rounding" when USBD_SHORT_XFER_OK. This
means OHCI_CC_DATA_UNDERRUN is flagged if the device doesn't send enough
data to fill the buffer in the last TD.

Deal with OHCI_CC_DATA_UNDERRUN with the normal error handling, but return
USBD_NORMAL_COMPLETION and let the usb_transfer_complete decide if it
should return USBD_SHORT_XFER

(skrll)

2016-02-18 16:50:28 UTC nick-nhusb commitmail json YAML

Print cc when debug level is 10.

(skrll)

2016-02-18 15:42:44 UTC MAIN commitmail json YAML

Avoid reading one byte past end of array.

Fixes

  acpiout0: brightness levels: [20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,uvm_fault(0xffffffff8133d200, 0xffff80000c1d8000, 1) -> e
  fatal page fault in supervisor mode
  trap type 6 code 0 rip ffffffff803b63d7 cs 8 rflags 10212 cr2 ffff80000c1d8000 ilevel 8 rsp ffffffff816a1b00

(riastradh)

2016-02-18 06:18:58 UTC MAIN commitmail json YAML

2016-02-18 05:40:50 UTC MAIN commitmail json YAML

Actually FALSE as last arg to Var_Subst makes more sense

(sjg)

2016-02-18 05:02:49 UTC MAIN commitmail json YAML

Add support for .dinclude

Like .sinclude missing file will be ignored.
Like .depend stale dependencies will be ignored.
Allows better implementation of auto depend.

Reviewed by: christos
Requested by: Bryan Drewery at FreeBSD.

(sjg)

2016-02-18 05:01:39 UTC MAIN commitmail json YAML

Adapt to new Var_Subst prototype

(sjg)

2016-02-17 20:12:42 UTC MAIN commitmail json YAML

Adapt CI20 HWRNG to synchronous on-demand callback.
Omit needless softint/locking dance.
from riastradh@

(macallan)

2016-02-17 20:11:17 UTC MAIN commitmail json YAML

2016-02-17 20:05:45 UTC MAIN commitmail json YAML

PR/50818: David Binderman: Delete dead code (copied from if_et.c)

(christos)

2016-02-17 20:04:39 UTC MAIN commitmail json YAML

PR/50817: David Binderman: Delete dead code (copy from if_et.c)

(christos)

2016-02-17 20:02:41 UTC MAIN commitmail json YAML

PR/50819: David Binderman: Delete dead code.

(christos)

2016-02-17 20:00:16 UTC MAIN commitmail json YAML

PR/50820: David Binderman: Fail when !(edge|pulse) instead of !edge && edge

(christos)

2016-02-17 19:57:01 UTC MAIN commitmail json YAML

PR/50821: David Binderman: remove "i <" i <

(christos)

2016-02-17 19:54:11 UTC MAIN commitmail json YAML

PR/50822: David Binderman: Fix copy length.

(christos)

2016-02-17 19:52:20 UTC MAIN commitmail json YAML

PR/50823: David Binderman: Limit scanf width

(christos)

2016-02-17 19:51:29 UTC MAIN commitmail json YAML

PR/50824: David Binderman: Limit scanf width

(christos)

2016-02-17 19:47:49 UTC MAIN commitmail json YAML

2016-02-17 19:44:40 UTC MAIN commitmail json YAML

Don't schedule a softint if we have nothing to do.

Some systems seem to have gotten stuck in a softint processing loop
doing nothing and then trying to do it again.  Might fix gson's
frozen qemu/anita sparc autobuilds -- tested on macallan's real sparc
hardware and confirmed to fix at least some freeze at boot.

(riastradh)

2016-02-17 18:51:41 UTC MAIN commitmail json YAML

add a shadowfb update function which endian-swaps 32bit pixels, use if we
have hardware with BGRA pixel format ( like a wrong-endian ARGB framebuffer )
with this applications that use xrender work properly on things like mgx in
32bit colour

(macallan)

2016-02-17 10:52:55 UTC MAIN commitmail json YAML

extend the match function, to match devices from a selection of
manufacturers that use modern Broadcom chips, and which represent
as a vendor-specific device class.

(plunky)

2016-02-17 01:48:36 UTC MAIN commitmail json YAML

Need <sys/mutex.h> for mutex(9).

(riastradh)

2016-02-17 01:48:04 UTC MAIN commitmail json YAML

Caller must have exclusive access to rndsource for rnd_add_data(_sync).

(riastradh)

2016-02-17 01:42:25 UTC MAIN commitmail json YAML

Make hyperentropy rndsource work synchronously, again.

This time for real!  *crosses fingers*

(riastradh)

2016-02-17 01:23:33 UTC MAIN commitmail json YAML

Move entropy_count into the scope where it is used.

Omit now-unused definition.

XXX This code probably shouldn't be under DIAGNOSTIC...  It is
significantly more than just an assertion.

(riastradh)

2016-02-17 01:09:49 UTC MAIN commitmail json YAML

Use real atomics, not atomics faked with membars, for rnd_printing.

(riastradh)

2016-02-17 01:01:42 UTC MAIN commitmail json YAML

Omit needless call to rnd_getmore in rnd_extract_data.

The only remaining caller -- rnd_extract -- already does it.

(riastradh)

2016-02-17 00:57:36 UTC MAIN commitmail json YAML

Omit call to rnd_getmore from rnd_process_events.

There are three cases to consider here:

1. You have on-demand synchronous rndsources, e.g. RDRAND (and you're
willing to use it).  In that case, you'll just use those whenever you
need to extract entropy.  There's no benefit to requesting more from
them when we're entering data into the pool.

2. You have on-demand asynchronous rndsources.  These should continue
trying to feed data to the entropy pool as long as it needs more, so
there's no benefit to requesting more from them when we're entering
data into the pool.

3. You don't have any on-demand rndsources.  Then rnd_getmore does
nothing, so there's no benefit to calling it.

ok tls

(riastradh)

2016-02-17 00:49:28 UTC MAIN commitmail json YAML

Match various Apple USB Bluetooth controllers.

From mlelstv.

(riastradh)

2016-02-17 00:48:57 UTC MAIN commitmail json YAML

2016-02-17 00:46:17 UTC MAIN commitmail json YAML

Add various USB Bluetooth controllers.

From mlelstv.

(riastradh)

2016-02-17 00:43:43 UTC MAIN commitmail json YAML

Add rnd_add_data_sync for synchronous on-demand rndsource callbacks.

Avoids lock recursion in rndsinks:

rndsink user holds lock
calls rndsink_request
calls rnd_getmore
calls an rndsource callback
calls rnd_add_data
calls rnd_process_events
calls rndsinks_distribute
calls rndsink callback
acquires rndsink user lock.

This can happen only before the rnd_process_events softint is
established, but that's enough to cause a problem and is the main
reason why all our HWRNG drivers are so byzantine (soon to be
fixed!).

ok tls

(riastradh)

2016-02-17 00:01:23 UTC MAIN commitmail json YAML

Cast uint8_t to uint32_t before shifting left by 24.

Otherwise this is undefined behaviour unless int is 32-bit and the
uint8_t value happens to be <=127.

(riastradh)

2016-02-16 23:07:58 UTC MAIN commitmail json YAML

Need <sys/queue.h> for LIST_ENTRY and <sys/null.h> for NULL.

(riastradh)

2016-02-16 22:53:14 UTC MAIN commitmail json YAML

2016-02-16 21:28:29 UTC nick-nhusb commitmail json YAML

2016-02-16 21:26:37 UTC nick-nhusb commitmail json YAML

2016-02-16 21:17:27 UTC nick-nhusb commitmail json YAML

Make interrupt handling MP safe by not dropping the bus lock while
traversing the active transfer list.  Instead move the complete transfers
from the active list to a complete list while holding the bus lock.

Once the interrupt list has been traversed we can do callbacks on the
complete list.  usbd_transfer_complete can safely drop the bus lock while
traversing this private list.

(skrll)

2016-02-16 19:29:51 UTC MAIN commitmail json YAML

- don't set _GNU_SOURCE. We are not supposed to make decisions for others.
- don't special-case wcsdup()
From Ingo Schwarze.

(christos)

2016-02-16 19:11:25 UTC MAIN commitmail json YAML

get rid of bool_t (Ingo Schwarze)

(christos)

2016-02-16 19:08:41 UTC MAIN commitmail json YAML

2016-02-16 15:54:15 UTC MAIN commitmail json YAML

2016-02-16 15:53:48 UTC MAIN commitmail json YAML

2016-02-16 14:08:25 UTC MAIN commitmail json YAML

2016-02-16 14:07:47 UTC MAIN commitmail json YAML

2016-02-16 14:06:06 UTC MAIN commitmail json YAML

2016-02-16 14:04:58 UTC MAIN commitmail json YAML

include explicitly errno.h since we use it.

(christos)

2016-02-16 14:04:24 UTC MAIN commitmail json YAML

No need to include "sys.h" from here; it is included from config.h

(christos)

2016-02-16 08:41:32 UTC MAIN commitmail json YAML

In xennet_xenbus_detach(), remove the event handler early (just after
xennet_stop()) so that we don't get events while slepping (e.g.
in softint_disestablish()) when some structures have already been
freed.
Problem reported and patch tested by Rohan Desai.

(bouyer)

2016-02-16 08:02:49 UTC nick-nhusb commitmail json YAML

Re-enable the TT support that existed previously here as well

(skrll)

2016-02-16 07:51:13 UTC MAIN commitmail json YAML

Re-enable the TT support that existed previously.

(skrll)

2016-02-16 07:30:46 UTC nick-nhusb commitmail json YAML

Use TAILQ_FOREACH.  No functional change.

(skrll)

2016-02-16 07:16:47 UTC nick-nhusb commitmail json YAML

Add some changes to ehci_sitd_t based on the RiscOS code sent to me by
Colin Granvillein private email

(skrll)

2016-02-16 05:14:31 UTC MAIN commitmail json YAML

Reduced INSTALL kernel size.

(nonaka)

2016-02-16 01:31:26 UTC MAIN commitmail json YAML

Remove workaround for GATEWAY

The workaround was introduced because lltable/llentry uses rwlock
but it may be executed in hardware interrupt due to fast forward.
Now we don't run fast forward in hardware interrupt anymore, so
we can remove the workaround.

(ozaki-r)

2016-02-15 23:36:30 UTC MAIN commitmail json YAML

2016-02-15 22:53:38 UTC MAIN commitmail json YAML

OpenBSD term.c rev. 1.7 2002/11/29 20:13:39 deraadt
spelling

(christos)

2016-02-15 22:48:59 UTC MAIN commitmail json YAML

OpenBSD readline.c rev. 1.14 2015/02/06 23:21:58 millert
use SIZE_MAX

(christos)

2016-02-15 22:37:54 UTC MAIN commitmail json YAML

cardbus autoconf uses cardbus_attach_args, not isapnp_attach_args.

(riastradh)

2016-02-15 21:58:38 UTC MAIN commitmail json YAML

OpenBSD readline.c rev. 1.13 2015/01/13 08:33:12 reyk
rl_set_keyboard_input_timeout() for readline 4.2 compat

(christos)

2016-02-15 21:56:35 UTC MAIN commitmail json YAML

OpenBSD eln.c rev. 1.3 2011/11/27 21:46:44 pascal
kill a C++-style comment

(christos)

2016-02-15 21:38:07 UTC MAIN commitmail json YAML

Compile with WIDECHAR the same way the main Makefile does (Ingo Schwarze)

(christos)

2016-02-15 21:35:52 UTC MAIN commitmail json YAML

Don't free getline memory (Ingo Schwarze).

(christos)

2016-02-15 20:58:02 UTC MAIN commitmail json YAML

allllllexander the greeeaaaaat, his name struck fear into hearts of men!

...but let's conquer that fear and give ol' alex a consistent and
correct date of death.

(he died of fever in baaaaaabylooooooonnnn)

(snj)

2016-02-15 20:35:59 UTC MAIN commitmail json YAML

Use KASSERTs supported by CTASSERTs, not __builtin_unreachable.

pcc has no __builtin_unreachable, and this is clearer anyway.

(riastradh)

2016-02-15 20:33:18 UTC MAIN commitmail json YAML

2016-02-15 19:36:35 UTC MAIN commitmail json YAML

2016-02-15 19:00:42 UTC MAIN commitmail json YAML

Fix building of IPv4-Mapped IPv6 addresses.

As discussed on tech-net@ use in6_sin_2_v4mapsin6() to build mapped
addresses.

(rtr)

2016-02-15 17:35:39 UTC MAIN commitmail json YAML

forgot one fgetln define

(christos)

2016-02-15 17:00:27 UTC nick-nhusb commitmail json YAML

2016-02-15 16:14:39 UTC MAIN commitmail json YAML

2016-02-15 15:56:33 UTC MAIN commitmail json YAML

Fix function name, no functional change.
Found by Travis Paul, (see PR/50786), thanks for reporting!

(mbalmer)

2016-02-15 15:53:45 UTC MAIN commitmail json YAML

Use getline for better portability.

(christos)

2016-02-15 15:37:20 UTC MAIN commitmail json YAML

OpenBSD tokenizer.c rev. 1.8 2003/08/11 18:21:40 deraadt
don't increase amax on realloc failure

(christos)

2016-02-15 15:35:03 UTC MAIN commitmail json YAML

OpenBSD term.c rev. 1.13 2009/12/11 18:58:59 jacekm
fix two memory leaks

(christos)

2016-02-15 15:30:50 UTC MAIN commitmail json YAML

Change the test for the size of encoded buffer to include the NULL, from
OpenBSD; no functional change.

(christos)

2016-02-15 15:29:25 UTC MAIN commitmail json YAML

OpenBSD sig.c rev. 1.6 2001/12/06 04:26:00 deraadt
save and restore errno in signal handler

(christos)

2016-02-15 15:26:48 UTC MAIN commitmail json YAML

Use fparseln to avoid newline hacks.

(christos)

2016-02-15 15:18:01 UTC MAIN commitmail json YAML

use fparseln() to avoid needing to deal with missing \n in the last line
and also to handle comments automatically.

(christos)

2016-02-15 14:59:38 UTC MAIN commitmail json YAML

This needs _KERNTYPES on some platforms.

(christos)

2016-02-15 14:59:03 UTC MAIN commitmail json YAML

Reduce code duplication.

Split creation of IPv4-Mapped IPv6 addresses into its own function
and use it.

No functional change intended.  As posted to tech-net@

(rtr)

2016-02-15 13:25:12 UTC MAIN commitmail json YAML

Add missing closing ) and line continuation for mknative

(martin)

2016-02-15 11:07:48 UTC MAIN commitmail json YAML

Avoid strict alias violation for VAX

(martin)

2016-02-15 08:08:04 UTC MAIN commitmail json YAML

Run if_link_state_change in softint

if_link_state_change can execute the network stack that is expected to
not run in hardware interrupt (at least now), however network drivers
may call it in hardware interrupt. Avoid that by introducing a new
softint for if_link_state_change.

The original patch is provided by mlelstv@ and tweaked a bit by me.

Should fix PR kern/50602.

(ozaki-r)

2016-02-15 01:11:41 UTC MAIN commitmail json YAML

Simplify bridge(4)

Thanks to introducing softint-based if_input, the entire bridge code now
never run in hardware interrupt context. So we can simplify the code.

- Remove spin mutexes
  - They were needed because some code of bridge could run in
    hardware interrupt context
  - We now need only an adaptive mutex for each shared object
    (a member list and a forwarding table)
- Remove pktqueue
  - bridge_input is already in softint, using another softint
    (for bridge_forward) is useless
  - Packet distribution should be down at device drivers

(ozaki-r)

2016-02-14 23:47:57 UTC MAIN commitmail json YAML

remove duplicated #include of <netinet/in.h>

(rtr)

2016-02-14 21:13:34 UTC MAIN commitmail json YAML

sun4v: add breakpoint trap entry to the sun4v trap table

(palle)

2016-02-14 19:54:21 UTC MAIN commitmail json YAML

2016-02-14 19:11:20 UTC MAIN commitmail json YAML

Remove extra stray break missed by Christos when committing PR 50783.

(dholland)

2016-02-14 19:08:10 UTC MAIN commitmail json YAML

Restore the local change
  -gcc: internal compiler error: Killed (program cc1plus)
  +gcc: internal compiler error: Killed (program cc1plus received signal 9)
which was lost in an update somewhere after netbsd-6.

This clarification was found in the past to significantly reduce the
number of bug reports caused by people running out of swap, such as
(most likely) seen again today in PR 50802.

XXX: pullup-7

(dholland)

2016-02-14 19:00:04 UTC MAIN commitmail json YAML

2016-02-14 18:12:31 UTC MAIN commitmail json YAML

Add missing va_end, from David Binderman in PR 50798.

(dholland)

2016-02-14 18:11:16 UTC MAIN commitmail json YAML

Add missing va_end, from David Binderman in PR 50797.

(dholland)

2016-02-14 18:09:51 UTC MAIN commitmail json YAML

Add missing va_list, from David Binderman in PR 50796.

XXX: this file and arch/arc/stand/boot/disk.c are cutpaste clones.

(dholland)

2016-02-14 18:07:49 UTC MAIN commitmail json YAML

Add missing va_end; PR 50795 from David Binderman.

(dholland)

2016-02-14 18:05:31 UTC MAIN commitmail json YAML

2016-02-14 18:04:47 UTC MAIN commitmail json YAML

Add missing va_end(). PR 50794 from David Binderman.

(dholland)

2016-02-14 18:01:45 UTC MAIN commitmail json YAML

Add missing va_end. PR 50793 from David Binderman.

(dholland)

2016-02-14 17:06:24 UTC MAIN commitmail json YAML

From Ingo Schwarze:

el_getc() for the WIDECHAR case, that is, the version in eln.c.
For a UTF-8 locale, it is broken in four ways:

1. If the character read is outside the ASCII range, the function
    does an undefined cast from wchar_t to char.  Even if wchar_t
    is internally represented as UCS-4, that is wrong and dangerous
    because characters beyond codepoint U+0255 get their high bits
    truncated, meaning that perfectly valid printable Unicode
    characters get mapped to arbitrary bytes, even the ASCII escape
    character for some Unicode characters.  But wchar_t need not
    be implemented in terms of UCS-4, so the outcome of this function
    is undefined for any and all input.

2. If insufficient space is available for the result, the function
    fails to detect failure and returns garbage rather than -1 as
    specified in the documentation.

3. The documentation says that errno will be set on failure, but
    that doesn't happen either in the above case.

4. Even for ASCII characters, the results may be wrong if wchar_t
    is not using UCS-4.

(christos)

2016-02-14 14:49:34 UTC MAIN commitmail json YAML

From Ingo Schwarze:

As we have seen before, "histedit.h" can never get rid of including
the <wchar.h> header because using the data types defined there is
deeply ingrained in the public interfaces of libedit.

Now POSIX unconditionally requires that <wchar.h> defines the type
wint_t.  Consequently, it can be used unconditionally, no matter
whether WIDECHAR is active or not.  Consequently, the #define Int
is pointless.

Note that removing it is not gratuitious churn.  Auditing for
integer signedness problems is already hard when only fundamental
types like "int" and "unsigned" are involved.  It gets very hard
when types come into the picture that have platform-dependent
signedness, like "char" and "wint_t".  Adding yet another layer
on top, changing both the signedness and the width in a platform-
dependent way, makes auditing yet harder, which IMHO is really
dangerous.  Note that while removing the #define, i already found
one bug caused by this excessive complication - in the function
re_putc() in refresh.c.  If WIDECHAR was defined, it printed an
Int = wint_t value with %c.  Fortunately, that bug only affects
debugging, not production.  The fix is contained in the patch.

With WIDECHAR, this doesn't change anything.  For the case without
WIDECHAR, i checked that none of the places wants to store values
that might not fit in wint_t.

This only changes internal interfaces; public ones remain unchanged.

(christos)

2016-02-14 14:47:48 UTC MAIN commitmail json YAML

From Ingo Schwartze:

Next step:  Remove #ifdef'ing in read_char(), in the same style
as we did for setlocale(3) in el.c.

A few remarks are required to explain the choices made.

* On first sight, handling mbrtowc(3) seems a bit less trivial
  than handling setlocale(3) because its prototype uses the data
  type mbstate_t from <wchar.h>.  However, it turns out that
  "histedit.h" already includes <wchar.h> unconditionally (i don't
  like headers including other headers, but that ship has sailed,
  people are by now certainly used to the fact that including
  "histedit.h" doesn't require including <wchar.h> before), and
  "histedit.h" is of course included all over the place.  So from
  that perspective, there is no problem with using mbrtowc(3)
  unconditionally ever for !WIDECHAR.

* However, <wchar.h> also defines the mbrtowc(3) prototype,
  so we cannot just #define mbrtowc away, or including the header
  will break.  It would also be a bad idea to porovide a local
  implementation of mbrtowc() and hope that it overrides the one
  in libc.  Besides, the required prototype is subtly different:
  While mbrtowc(3) takes "wchar_t *" as its first argument, we
  need a function that takes "Char *".  So unfortunately, we have
  to keep a ct_mbrtowc #define, at least until we can maybe get
  rid of "Char *" in the more remote future.

* After getting rid of the #else clause in read_char(), we can
  pull "return 1;" into the default: clause.  After that, we can
  get rid of the ugly "goto again_lastbyte;" and just "break;".
  As a bonus, that also gets rid of the ugly CONSTCOND.

* While here, delete the unused ct_mbtowc() from chartype.h.

(christos)

2016-02-14 10:56:23 UTC MAIN commitmail json YAML

Update for latest dwc2 dist

(skrll)

2016-02-14 10:53:30 UTC MAIN commitmail json YAML

2016-02-14 10:34:09 UTC MAIN commitmail json YAML

Fix DWC2_READ_4 in dwc2_sample_frrem which is unused

(skrll)

2016-02-14 03:41:18 UTC MAIN commitmail json YAML

Map the same mmio size as Linux does.

Unlikely to have practical consequences -- just reduces differences
in behaviour from upstream, to rule them out.

(riastradh)

2016-02-14 03:06:06 UTC MAIN commitmail json YAML

Fix bus_space_subregion error branch.

Return error code, not 0 (!), on bus_space_subregion failure.

In answer to `XXX error branch' comment: if nouveau_barobj_ctor
fails, then the caller will call nouveau_barobj_dtor too.  So there's
no leak here.

Unlikely to fix any observed bugs with nouveau -- there's no error
branch in the Linux side here.  But maybe it will catch some other
bug earlier.

(riastradh)

2016-02-13 23:12:34 UTC MAIN commitmail json YAML

2016-02-13 21:37:12 UTC MAIN commitmail json YAML

2016-02-13 19:53:23 UTC MAIN commitmail json YAML

2016-02-13 09:33:13 UTC nick-nhusb commitmail json YAML

Improve transfer callout handling

(skrll)

2016-02-13 08:44:22 UTC MAIN commitmail json YAML

Pass all unicast addresses if it is promisc mode.

(hikaru)

2016-02-13 08:05:07 UTC MAIN commitmail json YAML

Make all packets are enqueued into queue 0.
queue 7 is not default, it is caused by the filter tables.
The fields are including queue number, not bitfields.
So MVXPE_DF_QUEUE_ALL (b111) means queue 7.

And also, pass all unicast addresses if it is promisc mode.
MVXPE_PXC_UPM is working in almost cases,
but this change is needed for some cases; bridging frames through inter units,
using products have consecutive MAC addresses.

(hikaru)

2016-02-13 06:44:22 UTC MAIN commitmail json YAML

Fix typo in sysctls.

(hikaru)

2016-02-13 06:33:21 UTC MAIN commitmail json YAML

Count up if_{opackets,oerrors,ierrors,collisions}.
And also "MAC Transmit Error" is tx error, not rx.

(hikaru)

2016-02-13 06:12:46 UTC MAIN commitmail json YAML

2016-02-13 06:02:31 UTC MAIN commitmail json YAML

Preserve rx csum bad flags.

(hikaru)

2016-02-13 05:47:39 UTC MAIN commitmail json YAML

Fix mitake, disable SERDES error interrupts again.

(hikaru)

2016-02-13 05:44:01 UTC MAIN commitmail json YAML

Don't use RXTX intr that is excess and requires another IRQ handler,
and disable SERDES error interrupts.

(hikaru)

2016-02-13 05:21:11 UTC MAIN commitmail json YAML

Correct bus_dmamap_sync operaion.

(hikaru)

2016-02-13 03:33:02 UTC MAIN commitmail json YAML

Correct locks and missing breaks.

(hikaru)

2016-02-12 17:23:21 UTC MAIN commitmail json YAML

Avoid c99 for now.

(christos)

2016-02-12 16:43:38 UTC nick-nhusb commitmail json YAML

Mark ehci_intr as IST_MPSAFE when establishing the interrupt handler.

(skrll)

2016-02-12 16:36:33 UTC nick-nhusb commitmail json YAML

Don't check ehci_init against USBD_NORMAL_COMPLETION as it returns int
and not usb_status_t

(skrll)

2016-02-12 16:27:42 UTC nick-nhusb commitmail json YAML

Don't check ehci_init against USBD_NORMAL_COMPLETION as it returns int
and not usb_status_t

(skrll)

2016-02-12 15:36:08 UTC MAIN commitmail json YAML

GC IGNORE_EXTCHARS and simplify code (Ingo Schwarze)

(christos)

2016-02-12 15:11:09 UTC MAIN commitmail json YAML

From Ingo Schwarze:

If CHARSET_IS_UTF8 is not set, read_char() is broken in a large
number of ways:

1. The isascii(3) check can yield false positives.  If a string in
    an arbitrary encoding contains a byte in the range 0..127,
    that does not at all imply that it forms a character all by
    itself, and even less that it represents the same character
    as in ASCII.  Consequently, read_char() may return characters
    the user never typed.
    Even if the encoding is not state dependent, the assumption that
    bytes in the range 0..127 represent ASCII characters is broken.
    Consider UTF-16, for example.

2. The reverse problem can also occur.  In an arbitrary encoding,
    there is no guarantee that a character that can be represented
    by ASCII is represented by a seven-bit byte, and even less by
    the same byte as in ASCII.
    Even for single-byte encodings, these assumptions are broken.
    Consider the ISO 646 national variants, for example.
    Consequently, the current code is insufficient to keep ASCII
    characters working even for single-byte encodings.

3. The condition "++cbp != 1" can never trigger (because initially,
    cbp is 0, and the code can only go back up via the final goto,
    which has another cbp = 0 right before it) and it has no effect
    (because cbp isn't used afterwards).

4. bytes = ct_mbtowc(cp, cbuf, cbp) is broken.  If this returns -1,
    the code assumes that is can just call mbtowc(3) again for later
    input bytes.  In some implementations, that may even be broken
    for state-independent encodings, but trying again after mbtowc(3)
    failure certainly produces completely erratic and meaningless
    results in state-dependent encodings.

5. The assignment "*cp = (Char)(unsigned char)cbuf[0]" is
    completely bogus.  Even if the byte cbuf[0] represents a
    character all by itself, which it usually will not, whether
    or not the cast produces the desired result depends on the
    internal representation of wchar_t in the C library, which
    the application program can know nothing about.  Even for ASCII
    in the C/POSIX locale, an ASCII character other than '\0' ==
    L'\0' == 0 need not have the same numeric value as a char and
    as a wchar_t.

To summarize, this code only works if all of the following
conditions hold:

- The encoding is a single-byte encoding.
- ASCII is a subset of the encoding.
- The implementation of mbtowc(3) in the C library does not
  require re-initialization after encoding errors.
- The implementation of wchar_t in the C library uses the
  same numerical values as ASCII.

Otherwise, it silently produces wrong results.

The simplest way to fix this is to just use the same code as for
UTF-8 (right above).  Of course, that causes functional changes
but that shouldn't matter since current behaviour is undefined.

The patch below provides the following improvements:

- It works for all stateless single-byte encodings, no matter
  whether they are somehow related to ASCII, no matter how
  mb[r]towc(3) are internally implemented, and no matter how
  wchar_t is internally represented.
- Instead of producing unpredictable and definitely wrong
  results for non-UTF-8 multibyte characters, it behaves in
  a well-defined way: It aborts input processing, sets errno,
  and returns failure.
  Note that short of providing full support for arbitrary locales,
  it is impossible to do better.  We cannot know whether a given
  unsupported locale is state-dependent, and for a state-dependent
  locale, it makes no sense to retry parsing after an encoding
  error, so the best we can do is abort processing for *any*
  unsupported multi-byte character.
- Note that single-byte characters in arbitrary state-independent
  locales still work, even in locales that may potentially also
  contain multibyte characters, as long as those don't occur in
  input.  I'm not sure whether any such locales exist in practice...

Tested with UTF-8 and C/POSIX on OpenBSD.  Also tested that in the
C/POSIX locale, non-ASCII bytes get through unmangled.  You may
wish to test with ISO-LATIN on NetBSD if NetBSD supports that.

----
Also use a constant for meta to avoid warnings.

(christos)

2016-02-12 10:56:48 UTC netbsd-7 commitmail json YAML

2016-02-12 10:55:35 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by riastradh in ticket #1115):
sys/arch/x86/x86/pmap.c: patch
Use IPL_NONE for pserialized lock.  Assert sleepable.  (OOPS.)

(snj)

2016-02-12 09:24:15 UTC MAIN commitmail json YAML

Fix the bitmask of MVXPE_PMACC0_FRAMESIZELIMIT. It did no harm.

(hikaru)

2016-02-12 08:36:29 UTC MAIN commitmail json YAML

2016-02-12 08:36:08 UTC MAIN commitmail json YAML

add several NVIDIA geforce and NVS cards.

(mrg)

2016-02-12 05:32:47 UTC MAIN commitmail json YAML

2016-02-11 23:59:00 UTC netbsd-7 commitmail json YAML

tickets 1080-1088, 1090-1092, 1110-1113, 1116

(snj)

2016-02-11 23:49:52 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by riastradh in ticket #1116):
sys/external/bsd/drm2/dist/drm/nouveau/core/engine/fifo/nouveau_engine_fifo_base.c: revision 1.4
sys/external/bsd/drm2/dist/drm/nouveau/core/include/engine/fifo.h: revision 1.4
dtor gets called if ctor fails.  Make it work in that case.

(snj)

2016-02-11 23:31:06 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by riastradh in ticket #1113):
sys/external/bsd/drm2/include/asm/unaligned.h: revision 1.4
Don't return void.
Caught by pcc.  Thanks, pcc!

(snj)