Commit Graph

273300 Commits

Author SHA1 Message Date
roy b433cf8862 route: address flags are more useful than interface flags for address msgs 2020-01-22 19:22:06 +00:00
mlelstv a7b0ae37b0 align with upstream for 64bit compatibility. 2020-01-22 19:15:49 +00:00
roy cdc408b51e route: Decode the correct flags for interface address messages 2020-01-22 17:55:41 +00:00
skrll 4a581442d1 Fixup a comment 2020-01-22 17:15:53 +00:00
ad d19a121458 Bump UBC defaults on sparc64 & aarch64, which already have a large pager_map. 2020-01-22 16:59:37 +00:00
ad e5b2948d82 Move the UBC defaults into vmparam.h 2020-01-22 16:52:46 +00:00
mgorny ac78ffd6ff Fix using gcc's unwind.h 2020-01-22 16:07:40 +00:00
mgorny 26a48dd100 Install gcc's unwind.h instead of libexecinfo's
The prototypes in libexecinfo's unwind.h do not match those commonly
used (e.g. by gcc, clang, GNU libunwind, LLVM libunwind...), causing
C++ programs to fail to build on type mismatches (e.g. compiler-rt,
libc++abi).  Rather than providing our own header, reuse the one
included in gcc.
2020-01-22 15:10:31 +00:00
thorpej c718a72d76 I overlooked the esh(4) man page when removing HIPPI support; remove it
now.  Thanks maxv@ for noticing and pointing it out.
2020-01-22 14:01:50 +00:00
ad 8e88ef3f82 - DIAGNOSTIC: check for leaked kernel_lock in mi_switch().
- Now that ci_biglock_wanted is set later, explicitly disable preemption
  while acquiring kernel_lock.  It was blocked in a roundabout way
  previously.

Reported-by: syzbot+43111d810160fb4b978b@syzkaller.appspotmail.com
Reported-by: syzbot+f5b871bd00089bf97286@syzkaller.appspotmail.com
Reported-by: syzbot+cd1f15eee5b1b6d20078@syzkaller.appspotmail.com
Reported-by: syzbot+fb945a331dabd0b6ba9e@syzkaller.appspotmail.com
Reported-by: syzbot+53a0c2342b361db25240@syzkaller.appspotmail.com
Reported-by: syzbot+552222a952814dede7d1@syzkaller.appspotmail.com
Reported-by: syzbot+c7104a72172b0f9093a4@syzkaller.appspotmail.com
Reported-by: syzbot+efbd30c6ca0f7d8440e8@syzkaller.appspotmail.com
Reported-by: syzbot+330a421bd46794d8b750@syzkaller.appspotmail.com
2020-01-22 13:19:33 +00:00
ad 41d7da0e5e Add a comment. 2020-01-22 12:44:54 +00:00
skrll fcb8be3594 #ifdef whack-a-mole for the pmap_maxproc_set functionality 2020-01-22 12:23:12 +00:00
ad 20f33b0230 Catch a leaked hold of kernel_lock sooner with DIAGNOSTIC and make the
message a bit more informative.
2020-01-22 12:23:04 +00:00
jmcneill 4e19d93e81 Write pbdma timeout regs during initialisation on GK208B, GK208, and GM107.
Based on the following upstream commit:
79bb4b617f
2020-01-22 11:38:54 +00:00
skrll b99dfc1784 Oops, the cast is required 2020-01-22 10:52:35 +00:00
uwe 10180bec9c Switch powerpc back to GCC 7 until we fix alloca() PR port-macppc/54827
ok mrg@
2020-01-22 08:32:33 +00:00
jmcneill 84160ba1d4 Fix PHYS_TO_BUS_MEM and BUS_MEM_TO_PHYS on arm and aarch64 2020-01-22 07:53:45 +00:00
mrg 4ea65bdb69 save the new current level when set by the user.
stops PBP display from going back to default brightness after
dpms, etc.

ok jmcneill.
2020-01-22 07:29:23 +00:00
martin e7acfd1971 Clamp FAT partition size to 32 bit byte offsets to make the code small
enough to fit.
2020-01-22 06:13:18 +00:00
martin 39cd2eeea8 To support big partitions we need to make sure all byte offsets are calculated
in 64 bit arithmetic. Pointed out by Rob Newberry.
Unfortunately this causes a code size increase breaking some boot blocks,
so conditionalize it and use 32 bit arithmetic if SA_DOSFS_NO_BIG_PART_SUPPORT
is defined.
2020-01-22 06:11:28 +00:00
thorpej 9c0a409d68 Static'ify. 2020-01-22 03:48:10 +00:00
msaitoh 7a3531b65f Remove unused shift and mask definitions. 2020-01-22 02:51:38 +00:00
sjg 438d096b56 meta.c: report OODATE value if not empty
When a target is out-of-date per normal make rules
.OODATE will be non-empty, report this in .meta file
to help clarify why target was updated.
2020-01-22 00:26:45 +00:00
ad 193a0504a9 NetBSD 9.99.41 - struct lwp changed for LOCKDEBUG 2020-01-21 22:08:41 +00:00
ad 090ebf9cc8 uvmpdpol_pageactive(): the change to not re-activate recently activated
pages worked great with uvm_pageqlock, but it doesn't buy anything any more,
because now the busy pages are likely in a per-CPU queue somewhere waiting
to be processed, and changing the intent on those queued pages costs next
to nothing.  Remove this and get back all the bits in pg->pqflags.
2020-01-21 20:37:06 +00:00
ad a4da18db9d ddb's "show all locks":
- Make the output easier to scan quickly.

- Show every LWP that is blocked on a lock, and the details of the lock.
2020-01-21 20:31:57 +00:00
ad 85e6de746e Add a rw_owner_running() for the pagedaemon. 2020-01-21 20:29:51 +00:00
martin ce6562a91d Deal with even stranger fictious empty disklabels (PR kern/54882). 2020-01-21 20:04:30 +00:00
christos eb89610755 Fix printf formats in tests for the clang build. 2020-01-21 18:33:47 +00:00
kamil 7c40686451 Add new ATF tests in t_ptrace_wait*
New tests:
 - access_regs_set_unaligned_pc_0x1
 - access_regs_set_unaligned_pc_0x3
 - access_regs_set_unaligned_pc_0x7

The purpose of these tests is check whether unaligned PC can panic the
kernel. If there is a panic it is fine to return EINVAL on PT_SETREGS.
New tests check respectively pc |= 0x1, pc |= 0x3 and pc |= 0x7.

Inspired by https://marc.info/?l=openbsd-bugs&m=107558043319084&w=2

While there fix access_regs6 to really test PT_SETREGS.
2020-01-21 16:46:07 +00:00
tkusumi 67de4a9395 dm: #if0 target's ->upcall() handler
This is part of NetBSD's dm design, but unimplemented
(all handlers return 0) and also unused.
2020-01-21 16:27:53 +00:00
christos 4b5571e4a3 oops, undo this (committed accidentally) 2020-01-21 15:26:36 +00:00
christos 81e23aba9b Don't crash if we are on a hippie trail, head full of zombie 2020-01-21 15:25:38 +00:00
mlelstv 1e89c63a0f Was too slight a bump. 2020-01-21 14:58:58 +00:00
msaitoh e9ddeea551 Fix the freeing code for some error paths. Found and tested by Patrick Welche. 2020-01-21 14:55:55 +00:00
martin 85760d7e91 Bump image size slightly 2020-01-21 11:48:10 +00:00
jmcneill d0ba3bb8a0 Choose between dmat and dmat64, instead of relying on subregion of the 32-bit tag 2020-01-21 11:29:17 +00:00
jmcneill a496d771a8 Provide a properly constrained 32-bit DMA tag to ACPI. 2020-01-21 11:24:47 +00:00
jmcneill 5e83bb186f Switch aarch64 to use a single freelist. 2020-01-21 10:54:11 +00:00
msaitoh d2b5404b02 Add Intel I219 LM10-LM15 and V10-V14 from OpenBSD. 2020-01-21 08:50:54 +00:00
msaitoh fb1eb27483 Regen. 2020-01-21 08:50:19 +00:00
msaitoh 7643c78a9e Add Intel I219 LM10-LM15 and V10-V14 from OpenBSD. 2020-01-21 08:49:31 +00:00
wiz b99eb4b31d Use standard Dd format. Remove superfluous Pp 2020-01-21 07:57:49 +00:00
wiz 6e6411c310 Remove superfluous Pp. 2020-01-21 07:53:51 +00:00
mrg 02b08f1785 hide disklabel_non_bootable() under NO_DISKLABEL_BOOT like the usage.
should fix most builds.
2020-01-21 06:44:40 +00:00
skrll 304903570a Sort a bit 2020-01-21 05:05:22 +00:00
skrll b3ca445da0 Trailing whitespace 2020-01-21 05:02:55 +00:00
skrll 3d868f8106 Remove unnecessary cast 2020-01-21 04:59:47 +00:00
skrll c910979512 Small re-org. NFCI. 2020-01-21 04:54:11 +00:00
thorpej 257c00ba42 Update for changes to <sys/rwlock.h> -- owner field is now bits 5-N. 2020-01-21 04:30:14 +00:00