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

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

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.

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

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

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)? -

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

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

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.

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

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

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

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

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: > > > >

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

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 > >

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

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

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

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

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

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

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

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,

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

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

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

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:

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:

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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-12 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

CVS commit: src/sys/uvm

2019-07-12 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

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.

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.

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

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

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

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

CVS commit: src/sys/uvm/pmap

2019-06-19 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Wed Jun 19 10:00:19 UTC 2019 Modified Files: src/sys/uvm/pmap: vmpagemd.h Log Message: Unwrap short lines. NFCI. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys/uvm/pmap/vmpagemd.h Please note that diffs

CVS commit: src/sys/uvm/pmap

2019-06-19 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Wed Jun 19 10:00:19 UTC 2019 Modified Files: src/sys/uvm/pmap: vmpagemd.h Log Message: Unwrap short lines. NFCI. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys/uvm/pmap/vmpagemd.h Please note that diffs

CVS commit: src/sys/uvm/pmap

2019-06-19 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Wed Jun 19 09:56:17 UTC 2019 Modified Files: src/sys/uvm/pmap: pmap.c Log Message: Make a comment generic and not MIPS specific To generate a diff of this commit: cvs rdiff -u -r1.40 -r1.41 src/sys/uvm/pmap/pmap.c Please note

CVS commit: src/sys/uvm/pmap

2019-06-19 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Wed Jun 19 09:56:17 UTC 2019 Modified Files: src/sys/uvm/pmap: pmap.c Log Message: Make a comment generic and not MIPS specific To generate a diff of this commit: cvs rdiff -u -r1.40 -r1.41 src/sys/uvm/pmap/pmap.c Please note

CVS commit: src/sys/uvm

2019-06-08 Thread Chuck Silvers
Module Name:src Committed By: chs Date: Sat Jun 8 23:48:33 UTC 2019 Modified Files: src/sys/uvm: uvm_map.c Log Message: in uvm_map_protect(), do a pmap_update() before possibly switching from removing pmap entries to creating them. this fixes the problem reported in

CVS commit: src/sys/uvm

2019-06-08 Thread Chuck Silvers
Module Name:src Committed By: chs Date: Sat Jun 8 23:48:33 UTC 2019 Modified Files: src/sys/uvm: uvm_map.c Log Message: in uvm_map_protect(), do a pmap_update() before possibly switching from removing pmap entries to creating them. this fixes the problem reported in

CVS commit: src/sys/uvm/pmap

2019-05-20 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Mon May 20 17:00:58 UTC 2019 Modified Files: src/sys/uvm/pmap: pmap.h Log Message: Usee __BIT() To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/sys/uvm/pmap/pmap.h Please note that diffs are not public domain;

CVS commit: src/sys/uvm/pmap

2019-05-20 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Mon May 20 17:00:58 UTC 2019 Modified Files: src/sys/uvm/pmap: pmap.h Log Message: Usee __BIT() To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/sys/uvm/pmap/pmap.h Please note that diffs are not public domain;

CVS commit: src/sys/uvm/pmap

2019-05-20 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Mon May 20 16:58:49 UTC 2019 Modified Files: src/sys/uvm/pmap: pmap.h Log Message: Trailing whitespace To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/sys/uvm/pmap/pmap.h Please note that diffs are not public

CVS commit: src/sys/uvm/pmap

2019-05-20 Thread Nick Hudson
Module Name:src Committed By: skrll Date: Mon May 20 16:58:49 UTC 2019 Modified Files: src/sys/uvm/pmap: pmap.h Log Message: Trailing whitespace To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/sys/uvm/pmap/pmap.h Please note that diffs are not public

Re: CVS commit: src/sys/uvm

2018-12-10 Thread Jaromír Doleček
Good point, added asserts in genfs_io.c for this. Le dim. 9 déc. 2018 à 23:56, matthew green a écrit : > > "Jaromir Dolecek" writes: > > Module Name: src > > Committed By: jdolecek > > Date: Sun Dec 9 20:45:37 UTC 2018 > > > > Modified Files: > > src/sys/uvm: uvm_bio.c > > > > Log

re: CVS commit: src/sys/uvm

2018-12-09 Thread matthew green
"Jaromir Dolecek" writes: > Module Name: src > Committed By: jdolecek > Date: Sun Dec 9 20:45:37 UTC 2018 > > Modified Files: > src/sys/uvm: uvm_bio.c > > Log Message: > for direct map case, avoid PGO_NOBLOCKALLOC when writing, it makes > genfs_getpages() return unallocated pages

Re: CVS commit: src/sys/uvm

2017-10-27 Thread Christos Zoulas
On Oct 27, 10:14pm, campbell+netbsd-source-change...@mumble.net (Taylor R Campbell) wrote: -- Subject: Re: CVS commit: src/sys/uvm | > Due to incorrect error recovery mmap requests that were denied due to | > PaX/MPROTECT ended up not cleaning up, which made processes stuck. I | >

Re: CVS commit: src/sys/uvm

2017-10-27 Thread Kamil Rytarowski
On 28.10.2017 00:14, Taylor R Campbell wrote: >> Date: Fri, 27 Oct 2017 21:46:48 + (UTC) >> This needs to be pulled up to -8. > > Yes. > I've verified that the reported bug is gone. signature.asc Description: OpenPGP digital signature

Re: CVS commit: src/sys/uvm

2017-10-27 Thread Taylor R Campbell
> Date: Fri, 27 Oct 2017 21:46:48 + (UTC) > From: chris...@astron.com (Christos Zoulas) > > In article , > Paul Goyette wrote: > >Can you please PLEASE provide an actual description of the problem > >you're fixing. >

Re: CVS commit: src/sys/uvm

2017-10-27 Thread Christos Zoulas
In article , Paul Goyette wrote: >On Fri, 27 Oct 2017, Utkarsh Anand wrote: > >> Module Name: src >> Committed By:utkarsh009 >> Date:Fri Oct 27 12:01:08 UTC 2017 >> >> Modified Files: >>

Re: CVS commit: src/sys/uvm

2017-10-27 Thread Paul Goyette
On Fri, 27 Oct 2017, Utkarsh Anand wrote: Module Name:src Committed By: utkarsh009 Date: Fri Oct 27 12:01:08 UTC 2017 Modified Files: src/sys/uvm: uvm_mmap.c Log Message: [syzkaller] Fix for PR #52658 as suggested by riastradh@ The bug was found by Dmitry Vyukov

Re: CVS commit: src/sys/uvm

2017-05-21 Thread Kamil Rytarowski
On 20.05.2017 02:02, Kamil Rytarowski wrote: > On 19.05.2017 17:30, Chuck Silvers wrote: >> Module Name: src >> Committed By:chs >> Date:Fri May 19 15:30:19 UTC 2017 >> >> Modified Files: >> src/sys/uvm: uvm_map.c uvm_mmap.c >> >> Log Message: >> make MAP_FIXED mapping

  1   2   3   >