vm_fault_copy_entry: accept invalid source pages.
Either msync(MS_INVALIDATE) or the object unlock during vnode
truncation can expose invalid pages backing wired entries. Accept
them, but do not install them into destrination pmap. We must create
copied pages in the copy case, because e.g. vm_object_unwire() expects
that the entry is fully backed.
Reported by: syzkaller, via emaste
Reported by: syzbot+514d40ce757a3f8b15bc at syzkaller.appspotmail.com
Reviewed by: markj
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D19615
wip/termbox: import termbox-1.1.2
Termbox is a library that provides minimalistic API which allows the
programmer to write text-based user interfaces.
It is based on a very simple abstraction. The main idea is viewing
terminals as a table of fixed-size cells and input being a stream of
The model is inspired by the windows console API.
The abstraction itself is not perfect and it may create problems in
certain areas. The most sensitive ones are copy & pasting and wide
characters (mostly Chinese, Japanese, Korean (CJK) characters).
When it comes to copy & pasting, the notion of cells is not really
compatible with the idea of text. And CJK runes often require more
than one cell to display them nicely.
Termbox is aimed at pseudo-graphical user interfaces.
Back out suggested fix to ship args to scripts.
It was not accepted upstream; use "$@" in the script section to ship args.
We'll see if a documentation improvement can be suggested instead.
Merge remote-tracking branch 'origin/hardened/11-stable/master' into
MFC r34505: freebsd-update: restore old exit code when no updates are available locally
[clang-tidy] Parallelize clang-tidy-diff.py
This patch has 2 rationales:
- large patches lead to long command lines and often cause max command line length
restrictions imposed by OS;
- clang-tidy runs on modified files are independent and can be done in parallel, the same
as done for run-clang-tidy.
Differential Revision: https://reviews.llvm.org/D57662
[X86] Remove X86 specific dag nodes for RDTSC/RDTSCP/RDPMC. NFCI
This patch removes the following dag node opcodes from namespace X86ISD:
The logic that expands RDTSC/RDPMC/XGETBV intrinsics is basically the same. The
only differences are:
RDTSC/RDTSCP don't implicitly read ECX.
RDTSCP also implicitly writes ECX.
I moved the common expansion logic into a helper function with the goal to get
rid of code repetition. That helper is now used for the expansion of
No functional change intended.
Differential Revision: https://reviews.llvm.org/D59547
math/cocoalib: create port
CoCoALib is a C++ library for Computations in Commutative Algebra,
focused mainly on polynomial rings, ideals, Groebner basis and
Submitted by: Lorenzo Salvadore <phascolarctos at protonmail.ch>
Add geomean summary row to output from utils/compare.py.
This change adds a summary row with the geometric mean of the selected
metric to the output of utils/compare.py. The 'rhs' values are
normalized to the 'lhs' values and the geometric mean of the results
This should be similar to the geomean row in the LNT HTML UI and allow
to compare 2 sets of runs.
Reviewers: anemet, MatzeB, cmatthews, serge-sans-paille
Reviewed By: anemet
Differential Revision: https://reviews.llvm.org/D57828