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 13:16:35 2020
New Revision: 360434
URL: https://svnweb.freebsd.org/changeset/base/360434
Log:
MFC r360154:
Factor out the kmem contig page alloc and reclamation code.
Modified:
stable/12/sys/vm/vm_kern.c
Directory Properties:
stable/12/ (props changed)
Author: markj
Date: Tue Apr 28 13:16:15 2020
New Revision: 360433
URL: https://svnweb.freebsd.org/changeset/base/360433
Log:
MFC r360153:
Minimize conditional compilation for handling of M_EXEC.
Modified:
stable/12/sys/vm/vm_kern.c
Directory Properties:
stable/12/ (props changed)
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
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:
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
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
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:
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:
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: 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
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
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
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
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
Author: markj
Date: Fri Apr 24 14:27:23 2020
New Revision: 360261
URL: https://svnweb.freebsd.org/changeset/base/360261
Log:
Fix the build after r360259.
stable/12 is missing r357940. For some reason this warning wasn't hit
when I compiled locally.
This is a direct commit to
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
Author: markj
Date: Fri Apr 24 13:49:51 2020
New Revision: 360259
URL: https://svnweb.freebsd.org/changeset/base/360259
Log:
MFC r359280:
Remove the secondary_stacks array in arm64 and riscv kernels.
Modified:
stable/12/sys/arm64/arm64/locore.S
stable/12/sys/arm64/arm64/mp_machdep.c
Author: markj
Date: Fri Apr 24 13:24:19 2020
New Revision: 360255
URL: https://svnweb.freebsd.org/changeset/base/360255
Log:
MFC r359779:
sbappendcontrol() needs to avoid clearing M_NOTREADY on data mbufs.
Modified:
stable/12/sys/kern/uipc_sockbuf.c
stable/12/sys/kern/uipc_usrreq.c
Author: markj
Date: Fri Apr 24 13:23:16 2020
New Revision: 360254
URL: https://svnweb.freebsd.org/changeset/base/360254
Log:
MFC r360052:
Remove a vestigal reference to kmem_object.
Modified:
stable/12/sys/compat/linuxkpi/common/src/linux_page.c
Directory Properties:
stable/12/ (props
Author: markj
Date: Fri Apr 24 13:22:13 2020
New Revision: 360253
URL: https://svnweb.freebsd.org/changeset/base/360253
Log:
MFC r360046:
Always compile minidump_machdep.c on arm.
Modified:
stable/12/sys/conf/files.arm
Directory Properties:
stable/12/ (props changed)
Modified:
Author: markj
Date: Fri Apr 24 13:20:37 2020
New Revision: 360252
URL: https://svnweb.freebsd.org/changeset/base/360252
Log:
MFC r356675 (by mhorne):
RISC-V: fix global symbol lookups for mpentry with lld
Modified:
stable/12/sys/riscv/riscv/locore.S
Directory Properties:
stable/12/
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.
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
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: 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
Author: markj
Date: Mon Apr 20 13:19:23 2020
New Revision: 360114
URL: https://svnweb.freebsd.org/changeset/base/360114
Log:
MFC r359894:
snd_hda(4): Recognize the ALC257 codec.
PR: 245524
Modified:
stable/12/sys/dev/sound/pci/hda/hdac.h
stable/12/sys/dev/sound/pci/hda/hdacc.c
Author: markj
Date: Mon Apr 20 13:18:36 2020
New Revision: 360113
URL: https://svnweb.freebsd.org/changeset/base/360113
Log:
MFC r359893:
Fix sendto() on unconnected SOCK_STREAM/SEQPACKET unix sockets.
Modified:
stable/12/sys/kern/uipc_usrreq.c
Directory Properties:
stable/12/ (props
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:
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
Author: markj
Date: Fri Apr 17 13:50:26 2020
New Revision: 360041
URL: https://svnweb.freebsd.org/changeset/base/360041
Log:
MFC r359778:
Properly handle disconnected sockets in uipc_ready().
Modified:
stable/12/sys/kern/uipc_usrreq.c
Directory Properties:
stable/12/ (props changed)
Author: markj
Date: Mon Apr 13 19:45:45 2020
New Revision: 359894
URL: https://svnweb.freebsd.org/changeset/base/359894
Log:
snd_hda(4): Recognize the ALC257 codec.
PR: 245524
Submitted by: Jose Luis Duran
MFC after:1 week
Modified:
head/sys/dev/sound/pci/hda/hdac.h
Author: markj
Date: Mon Apr 13 19:22:05 2020
New Revision: 359893
URL: https://svnweb.freebsd.org/changeset/base/359893
Log:
Fix sendto() on unconnected SOCK_STREAM/SEQPACKET unix sockets.
Previously the unpcb pointer of the newly connected remote socket was
not initialized correctly, so
Author: markj
Date: Mon Apr 13 19:20:39 2020
New Revision: 359892
URL: https://svnweb.freebsd.org/changeset/base/359892
Log:
Relax restrictions on private mappings of POSIX shm objects.
When creating a private mapping of a POSIX shared memory object,
VM_PROT_WRITE should always be
Author: markj
Date: Fri Apr 10 20:42:11 2020
New Revision: 359779
URL: https://svnweb.freebsd.org/changeset/base/359779
Log:
sbappendcontrol() needs to avoid clearing M_NOTREADY on data mbufs.
If LOCAL_CREDS is set on a unix socket and sendfile() is called,
sendfile will call
Author: markj
Date: Fri Apr 10 20:41:59 2020
New Revision: 359778
URL: https://svnweb.freebsd.org/changeset/base/359778
Log:
Properly handle disconnected sockets in uipc_ready().
When transmitting over a unix socket, data is placed directly into the
receiving socket's receive buffer,
Author: markj
Date: Fri Apr 10 01:37:00 2020
New Revision: 359768
URL: https://svnweb.freebsd.org/changeset/base/359768
Log:
MFC r359596:
xargs: Fix exit status expression when a child process fails to exec.
PR: 244327
Modified:
stable/12/usr.bin/xargs/xargs.c
Directory Properties:
Author: markj
Date: Fri Apr 10 01:23:06 2020
New Revision: 359765
URL: https://svnweb.freebsd.org/changeset/base/359765
Log:
MFC r359595:
geom_journal: Only stop the switcher process if one was started.
PR: 243196
Modified:
stable/12/sys/geom/journal/g_journal.c
Directory
Author: markj
Date: Tue Apr 7 16:15:35 2020
New Revision: 359692
URL: https://svnweb.freebsd.org/changeset/base/359692
Log:
MFC r359276:
newsyslog: Fix stack corruption when initializing a zipwork structure.
Modified:
stable/12/usr.sbin/newsyslog/newsyslog.c
Directory Properties:
Author: markj
Date: Tue Apr 7 16:15:53 2020
New Revision: 359693
URL: https://svnweb.freebsd.org/changeset/base/359693
Log:
MFC r359277:
Add regression tests for newsyslog.conf's p flag.
Modified:
stable/12/usr.sbin/newsyslog/tests/legacy_test.sh
Directory Properties:
stable/12/
Author: markj
Date: Mon Apr 6 14:58:24 2020
New Revision: 359659
URL: https://svnweb.freebsd.org/changeset/base/359659
Log:
MFC r359437:
Fix accounting of hwpmc's thread descriptor freelist.
Modified:
stable/12/sys/dev/hwpmc/hwpmc_mod.c
Directory Properties:
stable/12/ (props changed)
Author: markj
Date: Mon Apr 6 14:56:19 2020
New Revision: 359658
URL: https://svnweb.freebsd.org/changeset/base/359658
Log:
MFC r359594, r359597:
Fix the description of the -m flag in top.1.
PR: 244153
Modified:
stable/12/usr.bin/top/top.1
Directory Properties:
stable/12/
Author: markj
Date: Sat Apr 4 17:08:58 2020
New Revision: 359632
URL: https://svnweb.freebsd.org/changeset/base/359632
Log:
Fix the Linux truncate64 debug print after r359605.
Note, the debug code is not present in head, it was removed in r347538.
This is a direct commit to stable/12.
Author: markj
Date: Fri Apr 3 16:31:45 2020
New Revision: 359605
URL: https://svnweb.freebsd.org/changeset/base/359605
Log:
MFC r356945, r356946:
Fix 64-bit syscall argument fetching in 32-bit Linux syscall handlers.
PR: 243155
Modified:
Author: markj
Date: Fri Apr 3 16:28:39 2020
New Revision: 359604
URL: https://svnweb.freebsd.org/changeset/base/359604
Log:
MFC r355754, r355807 (trasz):
Add sync_file_range(2) implementation to linux(4).
Modified:
stable/12/sys/amd64/linux/linux_dummy.c
Author: markj
Date: Fri Apr 3 16:11:39 2020
New Revision: 359602
URL: https://svnweb.freebsd.org/changeset/base/359602
Log:
MFC r355752, r355753 (by trasz):
Fix definitions for linuxulator's sync_file_range(2).
Modified:
stable/12/sys/amd64/linux/linux_proto.h
On Fri, Apr 03, 2020 at 04:15:28PM +0200, Mateusz Piotrowski wrote:
> Hi,
>
> On 4/3/20 3:35 PM, Mark Johnston wrote:
> > Author: markj
> > Date: Fri Apr 3 13:35:44 2020
> > New Revision: 359594
> > URL: https://svnweb.freebsd.org/changeset/base/359594
> &g
Author: markj
Date: Fri Apr 3 14:47:40 2020
New Revision: 359597
URL: https://svnweb.freebsd.org/changeset/base/359597
Log:
Fix up r359594: -m takes an argument.
PR: 244153
Reported by: 0mp
MFC with: r359594
Modified:
head/usr.bin/top/top.1
Modified:
Author: markj
Date: Fri Apr 3 13:25:53 2020
New Revision: 359592
URL: https://svnweb.freebsd.org/changeset/base/359592
Log:
MFC r359170:
Remove UNP_NASCENT, reverting r303855.
Modified:
stable/12/sys/kern/uipc_usrreq.c
stable/12/sys/sys/unpcb.h
Directory Properties:
stable/12/
Author: markj
Date: Fri Apr 3 14:03:58 2020
New Revision: 359596
URL: https://svnweb.freebsd.org/changeset/base/359596
Log:
xargs: Fix exit status expression when a child process fails to exec.
PR: 244327
Submitted by: thomas.duffy...@alumni.brown.edu
MFC after:1 week
Author: markj
Date: Fri Apr 3 13:57:41 2020
New Revision: 359595
URL: https://svnweb.freebsd.org/changeset/base/359595
Log:
geom_journal: Only stop the switcher process if one was started.
PR: 243196
MFC after:1 week
Modified:
head/sys/geom/journal/g_journal.c
Author: markj
Date: Fri Apr 3 13:35:44 2020
New Revision: 359594
URL: https://svnweb.freebsd.org/changeset/base/359594
Log:
Fix the description of the -m flag in top.1.
PR: 244153
Submitted by: fehmi noyan isi
MFC after:3 days
Modified:
head/usr.bin/top/top.1
Author: markj
Date: Fri Apr 3 13:26:38 2020
New Revision: 359593
URL: https://svnweb.freebsd.org/changeset/base/359593
Log:
MFC r359171:
Simplify uipc_detach() slightly.
Modified:
stable/12/sys/kern/uipc_usrreq.c
Directory Properties:
stable/12/ (props changed)
Modified:
Author: markj
Date: Fri Apr 3 00:38:12 2020
New Revision: 359584
URL: https://svnweb.freebsd.org/changeset/base/359584
Log:
MFC r359183:
Fix uselocale(3) to not leak a reference to the old locale.
PR: 239520
Modified:
stable/11/lib/libc/locale/xlocale.c
Directory Properties:
Author: markj
Date: Fri Apr 3 00:32:48 2020
New Revision: 359583
URL: https://svnweb.freebsd.org/changeset/base/359583
Log:
MFC r359183:
Fix uselocale(3) to not leak a reference to the old locale.
PR: 239520
Modified:
stable/12/lib/libc/locale/xlocale.c
Directory Properties:
Author: markj
Date: Thu Apr 2 15:37:40 2020
New Revision: 359567
URL: https://svnweb.freebsd.org/changeset/base/359567
Log:
MFC r359132:
Enter a write sequence when updating rights.
Modified:
stable/12/sys/kern/sys_capability.c
Directory Properties:
stable/12/ (props changed)
Author: markj
Date: Thu Apr 2 15:30:30 2020
New Revision: 359564
URL: https://svnweb.freebsd.org/changeset/base/359564
Log:
MFC r359330:
Remove unused SYSINIT macros for capability rights.
Modified:
stable/12/sys/kern/subr_capability.c
stable/12/sys/sys/capsicum.h
Directory Properties:
Author: markj
Date: Thu Apr 2 15:32:09 2020
New Revision: 359566
URL: https://svnweb.freebsd.org/changeset/base/359566
Log:
MFC r359133:
kern_dup(): Call filecaps_free_prep() in a write section.
Modified:
stable/12/sys/kern/kern_descrip.c
Directory Properties:
stable/12/ (props
Author: markj
Date: Thu Apr 2 15:30:51 2020
New Revision: 359565
URL: https://svnweb.freebsd.org/changeset/base/359565
Log:
MFC r359154:
Fix synchronization in the IPV6_2292PKTOPTIONS set handler.
Modified:
stable/12/sys/netinet6/ip6_output.c
Directory Properties:
stable/12/ (props
Author: markj
Date: Thu Apr 2 03:35:05 2020
New Revision: 359557
URL: https://svnweb.freebsd.org/changeset/base/359557
Log:
MFC r359331:
Simplify td_ucred handling in newnfs_connect().
Modified:
stable/12/sys/fs/nfs/nfs_commonkrpc.c
Directory Properties:
stable/12/ (props changed)
On Tue, Mar 31, 2020 at 03:51:27PM +0800, Li-Wen Hsu wrote:
> On Tue, Mar 31, 2020 at 3:00 PM Kristof Provost wrote:
> >
> > On 31 Mar 2020, at 7:56, Li-Wen Hsu wrote:
> > > On Tue, Mar 31, 2020 at 10:55 AM Mark Johnston wrote:
> > >>>> It seem
On Mon, Mar 30, 2020 at 09:59:05PM -0400, Mark Johnston wrote:
> On Tue, Mar 31, 2020 at 09:40:51AM +0800, Li-Wen Hsu wrote:
> > On Mon, Mar 30, 2020 at 10:32 PM Mark Johnston wrote:
> > >
> > > Author: markj
> > > Date: Mon Mar 30 14:22:52 2020
> &g
Author: markj
Date: Tue Mar 31 02:25:53 2020
New Revision: 359477
URL: https://svnweb.freebsd.org/changeset/base/359477
Log:
Use a dedicated taskqueue thread for in6m_release_task().
Interfaces may be detached from a taskqueue_thread task, for example by
prison_complete(), so after
On Tue, Mar 31, 2020 at 09:40:51AM +0800, Li-Wen Hsu wrote:
> On Mon, Mar 30, 2020 at 10:32 PM Mark Johnston wrote:
> >
> > Author: markj
> > Date: Mon Mar 30 14:22:52 2020
> > New Revision: 359436
> > URL: https://svnweb.freebsd.org/changeset/base/359436
>
Author: markj
Date: Tue Mar 31 01:18:00 2020
New Revision: 359476
URL: https://svnweb.freebsd.org/changeset/base/359476
Log:
MFC r359278:
newsyslog: Add fallthrough comments to appease Coverity.
Modified:
stable/12/usr.sbin/newsyslog/ptimes.c
Directory Properties:
stable/12/ (props
Author: markj
Date: Mon Mar 30 14:22:52 2020
New Revision: 359436
URL: https://svnweb.freebsd.org/changeset/base/359436
Log:
Simplify taskqgroup inititialization.
taskqgroup initialization was broken into two steps:
1. allocate the taskqgroup structure, at SI_SUB_TASKQ;
2.
Author: markj
Date: Mon Mar 30 14:24:03 2020
New Revision: 359438
URL: https://svnweb.freebsd.org/changeset/base/359438
Log:
Remove the "config" taskqgroup and its KPIs.
Equivalent functionality is already provided by taskqueue(9), just use
that instead.
MFC after:2 weeks
Author: markj
Date: Mon Mar 30 14:23:08 2020
New Revision: 359437
URL: https://svnweb.freebsd.org/changeset/base/359437
Log:
Fix accounting of hwpmc's thread descriptor freelist.
MFC after:1 week
Sponsored by: The FreeBSD Foundation
Modified:
head/sys/dev/hwpmc/hwpmc_mod.c
Author: markj
Date: Fri Mar 27 17:06:24 2020
New Revision: 359370
URL: https://svnweb.freebsd.org/changeset/base/359370
Log:
MFC r359172-r359176:
elftoolchain coverity fixes
Modified:
stable/12/contrib/elftoolchain/libdwarf/libdwarf_die.c
Author: markj
Date: Fri Mar 27 17:04:46 2020
New Revision: 359369
URL: https://svnweb.freebsd.org/changeset/base/359369
Log:
MFC r359184:
Lock the socket in soo_stat().
Modified:
stable/12/sys/kern/sys_socket.c
Directory Properties:
stable/12/ (props changed)
Modified:
Author: markj
Date: Thu Mar 26 17:12:55 2020
New Revision: 359332
URL: https://svnweb.freebsd.org/changeset/base/359332
Log:
compat/linux/linux.h depends on queue.h since r353725.
Sponsored by: The FreeBSD Foundation
Modified:
head/sys/compat/linux/linux.h
Modified:
Author: markj
Date: Thu Mar 26 15:02:37 2020
New Revision: 359330
URL: https://svnweb.freebsd.org/changeset/base/359330
Log:
Remove unused SYSINIT macros for capability rights.
Static rights are initialized in cap_rights_sysinit().
MFC after:1 week
Modified:
Author: markj
Date: Thu Mar 26 15:02:56 2020
New Revision: 359331
URL: https://svnweb.freebsd.org/changeset/base/359331
Log:
Simplify td_ucred handling in newnfs_connect().
No functional change intended.
MFC after:1 week
Modified:
head/sys/fs/nfs/nfs_commonkrpc.c
Modified:
Author: markj
Date: Tue Mar 24 18:16:36 2020
New Revision: 359276
URL: https://svnweb.freebsd.org/changeset/base/359276
Log:
newsyslog: Fix stack corruption when initializing a zipwork structure.
This happens when compressing a previously uncompressed already-rotated
file, as happens
Author: markj
Date: Tue Mar 24 18:43:23 2020
New Revision: 359280
URL: https://svnweb.freebsd.org/changeset/base/359280
Log:
Remove the secondary_stacks array in arm64 and riscv kernels.
Instead, dynamically allocate a page for the boot stack of each AP when
starting them up, like we do
Author: markj
Date: Tue Mar 24 18:17:10 2020
New Revision: 359278
URL: https://svnweb.freebsd.org/changeset/base/359278
Log:
newsyslog: Add fallthrough comments to appease Coverity.
CID: 1008165, 1008166, 1008167
MFC after:1 week
Sponsored by: The FreeBSD Foundation
Author: markj
Date: Tue Mar 24 18:16:56 2020
New Revision: 359277
URL: https://svnweb.freebsd.org/changeset/base/359277
Log:
Add regression tests for newsyslog.conf's p flag.
While here do a bit of cleanup:
- declare local variables as such,
- make tmpdir_create() clean up logfile
Author: markj
Date: Fri Mar 20 20:09:00 2020
New Revision: 359184
URL: https://svnweb.freebsd.org/changeset/base/359184
Log:
Lock the socket in soo_stat().
Otherwise nothing synchronizes with a concurrent conversion of the
socket to a listening socket.
Only the PF_LOCAL protocols
Author: markj
Date: Fri Mar 20 20:02:53 2020
New Revision: 359183
URL: https://svnweb.freebsd.org/changeset/base/359183
Log:
Fix uselocale(3) to not leak a reference to the old locale.
In a single-threaded program pthread_getspecific() always returns NULL,
so the old locale would not end
Author: markj
Date: Fri Mar 20 16:24:06 2020
New Revision: 359172
URL: https://svnweb.freebsd.org/changeset/base/359172
Log:
libdwarf: Make an out-pointer assignment unconditional.
There is no reason for diep to ever be NULL, since in that case we would
simply be leaking memory.
Author: markj
Date: Fri Mar 20 16:25:06 2020
New Revision: 359176
URL: https://svnweb.freebsd.org/changeset/base/359176
Log:
libelftc: Fix a memory leak in cpp_demangle_read_type().
CID: 1305425
MFC after:1 week
Sponsored by: The FreeBSD Foundation
Modified:
Author: markj
Date: Fri Mar 20 16:24:40 2020
New Revision: 359174
URL: https://svnweb.freebsd.org/changeset/base/359174
Log:
readelf: Avoid leaking ELF descriptors for archive entries.
CID: 1292494
MFC after:1 week
Sponsored by: The FreeBSD Foundation
Modified:
Author: markj
Date: Fri Mar 20 16:24:53 2020
New Revision: 359175
URL: https://svnweb.freebsd.org/changeset/base/359175
Log:
readelf: Fix another instance of the leak mentioned in r357542.
CID: 1292493
MFC after:1 week
Sponsored by: The FreeBSD Foundation
Modified:
Author: markj
Date: Fri Mar 20 16:24:23 2020
New Revision: 359173
URL: https://svnweb.freebsd.org/changeset/base/359173
Log:
libpe: Avoid a potential use-after-free in pe_update_symtab().
This function appears to be unused within FreeBSD and ELFToolChain.
CID: 1418982
MFC
Author: markj
Date: Fri Mar 20 16:18:54 2020
New Revision: 359171
URL: https://svnweb.freebsd.org/changeset/base/359171
Log:
Simplify uipc_detach() slightly.
Remove a goto and an unneeded local variable, and fix style. No
functional change intended.
Tested by:pho
MFC after:
Author: markj
Date: Fri Mar 20 16:17:54 2020
New Revision: 359170
URL: https://svnweb.freebsd.org/changeset/base/359170
Log:
Remove UNP_NASCENT, reverting r303855.
unp_connectat() no longer holds the link lock across calls to
sonewconn(), so the recursion described in r303855 can no
Author: markj
Date: Thu Mar 19 21:38:52 2020
New Revision: 359154
URL: https://svnweb.freebsd.org/changeset/base/359154
Log:
Fix synchronization in the IPV6_2292PKTOPTIONS set handler.
The inpcb needs to be locked when we update output packet options.
Otherwise it is possible for the
Author: markj
Date: Thu Mar 19 15:40:05 2020
New Revision: 359133
URL: https://svnweb.freebsd.org/changeset/base/359133
Log:
kern_dup(): Call filecaps_free_prep() in a write section.
filecaps_free_prep() bzeros the capabilities structure and we need to be
careful to synchronize with
Author: markj
Date: Thu Mar 19 15:39:45 2020
New Revision: 359132
URL: https://svnweb.freebsd.org/changeset/base/359132
Log:
Enter a write sequence when updating rights.
The Capsicum system calls modify file descriptor table entries. To
ensure that readers observe a consistent snapshot
On Sun, Mar 15, 2020 at 10:13:29PM -0700, Chuck Silvers wrote:
> On Fri, Mar 13, 2020 at 07:48:17PM -0400, Mark Johnston wrote:
> > On Wed, Mar 04, 2020 at 12:22:51AM +, Chuck Silvers wrote:
> > > Author: chs
> > > Date: Wed Mar 4 00:22:50 2020
> > > N
On Wed, Mar 04, 2020 at 12:22:51AM +, Chuck Silvers wrote:
> Author: chs
> Date: Wed Mar 4 00:22:50 2020
> New Revision: 358597
> URL: https://svnweb.freebsd.org/changeset/base/358597
>
> Log:
> if vm_pager_get_pages_async() returns an error, release the sfio->nios
> refcount that we
Author: markj
Date: Fri Mar 13 16:56:08 2020
New Revision: 358963
URL: https://svnweb.freebsd.org/changeset/base/358963
Log:
MFC r358718:
Remove dead code from the powerpc uma_small_alloc().
Modified:
stable/12/sys/powerpc/powerpc/uma_machdep.c
Directory Properties:
stable/12/ (props
Author: markj
Date: Fri Mar 13 16:52:16 2020
New Revision: 358962
URL: https://svnweb.freebsd.org/changeset/base/358962
Log:
MFC r358715:
Add COUNTER_U64_SYSINIT() and COUNTER_U64_DEFINE_EARLY().
Modified:
stable/12/share/man/man9/counter.9
stable/12/sys/kern/subr_counter.c
Author: markj
Date: Sat Mar 7 15:37:23 2020
New Revision: 358732
URL: https://svnweb.freebsd.org/changeset/base/358732
Log:
Clean up uma_int.h a bit.
This makes it easier to write libkvm programs that access UMA data
structures.
- Remove a couple of unused slab functions and make
Author: markj
Date: Sat Mar 7 00:55:46 2020
New Revision: 358728
URL: https://svnweb.freebsd.org/changeset/base/358728
Log:
Move SMR pointer type definition and access macros to smr_types.h.
The intent is to provide a header that can be included by other headers
without introducing too
Author: markj
Date: Fri Mar 6 20:44:22 2020
New Revision: 358718
URL: https://svnweb.freebsd.org/changeset/base/358718
Log:
Remove dead code from the powerpc uma_small_alloc().
32-bit Book-E doesn't set UMA_MD_SMALL_ALLOC, and 32-bit OEA platforms
have a 32-bit vm_paddr_t. Moreover,
Author: markj
Date: Fri Mar 6 19:10:00 2020
New Revision: 358716
URL: https://svnweb.freebsd.org/changeset/base/358716
Log:
Use COUNTER_U64_DEFINE_EARLY() in places where it simplifies things.
Reviewed by: kib
Sponsored by: The FreeBSD Foundation
Differential Revision:
Author: markj
Date: Fri Mar 6 19:09:01 2020
New Revision: 358715
URL: https://svnweb.freebsd.org/changeset/base/358715
Log:
Add COUNTER_U64_SYSINIT() and COUNTER_U64_DEFINE_EARLY().
The aim is to reduce the boilerplate needed today to define and
initialize global counters. Also add
Author: markj
Date: Fri Mar 6 14:56:47 2020
New Revision: 358705
URL: https://svnweb.freebsd.org/changeset/base/358705
Log:
MFC r358435:
Do not load dtraceall.ko if dtrace.ko is already loaded.
Modified:
stable/12/cddl/contrib/opensolaris/lib/libdtrace/common/dt_open.c
Directory
Author: markj
Date: Fri Mar 6 14:56:02 2020
New Revision: 358704
URL: https://svnweb.freebsd.org/changeset/base/358704
Log:
MFC r358433:
Clear systrace_args_func when systrace probes are disabled.
Modified:
stable/12/sys/cddl/dev/systrace/systrace.c
Directory Properties:
stable/12/
501 - 600 of 3705 matches
Mail list logo