265140 Commits

Author SHA1 Message Date
pgoyette
ca7733f665 If the openat_10 hook is present and it returns success, continue with
the rest of the syscall; don't return prematurely, as we'll report
success (return value 0) but won't have set up the fd.
2019-02-05 09:34:38 +00:00
mrg
978a4e65e0 be sure to only apply zlib.c's -Wno-error=implicit-fallthrough to GCC 7.
push the setting into the rump and module version too.
2019-02-05 09:29:19 +00:00
mrg
15ae2362c8 fix the previous:
rf_netbsd32 is only relevant on _LP64 as all the structures are
the same for arm32 oabi/eabi compat.

only do it for _LP64 *and* COMAPT_NETBSD32.
2019-02-05 09:28:00 +00:00
mrg
c8794eb6f3 mknative-gcc for arm and armeb. 2019-02-05 09:21:03 +00:00
mrg
5d54618051 from the new comment:
/*
 * NetBSD/sparc64 long ago defined signed and unsigned fast{8,16,32} to be
 * different to the common sparc64 definitions, and they are not the same
 * size for the same bitsize.  GCC 7 introduced checks that they are the
 * same size below that trigger here.
 *
 * NETBSD_TOOLS/NETBSD_NATIVE is wrong for this, but it will do for now.
 */
2019-02-05 08:53:50 +00:00
pgoyette
41ead0ca12 Correctly handle the NULL path when no compat_10 code is available.
This should address kern/53948 (thanks, kamil@, for the PR and for
testing the fix)
2019-02-05 08:53:18 +00:00
mrg
a9f7df428e pass -Wno-error=implicit-fallthrough for zlib.c.
XXX: consider using copts.mk for various warning/copt flags passed
in kernel builds currently set via 'makeoptions' in files.* files.
this is suboptimal, as those all get embedded into the kernel with
config_file.h.
2019-02-05 08:33:25 +00:00
mrg
c00aebfae7 apply -O1 for ipf_y.c on m68k and GCC 7. 2019-02-05 08:08:59 +00:00
msaitoh
77e25382c8 Add Ice Lake and Tremont from the latest Intel SDM. 2019-02-05 08:07:59 +00:00
msaitoh
e0300d5465 Add new CPUID flags WAITPKG, CLDEMOTE, MOVDIRI, MOVDIR64B and
IA32_CORE_CAPABILITIES from the latest Intel SDM.
2019-02-05 08:07:19 +00:00
mrg
c63685bee2 add fallthru comments, and a comment this code needs attention 2019-02-05 08:02:19 +00:00
mrg
350b7ab60c force -O1 (unless -O0 already present) on m68k with GCC 7. avoids a
"too-far" reference in scan.c.  was already close with GCC 6.
2019-02-05 07:47:15 +00:00
mrg
4c0e259270 ignore a format truncation issue. 2019-02-05 07:45:35 +00:00
mrg
31af5ebbaa update status:
- alpha, i386, powerpc, sparc64 all seem to work too, though sparc64
  has a caveat with signed vs. unsigned "fast" integer types, and its
  ramdisk overflows.
- hppa almost works.  1 uncommited change, ramdisk overflows.
- m68k begins to work.
2019-02-05 07:43:08 +00:00
mrg
4f90b9c42a - pass correct size of buffer to snprintf() to avoid potential truncation 2019-02-05 07:27:46 +00:00
mrg
f77bc72380 add fallthru comment. 2019-02-05 07:18:52 +00:00
thorpej
99a4820ab6 In ksem_close_fop(), if we get a pshared semaphore that's not already
been marked dead, make sure we mark it so if the owner proc is the proc
closing it.  (This case can happen if a process sem_init()'s a pshared
semaphore and then exits without destroying it.)

Fixes kern/53942.
2019-02-05 07:14:32 +00:00
mrg
72517f18b7 mknative-gcc for m68k and GCC 7, also the files missed for sparc64 previously. 2019-02-05 06:46:47 +00:00
msaitoh
e9761e6a4d Remove NOTRAILERS from IFFBITS. 2019-02-05 06:43:20 +00:00
msaitoh
091e15265d Remove very old IFF_NOTRAILERS flag. 2019-02-05 06:17:00 +00:00
mrg
acfd4d5491 mark ./usr/include/g++/bits/sparc and ./usr/include/g++/bits/sparc64
subdirs as non-compat.
2019-02-05 06:14:55 +00:00
mrg
bad08472e0 add or adjust fallthru comments. 2019-02-05 06:12:39 +00:00
mrg
1e1783ce5a add missing ./usr/include/dev/hdmicec 2019-02-05 06:11:29 +00:00
mrg
b905acb3c3 add or avoid fallthru comments. 2019-02-05 06:10:53 +00:00
mrg
c9d1af0f71 adjust fallthru comments to appease gcc7. 2019-02-05 04:48:47 +00:00
mrg
3deb71eabd re-do version 1.1098 properly:
- fix OBJECT_FMTS if mips64 and !MKCOMPAT
2019-02-05 04:47:59 +00:00
mrg
820af48434 include sparc/default64.hon netbsd/sparc64. 2019-02-05 04:45:50 +00:00
mrg
845040028e remove 'common/' prefix from sources. 2019-02-05 04:45:07 +00:00
mrg
160871239b mknative-gcc for gcc7 and sparc64.
replies upon an uncommited (yet) change to not assert if the size
of unsigned and signed 'fast' integer types are not the same.
we don't have them as the same for 8, 16 and 32 bit for some reason.

otherwise seems to work.
2019-02-05 04:43:44 +00:00
kamil
9e1a0a9819 Add missing break keywords in t_ptrace_wait* x86 tests
Add missing break in switch() cases in dbregs_trap_variable().

Reported by <mrg>
Detected by GCC 7
2019-02-05 02:57:10 +00:00
pgoyette
92d3a36f58 Update compat_freebsd requirements list to use compat_09 vs compat 2019-02-05 00:40:15 +00:00
pgoyette
ffe8188160 The sunos and sunos32 modules require compat_09, not compat (the
latter no longer exists).

Should fix "missing prerequisite" errors seen during qemu boot
of sparc64's MODULAR kernel.
2019-02-05 00:32:18 +00:00
pgoyette
ea4ebbac0d It turns out we do want the puffs compat code in any kernel which
has built-in compat_50 regardless of whether the kernel also has
puffs.

Should finally fix PR kern/53943
2019-02-05 00:22:36 +00:00
jmcneill
480d8f6a98 Add support for video layer scaling and colour space conversion. 2019-02-05 00:21:35 +00:00
mrg
da4bf28d55 - use __unreachable() and move 'break's around to increase consistency
and correctness

ok kamil@
2019-02-04 22:07:41 +00:00
mrg
e8fde6bc8b update the rf / netbsd32 comment. 2019-02-04 22:00:51 +00:00
mrg
c29615453d don't assume _LP64 == supports COMPAT_NETBSD32.
this is not true for alpha, ia64 and arm32 ports, and the first two
were not building because of it, and the latter would be missing
the oabi support (likely not a big deal, but still wrong.)

add a makefile fragment that tells you if it is supported and include
it where needed to define COMPAT_NETBSD32 when building the normal
kernel (ie, modules & rump.)


fixes alpha build, probably fixes ia64 build.


XXX: still leaves some netbsd32 code in rf_netbsdkintf.c, that should
     be moved into some hooks, but first the configuration setup
     needs to be moved into a common function the netbsd32 code can
     call into, vs living in the switch case itself.
2019-02-04 21:57:47 +00:00
cherry
050f9f2d97 Bump up XEN source API compatibility to 0x00030208 from 0x00030201,
but maintain backwards source API compilation compatibility.

ie; sources with config(5)
options 	__XEN_INTERFACE_VERSION__=0x00030201 # Xen 3.1 interface

should compile and run without problems.

Not that API version 0x00030201 is the lowest version we support now.
2019-02-04 18:14:53 +00:00
maxv
612513a9ee Clobber the size when freeing a buffer. This way, if the same buffer gets
freed twice, the second size check will fire.
2019-02-04 15:13:54 +00:00
maxv
24b0ceed74 Add more symbols to the unwinder, in case we get a KASAN message inside
an exception handler.
2019-02-04 15:07:34 +00:00
wiz
df210c015d try '&' instead of '&&' 2019-02-04 14:47:41 +00:00
skrll
b109c632ba Report hatched value after the atomic_or so the VERBOSE_INIT_ARM output
doesn't get mangled.

We start a cpu and wait for it before progressing now.
2019-02-04 13:12:03 +00:00
skrll
ac62c2c55a Fix typo in VPRINTF 2019-02-04 13:08:43 +00:00
skrll
8370755b94 Trailing whitespace 2019-02-04 13:06:39 +00:00
wiz
169c18b89d Remove leading zero from date. 2019-02-04 12:18:36 +00:00
maxv
7e993595a5 Improvements:
- Guest reads/writes to PAT land in gPAT, so no need to emulate them.

 - When emulating EFER, don't advance the RIP if a fault occurs, and don't
   forget to flush the VMCB cache accordingly.
2019-02-04 12:11:18 +00:00
jmcneill
4f58e2b4c5 Add support for vblank irq and RGB overlay planes. 2019-02-04 12:10:13 +00:00
pgoyette
64733abe1a Don't include puffs_compat in a kernel unless the filesystem is
selected along with COMPAT_50.  Also, don't include puffs_compat
in the main puffs filesystem module;  it is part of the compat_50
module.

Should address PR kern/53943
2019-02-04 12:08:03 +00:00
kre
4084f829ec PR bin/53919
Suppress shell error messages while expanding $ENV (which also causes
errors while expanding $PS1 $PS2 and $PS4 to be suppressed as well).

This allows any random garbage that happens to be in ENV to not
cause noise when the shell starts (which is effectively all it did).

On a parse error (for any of those vars) we also use "" as the result,
which will be a null prompt, and avoid attempting to open any file for ENV.

This does not in any way change what happens for a correctly parsed command
substitution (either when it is executed when permitted for one of the
prompts, or when it is not (which is always for ENV)) and commands run
from those can still produce error output (but shell errors remain suppressed).
2019-02-04 11:16:41 +00:00
mrg
3035d148fb rework the #ifdef IPSEC code to not use fallthru.
same number of lines with more local context.
2019-02-04 10:48:46 +00:00