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 (58m)  netbsd-8 (5d)  netbsd-10 (5d)  netbsd-9 (11d)  thorpej-ifq (175d)  thorpej-altq-separation (178d) 

2024-05-10 10:29:03 UTC Now

2019-01-27 05:22:20 UTC MAIN commitmail json YAML

Remove end of line spaces - one (two in one line) added during recent merge,
one older.

(kre)

2019-01-27 05:17:48 UTC MAIN commitmail json YAML

2019-01-27 05:16:55 UTC MAIN commitmail json YAML

2019-01-27 05:16:38 UTC MAIN commitmail json YAML

fix duplicated chunk from merge

(dholland)

2019-01-27 05:16:10 UTC MAIN commitmail json YAML

fix duplicated chunk from merge

(dholland)

2019-01-27 05:15:42 UTC MAIN commitmail json YAML

2019-01-27 05:15:32 UTC MAIN commitmail json YAML

Restore comment accidentally lost in merge.

(dholland)

2019-01-27 05:14:45 UTC MAIN commitmail json YAML

2019-01-27 05:12:30 UTC MAIN commitmail json YAML

Fix merge botch.

(kre)

2019-01-27 05:08:58 UTC MAIN commitmail json YAML

fix duplicated chunk from merge

(dholland)

2019-01-27 05:08:05 UTC MAIN commitmail json YAML

fix duplicated chunk from merge

(dholland)

2019-01-27 05:07:46 UTC MAIN commitmail json YAML

2019-01-27 05:06:35 UTC MAIN commitmail json YAML

fix duplicated chunk from merge

(dholland)

2019-01-27 05:05:37 UTC MAIN commitmail json YAML

2019-01-27 05:04:39 UTC MAIN commitmail json YAML

Restore accidentally-dropped opt_octeon.h.
(or at least it really looks like it was accidental)

(dholland)

2019-01-27 05:03:57 UTC MAIN commitmail json YAML

2019-01-27 05:00:48 UTC MAIN commitmail json YAML

2019-01-27 04:59:12 UTC MAIN commitmail json YAML

fix duplicated chunk from merge

(dholland)

2019-01-27 04:56:46 UTC MAIN commitmail json YAML

2019-01-27 04:53:59 UTC MAIN commitmail json YAML

fix duplicated chunk from merge

(dholland)

2019-01-27 04:52:07 UTC MAIN commitmail json YAML

fix duplicated chunk from merge

(dholland)

2019-01-27 04:49:12 UTC MAIN commitmail json YAML

fix duplicated chunk from merge

(dholland)

2019-01-27 04:48:09 UTC MAIN commitmail json YAML

restore accidentally-removed rcsid

(dholland)

2019-01-27 04:42:47 UTC MAIN commitmail json YAML

fix duplicated chunk from merge

(dholland)

2019-01-27 04:40:57 UTC MAIN commitmail json YAML

fix duplicated chunk from merge

(dholland)

2019-01-27 04:39:33 UTC MAIN commitmail json YAML

fix duplicated chunk from merge

(dholland)

2019-01-27 04:38:38 UTC MAIN commitmail json YAML

2019-01-27 04:35:25 UTC MAIN commitmail json YAML

fix duplicated chunk from merge

(dholland)

2019-01-27 04:34:36 UTC MAIN commitmail json YAML

fix duplicated chunk from merge

(dholland)

2019-01-27 04:33:29 UTC MAIN commitmail json YAML

2019-01-27 04:28:19 UTC MAIN commitmail json YAML

fix duplicated chunk from merge

(dholland)

2019-01-27 04:25:37 UTC MAIN commitmail json YAML

fix duplicated chunk from merge

(dholland)

2019-01-27 04:22:46 UTC MAIN commitmail json YAML

2019-01-27 04:21:26 UTC MAIN commitmail json YAML

2019-01-27 04:17:39 UTC MAIN commitmail json YAML

Fix merge issue. (leftover line)

(oster)

2019-01-27 04:15:11 UTC MAIN commitmail json YAML

Remove extra #ifdef and duplicated set of #ifdef's.

(oster)

2019-01-27 03:19:42 UTC MAIN commitmail json YAML

2019-01-27 03:01:48 UTC MAIN commitmail json YAML

2019-01-27 03:00:48 UTC MAIN commitmail json YAML

make this compile again (enable #if 0 code)

(christos)

2019-01-27 02:58:48 UTC MAIN commitmail json YAML

remove extra ifdef.

(christos)

2019-01-27 02:55:26 UTC MAIN commitmail json YAML

remove extra #endif

(christos)

2019-01-27 02:55:02 UTC MAIN commitmail json YAML

2019-01-27 02:47:26 UTC MAIN commitmail json YAML

lint understands attributes.

(christos)

2019-01-27 02:42:32 UTC MAIN commitmail json YAML

2019-01-27 02:40:50 UTC MAIN commitmail json YAML

2019-01-27 02:37:07 UTC pgoyette-compat commitmail json YAML

Update version on the branch, too

(pgoyette)

2019-01-27 02:35:49 UTC MAIN commitmail json YAML

Belated bump of kernel version, for merge of [pgoyette-compat]

(pgoyette)

2019-01-27 02:08:51 UTC MAIN commitmail json YAML

Merge the [pgoyette-compat] branch

(pgoyette)

2019-01-27 02:00:45 UTC MAIN commitmail json YAML

cast to intmax_t instead of long, since time_t is "long long"

(christos)

2019-01-27 01:51:50 UTC MAIN commitmail json YAML

apparently the fdwatch crap is needed, so undo the ifdefs.

(christos)

2019-01-27 01:51:00 UTC MAIN commitmail json YAML

2019-01-26 22:00:40 UTC pgoyette-compat commitmail json YAML

2019-01-26 18:33:53 UTC MAIN commitmail json YAML

2019-01-26 18:30:48 UTC MAIN commitmail json YAML

Add some RADEON devices. Mainly taken from OpenBSD.

(msaitoh)

2019-01-26 18:14:22 UTC MAIN commitmail json YAML

Explicitly cast time_t to match format string - should fix the build on
some 32bit architectures.

(martin)

2019-01-26 16:44:30 UTC MAIN commitmail json YAML

Some arm CPUs do not implement traps on floating point exceptions.

(martin)

2019-01-26 15:46:27 UTC MAIN commitmail json YAML

aarch64 does not trap on unaligned acces

(martin)

2019-01-26 15:25:51 UTC MAIN commitmail json YAML

Optimize: keep a per-VCPU buffer for the state, and copy in and out
directly on it. The VCPUs are protected by mutexes, so nothing to worry
about.

This saves two kmem_allocs in {get,set}state.

(maxv)

2019-01-26 15:22:54 UTC MAIN commitmail json YAML

Always convert input numbers (from the command line) in the C
locale, not as set in the environment.  Conforms with POSIX spec.

(kre)

2019-01-26 15:20:50 UTC MAIN commitmail json YAML

While cute, the previous version is not really safe.
After all, a system might want to sleep for several
thousand years on a spaceship headed to a distant
solar system...

So, remove the pause() code, deal with limits on the
range (it is just an int) that can be passed to sleep()
by looping, and do a much better job of checking for
out of range input values.

With this change sleep(1) should work for durations
up to something more than 250 billion years.  It
fails (at startup, with an error) if the requested
duration is beyond what can be handled.

Here no changes at all related to locales and arg
parsing.    Still for another day.

(kre)

2019-01-26 15:19:08 UTC MAIN commitmail json YAML

Adjust the way the arg string is parsed in the "not entirely
integer" case, so we avoid adjusting the locale of sleep,
and generally be more reliable and simpler.

In addition, deal with weirdness in nanosleep() when the
interval gets long, by avoiding using it.  In this version
when the sleep interval < 10000 seconds, we use nanosleep()
as before, for delays longer than that we use sleep() instead,
and ignore any fractional seconds.

We avoid overflow problems here by not bothering to sleep
at all for delays longer than 135 years (approx) and simply
pause() instead.  That sleep never terminates in such a
case is unlikely to ever be observed.

This commit makes no decision on the question of whether
the arg should be interpreted in the locale of the user,
or always in the C locale.  That is for another day.

(kre)

2019-01-26 15:12:20 UTC MAIN commitmail json YAML

Remove nvmm_exit_memory.npc, useless.

(maxv)

2019-01-26 14:44:54 UTC MAIN commitmail json YAML

Ah, fix bug: when the opcode has an immediate, we fill the src with a
register storage, but then we overwrite it without zeroing out the highest
bits of the resulting immediate (which may contain garbage from the union).

(maxv)

2019-01-26 14:43:46 UTC MAIN commitmail json YAML

Define constants for representing the standard interrupt types
({pos,neg,double}-edge, {high,low}-level) from the FDT "interrupts"
bindings.  Use these defined constants rather than magic numbers.

(thorpej)

2019-01-26 14:38:30 UTC MAIN commitmail json YAML

Define constants for representing the standard interrupt types
({pos,neg,double}-edge, {high,low}-level) from the FDT "interrupts"
bindings.  Use these defined constants rather than magic numbers.

(thorpej)

2019-01-26 03:37:14 UTC pgoyette-compat commitmail json YAML

Add a note concerning MPSAFE

(pgoyette)

2019-01-25 22:56:54 UTC pgoyette-compat commitmail json YAML

Note the future need to sort out placement of the netbsd32_machine32_hook

(pgoyette)

2019-01-25 18:34:45 UTC MAIN commitmail json YAML

PR/53908: Alex Raschi: One more file needs to move.

(christos)

2019-01-25 18:33:59 UTC MAIN commitmail json YAML

2019-01-25 18:31:44 UTC MAIN commitmail json YAML

Make sure ci_{smt,core,package}_id are all filled in appropriately.

Previously the BP was missed and __SHIFTOUT wasn't used.

(skrll)

2019-01-25 17:11:49 UTC MAIN commitmail json YAML

Explicitly include the headers in the right sequence to make the magic happen,
explaining why.

(christos)

2019-01-25 15:53:09 UTC MAIN commitmail json YAML

Use _XTYPEDEF_POINTER directly to determine if the typedef is available.

(christos)

2019-01-25 15:34:22 UTC MAIN commitmail json YAML

no need for curses.h

(christos)

2019-01-25 15:31:11 UTC MAIN commitmail json YAML

PR/53906: Paul Ripke: systat(1) vmstat & syscall get
"alternate system clock has died" on terminal resize (SIGWINCH)

(christos)

2019-01-25 14:29:05 UTC MAIN commitmail json YAML

PR/53908: Alex Raschi: Include <sys/socket.h> for socketpair(2)

(christos)

2019-01-25 10:13:07 UTC pgoyette-compat commitmail json YAML

Revert previous change(s).  There's no good reason to use the hook when
the required value is available locally (in the current module).

Thanks mrg@ for pointing this out.

(pgoyette)

2019-01-25 09:36:09 UTC pgoyette-compat commitmail json YAML

Move the netbsd32_machine32_hook into the main kernel with most of
the other hooks.

Although this hook might better belong in compat/netbsd32/ code,
there are some machines without a netbsd32 module (for example, i386
and sgimips) which still have consumers/users of this hook.  :(

(pgoyette)

2019-01-25 09:04:51 UTC pgoyette-compat commitmail json YAML

Declare the variable which we're using as the return value of the
hook function.

(pgoyette)

2019-01-25 08:51:29 UTC MAIN commitmail json YAML

Add __cacheline_aligned to ppp softc list and its mutex just in case.

(knakahara)

2019-01-25 08:04:07 UTC MAIN commitmail json YAML

80003's SERDES is not the same as 82575's but the same as legacy devices.
Use the old methods on 80003.

XXX The reason why this bug existed is that our order of WM_T_* was little
different from FreeBSD's enum e1000_mac_type. From 80003 to PCH_CNP and from
82575 to I211 are swapped. I carefully read through if_wm.c and knew only
serdes related test were wrong. When we change WM_T_* to match FreeBSD's,
additional changes also will be required.

(msaitoh)

2019-01-25 03:50:13 UTC MAIN commitmail json YAML

Use __nothing (== ((void)0)) instead of "do {} while (/*CONSTCOND*/false)".

(msaitoh)

2019-01-24 22:07:14 UTC MAIN commitmail json YAML

remove the new check for tlen >= PTRDIFF_MAX.  the prior
checks assure the condition is met and GCC7 is happy.

suggested by kre.

(mrg)

2019-01-24 22:00:28 UTC MAIN commitmail json YAML

set md_unwind_header=aarch64/aarch64-unwind.h for netbsd arm64.

(mrg)

2019-01-24 21:51:16 UTC MAIN commitmail json YAML

adjust libstdc++ headers for gcc7.

(mrg)

2019-01-24 18:01:38 UTC MAIN commitmail json YAML

PR/53904: Jintao Zhu: Use a mutex instead of an rwlock to assure thread safety

(christos)

2019-01-24 15:36:05 UTC netbsd-8 commitmail json YAML

2019-01-24 15:35:14 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1168):

sys/kern/kern_ntptime.c: revision 1.60

Zero out the ntptimeval structure to prevent a 4 byte kernel stack disclosure.

Reported by Thomas Barabosch.

(martin)

2019-01-24 14:14:32 UTC netbsd-7 commitmail json YAML

2019-01-24 14:14:13 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1675):

sys/kern/kern_ntptime.c: revision 1.60

Zero out the ntptimeval structure to prevent a 4 byte kernel stack disclosure.
Reported by Thomas Barabosch.

(martin)

2019-01-24 14:13:46 UTC netbsd-7-1 commitmail json YAML

2019-01-24 14:13:26 UTC netbsd-7-1 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1675):

sys/kern/kern_ntptime.c: revision 1.60

Zero out the ntptimeval structure to prevent a 4 byte kernel stack disclosure.
Reported by Thomas Barabosch.

(martin)

2019-01-24 14:12:40 UTC netbsd-7-0 commitmail json YAML

2019-01-24 14:12:09 UTC netbsd-7-0 commitmail json YAML

Pull up following revision(s) (requested by maxv in ticket #1675):

sys/kern/kern_ntptime.c: revision 1.60

Zero out the ntptimeval structure to prevent a 4 byte kernel stack disclosure.
Reported by Thomas Barabosch.

(martin)

2019-01-24 14:09:30 UTC netbsd-7-0 commitmail json YAML

Pull up following revision(s) (requested by msaitoh in ticket #1674):

regress/sys/arch/m68k/060sp/Makefile: revision 1.15

Replace manual realdepend dependency with DPSRCS.

(martin)

2019-01-24 14:08:46 UTC netbsd-7-1 commitmail json YAML

Pull up following revision(s) (requested by msaitoh in ticket #1674):

regress/sys/arch/m68k/060sp/Makefile: revision 1.15

Replace manual realdepend dependency with DPSRCS.

(martin)

2019-01-24 14:08:14 UTC netbsd-7 commitmail json YAML

Pull up following revision(s) (requested by msaitoh in ticket #1674):

regress/sys/arch/m68k/060sp/Makefile: revision 1.15

Replace manual realdepend dependency with DPSRCS.

(martin)

2019-01-24 14:01:10 UTC netbsd-8 commitmail json YAML

2019-01-24 13:59:40 UTC netbsd-8 commitmail json YAML

Pull up following revision(s) (requested by christos in ticket #1167):

usr.sbin/rpcbind/util.c: revision 1.23

- fix wrong size allocation that triggers buffer overflow
- remove unneeded casts and assertions

XXX: pullup-8

(martin)

2019-01-24 13:05:59 UTC MAIN commitmail json YAML

Optimize: change the behavior of the HLT vmexit, make it a "change in vcpu
state" which occurs after the instruction executed, rather than an
instruction intercept which occurs before. Disable the shadow and the intr
window in kernel mode, and advance the RIP, so that the virtualizer doesn't
have to do it itself. This saves two syscalls and one VMCB cache flush.

Provide npc for other instruction intercepts, in case someone is
interested.

(maxv)

2019-01-24 09:33:03 UTC MAIN commitmail json YAML

2019-01-24 09:31:10 UTC MAIN commitmail json YAML

Add KERNEL_LOCK in ppptioctl() to protect struct ppp_softc members.

struct linesw.i_ioctl can be called without any preservation when the caller's
struct cdevsw is set D_MPSAFE such as ucom(4).

(knakahara)

2019-01-24 08:56:45 UTC MAIN commitmail json YAML

src/external/gpl3/gcc/lib/libbacktrace/arch/aarch64/backtrace-supported.h@1.2 / diff / nxr@1.2
src/external/gpl3/gcc/lib/libbacktrace/arch/powerpc/backtrace-supported.h@1.5 / diff / nxr@1.5
src/external/gpl3/gcc/lib/libgcc/arch/aarch64/auto-target.h@1.3 / diff / nxr@1.3
src/external/gpl3/gcc/lib/libgcc/arch/aarch64/defs.mk@1.4 / diff / nxr@1.4
src/external/gpl3/gcc/lib/libgcc/arch/powerpc/auto-target.h@1.5 / diff / nxr@1.5
src/external/gpl3/gcc/lib/libgcc/arch/powerpc/defs.mk@1.7 / diff / nxr@1.7
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/aarch64/defs.mk@1.2 / diff / nxr@1.2
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/aarch64/gcov-iov.h@1.3 / diff / nxr@1.3
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/powerpc/defs.mk@1.4 / diff / nxr@1.4
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/powerpc/gcov-iov.h@1.13 / diff / nxr@1.13
src/external/gpl3/gcc/lib/libgomp/arch/aarch64/config.h@1.2 / diff / nxr@1.2
src/external/gpl3/gcc/lib/libgomp/arch/aarch64/libgomp_f.h@1.2 / diff / nxr@1.2
src/external/gpl3/gcc/lib/libgomp/arch/aarch64/omp.h@1.3 / diff / nxr@1.3
src/external/gpl3/gcc/lib/libgomp/arch/powerpc/config.h@1.5 / diff / nxr@1.5
src/external/gpl3/gcc/lib/libgomp/arch/powerpc/libgomp_f.h@1.5 / diff / nxr@1.5
src/external/gpl3/gcc/lib/libgomp/arch/powerpc/omp.h@1.6 / diff / nxr@1.6
src/external/gpl3/gcc/lib/libobjc/arch/aarch64/defs.mk@1.3 / diff / nxr@1.3
src/external/gpl3/gcc/lib/libobjc/arch/powerpc/defs.mk@1.4 / diff / nxr@1.4
src/external/gpl3/gcc/lib/libstdc++-v3/arch/aarch64/c++config.h@1.4 / diff / nxr@1.4
src/external/gpl3/gcc/lib/libstdc++-v3/arch/aarch64/cxxabi_tweaks.h@1.2 / diff / nxr@1.2
      :
(more 29 files)
mknative gcc7 for ppc and arm64.

(mrg)

2019-01-24 06:48:27 UTC pgoyette-compat commitmail json YAML

Restore the MD-vs-REQ requirements structure, just in case

(pgoyette)

2019-01-24 06:23:26 UTC pgoyette-compat commitmail json YAML

Clean up and reorganize the requirements for compat_linux32 module

(pgoyette)

2019-01-24 05:06:43 UTC pgoyette-compat commitmail json YAML

Move the definition around to avoid strange compiler error (something
about trying to set a section attribute on a local variable).

(pgoyette)

2019-01-24 04:52:58 UTC pgoyette-compat commitmail json YAML

revert previous, just define the hook here

(pgoyette)

2019-01-24 04:50:04 UTC MAIN commitmail json YAML

No functional change intended:
- Use "do {} while (/*CONSTCOND*/false)" for null DPRINTF().
- Reduce indent level of wm_linkintr_gmii().

(msaitoh)

2019-01-24 04:41:34 UTC pgoyette-compat commitmail json YAML

2019-01-24 04:37:24 UTC pgoyette-compat commitmail json YAML

2019-01-24 04:32:41 UTC pgoyette-compat commitmail json YAML

I must be getting tired - use the correct name of the hook

(pgoyette)

2019-01-24 04:31:19 UTC pgoyette-compat commitmail json YAML

I wrote this stuff, when will I ever learn to use MODULE_CALL_HOOK
instead of MODULE_HOOK_CALL ?  :)

(pgoyette)

2019-01-24 04:27:39 UTC MAIN commitmail json YAML

2019-01-24 04:25:23 UTC MAIN commitmail json YAML

sync to NetBSD glob.c 1.38

Update from NetBSD src/lib/libc/gen/glob.c 1.34 to 1.38:
- Minimize changes from upstream NetBSD source.
- 1.35: Use unsigned foo not u_FOO. [Already done]
- 1.36: Bump the glob limits to 512KB for total string size and 64K path
  entries. The old limits were too small for some important FTP use cases
  like a pkgsrc repository.
- 1.37: Switch from a recursive pattern matching algorithm to handle '*'
  to a backtracking one. Avoids DoS attacks with patterns "a*a*a*a*a*...b"
  matching against "aaaaaaaaaaaa..." https://research.swtch.com/glob
- 1.38: Use the symbolic M_ALL and trim with M_MASK.

(lukem)

2019-01-24 04:24:52 UTC pgoyette-compat commitmail json YAML

Use the hook to get the value of machine32

(pgoyette)

2019-01-24 04:16:16 UTC MAIN commitmail json YAML

The event_channel_op hypercall uses a newer API since
__XEN_INTERFACE_VERSION__  0x00030202

Since hvm_op only supports event_channel_op via the newer API, we
can't get away with our current event_channel_op_compat shim.

We thus introduce the new API to our internal hypercall C API
interface.

This change should have no effect on the PV kernels, since they will
continue to use the pre 0x00030202 API.

(cherry)

2019-01-24 04:16:03 UTC pgoyette-compat commitmail json YAML

2019-01-24 04:11:38 UTC MAIN commitmail json YAML

hvm_op returns a signed value.

The pattern is that a hypercall which returns a value < 0 may imply an
error.

(cherry)

2019-01-24 04:08:10 UTC pgoyette-compat commitmail json YAML

2019-01-24 03:41:48 UTC pgoyette-compat commitmail json YAML

Found a couple other consumers of machine32 - adapt them to use the hook

(pgoyette)

2019-01-24 03:27:24 UTC pgoyette-compat commitmail json YAML

Replace weak symbol definition for machine32 with a hook.  Our in-kernel
linker doesn't handle weak symbols, so this prevented us from loading the
compat_linux32 module.

XXX There don't seem to be any other consumers of machine32 (nor does
XXX there seem to be any consumers of machine_arch32), even though it
XXX is defined for aarch64, arm32, and riscv).

(pgoyette)

2019-01-24 02:57:10 UTC MAIN commitmail json YAML

fnmatch.c: minimise changes from NetBSD src

(lukem)

2019-01-24 02:52:48 UTC MAIN commitmail json YAML

sync to fts.c 1.49, fts.h 1.19

Update from NetBSD src/lib/libc/gen/fts.c 1.38 to 1.49.
Update from NetBSD src/include/fts.h 1.18 to 1.19.

Notable changes:
- Minimize changes from upstream NetBSD methods.
- Bump fts_level from short to int to avoid a potential DoS.
- Make sure fts_statp is NULL when FTS_NOSTAT is set.
- Use [non-standard] O_CLOEXEC instead of fcntl(FD_CLOEXEC).
- Avoid potential integer overflow.
- Fix double free in fts_read()/fts_close().
- Use calloc(1, ...) instead of malloc(...) & memset.

(lukem)

2019-01-24 02:09:56 UTC pgoyette-compat commitmail json YAML

2019-01-24 02:06:35 UTC pgoyette-compat commitmail json YAML

2019-01-24 02:05:16 UTC pgoyette-compat commitmail json YAML

Reduce the list of required modules to what is really needed

(pgoyette)

2019-01-24 00:26:32 UTC pgoyette-compat commitmail json YAML

Disable more COMPAT_xx stuff for the NOCOMPAT config
cvs: ----------------------------------------------------------------------

(pgoyette)

2019-01-23 22:13:01 UTC MAIN commitmail json YAML

get rid of homegrown pci_conf_hook(), use the mechanism from arm32_pci_chipset
instead
less difference to evbarm

(macallan)

2019-01-23 20:46:18 UTC MAIN commitmail json YAML

- fix wrong size allocation that triggers buffer overflow
- remove unneeded casts and assertions
XXX: pullup-8

(christos)

2019-01-23 20:19:47 UTC pgoyette-compat commitmail json YAML

Another missing semicolon.  grrrrr.

(pgoyette)

2019-01-23 19:43:49 UTC MAIN commitmail json YAML

It's section 3 page, not section 2.  While here, xref puffs(3) in the
SEE ALSO section too.

(uwe)

2019-01-23 19:02:49 UTC MAIN commitmail json YAML

2019-01-23 17:36:01 UTC MAIN commitmail json YAML

There are aarch64 Cortex cpus that do not trap on some floating point
exceptions - so apply the arm handling for aarch64 as well.

(martin)

2019-01-23 16:57:01 UTC MAIN commitmail json YAML

2019-01-23 16:22:15 UTC MAIN commitmail json YAML

Some acronyms related to SIM cards; PR 53901 from Nikolai Lifanov.

(dholland)

2019-01-23 14:52:49 UTC MAIN commitmail json YAML

Don't call OS_ReadSysInfo Platform class call on RISC OS 3

(sborrill)

2019-01-23 14:49:00 UTC MAIN commitmail json YAML

Add xosmodule_enumeratewithversion() to allow operating systems modules
to be enumerated along with their version numbers.

(sborrill)

2019-01-23 13:38:30 UTC MAIN commitmail json YAML

Change the place of initproc initialization

The initproc variable cannot be initialized in start_init as there
is a race between vfs_mountroot and start_init.

PR kern/53817 by Andreas Gustafsson

(kamil)

2019-01-23 11:15:11 UTC MAIN commitmail json YAML

Fix no options DEBUG nor DIAGNOSTIC build

(ryoon)

2019-01-23 09:47:52 UTC MAIN commitmail json YAML

- Move the location of calling setup_eee() in ixgbe_attach(). The previous
  location was too early. The new location is before calling
  ixgbe_set_phy_power().
- Restore call of setup_eee() in ixgbe_init_locked(). It was removed in
  rev. 1.99 (FreeBSD r320688).
- When calling setup_eee(), pass enable/disable correctly.

(msaitoh)

2019-01-23 09:33:47 UTC pgoyette-compat commitmail json YAML

Ooops, missed a semicolon - add it back

(pgoyette)

2019-01-23 09:01:25 UTC MAIN commitmail json YAML

Call ixgbe_init_swfw_semaphore(hw) before calling ixgbe_check_wol_support()
because ixgbe_check_wol_support()->ixgbe_check_wol_support()->
ixgbe_get_device_caps() accesses semaphore.

(msaitoh)

2019-01-23 07:41:54 UTC MAIN commitmail json YAML

Fix mvfr0.fptrap = 0 description

(skrll)

2019-01-23 07:40:05 UTC MAIN commitmail json YAML

Fix build break (return type of mii_writereg).

(msaitoh)

2019-01-23 07:05:52 UTC MAIN commitmail json YAML

Welcome to 8.99.31 (MII {read,write}reg API change).

(msaitoh)

2019-01-23 07:00:21 UTC MAIN commitmail json YAML

provide compat _DIAGASSERT()

define no-op _DIAGASSERT() in tnftpd.h, so that I can perform
less changes from "upstream" NetBSD when I merge code.

(lukem)

2019-01-23 06:56:19 UTC MAIN commitmail json YAML

Nowadays some UEFI BIOSes don't enable some PCI devices' address decoding.
To resolve this problem, pci_map.c rev. 1.34-1.36 changed the
pci_mapreg_(sub)map()'s to set the decode bit if it's not set. It's good for
almost all drivers, but some other drivers don't use pci_mapreg_map().
In drivers which don't use pci_mapreg_map(), some of them expilicitly enable
decoding but others don't. Add code to enable decoding to them.

See also the following discussion:
http://mail-index.netbsd.org/tech-kern/2017/03/22/msg021678.html

(msaitoh)

2019-01-23 05:50:34 UTC MAIN commitmail json YAML

KNF. No functional change.

(msaitoh)

2019-01-23 05:34:09 UTC MAIN commitmail json YAML

sync to fparseln.c 1.10

Update from NetBSD src/lib/libc/stdio/fparseln.c 1.5 to 1.10:
- Don't report spurious empty lines eg after 2 comment lines, or on
  EOF after a single comment line.
- No escape character means no escaped characters.
- Remove 3rd and 4th clauses in christos' license.  OK christos.

(lukem)

2019-01-23 05:20:01 UTC MAIN commitmail json YAML

Remove the 3rd clause from my BSD-derived license.

(lukem)

2019-01-23 05:13:48 UTC MAIN commitmail json YAML

sync to fnmatch.c 1.26, fnmatch.h

Update from NetBSD src/lib/libc/gen/fnmatch.c 1.18 to 1.26.
Update from NetBSD src/include/fnmatch.h 1.8 to 1.13.

Notable changes:
- Implement FNM_LEADING_DIR.
- Limit recursions to avoid DoS attacks. From Maksymilian Arciemowicz.
- Treat a backslash followed by NUL as NUL.

(lukem)

2019-01-23 04:23:01 UTC MAIN commitmail json YAML

Implement subroutines for parsing out some of the generic properties
specified in the pinctrl bindings, and adapt Meson, Rockchip, and
Allwinner pinctrl back-ends to use them.

Ok jmcneill@

(thorpej)

2019-01-23 04:21:55 UTC MAIN commitmail json YAML

Implement subroutines for parsing out some of the generic properties
specified in the pinctrl bindings, and adapt Meson, Rockchip, and
Allwinner pinctrl back-ends to use them.

Ok jmcneill@

(thorpej)

2019-01-23 03:40:08 UTC pgoyette-compat commitmail json YAML

2019-01-23 03:38:26 UTC MAIN commitmail json YAML

Make evbmips/conf/WGT624V3 compilable:
- Modify for new read/write API
- Do "#if 0" for unused structures.

(msaitoh)

2019-01-23 03:34:15 UTC pgoyette-compat commitmail json YAML

Convert the macros for setting and unsetting a hook to generate
in-line code rather than using an intermediary hook##set routine.
Hooks are set and unset only in one place, so the intermediary
routine provides no benefit.  IMHO using the macro at the point-
of-call is more readable than using it elsewhere in the code and
then calling the generated intermediary routine (for which you
won't even find its declaration or definition unless you remember
to search for the HOOK_SET macro instead).

NFC intended, will verify with a bulk build and an atf test run.

(pgoyette)

2019-01-23 02:55:10 UTC pgoyette-compat commitmail json YAML

Add compat_raid_80 to the required list

(pgoyette)

2019-01-23 02:48:48 UTC MAIN commitmail json YAML

And as long as we're attempting to achieve perfection in code
that is never going to be executed, let's also check for possible
overflow in a sum that will never be computed...

(kre)

2019-01-23 02:44:57 UTC MAIN commitmail json YAML

whitespace fixup

consistent tab indenting, not a mix of spaces and tabs

(lukem)

2019-01-23 02:37:28 UTC MAIN commitmail json YAML

sync to daemon.c 1.10

Update to NetBSD src/lib/libc/gen/daemon.c 1.10 from 1.9:
- Update old-style definitions to ANSI

(lukem)

2019-01-23 02:32:36 UTC MAIN commitmail json YAML

sync to arpa/ftp.h 1.7

Update to NetBSD src/include/arpa/ftp.h revision 1.7 from revision 1.5:
- 1.6: Move UCB-licensed code from 4-clause to 3-clause licence. [already done]
- 1.7: Welcome to the constant age!

(lukem)

2019-01-23 02:32:06 UTC MAIN commitmail json YAML

There's no point setting errno, it is just overwritten by err
in the exit path ... this function never fails, it simply sometimes
doesn't actually expand the %m and just leaves the format string
intact.

And declare variables at the head of their scope, not at some random
place in the middle of the code, whatever C allows, that is just ugly.

(kre)

2019-01-23 02:25:29 UTC pgoyette-compat commitmail json YAML

Revert previous.  Both opencrypto/ocryptodev and raidframe/rf_compat_xx
already exist in their own modules and do not need to be part of the
compat_{50,80} modules.

(pgoyette)

2019-01-23 02:15:02 UTC pgoyette-compat commitmail json YAML

Ensure that all the compat code gets into the appropriate modules, even
compat code that doesn't live in sys/compat

(pgoyette)

2019-01-23 02:00:00 UTC MAIN commitmail json YAML

limit allocation to PTRDIFF_T to appease gcc-7, from mrg@

(christos)

2019-01-23 00:08:06 UTC MAIN commitmail json YAML

memset to zero the entire array, not just 8 bytes of it.

picked up by gcc7's checker that the array size has not
been multipled by the member size.

here, we had 8 but should have had 8 * sizeof(int).

XXX: real bug - pullup-7, pullup-8

(mrg)

2019-01-23 00:05:47 UTC MAIN commitmail json YAML

remove diag assert - the compiler demands fp is non NULL now.

(mrg)

2019-01-22 23:55:54 UTC MAIN commitmail json YAML

- fix Makefile.gthr CONFIG_LINKS handling.  demand only that
  gthr-default.h source be found.  fix installing the symlink.
- -Wno-error=incompatible-pointer-types needed for libgomp/lock.c
- build new libsupc++ files with -std=gnu++1z
- install new libstdc++ bits files. (XXX use bits_sup_headers
  from libstdc++/include/Makefile.am with mknative-gccm)
- start to get libstdc++ to build: various flag updates.

(mrg)

2019-01-22 23:52:23 UTC MAIN commitmail json YAML

src/external/gpl3/gcc/lib/libbacktrace/arch/i386/backtrace-supported.h@1.5 / diff / nxr@1.5
src/external/gpl3/gcc/lib/libbacktrace/arch/sparc/backtrace-supported.h@1.6 / diff / nxr@1.6
src/external/gpl3/gcc/lib/libgcc/arch/i386/auto-target.h@1.5 / diff / nxr@1.5
src/external/gpl3/gcc/lib/libgcc/arch/i386/defs.mk@1.10 / diff / nxr@1.10
src/external/gpl3/gcc/lib/libgcc/arch/i386/gthr-defs.mk@1.1 / diff / nxr@1.1
src/external/gpl3/gcc/lib/libgcc/arch/sparc/auto-target.h@1.5 / diff / nxr@1.5
src/external/gpl3/gcc/lib/libgcc/arch/sparc/defs.mk@1.6 / diff / nxr@1.6
src/external/gpl3/gcc/lib/libgcc/arch/sparc/gthr-defs.mk@1.1 / diff / nxr@1.1
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/i386/defs.mk@1.4 / diff / nxr@1.4
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/i386/gcov-iov.h@1.13 / diff / nxr@1.13
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/sparc/defs.mk@1.4 / diff / nxr@1.4
src/external/gpl3/gcc/lib/libgcc/libgcov/arch/sparc/gcov-iov.h@1.13 / diff / nxr@1.13
src/external/gpl3/gcc/lib/libgomp/arch/i386/config.h@1.5 / diff / nxr@1.5
src/external/gpl3/gcc/lib/libgomp/arch/i386/libgomp_f.h@1.5 / diff / nxr@1.5
src/external/gpl3/gcc/lib/libgomp/arch/i386/omp.h@1.6 / diff / nxr@1.6
src/external/gpl3/gcc/lib/libgomp/arch/sparc/config.h@1.6 / diff / nxr@1.6
src/external/gpl3/gcc/lib/libgomp/arch/sparc/libgomp_f.h@1.5 / diff / nxr@1.5
src/external/gpl3/gcc/lib/libgomp/arch/sparc/omp.h@1.6 / diff / nxr@1.6
src/external/gpl3/gcc/lib/libobjc/arch/i386/defs.mk@1.4 / diff / nxr@1.4
src/external/gpl3/gcc/lib/libobjc/arch/sparc/defs.mk@1.4 / diff / nxr@1.4
      :
(more 32 files)
mostly mknative-gcc for i386 and sparc and gcc 7.4.

sparc gets to libstdc++, and i386 has the same libgcc issue as amd64.

(mrg)

2019-01-22 23:06:49 UTC MAIN commitmail json YAML

2019-01-22 22:22:06 UTC MAIN commitmail json YAML

2019-01-22 22:14:20 UTC MAIN commitmail json YAML

add BADPMP quirk also for AMD Hudson AHCI SATA Controller, seems in some
configurations/BIOS versions the PMP reset works, in others not; it's better
to have the common configuration working

related to PR kern/53307

(jdolecek)

2019-01-22 22:09:27 UTC MAIN commitmail json YAML

add BADPMP quirk for Intel 82801JI SATA Controller (AHCI mode), which
apparently has problem with the PMP reset

part of PR kern/53307 - Christos machine

(jdolecek)

2019-01-22 21:45:39 UTC MAIN commitmail json YAML

Enable parent clocks and de-assert resets

(jmcneill)

2019-01-22 21:38:08 UTC MAIN commitmail json YAML

2019-01-22 21:24:01 UTC pgoyette-compat commitmail json YAML

Only explicitly disable COMPAT_15, it is the only compat option that
is actually set.  The others are "pulled in" by statements in
sys/conf/files

This avoids numerous noisy but unnecessary warnings from nbconfig.

(pgoyette)

2019-01-22 20:25:45 UTC MAIN commitmail json YAML

2019-01-22 20:17:36 UTC MAIN commitmail json YAML

2019-01-22 18:39:49 UTC MAIN commitmail json YAML

Support redrawing all windows when in a msg prompt via Ctrl-l.

(martin)

2019-01-22 17:41:06 UTC MAIN commitmail json YAML

Fix build after API change

(skrll)

2019-01-22 16:36:07 UTC MAIN commitmail json YAML

2019-01-22 16:35:48 UTC MAIN commitmail json YAML

Add support for A64 and H6, and register self as a syscon

(jmcneill)

2019-01-22 15:49:26 UTC MAIN commitmail json YAML

dts updated to 4.20.3

(jmcneill)

2019-01-22 15:34:04 UTC MAIN commitmail json YAML

Fix return type of lan9118_mii_readreg

(jmcneill)

2019-01-22 15:30:57 UTC MAIN commitmail json YAML

2019-01-22 15:28:45 UTC MAIN commitmail json YAML

2019-01-22 15:22:55 UTC MAIN commitmail json YAML

Note import of dhcpcd-7.1.0

(roy)

2019-01-22 15:20:21 UTC MAIN commitmail json YAML

2019-01-22 15:17:33 UTC MAIN commitmail json YAML

Listen for PMFE_SPEED_CHANGED events and automatically update a9tmr frequency

(jmcneill)

2019-01-22 15:13:23 UTC MAIN commitmail json YAML

src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/bcm283x.dtsi@1.6 / diff / nxr@1.6
src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/exynos4412-tmu-sensor-conf.dtsi deleted
src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/exynos5420-tmu-sensor-conf.dtsi deleted
src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/mt7623n-rfb-nand.dts deleted
src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/mt7623n-rfb.dtsi deleted
src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/socfpga_cyclone5_de0_sockit.dts deleted
src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/tegra20-colibri-512.dtsi deleted
src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/tegra20-iris-512.dts deleted
src/sys/external/gpl2/dts/dist/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64.dts@1.4 / diff / nxr@1.4
src/sys/external/gpl2/dts/dist/arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi@1.5 / diff / nxr@1.5
src/sys/external/gpl2/dts/dist/arch/arm64/boot/dts/exynos/exynos5433-tmu-g3d-sensor-conf.dtsi deleted
src/sys/external/gpl2/dts/dist/arch/arm64/boot/dts/exynos/exynos5433-tmu-sensor-conf.dtsi deleted
src/sys/external/gpl2/dts/dist/arch/arm64/boot/dts/exynos/exynos7-tmu-sensor-conf.dtsi deleted
src/sys/external/gpl2/dts/dist/arch/arm64/boot/dts/xilinx/zynqmp-ep108-clk.dtsi deleted
src/sys/external/gpl2/dts/dist/arch/arm64/boot/dts/xilinx/zynqmp-ep108.dts deleted
src/sys/external/gpl2/dts/dist/include/dt-bindings/clock/exynos5440.h deleted
src/sys/external/gpl2/dts/dist/include/dt-bindings/input/linux-event-codes.h@1.7 / diff / nxr@1.7

Merge conflicts.

(jmcneill)

2019-01-22 15:02:34 UTC MAIN commitmail json YAML

2019-01-22 14:32:17 UTC MAIN commitmail json YAML

lexical analysis fixes.  This fixes the tests just committed in
src/tests/bin/sh/t_here.sh

The "magicq" magic was all wrong - it cannot be simply a parameter
to readtoken1() as its value needs to alter during that routine
(eg: when magicq is set - processing here doc text, or whatever)
and we encountered ${var%pattern} "magicq" needs to be off for
"pattern" - and it wasn't.

To handle this magicq needs to be included in the token stack struct,
and simply init'd from the arg to readtoken1 (which we rename).
Then it can be manipulated as required.

Once we no longer have that problem, some other issues can be cleaned
up as well (some of this unbelievably fragile code was attempting to
cope with this in various ad-hoc - and mostly broken - ways).

Also, remove the magicq parameter from parsebackq() - it was not
used (at all) and should never be, a command substitution, wherever
it appears, always starts a new parsing context.  How that applies
to old style command substitutions is less clear, but until we see
some real examples where we're not doing the right thing (slightly
less likely now than before ... nothing has changed here in the
way command substitutions are parsed, but quoting in general is
slightly better) I don't plan on worrying about it.

There are a couple of other minor cleanups, which make no actual
difference (like adding () around the use of the parameter in the
RETURN macro ... which is generally better, but makes no difference
here as the param is always a simple constant.

All the current ATF tests pass.

(kre)

2019-01-22 14:31:53 UTC MAIN commitmail json YAML

Add sub tests to the quoting test case, to demonstrate a parsing
bug (and its fix (depending upon whether the test is run against
an unfixed, or fixed, shell).

An obvious indication of the failure is the following (one of the
new sub-tests)

p=A
cat <<EOF
${p+\%$p\%}
${p+%$p%}
EOF

which should output

\%A\%
%A%

as a here doc is treated as a double quoted string, except
that the " character is just a character.  In such a string,
the \ is only an escape character when the following character
is special, otherwise it represents a literal \ (which is the
case here).

An unfixed shell will omit the backslashes in the output.

It gets even more wrong if the % chars are replaced by "
(double quote) chars, which should make no difference, other
than the corresponding change, in the output.  But doesn't
(it doesn't even produce output broken in a similar way).

This one is a harder case to be specific about however,
as while the fixed (and expected in the test) output is what
is technically correct, only a few shells actually produce
it, most generate something different (but not all the same.)

(kre)

2019-01-22 13:48:28 UTC MAIN commitmail json YAML

NFCI - DEBUG mode only change.

Add tracing of lexical analyser operations.  This is deliberately
kept out of the normal "all on" set as it makes a *lot* of noise
when enabled (especially in verbose mode) - but when needed, it
helps (evidence for which is coming soon).

As usual, no doc, you need the sources (and of course, a specially
built sh to even be able to enable it.)

(kre)

2019-01-22 12:45:26 UTC MAIN commitmail json YAML

Fix build with "USE_SSP" set to "yes"

(tron)

2019-01-22 12:02:05 UTC pgoyette-compat commitmail json YAML

Rather than having to track changes in GENERIC and incorporate them
into NOCOMPAT, just include GENERIC and then turn off the various
COMPAT options.

(pgoyette)

2019-01-22 11:48:31 UTC pgoyette-compat commitmail json YAML

2019-01-22 07:51:25 UTC MAIN commitmail json YAML

Fix indentation whitespace

(skrll)

2019-01-22 07:42:42 UTC pgoyette-compat commitmail json YAML

Convert the MODULE_{,VOID_}HOOK_CALL macros to do everything in-line
rather than defining an intermediate hook##call function.  Almost
all of the hooks are called only once, and although we lose the
ability of doing things like

if (MODULE_HOOK_CALL(...) == 0) ...

we simplify things quite a bit.  With this change, we no longer need
to have both declaration and definition macros, and the definition
no longer needs to have both prototype argument list and a "real"
argument list.

FWIW, the above if now needs to written as

int ret;

MODULE_HOOK_CALL(..., ret);
if (ret == 0) ...

with appropriate use of braces {}.

(pgoyette)

2019-01-22 06:47:20 UTC MAIN commitmail json YAML

2019-01-22 06:46:21 UTC MAIN commitmail json YAML