270518 Commits

Author SHA1 Message Date
christos
3138343282 use size_t for counters (which are compared and set with unsigneds) 2019-09-26 01:32:09 +00:00
christos
8ee34099a7 accrightslen should be u_int for compat too 2019-09-26 01:30:46 +00:00
christos
0fff779d52 make the ?: expression types match 2019-09-26 01:30:00 +00:00
christos
dbc229020c accrightslen is always used in an unsigned context so make it. 2019-09-26 01:29:00 +00:00
christos
535ba13aa8 fix sign-compare issues. 2019-09-26 01:28:27 +00:00
abs
039df638d6 Switch default console tty from /dev/console to /dev/constty
With this switch processes (such as xconsole) can open /dev/console
without breaking login on the text or serial console. This can be
trivially triggered by enabling xdm in rc.conf and hitting
Ctrl+Alt+F1 or equivalent once booted.

The changes:
- Add entry for /dev/console or /dev/constty if missing
- If a port's had /dev/console 'on' switch it off and enable /dev/constty
- If a port did not have /dev/console 'on', leave /dev/constty off

Some ports had /dev/console off and /dev/ttyE0 enabled, presumably to
avoid just this issue. It may make sense to adjust these also (but not
in this pass)

As discussed on current-users
2019-09-25 23:09:19 +00:00
christos
b2a6d3cca7 avoid signed-compare warning; use uintmax_t to print. 2019-09-25 21:40:42 +00:00
christos
ed9ca5deea teach hijack about the new vfs syscalls 2019-09-25 20:19:59 +00:00
sevan
11f59b6878 SDR 2019-09-25 20:17:59 +00:00
jnemeth
71f9a826d1 PR/54572 - Edgar Fuß -- error in comment 2019-09-25 19:06:30 +00:00
skrll
7fcc8da53e Add BCM2838_{PERIPHERALS,ARM_LOCAL}_BASE and support macros 2019-09-25 18:05:39 +00:00
skrll
586dde2b6f s/2835/283X/ in BCM2835_PERIPHERALS_BASE_BUS and BCM2835_PERIPHERALS_SIZE
to show they cover all of 283[5678]

NFCI
2019-09-25 18:01:03 +00:00
skrll
9047d4ec1f Sprinkle KASSERTs 2019-09-25 16:57:10 +00:00
skrll
8350f14a69 Sprinkle static 2019-09-25 16:50:28 +00:00
skrll
2b81bd062a KNF 2019-09-25 16:49:37 +00:00
skrll
77e72270d0 Whitespace 2019-09-25 16:48:06 +00:00
christos
e613c37a50 Regen 2019-09-25 16:44:42 +00:00
skrll
464103560e Convert a __CTASSERT into a KASSERT as L1_S_CACHE_MASK may not be a
compile time constant if ARM_NMMUS > 1
2019-09-25 16:37:54 +00:00
mlelstv
91d113c0ba Use correct function to verify if a task has been queued. Avoids race
that can corrupt the task queue.
2019-09-25 16:21:14 +00:00
maya
6b30f2aace Make clang -Wformat-security happier by not passing a (constant) variable
as the format string,
    const string msg; printf(msg)
      -> printf("%s", msg);

the strings are all known and don't currently contain format variables.
2019-09-25 15:51:37 +00:00
ozaki-r
760452d22f Make panic messages more informative 2019-09-25 09:53:37 +00:00
ozaki-r
042d1b5f86 Initialize DAD components properly
The original code initialized each component in non-init functions such as
arp_dad_start and nd6_dad_find, conditionally based on a global flag for each.
However, it was racy because the flag and the code around it were not
protected by a lock and could cause a kernel panic at worst.

Fix the issue by initializing the components in bootup as usual.
2019-09-25 09:52:32 +00:00
maya
146714e767 Adjust .PATH 2019-09-24 21:33:48 +00:00
kamil
2bb9aadb1b Add missing ; 2019-09-24 21:03:29 +00:00
kamil
6d130c780a Add a bunch of meta files from git and hg to ignore from CVS imports
This will allow interop of src/ with git and hg without malforming repos.
2019-09-24 21:01:50 +00:00
maya
c514a92678 Updated mesa. 2019-09-24 19:50:49 +00:00
maya
8f9881e2e6 Update build logic for mesa 19.1.7.
A lot of files are now living outside of dist, since they're not in the
distributed sources: they're generated, usually by python/meson.

The remaining changes are due to files being moved around.
2019-09-24 19:29:41 +00:00
kamil
6f22d54e25 Add a temporary ctassert checking whether void* and intptr_t are compatible 2019-09-24 19:21:45 +00:00
maya
f8483c1cb1 Unless we add --sysroot, the netbsd src tree headers won't be used.
Do so, so we don't rely on the build machine to have <endian.h> for
this macro check.

Using ${CPPFLAGS} rather than my own encoding of --sysroot, since it
already includes it.

Tested by agc, thanks.
2019-09-24 19:19:49 +00:00
maya
33a768ce2e Ignore our default core file pattern rather than one of another system.
"core" shows up as a path sometimes.
2019-09-24 17:23:06 +00:00
jmcneill
71f7012acf Use correct #cells for parent address when decoding ranges 2019-09-24 15:23:34 +00:00
msaitoh
51569a1b71 Use IFM_50G_SR2. 2019-09-24 14:39:38 +00:00
maya
631bfe425c Avoid duplicate PRIxBUSADDR and follow the likely intention, providing PRIxBSH. 2019-09-24 14:26:32 +00:00
nakayama
09498a8d06 Add ${DEST_DIR} prefix to check target directory not host directory. 2019-09-24 13:27:39 +00:00
wiz
e78f83e1ff Merge single letter options in usage. 2019-09-24 11:31:06 +00:00
mlelstv
b1d2823e9e Remove debug printf. 2019-09-24 04:56:54 +00:00
manu
7986086211 Fix multiboot32 argument usage 2019-09-24 00:47:46 +00:00
kamil
fb9540262a Remove __noubsan from in6_clearscope()
The alignment issues for x86 should be handled by
 - src/sys/arch/amd64/include/types.h r. 1.62 and
 - src/sys/arch/i386/include/types.h r. 1.90
2019-09-23 23:12:47 +00:00
kamil
00ccc35339 Disable __NO_STRICT_ALIGNMENT on amd64/i386 for UBSan builds
This change allows to pick code paths in the kernel that are tuned for
alignment sensitive (and stricted in C meaning) code paths. In particular
the IPv6 code uses this heavily and skips whenever possible the process
of aligning of networking data.

With this modification all ATF tests are executed on amd64 without
triggering any UBSan reports in dmesg.

In theory __NO_STRICT_ALIGNMENT could be tuned for vax and m68k, however
these machines are still unsupported in LLVM sanitizers and syzkaller.

sys/netinet6/scope6.c:404:6, member access within misaligned address 0xfffffaea81276086 for type 'struct in6_addr' which requires 4 byte alignment
Reported-by: syzbot+a86f58d17685317b3df9@syzkaller.appspotmail.com

sys/net/rtsock_shared.c:629:41, member access within misaligned address 0xffffddb5db3ff04c for type 'struct rt_msghdr50' which requires 8 byte alignment
Reported-by: syzbot+0a3a022bc9d2b8880c16@syzkaller.appspotmail.com
2019-09-23 23:06:26 +00:00
christos
b62989c976 make this compile again. 2019-09-23 21:07:50 +00:00
christos
e7aab04a49 make this compile again 2019-09-23 21:07:39 +00:00
christos
1950b329f4 Treat valsize as unsigned 2019-09-23 20:42:29 +00:00
christos
4640ae90fa Add missing break 2019-09-23 20:38:27 +00:00
mrg
be571cf8e9 add -z flag to intrctl list, which elides all-zero rows. 2019-09-23 20:15:31 +00:00
wiz
2f5074a348 New sentence, new line. 2019-09-23 18:43:59 +00:00
jmcneill
fc0d064c28 mcx(4) will appear in 9.0 2019-09-23 18:26:52 +00:00
skrll
01e9893f42 Use "segmap" for uvm_wait message in pmap_segtab_alloc 2019-09-23 18:20:07 +00:00
christos
accd2f2682 lint is not smart enough to figure out that ilog2() is constant. 2019-09-23 18:17:03 +00:00
christos
7790b32131 PR/54564: Jan Schaumann: cp of a fifo yields an empty file
Don't short-circuit 0 sized stat entries if they don't belong to regular files.
Also don't try to mmap non-regular files.
2019-09-23 18:01:09 +00:00
maxv
d70226e1b8 Move the timeout check out of the loop, otherwise it is never reached.
Found by the lgtm bot.
2019-09-23 17:37:04 +00:00