Commit Graph

270326 Commits

Author SHA1 Message Date
msaitoh 5d363c29eb Fix typo in comment. 2019-09-26 04:16:03 +00:00
christos 8e49ef1dbc Kill WARNS = 3 from all the modules that now compile cleanly. 2019-09-26 02:01:02 +00:00
christos 0de6c9f66d Limit -Wno-sign-compare to only rtsock_50.c which by virtue of including
rtsock_shared.c and using m_len is a mess to fix.
2019-09-26 02:00:27 +00:00
christos f84e75b881 - promote regs from int to u_int in comparisons with unsigned constants
- cast -1 to __greg32_t which is unsigned and the LHS.
2019-09-26 01:39:22 +00:00
christos 1dee79c2bd - "source" is u_long in the kernel (and int in userland). Cast -1 to u_long.
- make "s" unsigned since blocksize is too.
2019-09-26 01:37:52 +00:00
christos a06bace066 make nspares unsigned; it is assigned from numSpares which is unsigned. 2019-09-26 01:36:10 +00:00
christos 864734c343 subdevlen is an array length, make it unsigned 2019-09-26 01:35:08 +00:00
christos fc72d154af make nmountcompatnames unsigned (assigned from __arraycount, compared with
unsigned in compat code)
2019-09-26 01:34:16 +00:00
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