Re: CVS commit: src/sys

2010-03-24 Thread Chuck Silvers
On Tue, Mar 23, 2010 at 04:24:06PM +, David Holland wrote: On Sat, Mar 20, 2010 at 11:31:31PM +, Chuck Silvers wrote: fix copy{in,out}{,str}() to return the error returned by uvm_fault(). fixes PR 41813. Do you know if/how this will affect PR 11904? What happens now on EIO

Re: CVS commit: src/sys/arch/mips

2010-07-09 Thread Chuck Silvers
On Fri, Jul 09, 2010 at 05:19:48PM +, Tom Spindler wrote: Modified Files: src/sys/arch/mips/include: asm.h src/sys/arch/mips/mips: lock_stubs.S Log Message: implement ucas_* for mips. Alas, this fails to build on evbmips-eb:

Re: CVS commit: src/sys/kern

2010-09-01 Thread Chuck Silvers
hi joerg, this change breaks some executables on some platforms (eg. tcsh on sparc64). here's what objdump -p shows for this file: LOAD off0x vaddr 0x0010 paddr 0x0010 align 2**20 filesz 0x0004d533 memsz 0x0004d533 flags

Re: CVS commit: src/sys/ufs/ufs

2011-10-11 Thread Chuck Silvers
On Tue, Oct 11, 2011 at 04:40:02AM +, David Holland wrote: On Sun, Oct 09, 2011 at 09:15:34PM +, Chuck Silvers wrote: Modified Files: src/sys/ufs/ufs: extattr.h Log Message: add forward declarations for the VOP args structures so that fstat can include this file

Re: CVS commit: src/libexec/ld.elf_so/arch/powerpc

2011-11-01 Thread Chuck Silvers
On Fri, Oct 28, 2011 at 07:53:22AM +0100, David Laight wrote: On Wed, Oct 26, 2011 at 03:56:58PM +, Chuck Silvers wrote: Module Name:src Committed By: chs Date: Wed Oct 26 15:56:58 UTC 2011 Modified Files: src/libexec/ld.elf_so/arch/powerpc

Re: CVS commit: src/lib/libc/arch/vax

2011-11-22 Thread Chuck Silvers
On Mon, Nov 21, 2011 at 05:49:26PM +, Christos Zoulas wrote: In article 2021161748.b09dd17...@cvs.netbsd.org, Chuck Silvers source-changes-d@NetBSD.org wrote: -=-=-=-=-=- gcc 4.5 on vax creates PLT stubs with an entry mask of 0xffc rather than 0 like gcc 4.1 did, so the sneaky

amd64 direct map causing crashes at boot (Re: CVS commit: src/sys/arch)

2011-12-08 Thread Chuck Silvers
On Thu, Dec 08, 2011 at 12:09:14AM +, Thor Lancelot Simon wrote: On Sun, Dec 04, 2011 at 04:24:13PM +, Chuck Silvers wrote: Module Name:src Committed By: chs Date: Sun Dec 4 16:24:13 UTC 2011 Modified Files: src/sys/arch/amd64/amd64: locore.S

Re: amd64 direct map causing crashes at boot (Re: CVS commit: src/sys/arch)

2011-12-09 Thread Chuck Silvers
I found a system which had the crash-at-boot problem and the change I just checked in fixed it on that box. if anyone is still seeing crashes with that fix, please let me know. -Chuck

Re: CVS commit: src/sys/arch

2012-01-02 Thread Chuck Silvers
On Mon, Dec 05, 2011 at 12:29:25AM +, Mindaugas Rasiukevicius wrote: Chuck Silvers c...@netbsd.org wrote: Module Name:src Committed By: chs Date: Sun Dec 4 16:24:13 UTC 2011 Modified Files: src/sys/arch/amd64/amd64: locore.S machdep.c src

Re: CVS commit: src/sys/arch/evbarm/iq80310

2012-09-17 Thread Chuck Silvers
On Mon, Sep 17, 2012 at 03:40:12AM +0900, Izumi Tsutsui wrote: chs@ wrote: Module Name:src Committed By: chs Date: Tue Aug 14 15:46:21 UTC 2012 Modified Files: src/sys/arch/evbarm/iq80310: iq80310_intr.c Log Message: move

Re: CVS commit: [tls-maxphys] src/sys/dev

2012-10-09 Thread Chuck Silvers
On Tue, Oct 09, 2012 at 11:24:13AM -0400, Thor Lancelot Simon wrote: On Tue, Oct 09, 2012 at 05:21:17PM +0200, Manuel Bouyer wrote: On Tue, Oct 09, 2012 at 11:04:20AM -0400, Thor Lancelot Simon wrote: Hm. This will be an attempt to transfer an entire file -- 139264 will be the

Re: CVS commit: [tls-maxphys] src/sys/dev

2012-10-09 Thread Chuck Silvers
On Tue, Oct 09, 2012 at 11:50:27PM +0200, Manuel Bouyer wrote: On Tue, Oct 09, 2012 at 11:13:52PM +0200, Manuel Bouyer wrote: There is still a reference to MAXPHYS in ufs_bmaparray(), which, if I got it right, will limit the *runp in VOP_BMAP(), which will limit iobytes in genfs_do_io().

Re: CVS commit: src/sys/arch/sparc/sparc

2012-11-04 Thread Chuck Silvers
On Sun, Nov 04, 2012 at 01:35:04PM +1100, matthew green wrote: Module Name:src Committed By: chs Date: Sun Nov 4 00:32:47 UTC 2012 Modified Files: src/sys/arch/sparc/sparc: locore.s pmap.c Log Message: in cpu_switchto(), remove the MP-unsafe

Re: CVS commit: src/sys/kern

2014-08-18 Thread Chuck Silvers
On Mon, Aug 18, 2014 at 04:49:17AM +, Christos Zoulas wrote: In article 20140817230358.6b94...@cvs.netbsd.org, Chuck Silvers source-changes-d@NetBSD.org wrote: -=-=-=-=-=- Module Name: src Committed By:chs Date:Sun Aug 17 23:03:58 UTC 2014 Modified Files

Re: CVS commit: src/sys/arch

2014-11-10 Thread Chuck Silvers
On Sun, Nov 09, 2014 at 08:34:38AM -0500, Michael wrote: On Sun, 9 Nov 2014 00:05:06 + Chuck Silvers c...@netbsd.org wrote: Module Name:src Committed By: chs Date: Sun Nov 9 00:05:06 UTC 2014 Modified Files: src/sys/arch/macppc/macppc: locore.S

Re: kernel memory allocation failures

2015-12-10 Thread Chuck Silvers
On Thu, Dec 10, 2015 at 11:00:11PM -0500, Christos Zoulas wrote: > On Dec 11, 11:37am, k-nakah...@iij.ad.jp (Kengo NAKAHARA) wrote: > -- Subject: Re: CVS commit: src/sys/net > > | Hi, > | > | > In article <20151210081103.E0FBBFB83%cvs.NetBSD.org@localhost>, > | > Kengo NAKAHARA

Re: CVS commit: src/sys/netinet

2017-12-28 Thread Chuck Silvers
On Thu, Dec 28, 2017 at 05:34:27PM +0900, Ryota Ozaki wrote: > On Thu, Dec 28, 2017 at 5:05 PM, Tom Ivar Helbekkmo > wrote: > > Ryota Ozaki writes: > > > >> I think the below patch fixes the above issue, but probably > >> there is a better solution. > >

CVS commit: src/sys/kern

2019-06-09 Thread Chuck Silvers
Module Name:src Committed By: chs Date: Mon Jun 10 00:35:47 UTC 2019 Modified Files: src/sys/kern: sysv_shm.c Log Message: shmctl(SHM_LOCK) does not need to mess with mappings of the shm segment, uvm_obj_wirepages() is sufficient. this fixes the problem reported in

CVS commit: src/sys/kern

2019-06-09 Thread Chuck Silvers
Module Name:src Committed By: chs Date: Mon Jun 10 00:35:47 UTC 2019 Modified Files: src/sys/kern: sysv_shm.c Log Message: shmctl(SHM_LOCK) does not need to mess with mappings of the shm segment, uvm_obj_wirepages() is sufficient. 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

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/miscfs/procfs

2019-09-07 Thread Chuck Silvers
Module Name:src Committed By: chs Date: Sat Sep 7 19:08:28 UTC 2019 Modified Files: src/sys/miscfs/procfs: procfs_linux.c Log Message: have procfs_do_pid_stat() pass the proc's map to get_proc_size_info(), rather than having the latter look up the map again and not check

CVS commit: src/sys/miscfs/procfs

2019-09-07 Thread Chuck Silvers
Module Name:src Committed By: chs Date: Sat Sep 7 19:08:28 UTC 2019 Modified Files: src/sys/miscfs/procfs: procfs_linux.c Log Message: have procfs_do_pid_stat() pass the proc's map to get_proc_size_info(), rather than having the latter look up the map again and not check

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/external/bsd/drm2/dist/drm/i915

2019-09-28 Thread Chuck Silvers
Module Name:src Committed By: chs Date: Sat Sep 28 16:14:52 UTC 2019 Modified Files: src/sys/external/bsd/drm2/dist/drm/i915: intel_lrc.c intel_ringbuffer.c Log Message: initialize a local variable to avoid a gcc warning with certain optimization options. To generate a

CVS commit: src/sys/external/bsd/drm2/dist/drm/i915

2019-09-28 Thread Chuck Silvers
Module Name:src Committed By: chs Date: Sat Sep 28 16:14:52 UTC 2019 Modified Files: src/sys/external/bsd/drm2/dist/drm/i915: intel_lrc.c intel_ringbuffer.c Log Message: initialize a local variable to avoid a gcc warning with certain optimization options. To generate a

CVS commit: src/sys/arch/cesfic/cesfic

2019-09-26 Thread Chuck Silvers
Module Name:src Committed By: chs Date: Fri Sep 27 00:53:34 UTC 2019 Modified Files: src/sys/arch/cesfic/cesfic: autoconf.c Log Message: do not clear "cold" in MD code, that is done in MI code. this instance was missed when that was changed 20 years ago. To generate a

CVS commit: src/sys/arch/cesfic/cesfic

2019-09-26 Thread Chuck Silvers
Module Name:src Committed By: chs Date: Fri Sep 27 00:53:34 UTC 2019 Modified Files: src/sys/arch/cesfic/cesfic: autoconf.c Log Message: do not clear "cold" in MD code, that is done in MI code. this instance was missed when that was changed 20 years ago. To generate a

CVS commit: src/sys/dev/marvell

2019-10-01 Thread Chuck Silvers
Module Name:src Committed By: chs Date: Tue Oct 1 17:35:09 UTC 2019 Modified Files: src/sys/dev/marvell: files.armada if_mvxpe.c Log Message: make this compile again: - remove unused config attributes - rename a local variable to avoid a name conflict To generate a

CVS commit: src/sys/dev/marvell

2019-10-01 Thread Chuck Silvers
Module Name:src Committed By: chs Date: Tue Oct 1 17:35:09 UTC 2019 Modified Files: src/sys/dev/marvell: files.armada if_mvxpe.c Log Message: make this compile again: - remove unused config attributes - rename a local variable to avoid a name conflict To generate a

CVS commit: src/sys/kern

2019-10-01 Thread Chuck Silvers
Module Name:src Committed By: chs Date: Tue Oct 1 16:36:58 UTC 2019 Modified Files: src/sys/kern: sysv_shm.c Log Message: in shmdt(), wait until shmat() completes before detaching. Reported-by: syzbot+8f470a1bf36b47ae0...@syzkaller.appspotmail.com Reported-by:

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

2019-10-01 Thread Chuck Silvers
Module Name:src Committed By: chs Date: Tue Oct 1 17:45:25 UTC 2019 Modified Files: src/sys/net: if_media.c Log Message: in ifmedia_add(), use a wait-style memory allocation rather than not waiting and panic'ing if the allocation fails. Reported-by:

CVS commit: src/sys/net

2019-10-01 Thread Chuck Silvers
Module Name:src Committed By: chs Date: Tue Oct 1 17:45:25 UTC 2019 Modified Files: src/sys/net: if_media.c Log Message: in ifmedia_add(), use a wait-style memory allocation rather than not waiting and panic'ing if the allocation fails. Reported-by:

CVS commit: src/sys/kern

2019-10-01 Thread Chuck Silvers
Module Name:src Committed By: chs Date: Tue Oct 1 16:36:58 UTC 2019 Modified Files: src/sys/kern: sysv_shm.c Log Message: in shmdt(), wait until shmat() completes before detaching. Reported-by: syzbot+8f470a1bf36b47ae0...@syzkaller.appspotmail.com Reported-by:

CVS commit: src/sys

2019-10-01 Thread Chuck Silvers
Module Name:src Committed By: chs Date: Tue Oct 1 18:00:09 UTC 2019 Modified Files: src/sys/arch/aarch64/aarch64: cpufunc.c src/sys/arch/arm/altera: cycv_clkmgr.c src/sys/arch/arm/arm: undefined.c src/sys/arch/ia64/ia64: cpu.c

CVS commit: src/sys

2019-10-01 Thread Chuck Silvers
Module Name:src Committed By: chs Date: Tue Oct 1 18:00:09 UTC 2019 Modified Files: src/sys/arch/aarch64/aarch64: cpufunc.c src/sys/arch/arm/altera: cycv_clkmgr.c src/sys/arch/arm/arm: undefined.c src/sys/arch/ia64/ia64: cpu.c

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

2019-11-10 Thread Chuck Silvers
Module Name:src Committed By: chs Date: Sun Nov 10 21:16:38 UTC 2019 Modified Files: src/sys/arch/acorn32/mainbus: fd.c src/sys/arch/algor/algor: algor_p4032_intr.c algor_p5064_intr.c algor_p6032_intr.c src/sys/arch/algor/pci: pcib.c

CVS commit: src/sys/arch/amd64/conf

2019-11-10 Thread Chuck Silvers
Module Name:src Committed By: chs Date: Sun Nov 10 20:41:16 UTC 2019 Modified Files: src/sys/arch/amd64/conf: ALL Log Message: add ips driver. To generate a diff of this commit: cvs rdiff -u -r1.128 -r1.129 src/sys/arch/amd64/conf/ALL Please note that diffs are not

CVS commit: src/sys/arch/amd64/conf

2019-11-10 Thread Chuck Silvers
Module Name:src Committed By: chs Date: Sun Nov 10 20:41:16 UTC 2019 Modified Files: src/sys/arch/amd64/conf: ALL Log Message: add ips driver. To generate a diff of this commit: cvs rdiff -u -r1.128 -r1.129 src/sys/arch/amd64/conf/ALL Please note that diffs are not

CVS commit: src/sys/external/bsd/ipf/netinet

2019-11-11 Thread Chuck Silvers
Module Name:src Committed By: chs Date: Mon Nov 11 19:33:43 UTC 2019 Modified Files: src/sys/external/bsd/ipf/netinet: ip_fil.h Log Message: revert rev 1.7 (which removed the fd_local field from frdest_t). this structure is part of the kernel/user ABI and so we would need

CVS commit: src/sys/external/bsd/ipf/netinet

2019-11-11 Thread Chuck Silvers
Module Name:src Committed By: chs Date: Mon Nov 11 19:33:43 UTC 2019 Modified Files: src/sys/external/bsd/ipf/netinet: ip_fil.h Log Message: revert rev 1.7 (which removed the fd_local field from frdest_t). this structure is part of the kernel/user ABI and so we would need

CVS commit: src/sys

2019-10-14 Thread Chuck Silvers
Module Name:src Committed By: chs Date: Tue Oct 15 00:13:53 UTC 2019 Modified Files: src/sys/arch/ia64/ia64: sapic.c src/sys/arch/sparc64/dev: ldc.c src/sys/arch/x86/x86: cpu_ucode_amd.c src/sys/dev/acpi: sdhc_acpi.c src/sys/dev/ata: ata.c

CVS commit: src/sys

2019-10-14 Thread Chuck Silvers
Module Name:src Committed By: chs Date: Tue Oct 15 00:13:53 UTC 2019 Modified Files: src/sys/arch/ia64/ia64: sapic.c src/sys/arch/sparc64/dev: ldc.c src/sys/arch/x86/x86: cpu_ucode_amd.c src/sys/dev/acpi: sdhc_acpi.c src/sys/dev/ata: ata.c

CVS commit: src/sys/kern

2019-10-09 Thread Chuck Silvers
Module Name:src Committed By: chs Date: Wed Oct 9 17:47:13 UTC 2019 Modified Files: src/sys/kern: sysv_shm.c Log Message: simpler fix for the race between shmat() and shmdt(): change shmat() to hold shm_lock until it is completely done. To generate a diff of this

Re: CVS commit: src/sys/kern

2019-10-09 Thread Chuck Silvers
On Sun, Oct 06, 2019 at 08:41:35AM +0200, Maxime Villard wrote: > Le 01/10/2019 à 18:36, Chuck Silvers a écrit : > > Module Name:src > > Committed By: chs > > Date: Tue Oct 1 16:36:58 UTC 2019 > > > > Modified Files: > >

CVS commit: src/sys/kern

2019-10-09 Thread Chuck Silvers
Module Name:src Committed By: chs Date: Wed Oct 9 17:47:13 UTC 2019 Modified Files: src/sys/kern: sysv_shm.c Log Message: simpler fix for the race between shmat() and shmdt(): change shmat() to hold shm_lock until it is completely done. To generate a diff of this

CVS commit: src/sys/kern

2019-10-09 Thread Chuck Silvers
Module Name:src Committed By: chs Date: Wed Oct 9 17:44:45 UTC 2019 Modified Files: src/sys/kern: sysv_shm.c Log Message: revert rev 1.139 (fixing a race between shmat() and shmdt()) that approach turned out to be too complicated. To generate a diff of this commit: cvs

CVS commit: src/sys/kern

2019-10-09 Thread Chuck Silvers
Module Name:src Committed By: chs Date: Wed Oct 9 17:44:45 UTC 2019 Modified Files: src/sys/kern: sysv_shm.c Log Message: revert rev 1.139 (fixing a race between shmat() and shmdt()) that approach turned out to be too complicated. To generate a diff of this commit: cvs

Re: CVS commit: src/sys

2020-08-14 Thread Chuck Silvers
On Sat, Aug 15, 2020 at 01:20:48AM +0900, Ryo ONODERA wrote: > Hi, > > "Chuck Silvers" writes: > > > Module Name:src > > Committed By: chs > > Date: Fri Aug 14 09:06:15 UTC 2020 > > > > Modified Files: > >

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

2020-07-04 Thread Chuck Silvers
no longer relevant? And I > can now include microcode-loader compat code in the appropriate > compat_xx module? > > :) > > > On Sat, 4 Jul 2020, Chuck Silvers wrote: > > > Module Name:src > > Committed By: chs > > Date: S