Author: markj
Date: Fri Dec 27 23:19:21 2019
New Revision: 356139
URL: https://svnweb.freebsd.org/changeset/base/356139
Log:
Remove some stale comments from the page allocator.
Since r352110 the page lock is not required to wire pages in any
context.
Modified:
head/sys/vm/vm_page.c
Mo
Author: markj
Date: Sat Dec 28 19:03:17 2019
New Revision: 356154
URL: https://svnweb.freebsd.org/changeset/base/356154
Log:
Don't update per-page activation counts in the swapout code.
This avoids duplicating the work of the page daemon's active queue scan.
Moreover, this duplication was
Author: markj
Date: Sat Dec 28 19:03:46 2019
New Revision: 356156
URL: https://svnweb.freebsd.org/changeset/base/356156
Log:
Generalize lazy dequeue logic for wired pages.
Some recent work aims to remove the use of the page lock for
synchronizing updates to page queue state. This change
Author: markj
Date: Sat Dec 28 19:04:29 2019
New Revision: 356159
URL: https://svnweb.freebsd.org/changeset/base/356159
Log:
Remove some unused functions.
The previous series of patches orphaned some vm_page functions, so
remove them.
Reviewed by: dougm, kib
Sponsored by: Netflix,
Author: markj
Date: Sat Dec 28 19:04:15 2019
New Revision: 356158
URL: https://svnweb.freebsd.org/changeset/base/356158
Log:
Update the vm_page.h block comment to reflect recent changes.
Explain the new locking rules for per-page queue state updates.
Reviewed by: jeff, kib
Sponsored
Author: markj
Date: Sat Dec 28 19:03:32 2019
New Revision: 356155
URL: https://svnweb.freebsd.org/changeset/base/356155
Log:
Start implementing queue state updates using fcmpset loops.
This is in preparation for eliminating the use of the vm_page lock for
protecting queue state operations
Author: markj
Date: Sat Dec 28 19:04:00 2019
New Revision: 356157
URL: https://svnweb.freebsd.org/changeset/base/356157
Log:
Remove page locking for queue operations.
With the previous reviews, the page lock is no longer required in order
to perform queue operations on a page. It is also
Author: markj
Date: Sun Dec 29 15:39:43 2019
New Revision: 356173
URL: https://svnweb.freebsd.org/changeset/base/356173
Log:
Clear queue op flags in vm_page_mvqueue().
This fixes a regression in r356155, introduced at the last minute. In
particular, we must clear PGA_REQUEUE_HEAD before
On Sun, Dec 29, 2019 at 03:39:55AM +0100, Oliver Pinter wrote:
> Is there any performance measurement from before and after. It would be
> nice to see them.
I did not do extensive benchmarking. The aim of the patch set was
simply to remove the use of the hashed page lock, since it shows up
promin
Author: markj
Date: Sun Dec 29 20:01:03 2019
New Revision: 356183
URL: https://svnweb.freebsd.org/changeset/base/356183
Log:
Restore a vm_page_wired() check in vm_page_mvqueue() after r356156.
We now set PGA_DEQUEUE on a managed page when it is wired after
allocation, and vm_page_mvqueue(
Author: markj
Date: Sun Dec 29 20:57:49 2019
New Revision: 356184
URL: https://svnweb.freebsd.org/changeset/base/356184
Log:
powerd(8): Fix a memory leak when we fail to read frequency levels.
PR: 242967
Submitted by: Hans Christian Woithe
MFC after:3 days
Modified:
he
Author: markj
Date: Sun Dec 29 21:46:00 2019
New Revision: 356186
URL: https://svnweb.freebsd.org/changeset/base/356186
Log:
Add ARMv8 static relocation types used for control flow instructions.
MFC after:1 week
Sponsored by: The FreeBSD Foundation
Modified:
head/sys/sys/elf_common
Author: markj
Date: Sun Dec 29 21:46:50 2019
New Revision: 356187
URL: https://svnweb.freebsd.org/changeset/base/356187
Log:
Add libdtrace support for arm64 USDT probes.
arm64 is still lacking a fasttrap implementation, which is required to
actually enable userland probes, but this at lea
Author: markj
Date: Thu Jan 2 19:26:04 2020
New Revision: 356280
URL: https://svnweb.freebsd.org/changeset/base/356280
Log:
Clear queue operation flags when migrating a page to another queue.
The page daemon loops may move pages back to the active queue if
references are detected. In th
Author: markj
Date: Thu Jan 2 19:29:14 2020
New Revision: 356281
URL: https://svnweb.freebsd.org/changeset/base/356281
Log:
Remove set_page_dirty_lock().
Its use of the page lock is incorrect, and it is not used by the DRM
modules.
Reviewed by: hselasky
MFC after:2 weeks
Di
Author: markj
Date: Fri Jan 3 17:03:10 2020
New Revision: 356321
URL: https://svnweb.freebsd.org/changeset/base/356321
Log:
Take the ifnet's address lock in igmp_v3_cancel_link_timers().
inm_rele_locked() may remove the multicast address associated with inm.
Reported by: syzbot+871c5
Author: markj
Date: Fri Jan 3 18:48:53 2020
New Revision: 356326
URL: https://svnweb.freebsd.org/changeset/base/356326
Log:
Fix a page leak in the md(4) swap I/O path.
r356147 removed a vm_page_activate() call, but this is required to
ensure that pages end up in the page queues in the fi
Author: markj
Date: Tue Jan 7 15:59:02 2020
New Revision: 356442
URL: https://svnweb.freebsd.org/changeset/base/356442
Log:
Consistently use pmap_t instead of struct pmap *.
MFC after:3 days
Sponsored by: The FreeBSD Foundation
Modified:
head/sys/i386/i386/pmap.c
Modified: head/s
Author: markj
Date: Tue Jan 7 15:59:31 2020
New Revision: 356443
URL: https://svnweb.freebsd.org/changeset/base/356443
Log:
Define a unified pmap structure for i386.
The overloading of struct pmap for PAE and non-PAE pmaps results in
three distinct layouts for the structure, which is emb
Author: markj
Date: Tue Jan 7 16:07:30 2020
New Revision: 356445
URL: https://svnweb.freebsd.org/changeset/base/356445
Log:
Decrease logging severity when adding a device or reading config table.
In PR 243056 a user reports some spam from smartpqi(4). In particular,
the driver warns abo
Author: markj
Date: Tue Jan 7 21:44:27 2020
New Revision: 356476
URL: https://svnweb.freebsd.org/changeset/base/356476
Log:
libjail: Handle an error from reallocarray() when trimming the buffer.
There is no API guarantee that realloc() will not fail when the buffer
is shrinking. Handle
Author: markj
Date: Tue Jan 7 21:56:20 2020
New Revision: 356477
URL: https://svnweb.freebsd.org/changeset/base/356477
Log:
Use a deterministic hash for USDT symbol names.
Previously libdtrace used ftok(3), which hashes the inode number of the
input object file. To increase reproducibil
Author: markj
Date: Wed Jan 8 16:57:08 2020
New Revision: 356494
URL: https://svnweb.freebsd.org/changeset/base/356494
Log:
linprocfs: Fix some bugs in the maps file implementation.
- Export the offset into the backing object, not the object size.
- Fix a bug where we would print the pre
Author: markj
Date: Thu Jan 9 14:58:41 2020
New Revision: 356554
URL: https://svnweb.freebsd.org/changeset/base/356554
Log:
lagg: Further cleanup of the rr_limit option.
Add an option flag so that arbitrary updates to a lagg's configuration
do not clear sc_stride. Preseve compatibility
Author: markj
Date: Thu Jan 9 15:02:48 2020
New Revision: 356555
URL: https://svnweb.freebsd.org/changeset/base/356555
Log:
Change malloc_domain() to return the allocation size to the caller.
Otherwise the malloc type accounting in malloc_domainset(9) is wrong
after r355203.
Reviewe
Author: markj
Date: Thu Jan 9 19:17:42 2020
New Revision: 356563
URL: https://svnweb.freebsd.org/changeset/base/356563
Log:
UMA: Don't destroy zones after the system shutdown process starts.
Some kernel subsystems, notably ZFS, will destroy UMA zones from a
shutdown eventhandler. This c
Author: markj
Date: Thu Jan 9 20:49:26 2020
New Revision: 356569
URL: https://svnweb.freebsd.org/changeset/base/356569
Log:
libc: Fix a few bugs in the xlocale collation code.
- Fix checks for mmap() failures. [1]
- Set the "map" and "maplen" fields of struct xlocale_collate so that
Author: markj
Date: Mon Jan 13 18:29:47 2020
New Revision: 356695
URL: https://svnweb.freebsd.org/changeset/base/356695
Log:
Optimize diff -q.
Once we know whether the files differ, we don't need to do any further
work.
PR: 242828
Submitted by: fehmi noyan isi (original
Author: markj
Date: Tue Jan 14 15:35:03 2020
New Revision: 356731
URL: https://svnweb.freebsd.org/changeset/base/356731
Log:
Do not skip line-by-line comparison if -q and -I are specified.
This fixes a regression from r356695.
Submitted by: kevans
Reported by: Jenkins via lwhsu
MF
On Tue, Jan 14, 2020 at 08:05:21AM -0600, Kyle Evans wrote:
> On Tue, Jan 14, 2020 at 6:12 AM Li-Wen Hsu wrote:
> >
> > On Tue, Jan 14, 2020 at 2:29 AM Mark Johnston wrote:
> > >
> > > Author: markj
> > > Date: Mon Jan 13 18:29:47 2020
&
Author: markj
Date: Wed Jan 15 15:31:35 2020
New Revision: 356760
URL: https://svnweb.freebsd.org/changeset/base/356760
Log:
Handle a NULL thread pointer in linux_close_file().
This can happen if a file is closed during unix socket GC. The same bug
was fixed for devfs descriptors in r228
Author: markj
Date: Tue Jan 21 17:28:36 2020
New Revision: 356946
URL: https://svnweb.freebsd.org/changeset/base/356946
Log:
Regen.
MFC after:2 weeks
Sponsored by: The FreeBSD Foundation
Modified:
head/sys/amd64/linux32/linux32_proto.h
head/sys/amd64/linux32/linux32_systrace_args
Author: markj
Date: Tue Jan 21 17:28:22 2020
New Revision: 356945
URL: https://svnweb.freebsd.org/changeset/base/356945
Log:
Fix 64-bit syscall argument fetching in 32-bit Linux syscall handlers.
The Linux32 system call argument fetcher places each argument (passed in
registers in the Lin
Author: markj
Date: Tue Jan 21 17:45:49 2020
New Revision: 356947
URL: https://svnweb.freebsd.org/changeset/base/356947
Log:
Add relocation handling required for -zifunc-noplt to work on arm64.
Static relocations for the immediate operand of a branch instruction
must be applied.
In a
On Wed, Jan 22, 2020 at 06:10:41AM +, Gleb Smirnoff wrote:
> Author: glebius
> Date: Wed Jan 22 06:10:41 2020
> New Revision: 356983
> URL: https://svnweb.freebsd.org/changeset/base/356983
>
> Log:
> Make in_pcbladdr() require network epoch entered by its callers. Together
> with this wid
Author: markj
Date: Thu Jan 23 16:07:27 2020
New Revision: 357048
URL: https://svnweb.freebsd.org/changeset/base/357048
Log:
arm64: Don't enable interrupts in init_secondary().
Doing so can cause deadlocks or panics during boot, if an interrupt
handler accesses uninitialized per-CPU sched
Author: markj
Date: Thu Jan 23 16:10:38 2020
New Revision: 357049
URL: https://svnweb.freebsd.org/changeset/base/357049
Log:
Print missing ID_AA64PFR{0,1}_EL1 register fields.
MFC after:1 week
Sponsored by: The FreeBSD Foundation
Differential Revision:https://reviews.freebsd
Author: markj
Date: Thu Jan 23 16:24:51 2020
New Revision: 357050
URL: https://svnweb.freebsd.org/changeset/base/357050
Log:
Set td_oncpu before dropping the thread lock during a switch.
After r355784 we no longer hold a thread's thread lock when switching it
out. Preserve the previous s
Author: markj
Date: Thu Jan 23 16:45:10 2020
New Revision: 357052
URL: https://svnweb.freebsd.org/changeset/base/357052
Log:
vm_map_submap(): Avoid unnecessary clipping.
A submap can only be created from an entry spanning the entire request
range. In particular, if vm_map_lookup_entry()
Author: markj
Date: Thu Jan 23 16:45:48 2020
New Revision: 357053
URL: https://svnweb.freebsd.org/changeset/base/357053
Log:
ng_nat: Pass IPv6 packets through.
ng_nat implements NAT for IPv4 traffic only. When connected to an
ng_ether node it erroneously handled IPv6 packets as well.
Author: markj
Date: Thu Jan 23 17:18:58 2020
New Revision: 357055
URL: https://svnweb.freebsd.org/changeset/base/357055
Log:
sparc64: Busy the TSB page before freeing it in pmap_release().
This is now required by vm_page_free().
PR: 243534
Reported and tested by: Michael Reim
On Thu, Jan 23, 2020 at 08:22:55AM -1000, Jeff Roberson wrote:
> On Thu, 23 Jan 2020, Mark Johnston wrote:
>
> > Author: markj
> > Date: Thu Jan 23 17:18:58 2020
> > New Revision: 357055
> > URL: https://svnweb.freebsd.org/changeset/base/357055
> >
> > L
Author: markj
Date: Fri Jan 24 14:58:02 2020
New Revision: 357081
URL: https://svnweb.freebsd.org/changeset/base/357081
Log:
Revert r357050.
It seems to have introduced a couple of regressions.
Reported by: cy, pho
Modified:
head/sys/kern/sched_ule.c
Modified: head/sys/kern/sched_
On Fri, Jan 24, 2020 at 05:24:03PM +, Gleb Smirnoff wrote:
> Author: glebius
> Date: Fri Jan 24 17:24:02 2020
> New Revision: 357090
> URL: https://svnweb.freebsd.org/changeset/base/357090
>
> Log:
> re(4) uses taskqueue to process input packets. Enter network epoch
> in there.
ena(4) an
Author: markj
Date: Fri Jan 31 15:43:33 2020
New Revision: 357334
URL: https://svnweb.freebsd.org/changeset/base/357334
Log:
Reimplement stack capture of running threads on i386 and amd64.
After r355784 the td_oncpu field is no longer synchronized by the thread
lock, so the stack capture
Author: markj
Date: Sat Feb 1 18:23:51 2020
New Revision: 357374
URL: https://svnweb.freebsd.org/changeset/base/357374
Log:
Remove a couple of lingering usages of the page lock.
Update vm_page_scan_contig() and vm_page_reclaim_run() to stop using
vm_page_change_lock(). It has no use aft
Author: markj
Date: Mon Feb 3 16:41:40 2020
New Revision: 357450
URL: https://svnweb.freebsd.org/changeset/base/357450
Log:
addr2line: Cache CU DIEs upon a successful address lookup.
Previously, addr2line would sequentially search all CUs for each input
address. For some uses, notably s
Author: markj
Date: Mon Feb 3 18:22:59 2020
New Revision: 357457
URL: https://svnweb.freebsd.org/changeset/base/357457
Log:
Provide a single implementation for each of the arm64 atomic(9) ops.
Parameterize the macros by type width as well as acq/rel semantics.
This makes modifying the im
Author: markj
Date: Mon Feb 3 18:23:14 2020
New Revision: 357458
URL: https://svnweb.freebsd.org/changeset/base/357458
Log:
Add wrappers for arm64 atomics.
Add a _llsc suffix for the existing LL/SC-based implementations and add
trivial wrappers. This is in preparation for supporting LSE
Author: markj
Date: Mon Feb 3 18:23:35 2020
New Revision: 357459
URL: https://svnweb.freebsd.org/changeset/base/357459
Log:
Add LSE-based atomic(9) implementations.
These make use of the cas*, ld* and swp instructions added in ARMv8.1.
Testing shows them to be significantly more performa
Author: markj
Date: Mon Feb 3 18:23:50 2020
New Revision: 357460
URL: https://svnweb.freebsd.org/changeset/base/357460
Log:
Dynamically select LSE-based atomic(9)s on arm64.
Once all CPUs are online, determine if they all support LSE atomics and
set lse_supported to indicate this. For n
Author: markj
Date: Mon Feb 3 19:08:35 2020
New Revision: 357462
URL: https://svnweb.freebsd.org/changeset/base/357462
Log:
addr2line: Avoid a name collision.
The RB_ macros define functions with a parameter named head, and gcc
warns about this.
MFC with: r357450
Modified:
he
Author: markj
Date: Mon Feb 3 19:29:02 2020
New Revision: 357463
URL: https://svnweb.freebsd.org/changeset/base/357463
Log:
Disable the smallest UMA bucket size on 32-bit platforms.
With r357314, sizeof(struct uma_bucket) grew to 16 bytes on 32-bit
platforms, so BUCKET_SIZE(4) is 0. Thi
Author: markj
Date: Mon Feb 3 22:49:05 2020
New Revision: 357473
URL: https://svnweb.freebsd.org/changeset/base/357473
Log:
Fix the !SMP case in sched_add() after r355779.
If the thread's lock is already that of the runqueue, don't recurse on
the queue lock.
Reviewed by: jeff, kib
Author: markj
Date: Tue Feb 4 20:00:45 2020
New Revision: 357525
URL: https://svnweb.freebsd.org/changeset/base/357525
Log:
Correct the malloc tag used when freeing the temporary semop(2) buffer.
MFC after:1 week
Sponsored by: The FreeBSD Foundation
Modified:
head/sys/kern/sysv_se
Author: markj
Date: Tue Feb 4 21:14:34 2020
New Revision: 357531
URL: https://svnweb.freebsd.org/changeset/base/357531
Log:
libdwarf: Remove unnecessary NULL checks.
All callers of _dwarf_add_expr() and _dwarf_expr_into_block() pass a
non-NULL expr pointer, and these functions assume tha
Author: markj
Date: Tue Feb 4 21:14:53 2020
New Revision: 357532
URL: https://svnweb.freebsd.org/changeset/base/357532
Log:
libdwarf: Fix a possible memory leak in dwarf_add_AT_location_expr().
CID: 1193364
MFC after:1 week
Sponsored by: The FreeBSD Foundation
Modified:
Author: markj
Date: Tue Feb 4 21:15:11 2020
New Revision: 357533
URL: https://svnweb.freebsd.org/changeset/base/357533
Log:
libdwarf: Make an out-pointer of _dwarf_abbrev_add() mandatory.
All callers pass a non-NULL pointer, and otherwise it was possible to
leak memory if the abbrev was
Author: markj
Date: Tue Feb 4 21:15:52 2020
New Revision: 357535
URL: https://svnweb.freebsd.org/changeset/base/357535
Log:
libelftc: Fix memory leaks in the C++ demanglers.
CID: 1262518, 1262519, 1262520, 1262529
MFC after:1 week
Sponsored by: The FreeBSD Foundation
Modi
Author: markj
Date: Tue Feb 4 21:15:29 2020
New Revision: 357534
URL: https://svnweb.freebsd.org/changeset/base/357534
Log:
libdwarf: Fix a memory leak in _dwarf_frame_section_init().
If frame length validation failed we would leak memory.
CID: 1193366
MFC after:1 week
Author: markj
Date: Tue Feb 4 21:16:16 2020
New Revision: 357536
URL: https://svnweb.freebsd.org/changeset/base/357536
Log:
libelftc: Add a missing check for an error from vector_str_init().
While here consistently use the same spelling for such checks.
CID: 1376769
MFC aft
Author: markj
Date: Tue Feb 4 21:16:41 2020
New Revision: 357537
URL: https://svnweb.freebsd.org/changeset/base/357537
Log:
elfcopy: Handle multiple data descriptors properly.
The code clearly meant to resize the buffer in the case where a section
was backed by multiple data descriptors.
Author: markj
Date: Tue Feb 4 21:16:56 2020
New Revision: 357538
URL: https://svnweb.freebsd.org/changeset/base/357538
Log:
elfcopy: Avoid leaking dst's fd when we fail to copy a file.
We should really create the output file in the same directory as the
destination file so that rename()
Author: markj
Date: Tue Feb 4 21:17:59 2020
New Revision: 357539
URL: https://svnweb.freebsd.org/changeset/base/357539
Log:
size: Avoid returning a stack pointer from xlatetom().
The callers only check whether the returned pointer is non-NULL, so this
was harmless in practice, but change
Author: markj
Date: Tue Feb 4 21:18:16 2020
New Revision: 357540
URL: https://svnweb.freebsd.org/changeset/base/357540
Log:
readelf: Fix a double close of the input file.
The caller of dump_object() is responsible for opening the file, let it
be responsible for closing too.
CID:
Author: markj
Date: Tue Feb 4 21:18:37 2020
New Revision: 357541
URL: https://svnweb.freebsd.org/changeset/base/357541
Log:
readelf: Fix the check for an error from realloc().
Use err() instead of errx() while here, since realloc() sets errno.
CID: 1401326
MFC after:1 w
Author: markj
Date: Tue Feb 4 21:18:56 2020
New Revision: 357542
URL: https://svnweb.freebsd.org/changeset/base/357542
Log:
readelf: Don't leak memory when dwarf_get_fde_info_for_all_regs() fails.
CID: 1292493
MFC after:1 week
Sponsored by: The FreeBSD Foundation
Modified
Author: markj
Date: Fri Apr 17 16:55:14 2020
New Revision: 360046
URL: https://svnweb.freebsd.org/changeset/base/360046
Log:
Always compile minidump_machdep.c on arm.
It is not logically dependent on "device mem", and an arm kernel
compiled without that device fails to link since the mini
Author: markj
Date: Fri Apr 17 19:12:52 2020
New Revision: 360052
URL: https://svnweb.freebsd.org/changeset/base/360052
Log:
Remove a vestigal reference to kmem_object.
kmem_object has been an alias of kernel_object for a while.
MFC after:1 week
Modified:
head/sys/compat/linuxkp
Author: markj
Date: Mon Apr 20 14:45:17 2020
New Revision: 360122
URL: https://svnweb.freebsd.org/changeset/base/360122
Log:
Handle trashed queue pointers in vm_page_acquire_unlocked().
vm_page_acquire_unlocked() relies on type-stability of vm_page
structures and assumes that the listq li
Author: markj
Date: Tue Apr 21 15:55:28 2020
New Revision: 360153
URL: https://svnweb.freebsd.org/changeset/base/360153
Log:
Minimize conditional compilation for handling of M_EXEC.
This simplifies some planned changes. No functional change intended.
Reviewed by: kib
MFC after:
Author: markj
Date: Tue Apr 21 16:01:44 2020
New Revision: 360154
URL: https://svnweb.freebsd.org/changeset/base/360154
Log:
Factor out the kmem contig page alloc and reclamation code.
kmem_alloc_attr_domain() and kmem_alloc_contig_domain() duplicated each
other's page allocation and recl
Author: markj
Date: Tue Apr 21 17:13:06 2020
New Revision: 360163
URL: https://svnweb.freebsd.org/changeset/base/360163
Log:
Handle PCATCH in blockcount_sleep() so it can be interrupted.
blockcount_wait() still unconditionally waits for the count to reach
zero before returning.
Teste
Author: markj
Date: Fri Apr 24 13:53:40 2020
New Revision: 360260
URL: https://svnweb.freebsd.org/changeset/base/360260
Log:
Stop setting PG_U in bootstrap mappings.
These mappings are never visible to userspace as they get replaced when
the amd64 pmap is bootstrapped, but there is no nee
Author: markj
Date: Fri Apr 24 18:47:57 2020
New Revision: 360277
URL: https://svnweb.freebsd.org/changeset/base/360277
Log:
Fix handling of 1GB mappings in the arm64 minidump code.
For such mappings we need to dump 512 page table pages, not one, and
they need to be included in the pmap s
Author: markj
Date: Fri Apr 24 18:47:42 2020
New Revision: 360276
URL: https://svnweb.freebsd.org/changeset/base/360276
Log:
Remove an obsolete TODO comment from several minidump implementations.
The comment referenced a non-existent function, and these minidump
implementations already bu
Author: markj
Date: Fri Apr 24 21:21:23 2020
New Revision: 360280
URL: https://svnweb.freebsd.org/changeset/base/360280
Log:
Fix a race between _pmap_unwire_ptp() and MipsDoTLBMiss().
MipsDoTLBMiss() will load a segmap entry or pde, check that it isn't
zero, and then chase that pointer to
Author: markj
Date: Fri Apr 24 21:21:49 2020
New Revision: 360281
URL: https://svnweb.freebsd.org/changeset/base/360281
Log:
Fix a race in pmap_emulate_modified().
pmap_emulate_modify() was assuming that no changes to the pmap could
take place between the TLB signaling the fault and
pma
Author: markj
Date: Sun Apr 26 20:08:57 2020
New Revision: 360354
URL: https://svnweb.freebsd.org/changeset/base/360354
Log:
Use a single VM object for kernel stacks.
Previously we allocated a separate VM object for each kernel stack.
However, fully constructed kernel stacks are cached by
Author: markj
Date: Sun Apr 26 22:04:43 2020
New Revision: 360357
URL: https://svnweb.freebsd.org/changeset/base/360357
Log:
Fix up i386 thread structure layout assertions after r360354.
Reported by: Jenkins
Modified:
head/sys/kern/kern_thread.c
Modified: head/sys/kern/kern_thread.c
==
Author: markj
Date: Mon Apr 27 13:26:43 2020
New Revision: 360373
URL: https://svnweb.freebsd.org/changeset/base/360373
Log:
iwm: Print the command code for any unhandled commands.
Reported by: Marc Veldman
MFC after:1 week
Modified:
head/sys/dev/iwm/if_iwm.c
Modified: head/sys/
Author: markj
Date: Mon Apr 27 15:59:07 2020
New Revision: 360379
URL: https://svnweb.freebsd.org/changeset/base/360379
Log:
Call pipeselwakeup() after toggling PIPE_EOF.
This ensures that pipe_poll() and the pipe kqueue filters observe
PIPE_EOF and set EV_EOF accordingly. As a result an
Author: markj
Date: Mon Apr 27 15:58:55 2020
New Revision: 360378
URL: https://svnweb.freebsd.org/changeset/base/360378
Log:
Avoid returning POLLIN if the pipe descriptor is not open for reading.
Submitted by: Jan Kokemüller
MFC after:2 weeks
Differential Revision:https://r
Author: markj
Date: Mon Apr 27 15:59:19 2020
New Revision: 360380
URL: https://svnweb.freebsd.org/changeset/base/360380
Log:
Fix handling of EV_EOF for named pipes.
Contrary to the kevent man page, EV_EOF on a fifo is not cleared by
EV_CLEAR. Modify the read and write filters to clear EV
Author: markj
Date: Mon Apr 27 15:59:34 2020
New Revision: 360381
URL: https://svnweb.freebsd.org/changeset/base/360381
Log:
Add some regression tests for read and write kevents on pipes.
Submitted by: Jan Kokemüller
MFC after:2 weeks
Differential Revision:https://reviews.f
Author: markj
Date: Mon Apr 27 16:12:32 2020
New Revision: 360384
URL: https://svnweb.freebsd.org/changeset/base/360384
Log:
Document handling of connection-mode sockets by sendto(2).
sendto(2), sendmsg(2) and sendmmsg(2) return ENOTCONN if a destination
address is specified and the socke
Author: markj
Date: Tue Apr 28 13:51:41 2020
New Revision: 360436
URL: https://svnweb.freebsd.org/changeset/base/360436
Log:
Re-check for wirings after busying the page in vm_page_release_locked().
A concurrent unlocked lookup can wire the page after
vm_page_release_locked() releases the
Author: markj
Date: Tue Apr 28 15:02:44 2020
New Revision: 360438
URL: https://svnweb.freebsd.org/changeset/base/360438
Log:
Make sendfile(SF_SYNC)'s CV wait interruptible.
Otherwise, since the CV is not signalled until data is drained from the
socket, it is trivial to create an unkillabl
Author: markj
Date: Thu Apr 30 15:39:04 2020
New Revision: 360498
URL: https://svnweb.freebsd.org/changeset/base/360498
Log:
Increase the iflib txq callout mutex name length to 32 bytes.
With a length of 16, the name (":TX():callout") typically
gets truncated.
PR: 245712
Author: markj
Date: Wed May 6 15:01:06 2020
New Revision: 360690
URL: https://svnweb.freebsd.org/changeset/base/360690
Log:
Simplify arm64's pmap_bootstrap() a bit.
locore constructs an L2 page mapping the kernel and preloaded data
starting a KERNBASE (the same as VM_MIN_KERNEL_ADDRESS o
Author: markj
Date: Wed May 6 15:10:05 2020
New Revision: 360691
URL: https://svnweb.freebsd.org/changeset/base/360691
Log:
arm: Don't enable interrupts in init_secondary().
This has the same reasoning as described in r357048.
Remove a stray declaration while here.
Reported and t
Author: markj
Date: Fri May 8 14:38:48 2020
New Revision: 360812
URL: https://svnweb.freebsd.org/changeset/base/360812
Log:
Reinitialize thread0's stack base after enabling XSAVE.
Otherwise the initial call to set_top_of_stack(), which occurs before
fpuinit() sets the correct value for c
Author: markj
Date: Sat May 9 14:49:56 2020
New Revision: 360848
URL: https://svnweb.freebsd.org/changeset/base/360848
Log:
rtwn: Add a new USB ID.
PR: 246315
Submitted by: Idwer Vollering
MFC after:1 week
Modified:
head/share/man/man4/rtwn_usb.4
head/sys/dev/rtwn/u
Author: markj
Date: Mon May 11 18:47:38 2020
New Revision: 360903
URL: https://svnweb.freebsd.org/changeset/base/360903
Log:
pf: Don't allocate per-table entry counters unless required.
pf by default does not do per-table address accounting unless the
"counters" keyword is specified in th
Author: markj
Date: Mon May 11 19:07:33 2020
New Revision: 360905
URL: https://svnweb.freebsd.org/changeset/base/360905
Log:
Remove the svn:executable property from some pf test files.
The test makefiles will handle setting mode bits during install. Also,
Phabricator gets upset when uplo
@@
+# $FreeBSD$
+#
+# SPDX-License-Identifier: BSD-2-Clause-FreeBSD
+#
+# Copyright (c) 2020 Mark Johnston
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+# 1. Redistributions of source code must
Author: markj
Date: Tue May 12 16:10:07 2020
New Revision: 360966
URL: https://svnweb.freebsd.org/changeset/base/360966
Log:
rtwn: Add a USB ID for the TP-Link TL-WN727N.
PR: 246417
Submitted by: Viktor G.
MFC after:1 week
Modified:
head/share/man/man4/rtwn_usb.4
hea
Author: markj
Date: Tue May 12 17:00:47 2020
New Revision: 360979
URL: https://svnweb.freebsd.org/changeset/base/360979
Log:
librtld_db: Fix shlib mapping offsets.
kve_offset gives the offset into the backing file, which is not what we
want since different segments may map the same page.
Author: markj
Date: Tue May 12 17:05:55 2020
New Revision: 360980
URL: https://svnweb.freebsd.org/changeset/base/360980
Log:
Re-enable proc_test:symbol_lookup after r360979.
PR: 244732
MFC after:2 weeks
Sponsored by: The FreeBSD Foundation
Modified:
head/lib/libproc/tes
Author: markj
Date: Thu May 14 15:49:37 2020
New Revision: 361031
URL: https://svnweb.freebsd.org/changeset/base/361031
Log:
Assert that page table traversal functions don't operate on superpages.
Reviewed by: kib
MFC after:1 week
Differential Revision:https://reviews.freeb
801 - 900 of 2372 matches
Mail list logo