CVS commit: src/sys/uvm/pmap

2021-12-29 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Wed Dec 29 12:53:38 UTC 2021 Modified Files: src/sys/uvm/pmap: pmap_tlb.c Log Message: Remove duplicate KASSERT To generate a diff of this commit: cvs rdiff -u -r1.49 -r1.50 src/sys/uvm/pmap/pmap_tlb.c Please note that diffs are

CVS commit: src/sys/uvm

2021-12-21 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Tue Dec 21 08:27:49 UTC 2021 Modified Files: src/sys/uvm: uvm_pglist.c Log Message: Update uvm_pglistalloc_[cs]_ps to return EINVAL if [low, high] doesn't match any memory. Useful for bus_dmamem_alloc where a tag might not cover a

CVS commit: src/sys/uvm

2021-12-21 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Tue Dec 21 08:27:49 UTC 2021 Modified Files: src/sys/uvm: uvm_pglist.c Log Message: Update uvm_pglistalloc_[cs]_ps to return EINVAL if [low, high] doesn't match any memory. Useful for bus_dmamem_alloc where a tag might not cover a

CVS commit: src/sys/uvm

2021-12-20 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Mon Dec 20 22:40:47 UTC 2021 Modified Files: src/sys/uvm: uvm_pglist.c Log Message: Slight code re-structure and wrap a long line. Interestingly this gives the same binary before and after. To generate a diff of this commit: cvs

CVS commit: src/sys/uvm

2021-12-20 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Mon Dec 20 22:40:47 UTC 2021 Modified Files: src/sys/uvm: uvm_pglist.c Log Message: Slight code re-structure and wrap a long line. Interestingly this gives the same binary before and after. To generate a diff of this commit: cvs

CVS commit: src/sys/uvm

2021-12-18 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Dec 18 16:31:53 UTC 2021 Modified Files: src/sys/uvm: uvm_device.h Log Message: Add some missing includes to uvm_device.h. - sys/types.h for dev_t - sys/queue.h for LIST_ENTRY - uvm/uvm_object.h for complete struct uvm_obj

CVS commit: src/sys/uvm

2021-12-18 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Dec 18 16:31:53 UTC 2021 Modified Files: src/sys/uvm: uvm_device.h Log Message: Add some missing includes to uvm_device.h. - sys/types.h for dev_t - sys/queue.h for LIST_ENTRY - uvm/uvm_object.h for complete struct uvm_obj

CVS commit: src/sys/uvm

2021-11-25 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Thu Nov 25 09:40:45 UTC 2021 Modified Files: src/sys/uvm: uvm_map.c Log Message: More / improved debug To generate a diff of this commit: cvs rdiff -u -r1.390 -r1.391 src/sys/uvm/uvm_map.c Please note that diffs are not public d

CVS commit: src/sys/uvm

2021-11-25 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Thu Nov 25 09:40:45 UTC 2021 Modified Files: src/sys/uvm: uvm_map.c Log Message: More / improved debug To generate a diff of this commit: cvs rdiff -u -r1.390 -r1.391 src/sys/uvm/uvm_map.c Please note that diffs are not public d

CVS commit: src/sys/uvm/pmap

2021-10-26 Thread Simon Burge
Module Name:src Committed By: simonb Date: Wed Oct 27 06:54:15 UTC 2021 Modified Files: src/sys/uvm/pmap: pmap_tlb.c Log Message: TAB police. To generate a diff of this commit: cvs rdiff -u -r1.48 -r1.49 src/sys/uvm/pmap/pmap_tlb.c Please note that diffs are not public

CVS commit: src/sys/uvm/pmap

2021-10-26 Thread Simon Burge
Module Name:src Committed By: simonb Date: Wed Oct 27 06:54:15 UTC 2021 Modified Files: src/sys/uvm/pmap: pmap_tlb.c Log Message: TAB police. To generate a diff of this commit: cvs rdiff -u -r1.48 -r1.49 src/sys/uvm/pmap/pmap_tlb.c Please note that diffs are not public

CVS commit: src/sys/uvm/pmap

2021-10-26 Thread Simon Burge
Module Name:src Committed By: simonb Date: Wed Oct 27 05:33:59 UTC 2021 Modified Files: src/sys/uvm/pmap: pmap_tlb.c Log Message: When adjusting the max ASID count, check if ti->ti_asid_max == 0 as well. This defaults to 0 for the non-PMAP_TLB_NUM_PIDS case, so would skip

CVS commit: src/sys/uvm/pmap

2021-10-26 Thread Simon Burge
Module Name:src Committed By: simonb Date: Wed Oct 27 05:33:59 UTC 2021 Modified Files: src/sys/uvm/pmap: pmap_tlb.c Log Message: When adjusting the max ASID count, check if ti->ti_asid_max == 0 as well. This defaults to 0 for the non-PMAP_TLB_NUM_PIDS case, so would skip

CVS commit: src/sys/uvm/pmap

2021-10-08 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Fri Oct 8 07:17:32 UTC 2021 Modified Files: src/sys/uvm/pmap: pmap_tlb.c Log Message: Fix a logic botch to actually apply the ASID limit returned by pmap_md_tlb_asid_max. To generate a diff of this commit: cvs rdiff -u -r1.46 -r

CVS commit: src/sys/uvm/pmap

2021-10-08 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Fri Oct 8 07:17:32 UTC 2021 Modified Files: src/sys/uvm/pmap: pmap_tlb.c Log Message: Fix a logic botch to actually apply the ASID limit returned by pmap_md_tlb_asid_max. To generate a diff of this commit: cvs rdiff -u -r1.46 -r

CVS commit: src/sys/uvm/pmap

2021-09-12 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Sun Sep 12 09:05:01 UTC 2021 Modified Files: src/sys/uvm/pmap: pmap_tlb.c Log Message: comment whitespace To generate a diff of this commit: cvs rdiff -u -r1.44 -r1.45 src/sys/uvm/pmap/pmap_tlb.c Please note that diffs are not p

CVS commit: src/sys/uvm/pmap

2021-09-12 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Sun Sep 12 09:05:01 UTC 2021 Modified Files: src/sys/uvm/pmap: pmap_tlb.c Log Message: comment whitespace To generate a diff of this commit: cvs rdiff -u -r1.44 -r1.45 src/sys/uvm/pmap/pmap_tlb.c Please note that diffs are not p

CVS commit: src/sys/uvm

2021-08-23 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Mon Aug 23 13:08:18 UTC 2021 Modified Files: src/sys/uvm: uvm_swap.c Log Message: Return immediately from uvm_swap_shutdown() if there are no (more) swap devices configured. To generate a diff of this commit: cvs rdiff -u -r1.2

CVS commit: src/sys/uvm

2021-08-23 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Mon Aug 23 13:08:18 UTC 2021 Modified Files: src/sys/uvm: uvm_swap.c Log Message: Return immediately from uvm_swap_shutdown() if there are no (more) swap devices configured. To generate a diff of this commit: cvs rdiff -u -r1.2

Re: CVS commit: src/sys/uvm

2020-09-22 Thread Ryo ONODERA
Hi, Chuck Silvers writes: > On Tue, Sep 22, 2020 at 01:51:33AM +0900, Ryo ONODERA wrote: >> Hi, >> >> It seems that r1.124 of uvm_amap.c causes random userland segfaults >> on my NetBSD/amd64. > > this should be fixed now, could you try again? > > this was another case of my usual trick "test a

Re: CVS commit: src/sys/uvm

2020-09-21 Thread Chuck Silvers
On Tue, Sep 22, 2020 at 01:51:33AM +0900, Ryo ONODERA wrote: > Hi, > > It seems that r1.124 of uvm_amap.c causes random userland segfaults > on my NetBSD/amd64. this should be fixed now, could you try again? this was another case of my usual trick "test a change well, modify the change at the la

Re: CVS commit: src/sys/uvm

2020-09-21 Thread Ryo ONODERA
Hi, It seems that r1.124 of uvm_amap.c causes random userland segfaults on my NetBSD/amd64. If you cannot reproduce the random segfaults, I will send my backtraces. "Chuck Silvers" writes: > Module Name: src > Committed By: chs > Date: Sun Sep 20 23:03:01 UTC 2020 > > Modified Files:

re: CVS commit: src/sys/uvm/pmap

2020-08-23 Thread matthew green
> Modified Files: > src/sys/uvm/pmap: pmap_segtab.c > > Log Message: > Remove the #if defined(__mips_n64) && PAGE_SIZE == 8192 and make the > check MI - all PTs are PAGE_SIZE aligned thanks! that is a much better way of doing it. .mrg.

Re: CVS commit: src/sys/uvm

2020-07-18 Thread Rin Okuyama
On 2020/07/18 17:30, Jukka Ruohonen wrote: On Sat, Jul 18, 2020 at 05:19:07PM +0900, Rin Okuyama wrote: For most (all?) ports, these specifiers are exposed only for _KERNEL and friends. So, inttypes(*3*) would not be the best place for them. Currently, I'm not sure where they should be. /usr/sha

Re: CVS commit: src/sys/uvm

2020-07-18 Thread Jukka Ruohonen
On Sat, Jul 18, 2020 at 05:19:07PM +0900, Rin Okuyama wrote: > For most (all?) ports, these specifiers are exposed only for > _KERNEL and friends. So, inttypes(*3*) would not be the best > place for them. Currently, I'm not sure where they should be. > /usr/share/misc/style? Perhaps a new inttypes

Re: CVS commit: src/sys/uvm

2020-07-18 Thread Rin Okuyama
On 2020/07/16 16:02, matthew green wrote: thanks! i'll try to remember we have PRIxPADDR because i considered looking for it and thought we didn't have it... My pleasure! On 2020/07/16 16:10, Jukka Ruohonen wrote: The whole { PRIxPADDR, PRIxPSIZE, ..., PRIxREGISTER } family should probably b

Re: CVS commit: src/sys/uvm

2020-07-16 Thread Jukka Ruohonen
On Thu, Jul 16, 2020 at 05:02:18PM +1000, matthew green wrote: > thanks! i'll try to remember we have PRIxPADDR because i > considered looking for it and thought we didn't have it... The whole { PRIxPADDR, PRIxPSIZE, ..., PRIxREGISTER } family should probably be documented in inttypes(3)? - Jukk

re: CVS commit: src/sys/uvm

2020-07-16 Thread matthew green
"Rin Okuyama" writes: > Module Name: src > Committed By: rin > Date: Wed Jul 15 15:08:26 UTC 2020 > > Modified Files: > src/sys/uvm: uvm_physseg.c > > Log Message: > Fix typo. Use PRIxPADDR rather than casting. thanks! i'll try to remember we have PRIxPADDR because i considered l

Re: CVS commit: src/sys/uvm

2020-05-11 Thread Joerg Sonnenberger
On Sun, May 10, 2020 at 11:53:00PM +0100, Alexander Nasonov wrote: > Taylor R Campbell wrote: > > Log Message: > > Implement swap encryption. > > > > Enabled by sysctl -w vm.swap_encrypt=1. > > If secmodel_securelevel(9) is still a thing, locking down this sysctl > at high securelevel may improve

Re: CVS commit: src/sys/uvm

2020-05-11 Thread Alexander Nasonov
Taylor R Campbell wrote: > This sounds entirely reasonable. Would you like to draft an > implementation of that? Sure, I can look into this on the weekend. > Presumably it would require writing a sysctl callback function for > vm.swap_encrypt, and would somehow involve kauth, but I'm not sure >

Re: CVS commit: src/sys/uvm

2020-05-10 Thread Alistair Crooks
On Sat, 9 May 2020 at 14:50, Taylor R Campbell wrote: > Module Name:src > Committed By: riastradh > Date: Sat May 9 21:50:39 UTC 2020 > > Modified Files: > src/sys/uvm: uvm_swap.c > > Log Message: > Implement swap encryption. > > Enabled by sysctl -w vm.swap_encrypt=1. K

Re: CVS commit: src/sys/uvm

2020-05-10 Thread Taylor R Campbell
> Date: Sun, 10 May 2020 23:53:00 +0100 > From: Alexander Nasonov > > Taylor R Campbell wrote: > > Log Message: > > Implement swap encryption. > > > > Enabled by sysctl -w vm.swap_encrypt=1. > > If secmodel_securelevel(9) is still a thing, locking down this sysctl > at high securelevel may impr

Re: CVS commit: src/sys/uvm

2020-05-10 Thread Alexander Nasonov
Taylor R Campbell wrote: > Log Message: > Implement swap encryption. > > Enabled by sysctl -w vm.swap_encrypt=1. If secmodel_securelevel(9) is still a thing, locking down this sysctl at high securelevel may improve our security. Prior to this change, swap devices were readable (even if enrypted w

Re: CVS commit: src/sys/uvm

2020-04-26 Thread Rin Okuyama
On 2020/04/27 11:47, Rin Okuyama wrote: Module Name:src Committed By: rin Date: Mon Apr 27 02:47:26 UTC 2020 Modified Files: src/sys/uvm: uvm_extern.h Log Message: Add missing \ to fix build for PMAP_CACHE_VIVT, i.e., ARMv4 and prior. s/v4/v5/

re: CVS commit: src/sys/uvm

2020-01-22 Thread matthew green
Andrew Doran writes: > On Wed, Jan 22, 2020 at 10:08:16AM +1100, matthew green wrote: > > > Andrew Doran writes: > > > I also recommend disabling ACPI idle, at least until it can be made less > > > aggressive by default. It causes a significant slowdown. It can be done > > > with detaching all a

Re: CVS commit: src/sys/uvm

2020-01-22 Thread Andrew Doran
On Wed, Jan 22, 2020 at 10:08:16AM +1100, matthew green wrote: > Andrew Doran writes: > > I also recommend disabling ACPI idle, at least until it can be made less > > aggressive by default. It causes a significant slowdown. It can be done > > with detaching all acpicpu devices using "drvctl -d"

re: CVS commit: src/sys/uvm

2020-01-21 Thread matthew green
Andrew Doran writes: > I also recommend disabling ACPI idle, at least until it can be made less > aggressive by default. It causes a significant slowdown. It can be done > with detaching all acpicpu devices using "drvctl -d" on each. this disables cpufreq support, doesn't it? that seems like an

Re: CVS commit: src/sys/uvm

2020-01-21 Thread Andrew Doran
On Fri, Jan 10, 2020 at 10:21:25PM +, Andrew Doran wrote: > Hi Frank, > > On Fri, Jan 10, 2020 at 01:10:02PM +0100, Frank Kardel wrote: > > > Hi ! > > > > With this state of January 2nd we ran some tests for robustness and timing > > with our database setup: > > > > Machine: > > > > Mainbo

Re: CVS commit: src/sys/uvm

2020-01-17 Thread Kamil Rytarowski
On 10.01.2020 23:21, Andrew Doran wrote: > The second is pulling in efficient tracking of page clean/dirty status from > the yamt-pagecache branch. This reduces the amount of work fsync() needs to > do, which should be of benefit to the DBMS. > We probably should adapt DBMS to use fsync_range(),

Re: CVS commit: src/sys/uvm

2020-01-10 Thread Andrew Doran
Hi Frank, On Fri, Jan 10, 2020 at 01:10:02PM +0100, Frank Kardel wrote: > Hi ! > > With this state of January 2nd we ran some tests for robustness and timing > with our database setup: > > Machine: > > Mainboard: S2600WFT > > CPU: 2 x Intel(R) Xeon(R) Gold 6130 CPU @ 2.10GHz > > machdep.spec

Re: CVS commit: src/sys/uvm

2020-01-10 Thread Frank Kardel
Hi ! With this state of January 2nd we ran some tests for robustness and timing with our database setup: Machine: Mainboard: S2600WFT CPU: 2 x Intel(R) Xeon(R) Gold 6130 CPU @ 2.10GHz machdep.spectre_v1.mitigated = 0 machdep.spectre_v2.hwmitigated = 1 machdep.spectre_v2.swmitigated = 1 mach

re: CVS commit: src/sys/uvm

2020-01-02 Thread matthew green
"Andrew Doran" writes: > Module Name: src > Committed By: ad > Date: Fri Dec 27 13:19:25 UTC 2019 > > Modified Files: > src/sys/uvm: uvm.h uvm_page.c > > Log Message: > Nothing uses uvm.cpus any more, and we can do the same with cpu_lookup(), > so get rid of it. this has been usef

re: CVS commit: src/sys/uvm

2020-01-01 Thread matthew green
> > So I guess we won't be switching pg->phys_addr from paddr to pfn? > > Speaking of which, any plans for expanding to >32-bit (or >31-bit, if > > signed) pfns in the rest of uvm? > > That's not part of my current plans for UVM, which right now extend only as > far as breaking the back of the per

Re: CVS commit: src/sys/uvm

2019-12-24 Thread Andrew Doran
On Tue, Dec 24, 2019 at 03:22:54AM +, Taylor R Campbell wrote: > > Module Name:src > > Committed By: ad > > Date: Sat Dec 21 14:41:44 UTC 2019 > > > > - Add inlines to set/get locator values in the unused lower bits of > > pg->phys_addr. Begin by using it to cache the freel

Re: CVS commit: src/sys/uvm

2019-12-23 Thread Jason Thorpe
> On Dec 23, 2019, at 7:22 PM, Taylor R Campbell > wrote: > > So I guess we won't be switching pg->phys_addr from paddr to pfn? If that's the case, we should rename the field. -- thorpej

Re: CVS commit: src/sys/uvm

2019-12-23 Thread Taylor R Campbell
> Module Name:src > Committed By: ad > Date: Sat Dec 21 14:41:44 UTC 2019 > > - Add inlines to set/get locator values in the unused lower bits of > pg->phys_addr. Begin by using it to cache the freelist index, because > computing it is expensive and that shows up during profil

Re: CVS commit: src/sys/uvm

2019-12-21 Thread Andrew Doran
On Sat, Dec 21, 2019 at 03:08:18PM +0100, Christoph Badura wrote: > On Sat, Dec 21, 2019 at 12:58:26PM +, Andrew Doran wrote: > > Modified Files: > > src/sys/uvm: uvm_extern.h uvm_page.c > > Log Message: > > Add uvm_free(): returns number of free pages in system. > > Can you rename this t

Re: CVS commit: src/sys/uvm

2019-12-21 Thread Christoph Badura
On Sat, Dec 21, 2019 at 12:58:26PM +, Andrew Doran wrote: > Modified Files: > src/sys/uvm: uvm_extern.h uvm_page.c > Log Message: > Add uvm_free(): returns number of free pages in system. Can you rename this to a more descriptive name? Say uvm_free_pages() or something. Also, we traditi

Re: CVS commit: src/sys/uvm

2019-12-01 Thread Taylor R Campbell
> Date: Sun, 1 Dec 2019 11:54:24 + > From: Andrew Doran > > On Sun, Dec 01, 2019 at 08:19:09AM +, Maxime Villard wrote: > > > Modified Files: > > src/sys/uvm: uvm_fault.c > > > > Log Message: > > Use atomic_{load,store}_relaxed() on global counters. > > If you would be so kind, ple

Re: CVS commit: src/sys/uvm

2019-12-01 Thread Andrew Doran
Hi, On Sun, Dec 01, 2019 at 08:19:09AM +, Maxime Villard wrote: > Modified Files: > src/sys/uvm: uvm_fault.c > > Log Message: > Use atomic_{load,store}_relaxed() on global counters. If you would be so kind, please don't do any more of the UVM counters. I have a patch to make these CP

CVS commit: src/sys/uvm

2019-11-21 Thread Andrew Doran
Module Name:src Committed By: ad Date: Thu Nov 21 17:47:53 UTC 2019 Modified Files: src/sys/uvm: uvm_glue.c Log Message: Use lwp_changepri(). To generate a diff of this commit: cvs rdiff -u -r1.169 -r1.170 src/sys/uvm/uvm_glue.c Please note that diffs are not public dom

CVS commit: src/sys/uvm

2019-11-21 Thread Andrew Doran
Module Name:src Committed By: ad Date: Thu Nov 21 17:47:53 UTC 2019 Modified Files: src/sys/uvm: uvm_glue.c Log Message: Use lwp_changepri(). To generate a diff of this commit: cvs rdiff -u -r1.169 -r1.170 src/sys/uvm/uvm_glue.c Please note that diffs are not public dom

CVS commit: src/sys/uvm

2019-11-10 Thread Chuck Silvers
Module Name:src Committed By: chs Date: Sun Nov 10 20:38:33 UTC 2019 Modified Files: src/sys/uvm: uvm_fault.c Log Message: in uvm_fault_lower_io(), fetch all the map entry values that we need before we unlock everything. Reported-by: syzbot+bb6f009256b48...@syzkaller.

CVS commit: src/sys/uvm

2019-11-10 Thread Chuck Silvers
Module Name:src Committed By: chs Date: Sun Nov 10 20:38:33 UTC 2019 Modified Files: src/sys/uvm: uvm_fault.c Log Message: in uvm_fault_lower_io(), fetch all the map entry values that we need before we unlock everything. Reported-by: syzbot+bb6f009256b48...@syzkaller.

CVS commit: src/sys/uvm

2019-11-06 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Thu Nov 7 07:45:14 UTC 2019 Modified Files: src/sys/uvm: uvm_bio.c Log Message: Fix a UVMHIST_LOG format broken in 1.91 To generate a diff of this commit: cvs rdiff -u -r1.99 -r1.100 src/sys/uvm/uvm_bio.c Please note that diffs

CVS commit: src/sys/uvm

2019-11-06 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Thu Nov 7 07:45:14 UTC 2019 Modified Files: src/sys/uvm: uvm_bio.c Log Message: Fix a UVMHIST_LOG format broken in 1.91 To generate a diff of this commit: cvs rdiff -u -r1.99 -r1.100 src/sys/uvm/uvm_bio.c Please note that diffs

CVS commit: src/sys/uvm

2019-11-01 Thread Rin Okuyama
Module Name:src Committed By: rin Date: Fri Nov 1 13:04:23 UTC 2019 Modified Files: src/sys/uvm: uvm_map.c Log Message: Fix previous; semantics of align argument of uvm_map() is different when UVM_FLAG_COLORMATCH is specified. Should fix PR kern/54669. To generate a di

CVS commit: src/sys/uvm

2019-11-01 Thread Rin Okuyama
Module Name:src Committed By: rin Date: Fri Nov 1 13:04:23 UTC 2019 Modified Files: src/sys/uvm: uvm_map.c Log Message: Fix previous; semantics of align argument of uvm_map() is different when UVM_FLAG_COLORMATCH is specified. Should fix PR kern/54669. To generate a di

CVS commit: src/sys/uvm

2019-11-01 Thread Rin Okuyama
Module Name:src Committed By: rin Date: Fri Nov 1 08:26:18 UTC 2019 Modified Files: src/sys/uvm: uvm_map.c Log Message: PR kern/54395 - Align hint for virtual address at the beginning of uvm_map() if required. Otherwise, it will be rounded up/down in an unexpected wa

CVS commit: src/sys/uvm

2019-11-01 Thread Rin Okuyama
Module Name:src Committed By: rin Date: Fri Nov 1 08:26:18 UTC 2019 Modified Files: src/sys/uvm: uvm_map.c Log Message: PR kern/54395 - Align hint for virtual address at the beginning of uvm_map() if required. Otherwise, it will be rounded up/down in an unexpected wa

CVS commit: src/sys/uvm/pmap

2019-10-20 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Sun Oct 20 07:58:22 UTC 2019 Modified Files: src/sys/uvm/pmap: vmpagemd.h Log Message: Whitespace To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/sys/uvm/pmap/vmpagemd.h Please note that diffs are not public do

CVS commit: src/sys/uvm/pmap

2019-10-20 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Sun Oct 20 07:58:22 UTC 2019 Modified Files: src/sys/uvm/pmap: vmpagemd.h Log Message: Whitespace To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/sys/uvm/pmap/vmpagemd.h Please note that diffs are not public do

CVS commit: src/sys/uvm/pmap

2019-10-20 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Sun Oct 20 07:54:30 UTC 2019 Modified Files: src/sys/uvm/pmap: vmpagemd.h Log Message: Re-order _P() macros to match bit definitions. NFCI To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/sys/uvm/pmap/vmpagemd.h

CVS commit: src/sys/uvm/pmap

2019-10-20 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Sun Oct 20 07:54:30 UTC 2019 Modified Files: src/sys/uvm/pmap: vmpagemd.h Log Message: Re-order _P() macros to match bit definitions. NFCI To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/sys/uvm/pmap/vmpagemd.h

CVS commit: src/sys/uvm/pmap

2019-10-20 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Sun Oct 20 07:22:51 UTC 2019 Modified Files: src/sys/uvm/pmap: pmap_segtab.c Log Message: Whitespace To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/sys/uvm/pmap/pmap_segtab.c Please note that diffs are not pub

CVS commit: src/sys/uvm/pmap

2019-10-20 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Sun Oct 20 07:22:51 UTC 2019 Modified Files: src/sys/uvm/pmap: pmap_segtab.c Log Message: Whitespace To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/sys/uvm/pmap/pmap_segtab.c Please note that diffs are not pub

CVS commit: src/sys/uvm/pmap

2019-10-20 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Sun Oct 20 07:18:22 UTC 2019 Modified Files: src/sys/uvm/pmap: pmap.c Log Message: Remove KASSERT(!VM_PAGEMD_PVLIST_LOCKED_P(mdpg)) - can only assert that it is owned To generate a diff of this commit: cvs rdiff -u -r1.42 -r1.43

CVS commit: src/sys/uvm/pmap

2019-10-20 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Sun Oct 20 07:18:22 UTC 2019 Modified Files: src/sys/uvm/pmap: pmap.c Log Message: Remove KASSERT(!VM_PAGEMD_PVLIST_LOCKED_P(mdpg)) - can only assert that it is owned To generate a diff of this commit: cvs rdiff -u -r1.42 -r1.43

CVS commit: src/sys/uvm

2019-10-04 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Oct 4 22:48:46 UTC 2019 Modified Files: src/sys/uvm: uvm_mmap.c Log Message: Avoid left shift changing the signedness flag Reviewed by Reported-by: syzbot+25ac03024cedf27f3...@syzkaller.appspotmail.com To generate a diff

CVS commit: src/sys/uvm

2019-10-04 Thread Kamil Rytarowski
Module Name:src Committed By: kamil Date: Fri Oct 4 22:48:46 UTC 2019 Modified Files: src/sys/uvm: uvm_mmap.c Log Message: Avoid left shift changing the signedness flag Reviewed by Reported-by: syzbot+25ac03024cedf27f3...@syzkaller.appspotmail.com To generate a diff

CVS commit: src/sys/uvm

2019-10-01 Thread Chuck Silvers
Module Name:src Committed By: chs Date: Tue Oct 1 17:40:22 UTC 2019 Modified Files: src/sys/uvm: uvm_pdaemon.c Log Message: in uvm_wait(), panic if the pagedaemon thread does not exist. this avoids a hang if the system runs out of memory before the mechanisms for reclaimi

CVS commit: src/sys/uvm

2019-10-01 Thread Chuck Silvers
Module Name:src Committed By: chs Date: Tue Oct 1 17:40:22 UTC 2019 Modified Files: src/sys/uvm: uvm_pdaemon.c Log Message: in uvm_wait(), panic if the pagedaemon thread does not exist. this avoids a hang if the system runs out of memory before the mechanisms for reclaimi

CVS commit: src/sys/uvm/pmap

2019-09-23 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Mon Sep 23 18:20:08 UTC 2019 Modified Files: src/sys/uvm/pmap: pmap_segtab.c Log Message: Use "segmap" for uvm_wait message in pmap_segtab_alloc To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/sys/uvm/pmap/pmap_s

CVS commit: src/sys/uvm/pmap

2019-09-23 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Mon Sep 23 18:20:08 UTC 2019 Modified Files: src/sys/uvm/pmap: pmap_segtab.c Log Message: Use "segmap" for uvm_wait message in pmap_segtab_alloc To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/sys/uvm/pmap/pmap_s

CVS commit: src/sys/uvm

2019-09-20 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Sep 20 11:09:43 UTC 2019 Modified Files: src/sys/uvm: uvm_page.c uvm_physseg.c Log Message: Fix programming mistake: 'paddrp' is a pointer given as argument, setting it to NULL in the called function does not set it to NULL in t

CVS commit: src/sys/uvm

2019-09-20 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Fri Sep 20 11:09:43 UTC 2019 Modified Files: src/sys/uvm: uvm_page.c uvm_physseg.c Log Message: Fix programming mistake: 'paddrp' is a pointer given as argument, setting it to NULL in the called function does not set it to NULL in t

CVS commit: src/sys/uvm/pmap

2019-09-18 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Wed Sep 18 18:29:58 UTC 2019 Modified Files: src/sys/uvm/pmap: pmap_segtab.c Log Message: s/pte/ptep/ in pmap_pte_process for consistency with other code. NFCI. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys

CVS commit: src/sys/uvm/pmap

2019-09-18 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Wed Sep 18 18:29:58 UTC 2019 Modified Files: src/sys/uvm/pmap: pmap_segtab.c Log Message: s/pte/ptep/ in pmap_pte_process for consistency with other code. NFCI. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys

CVS commit: src/sys/uvm/pmap

2019-09-18 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Wed Sep 18 18:18:44 UTC 2019 Modified Files: src/sys/uvm/pmap: pmap_segtab.c Log Message: Whitespace To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/uvm/pmap/pmap_segtab.c Please note that diffs are not publi

CVS commit: src/sys/uvm/pmap

2019-09-18 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Wed Sep 18 18:18:44 UTC 2019 Modified Files: src/sys/uvm/pmap: pmap_segtab.c Log Message: Whitespace To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/uvm/pmap/pmap_segtab.c Please note that diffs are not publi

CVS commit: src/sys/uvm

2019-08-09 Thread matthew green
Module Name:src Committed By: mrg Date: Sat Aug 10 01:06:45 UTC 2019 Modified Files: src/sys/uvm: uvm_map.c Log Message: KASSERT -> KASSERTMSG so we actually display the overflowed values. To generate a diff of this commit: cvs rdiff -u -r1.363 -r1.364 src/sys/uvm/uvm_ma

CVS commit: src/sys/uvm

2019-08-09 Thread matthew green
Module Name:src Committed By: mrg Date: Sat Aug 10 01:06:45 UTC 2019 Modified Files: src/sys/uvm: uvm_map.c Log Message: KASSERT -> KASSERTMSG so we actually display the overflowed values. To generate a diff of this commit: cvs rdiff -u -r1.363 -r1.364 src/sys/uvm/uvm_ma

re: CVS commit: src/sys/uvm

2019-08-06 Thread matthew green
"Maxime Villard" writes: > Module Name: src > Committed By: maxv > Date: Tue Aug 6 08:10:27 UTC 2019 > > Modified Files: > src/sys/uvm: uvm_mmap.c > > Log Message: > Change 'npgs' from int to size_t. Otherwise the 64bit->32bit conversion > could lead to npgs=0, which is not expect

CVS commit: src/sys/uvm

2019-08-06 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Aug 6 08:10:27 UTC 2019 Modified Files: src/sys/uvm: uvm_mmap.c Log Message: Change 'npgs' from int to size_t. Otherwise the 64bit->32bit conversion could lead to npgs=0, which is not expected. It later triggers a panic in uvm_

CVS commit: src/sys/uvm

2019-08-06 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Tue Aug 6 08:10:27 UTC 2019 Modified Files: src/sys/uvm: uvm_mmap.c Log Message: Change 'npgs' from int to size_t. Otherwise the 64bit->32bit conversion could lead to npgs=0, which is not expected. It later triggers a panic in uvm_

CVS commit: src/sys/uvm

2019-08-05 Thread Chuck Silvers
Module Name:src Committed By: chs Date: Mon Aug 5 17:36:42 UTC 2019 Modified Files: src/sys/uvm: uvm_fault.c Log Message: fix two bugs reported in https://syzkaller.appspot.com/bug?id=8840dce484094a926e1ec388ffb83acb2fa291c9 - in uvm_fault_check(), if the map entry is w

CVS commit: src/sys/uvm

2019-08-05 Thread Chuck Silvers
Module Name:src Committed By: chs Date: Mon Aug 5 17:36:42 UTC 2019 Modified Files: src/sys/uvm: uvm_fault.c Log Message: fix two bugs reported in https://syzkaller.appspot.com/bug?id=8840dce484094a926e1ec388ffb83acb2fa291c9 - in uvm_fault_check(), if the map entry is w

CVS commit: src/sys/uvm

2019-07-31 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Thu Aug 1 02:28:55 UTC 2019 Modified Files: src/sys/uvm: uvm_map.c uvm_map.h Log Message: Remove last trace of never-used map_attrib. To generate a diff of this commit: cvs rdiff -u -r1.362 -r1.363 src/sys/uvm/uvm_map.c cvs

CVS commit: src/sys/uvm

2019-07-31 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Thu Aug 1 02:28:55 UTC 2019 Modified Files: src/sys/uvm: uvm_map.c uvm_map.h Log Message: Remove last trace of never-used map_attrib. To generate a diff of this commit: cvs rdiff -u -r1.362 -r1.363 src/sys/uvm/uvm_map.c cvs

CVS commit: src/sys/uvm

2019-07-27 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Sun Jul 28 05:28:53 UTC 2019 Modified Files: src/sys/uvm: uvm_aobj.c Log Message: Avoid undefined behavior in uao_pagein_page(). Found by kUBSan. OK'd by riastradh. I think this is a real bug on amd64 at least. To generate a

CVS commit: src/sys/uvm

2019-07-27 Thread SAITOH Masanobu
Module Name:src Committed By: msaitoh Date: Sun Jul 28 05:28:53 UTC 2019 Modified Files: src/sys/uvm: uvm_aobj.c Log Message: Avoid undefined behavior in uao_pagein_page(). Found by kUBSan. OK'd by riastradh. I think this is a real bug on amd64 at least. To generate a

CVS commit: src/sys/uvm/pmap

2019-07-12 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Fri Jul 12 10:39:12 UTC 2019 Modified Files: src/sys/uvm/pmap: pmap.c vmpagemd.h Log Message: Provide and use PV_ISKENTER_P. NFCI. To generate a diff of this commit: cvs rdiff -u -r1.41 -r1.42 src/sys/uvm/pmap/pmap.c cvs rdiff -

CVS commit: src/sys/uvm/pmap

2019-07-12 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Fri Jul 12 10:39:12 UTC 2019 Modified Files: src/sys/uvm/pmap: pmap.c vmpagemd.h Log Message: Provide and use PV_ISKENTER_P. NFCI. To generate a diff of this commit: cvs rdiff -u -r1.41 -r1.42 src/sys/uvm/pmap/pmap.c cvs rdiff -

CVS commit: src/sys/uvm

2019-07-11 Thread Michael van Elst
Module Name:src Committed By: mlelstv Date: Fri Jul 12 06:27:13 UTC 2019 Modified Files: src/sys/uvm: uvm_map.c Log Message: Add missing lock around pmap_protect. ok, chs@ Reported-by: syzbot+6bfd0be70896fc9e9...@syzkaller.appspotmail.com To generate a diff of this comm

CVS commit: src/sys/uvm

2019-07-11 Thread Michael van Elst
Module Name:src Committed By: mlelstv Date: Fri Jul 12 06:27:13 UTC 2019 Modified Files: src/sys/uvm: uvm_map.c Log Message: Add missing lock around pmap_protect. ok, chs@ Reported-by: syzbot+6bfd0be70896fc9e9...@syzkaller.appspotmail.com To generate a diff of this comm

CVS commit: src/sys/uvm

2019-07-11 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Jul 11 17:07:10 UTC 2019 Modified Files: src/sys/uvm: uvm_map.c Log Message: Fix info leak: 'map_attrib' is not used in UVM, and contains uninitialized heap garbage. Return zero. Maybe we should remove the field completely. To

CVS commit: src/sys/uvm

2019-07-11 Thread Maxime Villard
Module Name:src Committed By: maxv Date: Thu Jul 11 17:07:10 UTC 2019 Modified Files: src/sys/uvm: uvm_map.c Log Message: Fix info leak: 'map_attrib' is not used in UVM, and contains uninitialized heap garbage. Return zero. Maybe we should remove the field completely. To

CVS commit: src/sys/uvm/pmap

2019-06-19 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Wed Jun 19 12:55:01 UTC 2019 Modified Files: src/sys/uvm/pmap: vmpagemd.h Log Message: use __nothing To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/sys/uvm/pmap/vmpagemd.h Please note that diffs are not pub

CVS commit: src/sys/uvm/pmap

2019-06-19 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Wed Jun 19 12:55:01 UTC 2019 Modified Files: src/sys/uvm/pmap: vmpagemd.h Log Message: use __nothing To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/sys/uvm/pmap/vmpagemd.h Please note that diffs are not pub

CVS commit: src/sys/uvm/pmap

2019-06-19 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Wed Jun 19 10:04:40 UTC 2019 Modified Files: src/sys/uvm/pmap: vmpagemd.h Log Message: Once more short line to unwrap To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/sys/uvm/pmap/vmpagemd.h Please note that diff

<    1   2   3   4   5   >