The NetBSD Project

CVS log for src/sys/miscfs/procfs/procfs_subr.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / miscfs / procfs

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.117 / (download) - annotate - [select for diffs], Wed Jan 17 10:20:12 2024 UTC (2 months, 4 weeks ago) by hannken
Branch: MAIN
CVS Tags: HEAD
Changes since 1.116: +2 -53 lines
Diff to previous 1.116 (colored) to selected 1.18 (colored)

Using the exechook to revoke procfs nodes is racy and may deadlock:

one thread runs doexechooks() -> procfs_revoke_vnodes() and wants to suspend
the file system for vgone(), while another thread runs a forced unmount,
has the file system suspended, tries to disestablish the exechook and
waits for doexechooks() to complete.

Establish/disestablish the exechook on module load/unload instead
mount/unmount and use the hashmap to access all procfs nodes for this pid.

May fix PR kern/57775 ""panic: unmount: dangling vnode" while umounting procfs"

Revision 1.116 / (download) - annotate - [select for diffs], Sat May 23 23:42:43 2020 UTC (3 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.115: +6 -5 lines
Diff to previous 1.115 (colored) to selected 1.18 (colored)

Move proc_lock into the data segment.  It was dynamically allocated because
at the time we had mutex_obj_alloc() but not __cacheline_aligned.

Revision 1.115 / (download) - annotate - [select for diffs], Wed Apr 29 01:56:54 2020 UTC (3 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.114: +23 -5 lines
Diff to previous 1.114 (colored) to selected 1.18 (colored)

If the procfs mount is marked as linux-compat, then allow proc lookup
by any LWP ID in the proc, not just the canonical PID.

Revision 1.112.2.2 / (download) - annotate - [select for diffs], Mon Apr 13 08:05:05 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.112.2.1: +3 -3 lines
Diff to previous 1.112.2.1 (colored) to branchpoint 1.112 (colored) next main 1.113 (colored) to selected 1.18 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.114 / (download) - annotate - [select for diffs], Thu Sep 26 17:34:08 2019 UTC (4 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.113: +3 -3 lines
Diff to previous 1.113 (colored) to selected 1.18 (colored)

fix sign-compare issues: uio->uio_offset (off_t) is compared with (size_t):
cast the offset to size_t.

Revision 1.112.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:09:06 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.112: +6 -2 lines
Diff to previous 1.112 (colored) to selected 1.18 (colored)

Sync with HEAD

Revision 1.113 / (download) - annotate - [select for diffs], Sat Mar 30 23:28:30 2019 UTC (5 years ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20190609, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2
Changes since 1.112: +6 -2 lines
Diff to previous 1.112 (colored) to selected 1.18 (colored)

add a node for the process resource limits.

Revision 1.111.2.1 / (download) - annotate - [select for diffs], Sun Apr 22 07:20:27 2018 UTC (5 years, 11 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.111: +22 -4 lines
Diff to previous 1.111 (colored) next main 1.112 (colored) to selected 1.18 (colored)

Sync with HEAD

Revision 1.108.6.2 / (download) - annotate - [select for diffs], Tue Apr 17 08:36:11 2018 UTC (6 years ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1
Changes since 1.108.6.1: +22 -4 lines
Diff to previous 1.108.6.1 (colored) to branchpoint 1.108 (colored) next main 1.109 (colored) to selected 1.18 (colored)

Pull up following revision(s) (requested by hannken in ticket #772):

	sys/miscfs/procfs/procfs_subr.c: revision 1.112

Change procfs_revoke_vnodes() to use vrecycle()/vgone() instead
of VOP_REVOKE().

Gets rid of a bunch of suspensions on /proc as vrecycle() will
succeed most time and we suspend at most once per call.

Revision 1.112 / (download) - annotate - [select for diffs], Mon Apr 16 20:27:38 2018 UTC (6 years ago) by hannken
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422
Branch point for: phil-wifi
Changes since 1.111: +22 -4 lines
Diff to previous 1.111 (colored) to selected 1.18 (colored)

Change procfs_revoke_vnodes() to use vrecycle()/vgone() instead
of VOP_REVOKE().

Gets rid of a bunch of suspensions on /proc as vrecycle() will
succeed most time and we suspend at most once per call.

Revision 1.108.6.1 / (download) - annotate - [select for diffs], Thu Apr 12 13:42:48 2018 UTC (6 years ago) by martin
Branch: netbsd-8
Changes since 1.108: +2 -6 lines
Diff to previous 1.108 (colored) to selected 1.18 (colored)

Pull up following revision(s) (requested by kamil in ticket #713):

	sys/modules/procfs/Makefile: revision 1.4
	sys/miscfs/procfs/procfs_vfsops.c: revision 1.98
	bin/ps/ps.1: revision 1.108
	sys/compat/linux/arch/i386/linux_ptrace.c: revision 1.32
	sys/miscfs/procfs/procfs_vnops.c: revision 1.198
	sys/kern/sys_ptrace_common.c: revision 1.23
	sys/kern/sys_ptrace_common.c: revision 1.24
	sbin/mount_procfs/mount_procfs.8: revision 1.36
	sys/kern/sys_ptrace_common.c: revision 1.25
	sys/kern/sys_ptrace.c: revision 1.5
	sys/compat/linux/arch/powerpc/linux_ptrace.c: revision 1.30
	sys/sys/proc.h: revision 1.342
	sys/kern/sys_ptrace_common.c: revision 1.26
	sys/miscfs/procfs/procfs_ctl.c: file removal
	sys/kern/sys_ptrace_common.c: revision 1.27
	sys/miscfs/procfs/procfs_subr.c: revision 1.109
	sys/kern/sys_ptrace_common.c: revision 1.28
	sys/secmodel/extensions/secmodel_extensions.c: revision 1.8
	sys/kern/sys_ptrace_common.c: revision 1.29
	sys/sys/ptrace.h: revision 1.62
	sys/compat/netbsd32/netbsd32_signal.c: revision 1.45
	share/man/man9/kauth.9: revision 1.109
	sys/miscfs/procfs/files.procfs: revision 1.12
	sys/compat/netbsd32/netbsd32.h: revision 1.115
	sys/miscfs/procfs/procfs.h: revision 1.72
	sys/compat/netbsd32/netbsd32_ptrace.c: revision 1.5
	sys/kern/kern_sig.c: revision 1.337
	sys/sys/kauth.h: revision 1.75
	sys/sys/sysctl.h: revision 1.224
	sys/kern/sys_ptrace_common.c: revision 1.30
	sys/kern/sys_ptrace_common.c: revision 1.31
	sys/kern/sys_ptrace_common.c: revision 1.32
	sys/kern/sys_ptrace_common.c: revision 1.33
	sys/compat/linux/arch/arm/linux_ptrace.c: revision 1.20
	sys/kern/sys_ptrace_common.c: revision 1.34
	sys/kern/sys_ptrace_common.c: revision 1.36
	sys/kern/kern_proc.c: revision 1.207
	sys/kern/kern_exit.c: revision 1.269
	doc/TODO.ptrace: revision 1.29

Make {s,g}et{db,fp,}regs work again for PK_32 processes
XXX: pullup-8

add disgusting magic to handle compat_netbsd32 as a module.

use process_*reg32 instead of struct *reg32.

Remove the filesystem tracing feature

This is a legacy interface from 4.4BSD, and it was
introduced to overcome shortcomings of ptrace(2) at that time, which are
no longer relevant (performance). Today /proc/#/ctl offers a narrow
subset of ptrace(2) commands and is not applicable for modern
applications use beyond simplistic tracing scenarios.

This removal will simplify kernel internals. Users will still be able to
use all the other /proc files.

This change won't affect other procfs files neither Linux compat
features within mount_procfs(8). /proc/#/ctl isn't available on Linux.

Remove:
 - /proc/#/ctl from mount_procfs(8)
 - P_FSTRACE note from the documentation of ps(1)
 - /proc/#/ctl and filesystem tracing documentation from mount_procfs(8)
 - KAUTH_REQ_PROCESS_PROCFS_CTL documentation from kauth(9)
 - source code file miscfs/procfs/procfs_ctl.c
 - PFSctl and procfs_doctl() from sys/miscfs/procfs/procfs.h
 - KAUTH_REQ_PROCESS_PROCFS_CTL from sys/sys/kauth.h
 - PSL_FSTRACE (0x00010000) from sys/sys/proc.h
 - P_FSTRACE (0x00010000) from sys/sys/sysctl.h

Reduce code complexity after removal of this functionality.

Update TODO.ptrace accordingly: remove two entries about /proc tracing.

Do not keep legacy notes as comments in the headers about removed

PSL_FSTRACE / P_FSTRACE, as this interface had little number of users
(close or equal to zero).
Proposed on tech-kern@.

All filesystem tracing utility users are encouraged to switch to ptrace(2).

Sponsored by <The NetBSD Foundation>

untangle the mess:
- factor out common code
- break each ptrace subcall to its own sub-function
  .. more to come ...
- reduce ifdef ugliness by moving it up top.
- factor out PT_IO and make PT_{READ,WRITE}_{I,D} use it
- factor out PT_DUMPCORE
- factor out sendsig code
  .. more to come ...

handle siginfo requests for ptrace32

ptrace: Partially undo PT_{READ,WRITE}_{I,D} and unbreak these commands

The refactored code did not work and was generating EFAULT.

Sponsored by <The NetBSD Foundation>

Merge the code back; the problem was that since we are reading/writing
to a kernel address for PT_{READ,WRITE}_{I,D} we need the kernel vmspace.
provide separate read and write functions to accomodate register functions
that need a size argument.

don't ignore error from copyout_piod

Use the proper process (the tracee) to get information about lwps and
registers and the tracer for vmspace.

Add new sysctl(3) entry: security.models.extensions.user_set_dbregs

Model this new sysctl(3) entry after "user_set_cpu_affinity" in the same
level of sysctl(3) switches.

Allow to read unconditionally Debug Registers (no change here). This is
convenient as even if a user of a debugger does not use hardware assisted
watchpoints/breakpoints, a debugger can still prompt these values to store
in an internal cache with context of registers. Reading them should have
no security concerns.

Add a paranoid MI switch that prohibits by default setting these registers
by a regular user (non-superuser). Make this switch disabled by default.
There are enough reserved bits out there to allow using them
unconditionally on hardened hosts.

Features shipped with Debug Registers are optional features in debuggers.
There is no reduction in elementary functionality.

Reviewed by <christos>

Sponsored by <The NetBSD Foundation>

Revision 1.111 / (download) - annotate - [select for diffs], Sun Dec 31 03:29:18 2017 UTC (6 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-compat-base, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.110: +4 -4 lines
Diff to previous 1.110 (colored) to selected 1.18 (colored)

rename some "cmdline" stuff now that it is used to print environment too

Revision 1.110 / (download) - annotate - [select for diffs], Sun Dec 31 03:02:23 2017 UTC (6 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.109: +8 -3 lines
Diff to previous 1.109 (colored) to selected 1.18 (colored)

Add an environ node

Revision 1.101.2.3 / (download) - annotate - [select for diffs], Sun Dec 3 11:38:48 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.101.2.2: +9 -6 lines
Diff to previous 1.101.2.2 (colored) to branchpoint 1.101 (colored) next main 1.102 (colored) to selected 1.18 (colored)

update from HEAD

Revision 1.106.2.1 / (download) - annotate - [select for diffs], Mon Aug 28 17:53:09 2017 UTC (6 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.106: +11 -3 lines
Diff to previous 1.106 (colored) next main 1.107 (colored) to selected 1.18 (colored)

Sync with HEAD

Revision 1.109 / (download) - annotate - [select for diffs], Mon Aug 28 00:46:07 2017 UTC (6 years, 7 months ago) by kamil
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202
Changes since 1.108: +2 -6 lines
Diff to previous 1.108 (colored) to selected 1.18 (colored)

Remove the filesystem tracing feature

This is a legacy interface from 4.4BSD, and it was
introduced to overcome shortcomings of ptrace(2) at that time, which are
no longer relevant (performance). Today /proc/#/ctl offers a narrow
subset of ptrace(2) commands and is not applicable for modern
applications use beyond simplistic tracing scenarios.

This removal will simplify kernel internals. Users will still be able to
use all the other /proc files.

This change won't affect other procfs files neither Linux compat
features within mount_procfs(8). /proc/#/ctl isn't available on Linux.

Remove:
 - /proc/#/ctl from mount_procfs(8)
 - P_FSTRACE note from the documentation of ps(1)
 - /proc/#/ctl and filesystem tracing documentation from mount_procfs(8)
 - KAUTH_REQ_PROCESS_PROCFS_CTL documentation from kauth(9)
 - source code file miscfs/procfs/procfs_ctl.c
 - PFSctl and procfs_doctl() from sys/miscfs/procfs/procfs.h
 - KAUTH_REQ_PROCESS_PROCFS_CTL from sys/sys/kauth.h
 - PSL_FSTRACE (0x00010000) from sys/sys/proc.h
 - P_FSTRACE (0x00010000) from sys/sys/sysctl.h

Reduce code complexity after removal of this functionality.

Update TODO.ptrace accordingly: remove two entries about /proc tracing.

Do not keep legacy notes as comments in the headers about removed
PSL_FSTRACE / P_FSTRACE, as this interface had little number of users
(close or equal to zero).

Proposed on tech-kern@.

All filesystem tracing utility users are encouraged to switch to ptrace(2).

Sponsored by <The NetBSD Foundation>

Revision 1.106.4.1 / (download) - annotate - [select for diffs], Wed Apr 26 02:53:28 2017 UTC (6 years, 11 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.106: +11 -3 lines
Diff to previous 1.106 (colored) next main 1.107 (colored) to selected 1.18 (colored)

Sync with HEAD

Revision 1.106.6.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:54:04 2017 UTC (6 years, 11 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.106: +11 -3 lines
Diff to previous 1.106 (colored) next main 1.107 (colored) to selected 1.18 (colored)

Sync with HEAD

Revision 1.108 / (download) - annotate - [select for diffs], Sat Apr 1 19:35:57 2017 UTC (7 years ago) by riastradh
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1
Branch point for: netbsd-8
Changes since 1.107: +7 -3 lines
Diff to previous 1.107 (colored) to selected 1.18 (colored)

KASSERT(mutex_owned(vp->v_interlock)) in vnode iterator selector.

Revision 1.107 / (download) - annotate - [select for diffs], Thu Mar 30 20:16:29 2017 UTC (7 years ago) by christos
Branch: MAIN
Changes since 1.106: +6 -2 lines
Diff to previous 1.106 (colored) to selected 1.18 (colored)

add an auxv node.

Revision 1.105.2.1 / (download) - annotate - [select for diffs], Sat Jan 17 12:10:54 2015 UTC (9 years, 3 months ago) by martin
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Changes since 1.105: +2 -3 lines
Diff to previous 1.105 (colored) next main 1.106 (colored) to selected 1.18 (colored)

Pull up following revision(s) (requested by maxv in ticket #427):
	sys/compat/svr4/svr4_schedctl.c: revision 1.8
	sys/netinet/tcp_timer.c: revision 1.88
	sys/miscfs/genfs/layer_vfsops.c: revision 1.45
	sys/compat/svr4/svr4_ioctl.c: revision 1.37
	sys/ufs/chfs/chfs_vfsops.c: revision 1.14
	sys/miscfs/fdesc/fdesc_vfsops.c: revision 1.91
	sys/compat/linux/arch/i386/linux_ptrace.c: revision 1.30
	sys/compat/common/kern_time_50.c: revision 1.28
	sys/netinet6/ip6_forward.c: revision 1.74
	sys/miscfs/umapfs/umap_vnops.c: revision 1.57
	sys/compat/svr4/svr4_fcntl.c: revision 1.74
	distrib/sets/lists/comp/mi: revision 1.1931
	sys/netinet6/udp6_output.c: revision 1.46
	sys/fs/puffs/puffs_compat.c: revision 1.3
	sys/fs/udf/udf_rename.c: revision 1.11
	sys/compat/svr4/svr4_filio.c: revision 1.24
	sys/fs/udf/udf_rename.c: revision 1.12
	sys/netinet/tcp_usrreq.c: revision 1.202
	sys/miscfs/umapfs/umap_subr.c: revision 1.29
	sys/compat/linux/common/linux_fadvise64.c: revision 1.3
	sys/netinet/if_atm.c: revision 1.34
	sys/miscfs/procfs/procfs_subr.c: revision 1.106
	sys/miscfs/genfs/layer_subr.c: revision 1.37
	sys/netinet/tcp_sack.c: revision 1.30
	sys/compat/freebsd/freebsd_misc.c: revision 1.33
	sys/compat/freebsd/freebsd_file.c: revision 1.33
	sys/ufs/chfs/chfs_vnode.c: revision 1.12
	sys/compat/svr4/svr4_ttold.c: revision 1.34
	sys/compat/linux/common/linux_file.c: revision 1.114
	sys/compat/linux/arch/mips/linux_machdep.c: revision 1.43
	sys/compat/linux/common/linux_signal.c: revision 1.76
	sys/compat/common/compat_util.c: revision 1.46
	sys/compat/linux/arch/arm/linux_ptrace.c: revision 1.18
	sys/compat/svr4/svr4_sockio.c: revision 1.36
	sys/compat/linux/arch/arm/linux_machdep.c: revision 1.32
	sys/compat/svr4/svr4_signal.c: revision 1.66
	sys/kern/kern_exec.c: revision 1.410
	sys/fs/puffs/puffs_vfsops.c: revision 1.115
	sys/compat/svr4/svr4_exec_elf64.c: revision 1.15
	sys/compat/linux/arch/i386/linux_machdep.c: revision 1.159
	sys/compat/linux/arch/alpha/linux_machdep.c: revision 1.50
	sys/compat/linux32/common/linux32_misc.c: revision 1.24
	sys/netinet/in_pcb.c: revision 1.153
	sys/sys/malloc.h: revision 1.116
	sys/compat/common/if_43.c: revision 1.9
	share/man/man9/Makefile: revision 1.380
	sys/netinet/tcp_vtw.c: revision 1.12
	sys/miscfs/umapfs/umap_vfsops.c: revision 1.95
	sys/ufs/ext2fs/ext2fs_vfsops.c: revision 1.186
	sys/compat/common/uipc_syscalls_43.c: revision 1.46
	sys/ufs/ext2fs/ext2fs_vnops.c: revision 1.115
	sys/fs/puffs/puffs_msgif.c: revision 1.97
	sys/compat/svr4/svr4_ipc.c: revision 1.27
	sys/compat/linux/common/linux_exec.c: revision 1.117
	sys/ufs/ext2fs/ext2fs_readwrite.c: revision 1.66
	sys/netinet/tcp_output.c: revision 1.179
	sys/compat/svr4/svr4_termios.c: revision 1.28
	sys/fs/udf/udf_strat_bootstrap.c: revision 1.4
	sys/fs/puffs/puffs_subr.c: revision 1.67
	sys/fs/puffs/puffs_node.c: revision 1.36
	sys/miscfs/overlay/overlay_vnops.c: revision 1.21
	sys/fs/cd9660/cd9660_node.c: revision 1.34
	sys/netinet/raw_ip.c: revision 1.146
	sys/sys/mallocvar.h: revision 1.13
	sys/miscfs/overlay/overlay_vfsops.c: revision 1.63
	share/man/man9/malloc.9: revision 1.50
	sys/netinet6/dest6.c: revision 1.18
	sys/compat/linux/common/linux_uselib.c: revision 1.33
	sys/compat/linux/common/linux_socket.c: revision 1.120
	share/man/man9/malloc.9: revision 1.51
	sys/netinet/tcp_subr.c: revision 1.257
	sys/compat/linux/common/linux_socketcall.c: revision 1.45
	sys/compat/linux/common/linux_fadvise64_64.c: revision 1.3
	sys/compat/freebsd/freebsd_ipc.c: revision 1.17
	sys/compat/linux/common/linux_misc_notalpha.c: revision 1.109
	sys/compat/linux/arch/alpha/linux_pipe.c: revision 1.17
	sys/netinet6/in6_pcb.c: revision 1.132
	sys/netinet6/in6_ifattach.c: revision 1.94
	sys/compat/svr4/svr4_exec_elf32.c: revision 1.15
	sys/miscfs/nullfs/null_vfsops.c: revision 1.90
	sys/fs/cd9660/cd9660_util.c: revision 1.12
	sys/compat/linux/arch/powerpc/linux_machdep.c: revision 1.48
	sys/compat/freebsd/freebsd_exec_elf32.c: revision 1.20
	sys/miscfs/procfs/procfs_vfsops.c: revision 1.94
	sys/compat/linux/arch/powerpc/linux_ptrace.c: revision 1.28
	sys/compat/linux/common/linux_sched.c: revision 1.67
	sys/compat/linux/common/linux_exec_aout.c: revision 1.67
	sys/compat/linux/common/linux_pipe.c: revision 1.67
	sys/compat/linux/common/linux_llseek.c: revision 1.34
	sys/compat/linux/arch/mips/linux_ptrace.c: revision 1.10
Do not uselessly include <sys/malloc.h>.
Cleanup:
 - remove struct kmembuckets (dead)
 - correctly deadify MALLOC_XX
 - remove MALLOC_DEFINE_LIMIT and MALLOC_JUSTDEFINE_LIMIT (dead)
 - remove malloc_roundup(), malloc_type_setlimit(), MALLOC_DEFINE_LIMIT()
   and MALLOC_JUSTDEFINE_LIMIT() from man 9 malloc
New sentence, new line. Bump date for previous.
Obsolete malloc_roundup(9), malloc_type_setlimit(9) and MALLOC_DEFINE_LIMIT(9)
man pages.

Revision 1.106 / (download) - annotate - [select for diffs], Mon Nov 10 18:46:34 2014 UTC (9 years, 5 months ago) by maxv
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, localcount-20160914, bouyer-socketcan-base
Branch point for: pgoyette-localcount, nick-nhusb, bouyer-socketcan
Changes since 1.105: +2 -3 lines
Diff to previous 1.105 (colored) to selected 1.18 (colored)

Do not uselessly include <sys/malloc.h>.

Revision 1.101.2.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:31 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.101.2.1: +25 -334 lines
Diff to previous 1.101.2.1 (colored) to branchpoint 1.101 (colored) to selected 1.18 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.104.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:56:05 2014 UTC (9 years, 8 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.104: +23 -323 lines
Diff to previous 1.104 (colored) next main 1.105 (colored) to selected 1.18 (colored)

Rebase.

Revision 1.105 / (download) - annotate - [select for diffs], Sun Jul 27 16:47:26 2014 UTC (9 years, 8 months ago) by hannken
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-base
Branch point for: netbsd-7
Changes since 1.104: +23 -323 lines
Diff to previous 1.104 (colored) to selected 1.18 (colored)

Change procfs from hashlist to vcache.
- Key is (type, pid, fd)
- Remove argument "p" from procfs_allocvp().  It is only used
  when "type == PFSfd".  Lookup the proc with proc_find() when
  procfs_loadvnode() needs it.
- Use a vfs_vnode_iterator for procfs_revoke_vnodes().

Revision 1.100.2.3 / (download) - annotate - [select for diffs], Thu May 22 11:41:05 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.100.2.2: +19 -28 lines
Diff to previous 1.100.2.2 (colored) to branchpoint 1.100 (colored) next main 1.101 (colored) to selected 1.18 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.102.2.1 / (download) - annotate - [select for diffs], Sun May 18 17:46:09 2014 UTC (9 years, 11 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.102: +19 -28 lines
Diff to previous 1.102 (colored) next main 1.103 (colored) to selected 1.18 (colored)

sync with head

Revision 1.104 / (download) - annotate - [select for diffs], Fri Feb 7 15:29:22 2014 UTC (10 years, 2 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Changes since 1.103: +11 -19 lines
Diff to previous 1.103 (colored) to selected 1.18 (colored)

Change vnode operation lookup to return the resulting vnode *vpp unlocked.
Change cache_lookup() to return an unlocked vnode.

Discussed on tech-kern@

Welcome to 6.99.31

Revision 1.103 / (download) - annotate - [select for diffs], Tue Oct 29 09:53:51 2013 UTC (10 years, 5 months ago) by hannken
Branch: MAIN
Changes since 1.102: +10 -11 lines
Diff to previous 1.102 (colored) to selected 1.18 (colored)

Vnode API cleanup pass 1.

- Make these defines and functions private to vfs_vnode.c:

  VC_MASK, VC_LOCK, DOCLOSE, VI_IANCTREDO and VI_INACTNOW
  vclean() and vrelel()

- Remove the long time unused lwp argument from vrecycle().

- Remove vtryget(), it is responsible for ugly hacks and doesn't
  look that effective.

Presented on tech-kern.

Welcome to 6.99.25

Revision 1.101.2.1 / (download) - annotate - [select for diffs], Mon Feb 25 00:29:59 2013 UTC (11 years, 1 month ago) by tls
Branch: tls-maxphys
Changes since 1.101: +3 -2 lines
Diff to previous 1.101 (colored) to selected 1.18 (colored)

resync with head

Revision 1.100.2.2 / (download) - annotate - [select for diffs], Wed Jan 16 05:33:46 2013 UTC (11 years, 3 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.100.2.1: +3 -2 lines
Diff to previous 1.100.2.1 (colored) to branchpoint 1.100 (colored) to selected 1.18 (colored)

sync with (a bit old) head

Revision 1.102 / (download) - annotate - [select for diffs], Sun Nov 25 01:03:05 2012 UTC (11 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: rmind-smpnet
Changes since 1.101: +3 -2 lines
Diff to previous 1.101 (colored) to selected 1.18 (colored)

do something reasonable with kernel semaphores.

Revision 1.100.2.1 / (download) - annotate - [select for diffs], Tue Oct 30 17:22:40 2012 UTC (11 years, 5 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.100: +11 -3 lines
Diff to previous 1.100 (colored) to selected 1.18 (colored)

sync with head

Revision 1.100.6.1 / (download) - annotate - [select for diffs], Sat Jun 2 11:09:36 2012 UTC (11 years, 10 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.100: +11 -3 lines
Diff to previous 1.100 (colored) next main 1.101 (colored) to selected 1.18 (colored)

sync to latest -current.

Revision 1.101 / (download) - annotate - [select for diffs], Mon May 28 13:16:10 2012 UTC (11 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base6, jmcneill-usbmp-base10
Branch point for: tls-maxphys
Changes since 1.100: +11 -3 lines
Diff to previous 1.100 (colored) to selected 1.18 (colored)

add a task process subdirectory for emul linux

Revision 1.100 / (download) - annotate - [select for diffs], Sun Sep 4 17:32:10 2011 UTC (12 years, 7 months ago) by jmcneill
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, jmcneill-usbmp
Changes since 1.99: +7 -2 lines
Diff to previous 1.99 (colored) to selected 1.18 (colored)

PR# kern/45021: Please support /emul/linux/proc/version

Add /proc/version for procfs with -o linux. The version reported depends
on the emulation type of the calling process:

$ cat /proc/version
NetBSD version 5.99.55 (netbsd@localhost) (gcc version 4.1.3 20080704 prerelease (NetBSD nb2 20081120)) NetBSD 5.99.55 (GENERIC) #39: Sun Sep  4 09:10:05 EDT 2011

$ /emul/linux/bin/cat /proc/version
Linux version 2.6.18 (linux@localhost) (gcc version 4.1.3 20080704 prerelease (NetBSD nb2 20081120)) #0 Wed Mar 3 03:03:03 PST 2010

$ /emul/linux32/bin/cat /proc/version
Linux version 2.6.18 (linux32@localhost) (gcc version 4.1.3 20080704 prerelease (NetBSD nb2 20081120)) #0 Wed Mar 3 03:03:03 PST 2010

Revision 1.98.6.1 / (download) - annotate - [select for diffs], Thu Jun 23 14:20:24 2011 UTC (12 years, 9 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.98: +10 -8 lines
Diff to previous 1.98 (colored) next main 1.99 (colored) to selected 1.18 (colored)

Catchup with rmind-uvmplock merge.

Revision 1.99 / (download) - annotate - [select for diffs], Sun Jun 12 03:35:58 2011 UTC (12 years, 10 months ago) by rmind
Branch: MAIN
Changes since 1.98: +10 -8 lines
Diff to previous 1.98 (colored) to selected 1.18 (colored)

Welcome to 5.99.53!  Merge rmind-uvmplock branch:

- Reorganize locking in UVM and provide extra serialisation for pmap(9).
  New lock order: [vmpage-owner-lock] -> pmap-lock.

- Simplify locking in some pmap(9) modules by removing P->V locking.

- Use lock object on vmobjlock (and thus vnode_t::v_interlock) to share
  the locks amongst UVM objects where necessary (tmpfs, layerfs, unionfs).

- Rewrite and optimise x86 TLB shootdown code, make it simpler and cleaner.
  Add TLBSTATS option for x86 to collect statistics about TLB shootdowns.

- Unify /dev/mem et al in MI code and provide required locking (removes
  kernel-lock on some ports).  Also, avoid cache-aliasing issues.

Thanks to Andrew Doran and Joerg Sonnenberger, as their initial patches
formed the core changes of this branch.

Revision 1.95.4.4 / (download) - annotate - [select for diffs], Thu May 19 03:43:03 2011 UTC (12 years, 11 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.95.4.3: +6 -4 lines
Diff to previous 1.95.4.3 (colored) to branchpoint 1.95 (colored) next main 1.96 (colored) to selected 1.18 (colored)

Implement sharing of vnode_t::v_interlock amongst vnodes:
- Lock is shared amongst UVM objects using uvm_obj_setlock() or getnewvnode().
- Adjust vnode cache to handle unsharing, add VI_LOCKSHARE flag for that.
- Use sharing in tmpfs and layerfs for underlying object.
- Simplify locking in ubc_fault().
- Sprinkle some asserts.

Discussed with ad@.

Revision 1.95.4.3 / (download) - annotate - [select for diffs], Sat Mar 5 20:55:33 2011 UTC (13 years, 1 month ago) by rmind
Branch: rmind-uvmplock
Changes since 1.95.4.2: +3 -3 lines
Diff to previous 1.95.4.2 (colored) to branchpoint 1.95 (colored) to selected 1.18 (colored)

sync with head

Revision 1.95.2.1 / (download) - annotate - [select for diffs], Tue Aug 17 06:47:38 2010 UTC (13 years, 8 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.95: +5 -5 lines
Diff to previous 1.95 (colored) next main 1.96 (colored) to selected 1.18 (colored)

Sync with HEAD.

Revision 1.88.2.3 / (download) - annotate - [select for diffs], Wed Aug 11 22:54:48 2010 UTC (13 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.88.2.2: +5 -5 lines
Diff to previous 1.88.2.2 (colored) to branchpoint 1.88 (colored) next main 1.89 (colored) to selected 1.18 (colored)

sync with head.

Revision 1.98 / (download) - annotate - [select for diffs], Wed Jul 21 17:52:12 2010 UTC (13 years, 8 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, rmind-uvmplock-nbase, rmind-uvmplock-base, matt-mips64-premerge-20101231, jruoho-x86intr-base, jruoho-x86intr, cherry-xenmp-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: cherry-xenmp
Changes since 1.97: +3 -3 lines
Diff to previous 1.97 (colored) to selected 1.18 (colored)

Make holding v_interlock mandatory for callers of vget().

Announced some time ago on tech-kern.

Revision 1.95.4.2 / (download) - annotate - [select for diffs], Sat Jul 3 01:19:58 2010 UTC (13 years, 9 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.95.4.1: +4 -4 lines
Diff to previous 1.95.4.1 (colored) to branchpoint 1.95 (colored) to selected 1.18 (colored)

sync with head

Revision 1.97 / (download) - annotate - [select for diffs], Thu Jul 1 13:00:56 2010 UTC (13 years, 9 months ago) by hannken
Branch: MAIN
Changes since 1.96: +3 -3 lines
Diff to previous 1.96 (colored) to selected 1.18 (colored)

Remove vlockmgr().  Generic vnode lock operations now use a rwlock located
in the vnode.  All LK_* flags move from sys/lock.h to sys/vnode.h.  Calls
to vlockmgr() in file systems get replaced with VOP_LOCK() or VOP_UNLOCK().

Welcome to 5.99.34.

Discussed on tech-kern.

Revision 1.96 / (download) - annotate - [select for diffs], Thu Jul 1 02:38:31 2010 UTC (13 years, 9 months ago) by rmind
Branch: MAIN
Changes since 1.95: +3 -3 lines
Diff to previous 1.95 (colored) to selected 1.18 (colored)

Remove pfind() and pgfind(), fix locking in various broken uses of these.
Rename real routines to proc_find() and pgrp_find(), remove PFIND_* flags
and have consistent behaviour.  Provide proc_find_raw() for special cases.
Fix memory leak in sysctl_proc_corename().

COMPAT_LINUX: rework ptrace() locking, minimise differences between
different versions per-arch.

Note: while this change adds some formal cosmetics for COMPAT_DARWIN and
COMPAT_IRIX - locking there is utterly broken (for ages).

Fixes PR/43176.

Revision 1.95.4.1 / (download) - annotate - [select for diffs], Tue Mar 16 15:38:11 2010 UTC (14 years, 1 month ago) by rmind
Branch: rmind-uvmplock
Changes since 1.95: +6 -6 lines
Diff to previous 1.95 (colored) to selected 1.18 (colored)

Change struct uvm_object::vmobjlock to be dynamically allocated with
mutex_obj_alloc().  It allows us to share the locks among UVM objects.

Revision 1.93.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:22:17 2009 UTC (14 years, 11 months ago) by jym
Branch: jym-xensuspend
Changes since 1.93: +14 -37 lines
Diff to previous 1.93 (colored) next main 1.94 (colored) to selected 1.18 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.88.2.2 / (download) - annotate - [select for diffs], Mon May 4 08:14:05 2009 UTC (14 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.88.2.1: +30 -43 lines
Diff to previous 1.88.2.1 (colored) to branchpoint 1.88 (colored) to selected 1.18 (colored)

sync with head.

Revision 1.92.2.2 / (download) - annotate - [select for diffs], Tue Apr 28 07:37:15 2009 UTC (14 years, 11 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.92.2.1: +14 -37 lines
Diff to previous 1.92.2.1 (colored) to branchpoint 1.92 (colored) next main 1.93 (colored) to selected 1.18 (colored)

Sync with HEAD.

Revision 1.95 / (download) - annotate - [select for diffs], Sun Mar 15 17:22:38 2009 UTC (15 years, 1 month ago) by cegger
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, uebayasi-xip-base1, uebayasi-xip-base, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, matt-premerge-20091211, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.94: +5 -5 lines
Diff to previous 1.94 (colored) to selected 1.18 (colored)

ansify function definitions

Revision 1.94 / (download) - annotate - [select for diffs], Sat Mar 14 15:36:23 2009 UTC (15 years, 1 month ago) by dsl
Branch: MAIN
Changes since 1.93: +11 -34 lines
Diff to previous 1.93 (colored) to selected 1.18 (colored)

Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)

Revision 1.92.2.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:20:06 2009 UTC (15 years, 2 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.92: +7 -7 lines
Diff to previous 1.92 (colored) to selected 1.18 (colored)

Sync with HEAD.

Revision 1.85.6.4 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:28 2009 UTC (15 years, 3 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.85.6.3: +5 -5 lines
Diff to previous 1.85.6.3 (colored) to branchpoint 1.85 (colored) next main 1.86 (colored) to selected 1.18 (colored)

Sync with HEAD.

Revision 1.93 / (download) - annotate - [select for diffs], Wed Dec 17 20:51:36 2008 UTC (15 years, 4 months ago) by cegger
Branch: MAIN
CVS Tags: nick-hppapmap-base2, mjf-devfs2-base
Branch point for: jym-xensuspend
Changes since 1.92: +7 -7 lines
Diff to previous 1.92 (colored) to selected 1.18 (colored)

kill MALLOC and FREE macros.

Revision 1.91.2.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:17:41 2008 UTC (15 years, 6 months ago) by haad
Branch: haad-dm
Changes since 1.91: +13 -4 lines
Diff to previous 1.91 (colored) next main 1.92 (colored) to selected 1.18 (colored)

Sync with HEAD.

Revision 1.85.6.3 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:55 2008 UTC (15 years, 6 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.85.6.2: +11 -1 lines
Diff to previous 1.85.6.2 (colored) to branchpoint 1.85 (colored) to selected 1.18 (colored)

Sync with HEAD.

Revision 1.90.2.1 / (download) - annotate - [select for diffs], Thu Sep 18 04:36:58 2008 UTC (15 years, 7 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.90: +13 -3 lines
Diff to previous 1.90 (colored) next main 1.91 (colored) to selected 1.18 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.92 / (download) - annotate - [select for diffs], Fri Sep 5 14:01:11 2008 UTC (15 years, 7 months ago) by skrll
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap
Changes since 1.91: +13 -4 lines
Diff to previous 1.91 (colored) to selected 1.18 (colored)

PR/39324 kernel diagnostic assertion "l->l_stat != LSZOMB" failed.

Ignore procs with zero or all LSZOMB LWPs. Get a non-LSZOMB LWP to perform
operations against as part of the deal.

procfs really needs to be updated to support multi-threading fully.
Hi Antti!

Revision 1.90.4.1 / (download) - annotate - [select for diffs], Thu Jul 3 18:38:18 2008 UTC (15 years, 9 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.90: +4 -3 lines
Diff to previous 1.90 (colored) next main 1.91 (colored) to selected 1.18 (colored)

Sync with head.

Revision 1.91 / (download) - annotate - [select for diffs], Wed Jul 2 19:49:58 2008 UTC (15 years, 9 months ago) by rmind
Branch: MAIN
CVS Tags: simonb-wapbl-nbase, simonb-wapbl-base
Branch point for: haad-dm
Changes since 1.90: +4 -3 lines
Diff to previous 1.90 (colored) to selected 1.18 (colored)

Remove proc_representative_lwp(), use a simple LIST_FIRST() instead.
OK by <ad>.

Revision 1.85.6.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:20 2008 UTC (15 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.85.6.1: +10 -19 lines
Diff to previous 1.85.6.1 (colored) to branchpoint 1.85 (colored) to selected 1.18 (colored)

Sync with HEAD.

Revision 1.86.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:35:26 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.86: +12 -21 lines
Diff to previous 1.86 (colored) next main 1.87 (colored) to selected 1.18 (colored)

sync with head.

Revision 1.88.2.1 / (download) - annotate - [select for diffs], Fri May 16 02:25:39 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.88: +6 -15 lines
Diff to previous 1.88 (colored) to selected 1.18 (colored)

sync with head.

Revision 1.90 / (download) - annotate - [select for diffs], Mon May 5 17:11:17 2008 UTC (15 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa, simonb-wapbl
Changes since 1.89: +6 -8 lines
Diff to previous 1.89 (colored) to selected 1.18 (colored)

- Convert hashinit() to use kmem_alloc(). The hash tables can be large
  and it's better to not have them in kmem_map.
- Convert a couple of minor items along the way to kmem_alloc().
- Fix some memory leaks.

Revision 1.89 / (download) - annotate - [select for diffs], Mon Apr 28 20:24:08 2008 UTC (15 years, 11 months ago) by martin
Branch: MAIN
Changes since 1.88: +2 -9 lines
Diff to previous 1.88 (colored) to selected 1.18 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.88 / (download) - annotate - [select for diffs], Thu Apr 24 18:39:25 2008 UTC (15 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Changes since 1.87: +6 -6 lines
Diff to previous 1.87 (colored) to selected 1.18 (colored)

Merge proc::p_mutex and proc::p_smutex into a single adaptive mutex, since
we no longer need to guard against access from hardware interrupt handlers.

Additionally, if cloning a process with CLONE_SIGHAND, arrange to have the
child process share the parent's lock so that signal state may be kept in
sync. Partially addresses PR kern/37437.

Revision 1.87 / (download) - annotate - [select for diffs], Thu Apr 24 15:35:30 2008 UTC (15 years, 11 months ago) by ad
Branch: MAIN
Changes since 1.86: +4 -4 lines
Diff to previous 1.86 (colored) to selected 1.18 (colored)

Network protocol interrupts can now block on locks, so merge the globals
proclist_mutex and proclist_lock into a single adaptive mutex (proc_lock).
Implications:

- Inspecting process state requires thread context, so signals can no longer
  be sent from a hardware interrupt handler. Signal activity must be
  deferred to a soft interrupt or kthread.

- As the proc state locking is simplified, it's now safe to take exit()
  and wait() out from under kernel_lock.

- The system spends less time at IPL_SCHED, and there is less lock activity.

Revision 1.85.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:43:06 2008 UTC (16 years ago) by mjf
Branch: mjf-devfs2
Changes since 1.85: +9 -11 lines
Diff to previous 1.85 (colored) to selected 1.18 (colored)

Sync with HEAD.

Revision 1.64.2.9 / (download) - annotate - [select for diffs], Mon Mar 24 09:39:09 2008 UTC (16 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.64.2.8: +9 -11 lines
Diff to previous 1.64.2.8 (colored) next main 1.65 (colored) to selected 1.18 (colored)

sync with head.

Revision 1.80.8.4 / (download) - annotate - [select for diffs], Sun Mar 23 02:05:04 2008 UTC (16 years ago) by matt
Branch: matt-armv6
Changes since 1.80.8.3: +6 -6 lines
Diff to previous 1.80.8.3 (colored) to branchpoint 1.80 (colored) next main 1.81 (colored) to selected 1.18 (colored)

sync with HEAD

Revision 1.86 / (download) - annotate - [select for diffs], Fri Mar 21 21:55:00 2008 UTC (16 years ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, ad-socklock-base1
Branch point for: yamt-pf42
Changes since 1.85: +9 -11 lines
Diff to previous 1.85 (colored) to selected 1.18 (colored)

Catch up with descriptor handling changes. See kern_descrip.c revision
1.173 for details.

Revision 1.81.4.2 / (download) - annotate - [select for diffs], Mon Feb 18 21:07:00 2008 UTC (16 years, 2 months ago) by mjf
Branch: mjf-devfs
Changes since 1.81.4.1: +10 -10 lines
Diff to previous 1.81.4.1 (colored) to branchpoint 1.81 (colored) next main 1.82 (colored) to selected 1.18 (colored)

Sync with HEAD.

Revision 1.64.2.8 / (download) - annotate - [select for diffs], Mon Feb 4 09:24:33 2008 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.64.2.7: +6 -6 lines
Diff to previous 1.64.2.7 (colored) to selected 1.18 (colored)

sync with head.

Revision 1.85 / (download) - annotate - [select for diffs], Wed Jan 30 09:50:23 2008 UTC (16 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base
Branch point for: mjf-devfs2
Changes since 1.84: +3 -3 lines
Diff to previous 1.84 (colored) to selected 1.18 (colored)

Replace struct lock on vnodes with a simpler lock object built on
krwlock_t. This is a step towards removing lockmgr and simplifying
vnode locking. Discussed on tech-kern.

Revision 1.82.6.2 / (download) - annotate - [select for diffs], Wed Jan 23 19:27:43 2008 UTC (16 years, 2 months ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.82.6.1: +3 -3 lines
Diff to previous 1.82.6.1 (colored) to branchpoint 1.82 (colored) next main 1.83 (colored) to selected 1.18 (colored)

Sync with HEAD.

Revision 1.84 / (download) - annotate - [select for diffs], Wed Jan 23 15:04:40 2008 UTC (16 years, 2 months ago) by elad
Branch: MAIN
CVS Tags: bouyer-xeni386-nbase
Changes since 1.83: +5 -5 lines
Diff to previous 1.83 (colored) to selected 1.18 (colored)

Tons of process scope changes.

  - Add a KAUTH_PROCESS_SCHEDULER action, to handle scheduler related
    requests, and add specific requests for set/get scheduler policy and
    set/get scheduler parameters.

  - Add a KAUTH_PROCESS_KEVENT_FILTER action, to handle kevent(2) related
    requests.

  - Add a KAUTH_DEVICE_TTY_STI action to handle requests to TIOCSTI.

  - Add requests for the KAUTH_PROCESS_CANSEE action, indicating what
    process information is being looked at (entry itself, args, env,
    open files).

  - Add requests for the KAUTH_PROCESS_RLIMIT action indicating set/get.

  - Add requests for the KAUTH_PROCESS_CORENAME action indicating set/get.

  - Make bsd44 secmodel code handle the newly added rqeuests appropriately.

All of the above make it possible to issue finer-grained kauth(9) calls in
many places, removing some KAUTH_GENERIC_ISSUSER requests.

  - Remove the "CAN" from KAUTH_PROCESS_CAN{KTRACE,PROCFS,PTRACE,SIGNAL}.

Discussed with christos@ and yamt@.

Revision 1.64.2.7 / (download) - annotate - [select for diffs], Mon Jan 21 09:46:56 2008 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.64.2.6: +6 -6 lines
Diff to previous 1.64.2.6 (colored) to selected 1.18 (colored)

sync with head

Revision 1.80.8.3 / (download) - annotate - [select for diffs], Wed Jan 9 01:57:05 2008 UTC (16 years, 3 months ago) by matt
Branch: matt-armv6
Changes since 1.80.8.2: +6 -6 lines
Diff to previous 1.80.8.2 (colored) to branchpoint 1.80 (colored) to selected 1.18 (colored)

sync with HEAD

Revision 1.82.6.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:56:55 2008 UTC (16 years, 3 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.82: +6 -6 lines
Diff to previous 1.82 (colored) to selected 1.18 (colored)

Sync with HEAD

Revision 1.83 / (download) - annotate - [select for diffs], Wed Jan 2 11:49:01 2008 UTC (16 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: matt-armv6-base, bouyer-xeni386-base
Changes since 1.82: +6 -6 lines
Diff to previous 1.82 (colored) to selected 1.18 (colored)

Merge vmlocking2 to head.

Revision 1.82.2.1 / (download) - annotate - [select for diffs], Tue Dec 4 13:03:27 2007 UTC (16 years, 4 months ago) by ad
Branch: vmlocking2
Changes since 1.82: +6 -6 lines
Diff to previous 1.82 (colored) next main 1.83 (colored) to selected 1.18 (colored)

Pull the vmlocking changes into a new branch.

Revision 1.81.4.1 / (download) - annotate - [select for diffs], Mon Nov 19 00:49:03 2007 UTC (16 years, 5 months ago) by mjf
Branch: mjf-devfs
Changes since 1.81: +36 -25 lines
Diff to previous 1.81 (colored) to selected 1.18 (colored)

Sync with HEAD.

Revision 1.64.2.6 / (download) - annotate - [select for diffs], Thu Nov 15 11:45:00 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.64.2.5: +36 -25 lines
Diff to previous 1.64.2.5 (colored) to selected 1.18 (colored)

sync with head.

Revision 1.81.2.1 / (download) - annotate - [select for diffs], Tue Nov 13 16:02:45 2007 UTC (16 years, 5 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.81: +36 -25 lines
Diff to previous 1.81 (colored) next main 1.82 (colored) to selected 1.18 (colored)

Sync with HEAD

Revision 1.80.6.2 / (download) - annotate - [select for diffs], Sun Nov 11 16:48:23 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.80.6.1: +36 -25 lines
Diff to previous 1.80.6.1 (colored) to branchpoint 1.80 (colored) next main 1.81 (colored) to selected 1.18 (colored)

Sync with HEAD.

Revision 1.80.8.2 / (download) - annotate - [select for diffs], Thu Nov 8 11:00:12 2007 UTC (16 years, 5 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.80.8.1: +36 -25 lines
Diff to previous 1.80.8.1 (colored) to branchpoint 1.80 (colored) to selected 1.18 (colored)

sync with -HEAD

Revision 1.82 / (download) - annotate - [select for diffs], Wed Nov 7 00:23:38 2007 UTC (16 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf, bouyer-xenamd64-base2, bouyer-xenamd64-base
Branch point for: vmlocking2, bouyer-xeni386
Changes since 1.81: +36 -25 lines
Diff to previous 1.81 (colored) to selected 1.18 (colored)

Merge from vmlocking:

- pool_cache changes.
- Debugger/procfs locking fixes.
- Other minor changes.

Revision 1.80.8.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:33:21 2007 UTC (16 years, 5 months ago) by matt
Branch: matt-armv6
Changes since 1.80: +4 -4 lines
Diff to previous 1.80 (colored) to selected 1.18 (colored)

sync with HEAD

Revision 1.64.2.5 / (download) - annotate - [select for diffs], Sat Oct 27 11:35:56 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.64.2.4: +4 -4 lines
Diff to previous 1.64.2.4 (colored) to selected 1.18 (colored)

sync with head.

Revision 1.80.6.1 / (download) - annotate - [select for diffs], Fri Oct 26 15:48:56 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.80: +4 -4 lines
Diff to previous 1.80 (colored) to selected 1.18 (colored)

Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.

Revision 1.79.2.4 / (download) - annotate - [select for diffs], Thu Oct 25 19:43:12 2007 UTC (16 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.79.2.3: +36 -25 lines
Diff to previous 1.79.2.3 (colored) to branchpoint 1.79 (colored) next main 1.80 (colored) to selected 1.18 (colored)

- Simplify debugger/procfs reference counting of processes. Use a per-proc
  rwlock: rw_tryenter(RW_READER) to gain a reference, and rw_enter(RW_WRITER)
  by the process itself to drain out reference holders before major changes
  like exiting.
- Fix numerous bugs and locking issues in procfs.
- Mark procfs MPSAFE.

Revision 1.80.10.1 / (download) - annotate - [select for diffs], Sun Oct 14 11:48:56 2007 UTC (16 years, 6 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.80: +4 -4 lines
Diff to previous 1.80 (colored) next main 1.81 (colored) to selected 1.18 (colored)

sync with head.

Revision 1.81 / (download) - annotate - [select for diffs], Wed Oct 10 20:42:30 2007 UTC (16 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, vmlocking-base, jmcneill-base
Branch point for: mjf-devfs, bouyer-xenamd64
Changes since 1.80: +4 -4 lines
Diff to previous 1.80 (colored) to selected 1.18 (colored)

Merge from vmlocking:

- Split vnode::v_flag into three fields, depending on field locking.
- simple_lock -> kmutex in a few places.
- Fix some simple locking problems.

Revision 1.64.2.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:41:56 2007 UTC (16 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.64.2.3: +21 -4 lines
Diff to previous 1.64.2.3 (colored) to selected 1.18 (colored)

sync with head.

Revision 1.79.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:10:45 2007 UTC (16 years, 9 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.79: +17 -2 lines
Diff to previous 1.79 (colored) next main 1.80 (colored) to selected 1.18 (colored)

Sync with head.

Revision 1.79.2.3 / (download) - annotate - [select for diffs], Sun Jun 17 21:31:44 2007 UTC (16 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.79.2.2: +3 -3 lines
Diff to previous 1.79.2.2 (colored) to branchpoint 1.79 (colored) to selected 1.18 (colored)

- Increase the number of thread priorities from 128 to 256. How the space
  is set up is to be revisited.
- Implement soft interrupts as kernel threads. A generic implementation
  is provided, with hooks for fast-path MD code that can run the interrupt
  threads over the top of other threads executing in the kernel.
- Split vnode::v_flag into three fields, depending on how the flag is
  locked (by the interlock, by the vnode lock, by the file system).
- Miscellaneous locking fixes and improvements.

Revision 1.79.2.2 / (download) - annotate - [select for diffs], Fri Jun 8 14:17:34 2007 UTC (16 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.79.2.1: +17 -2 lines
Diff to previous 1.79.2.1 (colored) to branchpoint 1.79 (colored) to selected 1.18 (colored)

Sync with head.

Revision 1.80 / (download) - annotate - [select for diffs], Thu May 24 00:37:41 2007 UTC (16 years, 10 months ago) by agc
Branch: MAIN
CVS Tags: yamt-x86pmap-base2, yamt-x86pmap-base, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: yamt-x86pmap, matt-armv6, jmcneill-pm
Changes since 1.79: +17 -2 lines
Diff to previous 1.79 (colored) to selected 1.18 (colored)

Extend the Linux emulation of /proc to include

	/proc/stat
	/proc/loadavg and
	/proc/<pid>/statm.

These are only present when -o linux is specified as a mount option
to procfs.

Factor out some common code so that it can be used by a number of
functions.

XXX The values returned in the statm emulation need to be verified.

Revision 1.79.2.1 / (download) - annotate - [select for diffs], Tue Mar 13 17:51:09 2007 UTC (17 years, 1 month ago) by ad
Branch: vmlocking
Changes since 1.79: +4 -4 lines
Diff to previous 1.79 (colored) to selected 1.18 (colored)

Pull in the initial set of changes for the vmlocking branch.

Revision 1.76.2.2 / (download) - annotate - [select for diffs], Mon Mar 12 05:59:08 2007 UTC (17 years, 1 month ago) by rmind
Branch: yamt-idlelwp
Changes since 1.76.2.1: +6 -4 lines
Diff to previous 1.76.2.1 (colored) next main 1.77 (colored) to selected 1.18 (colored)

Sync with HEAD.

Revision 1.79 / (download) - annotate - [select for diffs], Fri Mar 9 14:11:23 2007 UTC (17 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.78: +4 -4 lines
Diff to previous 1.78 (colored) to selected 1.18 (colored)

- Make the proclist_lock a mutex. The write:read ratio is unfavourable,
  and mutexes are cheaper use than RW locks.
- LOCK_ASSERT -> KASSERT in some places.
- Hold proclist_lock/kernel_lock longer in a couple of places.

Revision 1.76.2.1 / (download) - annotate - [select for diffs], Tue Feb 27 16:54:37 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-idlelwp
Changes since 1.76: +3 -3 lines
Diff to previous 1.76 (colored) to selected 1.18 (colored)

- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.

Revision 1.78 / (download) - annotate - [select for diffs], Tue Feb 27 16:11:51 2007 UTC (17 years, 1 month ago) by ad
Branch: MAIN
Changes since 1.77: +4 -2 lines
Diff to previous 1.77 (colored) to selected 1.18 (colored)

Destroy the hash locks on final unmount.

Revision 1.64.2.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:11:31 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.64.2.2: +157 -74 lines
Diff to previous 1.64.2.2 (colored) to selected 1.18 (colored)

sync with head.

Revision 1.77 / (download) - annotate - [select for diffs], Sat Feb 17 22:31:44 2007 UTC (17 years, 2 months ago) by pavel
Branch: MAIN
CVS Tags: ad-audiomp-base, ad-audiomp
Changes since 1.76: +3 -3 lines
Diff to previous 1.76 (colored) to selected 1.18 (colored)

Change the process/lwp flags seen by userland via sysctl back to the
P_*/L_* naming convention, and rename the in-kernel flags to avoid
conflict. (P_ -> PK_, L_ -> LW_ ). Add back the (now unused) LSDEAD
constant.

Restores source compatibility with pre-newlock2 tools like ps or top.

Reviewed by Andrew Doran.

Revision 1.76 / (download) - annotate - [select for diffs], Thu Feb 15 15:40:53 2007 UTC (17 years, 2 months ago) by ad
Branch: MAIN
Branch point for: yamt-idlelwp
Changes since 1.75: +29 -24 lines
Diff to previous 1.75 (colored) to selected 1.18 (colored)

Replace some uses of lockmgr() / simplelocks.

Revision 1.75 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:36 2007 UTC (17 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: post-newlock2-merge
Changes since 1.74: +136 -58 lines
Diff to previous 1.74 (colored) to selected 1.18 (colored)

Merge newlock2 to head.

Revision 1.68.14.6 / (download) - annotate - [select for diffs], Fri Jan 12 01:04:11 2007 UTC (17 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.68.14.5: +19 -16 lines
Diff to previous 1.68.14.5 (colored) to branchpoint 1.68 (colored) next main 1.69 (colored) to selected 1.18 (colored)

Sync with head.

Revision 1.64.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:50:18 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.64.2.1: +37 -8 lines
Diff to previous 1.64.2.1 (colored) to selected 1.18 (colored)

sync with head.

Revision 1.68.14.5 / (download) - annotate - [select for diffs], Fri Dec 29 20:27:44 2006 UTC (17 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.68.14.4: +6 -5 lines
Diff to previous 1.68.14.4 (colored) to branchpoint 1.68 (colored) to selected 1.18 (colored)

Checkpoint work in progress.

Revision 1.74 / (download) - annotate - [select for diffs], Sun Dec 24 17:37:35 2006 UTC (17 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: newlock2-nbase, newlock2-base
Changes since 1.73: +5 -4 lines
Diff to previous 1.73 (colored) to selected 1.18 (colored)

fix permissions on /proc/<pid> node. From elad.

Revision 1.68.16.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:18:59 2006 UTC (17 years, 4 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.68.16.1: +30 -6 lines
Diff to previous 1.68.16.1 (colored) to branchpoint 1.68 (colored) next main 1.69 (colored) to selected 1.18 (colored)

sync with head.

Revision 1.73 / (download) - annotate - [select for diffs], Tue Nov 28 17:27:09 2006 UTC (17 years, 4 months ago) by elad
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.72: +17 -6 lines
Diff to previous 1.72 (colored) to selected 1.18 (colored)

Move ktrace, ptrace, systrace, and procfs to use kauth(9).

First, remove process_checkioperm() calls from MD code. Similar checks
using kauth(9) routines (on the process scope, using appropriate action)
are done in the callers.

Add secmodel back-end to handle each subsystem.

Revision 1.68.14.4 / (download) - annotate - [select for diffs], Sat Nov 18 21:39:29 2006 UTC (17 years, 5 months ago) by ad
Branch: newlock2
Changes since 1.68.14.3: +19 -2 lines
Diff to previous 1.68.14.3 (colored) to branchpoint 1.68 (colored) to selected 1.18 (colored)

Sync with head.

Revision 1.68.14.3 / (download) - annotate - [select for diffs], Fri Nov 17 16:34:40 2006 UTC (17 years, 5 months ago) by ad
Branch: newlock2
Changes since 1.68.14.2: +134 -52 lines
Diff to previous 1.68.14.2 (colored) to branchpoint 1.68 (colored) to selected 1.18 (colored)

Checkpoint work in progress.

Revision 1.72 / (download) - annotate - [select for diffs], Thu Nov 16 01:33:38 2006 UTC (17 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.71: +4 -4 lines
Diff to previous 1.71 (colored) to selected 1.18 (colored)

__unused removal on arguments; approved by core.

Revision 1.71 / (download) - annotate - [select for diffs], Sun Oct 29 22:35:35 2006 UTC (17 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.70: +14 -2 lines
Diff to previous 1.70 (colored) to selected 1.18 (colored)

add an "emul" file node.

Revision 1.70 / (download) - annotate - [select for diffs], Wed Oct 25 18:59:52 2006 UTC (17 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.69: +3 -2 lines
Diff to previous 1.69 (colored) to selected 1.18 (colored)

1. fix procfs_validfile{,_linux} to test for NULL pointers properly.
2. make "exe" entry be a symlink to the executable, instead of pointing
   directly to the vnode of the executable.
3. factor out commonly used code.

Revision 1.68.14.2 / (download) - annotate - [select for diffs], Tue Oct 24 21:10:22 2006 UTC (17 years, 5 months ago) by ad
Branch: newlock2
Changes since 1.68.14.1: +3 -3 lines
Diff to previous 1.68.14.1 (colored) to branchpoint 1.68 (colored) to selected 1.18 (colored)

- Redo LWP locking slightly and fix some races.
- Fix some locking botches.
- Make signal mask / stack per-proc for SA processes.
- Add _lwp_kill().

Revision 1.68.16.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:07:23 2006 UTC (17 years, 5 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.68: +6 -2 lines
Diff to previous 1.68 (colored) to selected 1.18 (colored)

sync with head

Revision 1.68.14.1 / (download) - annotate - [select for diffs], Sat Oct 21 14:37:18 2006 UTC (17 years, 5 months ago) by ad
Branch: newlock2
Changes since 1.68: +9 -5 lines
Diff to previous 1.68 (colored) to selected 1.18 (colored)

- Make this compile. XXX Needs more work on locking.
- Do FILE_UNUSE() as the current LWP, otherwise we will wipe out the
  target's advisory locks. XXX Double check.

Revision 1.69 / (download) - annotate - [select for diffs], Wed Sep 20 08:09:05 2006 UTC (17 years, 7 months ago) by manu
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.68: +6 -2 lines
Diff to previous 1.68 (colored) to selected 1.18 (colored)

Emulate Linux's /proc/devices

Revision 1.67.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:58:00 2006 UTC (17 years, 7 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.67: +3 -3 lines
Diff to previous 1.67 (colored) next main 1.68 (colored) to selected 1.18 (colored)

sync with head

Revision 1.64.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:10:26 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.64: +29 -25 lines
Diff to previous 1.64 (colored) to selected 1.18 (colored)

sync with head.

Revision 1.67.6.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:40:06 2006 UTC (17 years, 11 months ago) by simonb
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.67: +3 -3 lines
Diff to previous 1.67 (colored) next main 1.68 (colored) to selected 1.18 (colored)

Sync with head.

Revision 1.68 / (download) - annotate - [select for diffs], Wed Mar 1 12:38:32 2006 UTC (18 years, 1 month ago) by yamt
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, yamt-pdpolicy, simonb-timecounters-base, rpaulo-netinet-merge-pcb-base, peter-altq-base, peter-altq, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, elad-kernelauth, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.67: +3 -3 lines
Diff to previous 1.67 (colored) to selected 1.18 (colored)

merge yamt-uio_vmspace branch.

- use vmspace rather than proc or lwp where appropriate.
  the latter is more natural to specify an address space.
  (and less likely to be abused for random purposes.)
- fix a swdmover race.

Revision 1.67.2.1 / (download) - annotate - [select for diffs], Sun Jan 15 11:06:54 2006 UTC (18 years, 3 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.67: +3 -3 lines
Diff to previous 1.67 (colored) next main 1.68 (colored) to selected 1.18 (colored)

convert procfs.

Revision 1.67 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:51 2005 UTC (18 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5
Branch point for: yamt-uio_vmspace, simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.66: +24 -22 lines
Diff to previous 1.66 (colored) to selected 1.18 (colored)

merge ktrace-lwp.

Revision 1.56.2.9 / (download) - annotate - [select for diffs], Thu Nov 10 14:10:32 2005 UTC (18 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.56.2.8: +20 -19 lines
Diff to previous 1.56.2.8 (colored) next main 1.57 (colored) to selected 1.18 (colored)

Sync with HEAD. Here we go again...

Revision 1.66 / (download) - annotate - [select for diffs], Sat Oct 1 03:17:37 2005 UTC (18 years, 6 months ago) by atatat
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Changes since 1.65: +4 -2 lines
Diff to previous 1.65 (colored) to selected 1.18 (colored)

Add "cwd" and "root" symlinks to each process's directory.  The cwd
link points to the process's current working directory, and the root
link points to the process's root directory.  What else would you
expect?

For directories that are out of reach (caller is in a chroot, target
process is in a different chroot, etc), the links point to "/"
instead.

Revision 1.58.2.1 / (download) - annotate - [select for diffs], Wed Aug 31 13:41:38 2005 UTC (18 years, 7 months ago) by tron
Branch: netbsd-2-0
CVS Tags: netbsd-2-0-3-RELEASE
Changes since 1.58: +11 -23 lines
Diff to previous 1.58 (colored) next main 1.59 (colored) to selected 1.18 (colored)

Pull up following revision(s) (requested by christos in ticket #5634):
	sys/miscfs/procfs/procfs_subr.c: revision 1.59
Simplify the code by:
1. Checking for a negative uio_offset at the beginning. This really does
   not affect us in most cases because we check that later too.
2. Checking for attempts to write to init sooner and in all cases.

Revision 1.58.4.1 / (download) - annotate - [select for diffs], Wed Aug 31 13:40:37 2005 UTC (18 years, 7 months ago) by tron
Branch: netbsd-2
CVS Tags: netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1
Changes since 1.58: +11 -23 lines
Diff to previous 1.58 (colored) next main 1.59 (colored) to selected 1.18 (colored)

Pull up following revision(s) (requested by christos in ticket #5634):
	sys/miscfs/procfs/procfs_subr.c: revision 1.59
Simplify the code by:
1. Checking for a negative uio_offset at the beginning. This really does
   not affect us in most cases because we check that later too.
2. Checking for attempts to write to init sooner and in all cases.

Revision 1.65 / (download) - annotate - [select for diffs], Tue Aug 30 20:08:01 2005 UTC (18 years, 7 months ago) by xtraeme
Branch: MAIN
Changes since 1.64: +5 -5 lines
Diff to previous 1.64 (colored) to selected 1.18 (colored)

Remove __P()

Revision 1.64 / (download) - annotate - [select for diffs], Sun May 29 21:55:34 2005 UTC (18 years, 10 months ago) by christos
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.63: +13 -13 lines
Diff to previous 1.63 (colored) to selected 1.18 (colored)

- sprinkle const
- avoid shadowed variables.

Revision 1.62.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:30 2005 UTC (18 years, 11 months ago) by kent
Branch: kent-audio2
Changes since 1.62: +5 -5 lines
Diff to previous 1.62 (colored) next main 1.63 (colored) to selected 1.18 (colored)

sync with -current

Revision 1.62.6.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:36:31 2005 UTC (19 years, 1 month ago) by yamt
Branch: yamt-km
Changes since 1.62: +5 -5 lines
Diff to previous 1.62 (colored) next main 1.63 (colored) to selected 1.18 (colored)

sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.56.2.8 / (download) - annotate - [select for diffs], Fri Mar 4 16:52:55 2005 UTC (19 years, 1 month ago) by skrll
Branch: ktrace-lwp
Changes since 1.56.2.7: +3 -3 lines
Diff to previous 1.56.2.7 (colored) to selected 1.18 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.63 / (download) - annotate - [select for diffs], Sat Feb 26 22:59:00 2005 UTC (19 years, 1 month ago) by perry
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, kent-audio2-base
Changes since 1.62: +5 -5 lines
Diff to previous 1.62 (colored) to selected 1.18 (colored)

nuke trailing whitespace

Revision 1.56.2.7 / (download) - annotate - [select for diffs], Fri Sep 24 10:53:43 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.56.2.6: +6 -2 lines
Diff to previous 1.56.2.6 (colored) to selected 1.18 (colored)

Sync with HEAD.

Revision 1.56.2.6 / (download) - annotate - [select for diffs], Tue Sep 21 13:36:32 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.56.2.5: +29 -26 lines
Diff to previous 1.56.2.5 (colored) to selected 1.18 (colored)

Fix the sync with head I botched.

Revision 1.62 / (download) - annotate - [select for diffs], Mon Sep 20 17:53:08 2004 UTC (19 years, 6 months ago) by jdolecek
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.61: +6 -2 lines
Diff to previous 1.61 (colored) to selected 1.18 (colored)

add 'mounts' file for -o linux, which lists all currently mounted
filesystems; Linux glibc statvfs() uses this to get some of mount flags,
and this file is also useful as /emul/linux/etc/mtab (via symlink)

Revision 1.56.2.5 / (download) - annotate - [select for diffs], Sat Sep 18 14:54:15 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.56.2.4: +26 -29 lines
Diff to previous 1.56.2.4 (colored) to selected 1.18 (colored)

Sync with HEAD.

Revision 1.61 / (download) - annotate - [select for diffs], Fri Aug 27 07:02:45 2004 UTC (19 years, 7 months ago) by skrll
Branch: MAIN
Changes since 1.60: +3 -3 lines
Diff to previous 1.60 (colored) to selected 1.18 (colored)

Do previous slightly differently - just pass a struct lwp * and derive the
struct proc *.

OK'd by Jaromir.

Revision 1.56.2.4 / (download) - annotate - [select for diffs], Tue Aug 24 17:57:40 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.56.2.3: +3 -3 lines
Diff to previous 1.56.2.3 (colored) to selected 1.18 (colored)

Undo part of the ktrace/lwp changes.  In particular:
* Remove the "lwp *" argument that was added to vget().  Turns out
  that nothing actually used it!
* Remove the "lwp *" arguments that were added to VFS_ROOT(), VFS_VGET(),
  and VFS_FHTOVP(); all they did was pass it to vget() (which, as noted
  above, didn't use it).
* Remove all of the "lwp *" arguments to internal functions that were added
  just to appease the above.

Revision 1.60 / (download) - annotate - [select for diffs], Sat Aug 21 15:59:32 2004 UTC (19 years, 7 months ago) by jdolecek
Branch: MAIN
Changes since 1.59: +3 -3 lines
Diff to previous 1.59 (colored) to selected 1.18 (colored)

fix process used for /proc/<pid>/stat contents - it should be process
<pid>, not the current process looking at the information

Revision 1.56.2.3 / (download) - annotate - [select for diffs], Wed Aug 18 10:19:08 2004 UTC (19 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.56.2.2: +4 -6 lines
Diff to previous 1.56.2.2 (colored) to selected 1.18 (colored)

Revert to passing struct proc for {exit,exec}hook.

Revision 1.56.2.2 / (download) - annotate - [select for diffs], Tue Aug 3 10:54:07 2004 UTC (19 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.56.2.1: +80 -60 lines
Diff to previous 1.56.2.1 (colored) to selected 1.18 (colored)

Sync with HEAD

Revision 1.59 / (download) - annotate - [select for diffs], Fri May 14 16:35:24 2004 UTC (19 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.58: +11 -23 lines
Diff to previous 1.58 (colored) to selected 1.18 (colored)

Simplify the code by:
1. Checking for a negative uio_offset at the beginning. This really does
   not affect us in most cases because we check that later too.
2. Checking for attempts to write to init sooner and in all cases.

Revision 1.58 / (download) - annotate - [select for diffs], Sat Sep 27 13:29:02 2003 UTC (20 years, 6 months ago) by darcy
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE
Branch point for: netbsd-2-0, netbsd-2
Changes since 1.57: +40 -40 lines
Diff to previous 1.57 (colored) to selected 1.18 (colored)

Changes as discussed with itojun on tech-kern.  I have modified the enums
to have KFS or PFS differentiators.  Further I have wrapped the enum in
procfs in "#ifdef _KERNEL" as it is done in kernfs.

To see the discussion go to http://mail-index.NetBSD.org/tech-kern/2003/09/
and look for "Mismatched enums in include files" in the list.

Revision 1.57 / (download) - annotate - [select for diffs], Thu Aug 7 16:32:42 2003 UTC (20 years, 8 months ago) by agc
Branch: MAIN
Changes since 1.56: +36 -4 lines
Diff to previous 1.56 (colored) to selected 1.18 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.

Revision 1.56.2.1 / (download) - annotate - [select for diffs], Wed Jul 2 15:26:53 2003 UTC (20 years, 9 months ago) by darrenr
Branch: ktrace-lwp
Changes since 1.56: +34 -29 lines
Diff to previous 1.56 (colored) to selected 1.18 (colored)

Apply the aborted ktrace-lwp changes to a specific branch.  This is just for
others to review, I'm concerned that patch fuziness may have resulted in some
errant code being generated but I'll look at that later by comparing the diff
from the base to the branch with the file I attempt to apply to it.  This will,
at the very least, put the changes in a better context for others to review
them and attempt to tinker with removing passing of 'struct lwp' through
the kernel.

Revision 1.56 / (download) - annotate - [select for diffs], Sun Jun 29 22:31:46 2003 UTC (20 years, 9 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.55: +28 -33 lines
Diff to previous 1.55 (colored) to selected 1.18 (colored)

Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.

Revision 1.55 / (download) - annotate - [select for diffs], Sun Jun 29 18:43:34 2003 UTC (20 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.54: +3 -3 lines
Diff to previous 1.54 (colored) to selected 1.18 (colored)

Undo part of the ktrace/lwp changes.  In particular:
* Remove the "lwp *" argument that was added to vget().  Turns out
  that nothing actually used it!
* Remove the "lwp *" arguments that were added to VFS_ROOT(), VFS_VGET(),
  and VFS_FHTOVP(); all they did was pass it to vget() (which, as noted
  above, didn't use it).
* Remove all of the "lwp *" arguments to internal functions that were added
  just to appease the above.

Revision 1.54 / (download) - annotate - [select for diffs], Sat Jun 28 14:22:04 2003 UTC (20 years, 9 months ago) by darrenr
Branch: MAIN
Changes since 1.53: +34 -29 lines
Diff to previous 1.53 (colored) to selected 1.18 (colored)

Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records.  The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.

Bump the kernel rev up to 1.6V

Revision 1.53 / (download) - annotate - [select for diffs], Wed May 28 18:03:16 2003 UTC (20 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.52: +6 -2 lines
Diff to previous 1.52 (colored) to selected 1.18 (colored)

Add /proc/<pid>/stat for linux compat. j2sdk1.4.2 depends on it.

Revision 1.52 / (download) - annotate - [select for diffs], Fri Apr 18 23:19:24 2003 UTC (21 years ago) by christos
Branch: MAIN
Changes since 1.51: +3 -4 lines
Diff to previous 1.51 (colored) to selected 1.18 (colored)

Make the mode of /proc/<pid>/fd dr-x------

Revision 1.51 / (download) - annotate - [select for diffs], Fri Apr 18 21:55:35 2003 UTC (21 years ago) by christos
Branch: MAIN
Changes since 1.50: +15 -9 lines
Diff to previous 1.50 (colored) to selected 1.18 (colored)

Make symlinks for directories that point to the actual directory.
Make symlinks to [kqueue] and [misc] for kqueue and misc fds.

Revision 1.50 / (download) - annotate - [select for diffs], Thu Apr 17 20:50:46 2003 UTC (21 years ago) by jdolecek
Branch: MAIN
Changes since 1.49: +10 -2 lines
Diff to previous 1.49 (colored) to selected 1.18 (colored)

do not show nodes corresponding to directory descriptors for process
in fd/ subdirectory, nor allow lookup/open for the nodes
this fixes PR kern/21187 for good, and also avoids interesting directory
locking issues

Revision 1.49 / (download) - annotate - [select for diffs], Thu Apr 17 19:04:25 2003 UTC (21 years ago) by jdolecek
Branch: MAIN
Changes since 1.48: +12 -5 lines
Diff to previous 1.48 (colored) to selected 1.18 (colored)

use fd_getfile() in procfs_getfp(), and FILE_USE()/FILE_UNUSE() the
returned file descriptor pointer appropriately

Revision 1.48 / (download) - annotate - [select for diffs], Sat Mar 15 00:22:47 2003 UTC (21 years, 1 month ago) by enami
Branch: MAIN
Changes since 1.47: +3 -2 lines
Diff to previous 1.47 (colored) to selected 1.18 (colored)

Release the hash lock on failure.

Revision 1.47 / (download) - annotate - [select for diffs], Tue Mar 4 18:55:02 2003 UTC (21 years, 1 month ago) by tron
Branch: MAIN
Changes since 1.46: +3 -2 lines
Diff to previous 1.46 (colored) to selected 1.18 (colored)

Teach procfs_allocvp() about Puptime to avoid panics if "/proc/uptime"
is opened.

Revision 1.46 / (download) - annotate - [select for diffs], Tue Feb 25 21:00:32 2003 UTC (21 years, 1 month ago) by jrf
Branch: MAIN
Changes since 1.45: +5 -2 lines
Diff to previous 1.45 (colored) to selected 1.18 (colored)

This addresses PR kerm/19989. Thanks to hamajima@nagoya.ydc.co.jp for submitting this patch which enables /proc/uptime for linux emul. Patch reviewed by atatat@netbsd.org and tron@netbsd.org, approved by tron@netbsd.org.

Revision 1.45 / (download) - annotate - [select for diffs], Mon Feb 3 22:29:07 2003 UTC (21 years, 2 months ago) by jdolecek
Branch: MAIN
Changes since 1.44: +3 -6 lines
Diff to previous 1.44 (colored) to selected 1.18 (colored)

don't bother special-casing DTYPE_KQUEUE/DTYPE_MISC nor panic for unknown
descriptors; just return with EOPNOTSUPP for any unsupported descriptor type

Revision 1.44 / (download) - annotate - [select for diffs], Mon Feb 3 22:27:42 2003 UTC (21 years, 2 months ago) by jdolecek
Branch: MAIN
Changes since 1.43: +15 -6 lines
Diff to previous 1.43 (colored) to selected 1.18 (colored)

procfs_allocvp():
  * do not set *vpp unless successful, otherwise we'd trigger
    DIAGNOSTIC panic in lookup(9) on error return
  * on error, make sure to free malloc'ed memory and ungetnewvnode() the
    previously acquired vnode

this fixes panic on 'tail -f <file> &; ls -l /proc/$!/fd' reported by
Andrew Brown

fix reviewed by Christos Zoulas

Revision 1.43 / (download) - annotate - [select for diffs], Sat Jan 18 09:18:06 2003 UTC (21 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.42: +15 -7 lines
Diff to previous 1.42 (colored) to selected 1.18 (colored)

Merge the nathanw_sa branch.

Revision 1.36.2.9 / (download) - annotate - [select for diffs], Tue Jan 7 21:41:14 2003 UTC (21 years, 3 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.36.2.8: +65 -12 lines
Diff to previous 1.36.2.8 (colored) next main 1.37 (colored) to selected 1.18 (colored)

Sync with HEAD.

Revision 1.42 / (download) - annotate - [select for diffs], Fri Jan 3 13:21:18 2003 UTC (21 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base
Changes since 1.41: +65 -12 lines
Diff to previous 1.41 (colored) to selected 1.18 (colored)

Implement /proc/<pid>/fd/<n>. This is work in progress. Questionable things:
    - Is it ok to convert DTYPE_PIPE to VFIFO and DTYPE_SOCKET to VSOCK?
    - XXX: Avoid locking issue in ls -Rl /proc by avoiding curproc
    - Does I/O to pipes work?
    - XXX: Are there security implications?

Revision 1.36.2.8 / (download) - annotate - [select for diffs], Mon Nov 11 22:14:49 2002 UTC (21 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.36.2.7: +3 -4 lines
Diff to previous 1.36.2.7 (colored) to selected 1.18 (colored)

Catch up to -current

Revision 1.41 / (download) - annotate - [select for diffs], Thu Nov 7 08:21:36 2002 UTC (21 years, 5 months ago) by thorpej
Branch: MAIN
CVS Tags: gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.40: +3 -4 lines
Diff to previous 1.40 (colored) to selected 1.18 (colored)

Fix a signed/unsigned comparison warning.

Revision 1.36.2.7 / (download) - annotate - [select for diffs], Mon Apr 1 21:31:35 2002 UTC (22 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.36.2.6: +3 -3 lines
Diff to previous 1.36.2.6 (colored) to selected 1.18 (colored)

procfs_domem() should take proc *, proc *; not proc *, lwp *.

Revision 1.37.2.1 / (download) - annotate - [select for diffs], Thu Jan 10 20:01:44 2002 UTC (22 years, 3 months ago) by thorpej
Branch: kqueue
Changes since 1.37: +55 -6 lines
Diff to previous 1.37 (colored) next main 1.38 (colored) to selected 1.18 (colored)

Sync kqueue branch with -current.

Revision 1.36.2.6 / (download) - annotate - [select for diffs], Wed Jan 9 02:53:30 2002 UTC (22 years, 3 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.36.2.5: +4 -21 lines
Diff to previous 1.36.2.5 (colored) to selected 1.18 (colored)

Use proc_representative_lwp() instead of bailing out.
Adapt PROCFS_MACHDEP to lwps.

Revision 1.36.2.5 / (download) - annotate - [select for diffs], Tue Jan 8 00:33:42 2002 UTC (22 years, 3 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.36.2.4: +17 -2 lines
Diff to previous 1.36.2.4 (colored) to selected 1.18 (colored)

Catch up to -current.

Revision 1.40 / (download) - annotate - [select for diffs], Wed Dec 5 00:58:05 2001 UTC (22 years, 4 months ago) by thorpej
Branch: MAIN
CVS Tags: newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, kqueue-beforemerge, kqueue-base, kqueue-aftermerge, ifpoll-base, gehenna-devsw-base, gehenna-devsw, eeh-devprop-base, eeh-devprop
Changes since 1.39: +17 -2 lines
Diff to previous 1.39 (colored) to selected 1.18 (colored)

* Allow machine-dependent code to specify hooks for ptrace(2)
  (__HAVE_PTRACE_MACHDEP) and procfs (__HAVE_PROCFS_MACHDEP).
  These changes will allow platforms like x86 (XMM) and PowerPC
  (AltiVec) to export extended register sets in a sane manner.

* Use __HAVE_PTRACE_MACHDEP to export x86 XMM registers (standard
  FP + SSE/SSE2) using PT_{GET,SET}XMMREGS (in the machdep
  ptrace request space).
* Use __HAVE_PROCFS_MACHDEP to export x86 XMM registers via
  /proc/N/xmmregs in procfs.

Revision 1.36.2.4 / (download) - annotate - [select for diffs], Wed Nov 14 19:17:12 2001 UTC (22 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.36.2.3: +4 -1 lines
Diff to previous 1.36.2.3 (colored) to selected 1.18 (colored)

Catch up to -current.

Revision 1.38.2.1 / (download) - annotate - [select for diffs], Mon Nov 12 21:19:12 2001 UTC (22 years, 5 months ago) by thorpej
Branch: thorpej-mips-cache
Changes since 1.38: +4 -1 lines
Diff to previous 1.38 (colored) next main 1.39 (colored) to selected 1.18 (colored)

Sync the thorpej-mips-cache branch with -current.

Revision 1.39 / (download) - annotate - [select for diffs], Sat Nov 10 13:33:44 2001 UTC (22 years, 5 months ago) by lukem
Branch: MAIN
CVS Tags: thorpej-mips-cache-base
Changes since 1.38: +4 -1 lines
Diff to previous 1.38 (colored) to selected 1.18 (colored)

add RCSIDs

Revision 1.37.4.2 / (download) - annotate - [select for diffs], Mon Oct 1 12:47:22 2001 UTC (22 years, 6 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.37.4.1: +37 -6 lines
Diff to previous 1.37.4.1 (colored) to branchpoint 1.37 (colored) next main 1.38 (colored) to selected 1.18 (colored)

Catch up with -current.

Revision 1.37.4.1 / (download) - annotate - [select for diffs], Wed Sep 26 15:28:24 2001 UTC (22 years, 6 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.37: +2 -2 lines
Diff to previous 1.37 (colored) to selected 1.18 (colored)

* add a VCLONED vnode flag that indicates a vnode representing a cloned
  device.
* rename REVOKEALL to REVOKEALIAS, and add a REVOKECLONE flag, to pass
  to VOP_REVOKE
* the revoke system call will revoke all aliases, as before, but not the
  clones
* vdevgone is called when detaching a device, so make it use REVOKECLONE
  to get rid of all clones as well
* clean up all uses of VOP_OPEN wrt. locking.
* add a few VOPS to spec_vnops that need to do something when it's a
  clone vnode (access and getattr)
* add a copy of the vnode vattr structure of the original 'master' vnode
  to the specinfo of a cloned vnode. could possibly redirect getattr to
  the 'master' vnode, but this has issues with revoke
* add a vdev_reassignvp function that disassociates a vnode from its
  original device, and reassociates it with the specified dev_t. to be
  used by cloning devices only, in case a new minor is allocated.
* change all direct references in drivers to v_devcookie and v_rdev
  to vdev_privdata(vp) and vdev_rdev(vp). for diagnostic purposes
  when debugging race conditions that still exist wrt. locking and
  revoking vnodes.
* make the locking state of a vnode consistent when passed to
  d_open and d_close (unlocked). locked would be better, but has
  some deadlock issues

Revision 1.36.2.3 / (download) - annotate - [select for diffs], Fri Sep 21 22:36:39 2001 UTC (22 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.36.2.2: +37 -6 lines
Diff to previous 1.36.2.2 (colored) to selected 1.18 (colored)

Catch up to -current.

Revision 1.38 / (download) - annotate - [select for diffs], Sat Sep 15 16:12:59 2001 UTC (22 years, 7 months ago) by chs
Branch: MAIN
CVS Tags: thorpej-devvp-base3, thorpej-devvp-base2, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-mips-cache
Changes since 1.37: +37 -6 lines
Diff to previous 1.37 (colored) to selected 1.18 (colored)

add a new VFS op, vfs_reinit, which is called when desiredvnodes is
adjusted via sysctl.  file systems that have hash tables which are
sized based on the value of this variable now resize those hash tables
using the new value.  the max number of FFS softdeps is also recalculated.

convert various file systems to use the <sys/queue.h> macros for
their hash tables.

Revision 1.28.2.6 / (download) - annotate - [select for diffs], Sat Apr 21 17:46:35 2001 UTC (23 years ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.28.2.5: +6 -2 lines
Diff to previous 1.28.2.5 (colored) to branchpoint 1.28 (colored) next main 1.29 (colored) to selected 1.18 (colored)

Sync with HEAD

Revision 1.36.2.2 / (download) - annotate - [select for diffs], Mon Apr 9 01:58:09 2001 UTC (23 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.36.2.1: +6 -2 lines
Diff to previous 1.36.2.1 (colored) to selected 1.18 (colored)

Catch up with -current.

Revision 1.31.4.1 / (download) - annotate - [select for diffs], Fri Mar 30 21:49:23 2001 UTC (23 years ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001
Changes since 1.31: +8 -1 lines
Diff to previous 1.31 (colored) next main 1.32 (colored) to selected 1.18 (colored)

Pull up revision 1.35 (requested by fvdl):
  Add some required Linux emulation bits to support the Linux
  version of VMware.

Revision 1.37 / (download) - annotate - [select for diffs], Thu Mar 29 22:41:52 2001 UTC (23 years ago) by fvdl
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base, thorpej-devvp-base
Branch point for: thorpej-devvp, kqueue
Changes since 1.36: +6 -2 lines
Diff to previous 1.36 (colored) to selected 1.18 (colored)

For -o linux mounts, add some code to emulate /proc/#/maps.
Needs NAMECACHE_ENTER_REVERSE to include filenames.

Revision 1.36.2.1 / (download) - annotate - [select for diffs], Mon Mar 5 22:49:51 2001 UTC (23 years, 1 month ago) by nathanw
Branch: nathanw_sa
Changes since 1.36: +31 -6 lines
Diff to previous 1.36 (colored) to selected 1.18 (colored)

Initial commit of scheduler activations and lightweight process support.

Revision 1.28.2.5 / (download) - annotate - [select for diffs], Sun Feb 11 19:17:02 2001 UTC (23 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.28.2.4: +4 -4 lines
Diff to previous 1.28.2.4 (colored) to branchpoint 1.28 (colored) to selected 1.18 (colored)

Sync with HEAD.

Revision 1.36 / (download) - annotate - [select for diffs], Thu Jan 18 20:28:21 2001 UTC (23 years, 3 months ago) by jdolecek
Branch: MAIN
Branch point for: nathanw_sa
Changes since 1.35: +4 -4 lines
Diff to previous 1.35 (colored) to selected 1.18 (colored)

constify

Revision 1.28.2.4 / (download) - annotate - [select for diffs], Thu Jan 18 09:23:48 2001 UTC (23 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.28.2.3: +7 -0 lines
Diff to previous 1.28.2.3 (colored) to branchpoint 1.28 (colored) to selected 1.18 (colored)

Sync with head (for UBC+NFS fixes, mostly).

Revision 1.35 / (download) - annotate - [select for diffs], Wed Jan 17 00:09:08 2001 UTC (23 years, 3 months ago) by fvdl
Branch: MAIN
Changes since 1.34: +8 -1 lines
Diff to previous 1.34 (colored) to selected 1.18 (colored)

Add a few linux-style files, only enabled when -o linux is specified
for the mount. Currently these are /proc/cpuinfo and /proc/meminfo.
The former only does something on i386 right now.

Revision 1.28.2.3 / (download) - annotate - [select for diffs], Fri Dec 8 09:15:01 2000 UTC (23 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.28.2.2: +3 -2 lines
Diff to previous 1.28.2.2 (colored) to branchpoint 1.28 (colored) to selected 1.18 (colored)

Sync with HEAD.

Revision 1.34 / (download) - annotate - [select for diffs], Mon Nov 27 08:39:46 2000 UTC (23 years, 4 months ago) by chs
Branch: MAIN
Changes since 1.33: +2 -1 lines
Diff to previous 1.33 (colored) to selected 1.18 (colored)

Initial integration of the Unified Buffer Cache project.

Revision 1.33 / (download) - annotate - [select for diffs], Fri Nov 24 18:58:37 2000 UTC (23 years, 4 months ago) by chs
Branch: MAIN
Changes since 1.32: +3 -3 lines
Diff to previous 1.32 (colored) to selected 1.18 (colored)

remove dead code and other misc cleanup.

Revision 1.28.2.2 / (download) - annotate - [select for diffs], Wed Nov 22 16:05:46 2000 UTC (23 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.28.2.1: +3 -3 lines
Diff to previous 1.28.2.1 (colored) to branchpoint 1.28 (colored) to selected 1.18 (colored)

Sync with HEAD.

Revision 1.28.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 18:09:49 2000 UTC (23 years, 5 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.28: +119 -49 lines
Diff to previous 1.28 (colored) to selected 1.18 (colored)

Update thorpej_scsipi to -current as of a month ago

Revision 1.32 / (download) - annotate - [select for diffs], Wed Nov 8 14:28:14 2000 UTC (23 years, 5 months ago) by ad
Branch: MAIN
Changes since 1.31: +3 -3 lines
Diff to previous 1.31 (colored) to selected 1.18 (colored)

Update for hashinit() change.

Revision 1.31 / (download) - annotate - [select for diffs], Thu Mar 16 18:08:26 2000 UTC (24 years, 1 month ago) by jdolecek
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.30: +10 -1 lines
Diff to previous 1.30 (colored) to selected 1.18 (colored)

Add new VFS op routine - vfs_done and call it on filesystem detach
in vfs_detach(). vfs_done may free global filesystem's resources,
typically those allocated in respective filesystem's init function.
Needed so those filesystems which went in via LKM have a chance to
clean after themselves before unloading. This fixes random panics
when LKM for filesystem using pools was loaded and unloaded several
times.

For each leaf filesystem, add appropriate vfs_done routine.

Revision 1.26.2.2 / (download) - annotate - [select for diffs], Mon Feb 28 09:47:49 2000 UTC (24 years, 1 month ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002
Changes since 1.26.2.1: +5 -4 lines
Diff to previous 1.26.2.1 (colored) to branchpoint 1.26 (colored) next main 1.27 (colored) to selected 1.18 (colored)

Pull up revision 1.30 (requested by fvdl):
  Fix a critical typo in the earlier procfs security fix.

Revision 1.30 / (download) - annotate - [select for diffs], Fri Feb 25 22:33:43 2000 UTC (24 years, 1 month ago) by fvdl
Branch: MAIN
Changes since 1.29: +5 -4 lines
Diff to previous 1.29 (colored) to selected 1.18 (colored)

Fix pasto: some lines of the procfs hash code were copied from the
UFS code, and I forgot to rename the "ihash" variable, causing
weird effects, because 3/4th of the UFS hash table would become
unreachable after procfs was loaded as an LKM.

Revision 1.26.2.1 / (download) - annotate - [select for diffs], Tue Feb 1 22:56:44 2000 UTC (24 years, 2 months ago) by he
Branch: netbsd-1-4
Changes since 1.26: +105 -47 lines
Diff to previous 1.26 (colored) to selected 1.18 (colored)

Pull up revision 1.29 (via patch, requested by fvdl):
  Close procfs security hole.  Fixes SA#2000-001.

Revision 1.29 / (download) - annotate - [select for diffs], Tue Jan 25 21:52:04 2000 UTC (24 years, 2 months ago) by fvdl
Branch: MAIN
CVS Tags: chs-ubc2-newbase
Changes since 1.28: +109 -49 lines
Diff to previous 1.28 (colored) to selected 1.18 (colored)

At mount/unmount time, add an exec hook to revoke all vnodes iff the
process is about to exec a sugid binary.

To speed up things, use hashing for vnode allocation, like other filesystems
do. This avoids walking the whole procfs node list in the revoke case too.

Revision 1.28 / (download) - annotate - [select for diffs], Thu Sep 2 23:33:45 1999 UTC (24 years, 7 months ago) by thorpej
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999
Branch point for: thorpej_scsipi
Changes since 1.27: +2 -1 lines
Diff to previous 1.27 (colored) to selected 1.18 (colored)

Make /proc/self a symlink to /proc/curproc.  I've observed Linux programs
that expect /proc/self/cmdline to exist.

Revision 1.26.4.1 / (download) - annotate - [select for diffs], Mon Aug 2 22:28:34 1999 UTC (24 years, 8 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.26: +5 -3 lines
Diff to previous 1.26 (colored) next main 1.27 (colored) to selected 1.18 (colored)

Update from trunk.

Revision 1.27 / (download) - annotate - [select for diffs], Thu Jul 8 01:26:28 1999 UTC (24 years, 9 months ago) by wrstuden
Branch: MAIN
CVS Tags: chs-ubc2-base
Changes since 1.26: +5 -3 lines
Diff to previous 1.26 (colored) to selected 1.18 (colored)

Bump osrelease to 1.4E. Add layerfs files, remove null_subr.c.

Update coda to new struct lock in struct vnode.

make fdescfs, kernfs, portalfs, and procfs actually lock their vnodes.
It's not that hard.

Make unionfs set v_vnlock = NULL so any overlayed fs will call its
VOP_LOCK.

Revision 1.26 / (download) - annotate - [select for diffs], Fri Mar 12 18:45:40 1999 UTC (25 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH001, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame
Branch point for: netbsd-1-4, chs-ubc2
Changes since 1.25: +5 -1 lines
Diff to previous 1.25 (colored) to selected 1.18 (colored)

PR/7143: Jaromir Docelek: Add procfs/cmdline from Linux emulation

Revision 1.25 / (download) - annotate - [select for diffs], Mon Jan 25 02:20:08 1999 UTC (25 years, 2 months ago) by msaitoh
Branch: MAIN
Changes since 1.24: +5 -1 lines
Diff to previous 1.24 (colored) to selected 1.18 (colored)

Add /proc/#/map. From FreeBSD.

Revision 1.24 / (download) - annotate - [select for diffs], Sun Aug 9 20:51:10 1998 UTC (25 years, 8 months ago) by perry
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach, chs-ubc-base, chs-ubc
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored) to selected 1.18 (colored)

bzero->memset, bcopy->memcpy, bcmp->memcmp

Revision 1.23 / (download) - annotate - [select for diffs], Sun Mar 1 02:21:16 1998 UTC (26 years, 1 month ago) by fvdl
Branch: MAIN
CVS Tags: eeh-paddr_t-base, eeh-paddr_t
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored) to selected 1.18 (colored)

Merge with Lite2 + local changes

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 1 02:13:19 1998 UTC (26 years, 1 month ago) by fvdl
Branch: netbsd, CSRG
CVS Tags: lite-2
Changes since 1.1.1.1: +30 -30 lines
Diff to previous 1.1.1.1 (colored) to selected 1.18 (colored)

Import 4.4BSD-Lite2

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 1 02:10:01 1998 UTC (26 years, 1 month ago) by fvdl
Branch: netbsd, CSRG
CVS Tags: lite-1, date-03-may-96
Changes since 1.1: +275 -314 lines
Diff to previous 1.1 (colored) to selected 1.18 (colored)

Import 4.4BSD-Lite for reference

Revision 1.21.4.1 / (download) - annotate - [select for diffs], Thu Oct 30 23:14:50 1997 UTC (26 years, 5 months ago) by mellon
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored) next main 1.22 (colored) to selected 1.18 (colored)

Pull rev 1.22 up from trunk (mycroft)

Revision 1.22 / (download) - annotate - [select for diffs], Thu Oct 30 09:14:07 1997 UTC (26 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored) to selected 1.18 (colored)

Make the curproc link executable.

Revision 1.19.4.1 / (download) - annotate - [select for diffs], Sat Aug 23 07:14:15 1997 UTC (26 years, 7 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.19: +4 -1 lines
Diff to previous 1.19 (colored) next main 1.20 (colored) to selected 1.18 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.21 / (download) - annotate - [select for diffs], Wed Aug 13 04:01:23 1997 UTC (26 years, 8 months ago) by explorer
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, netbsd-1-3-base, marc-pcmcia-base
Branch point for: netbsd-1-3
Changes since 1.20: +1 -29 lines
Diff to previous 1.20 (colored) to selected 1.18 (colored)

Move procfs_checkioperm() from procvs_subr.c to procfs_mem.c, since _subr is
not included in a kernel without procfs, and it seems wrong to pull
all of procfs_subr.c in for just that one function.  Perhaps this
should go into a new file instead?

Revision 1.20 / (download) - annotate - [select for diffs], Tue Aug 12 22:47:21 1997 UTC (26 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.19: +32 -1 lines
Diff to previous 1.19 (colored) to selected 1.18 (colored)

Fix the procfs hole described on current-users, similar to a fix for
FreeBSD by Sean Eric Fagan, but a bit different.  This makes the checks
in the same places as sef's FreeBSD patch, but does not hardcode the
"kmem" group into the kernel, and also does a check identical to the
(3) and (4) checks in the NetBSD ptrace(2):

	(1) it's not owned by you, or is set-id on exec (unless
	    you're root), or

	(2) it's init, which controls the security level of the
	    entire system, and the system was not compiled with
	    permanently insecure mode turned on.

Revision 1.19 / (download) - annotate - [select for diffs], Wed Jun 25 11:32:15 1997 UTC (26 years, 9 months ago) by mycroft
Branch: MAIN
CVS Tags: marc-pcmcia-bp, bouyer-scsipi
Branch point for: marc-pcmcia
Changes since 1.18: +18 -1 lines
Diff to previous 1.18 (colored)

Don't allow writes to init's memory or registers while in secure mode.

Revision 1.18 / (download) - annotate - [selected], Mon May 5 07:35:13 1997 UTC (26 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.17: +3 -1 lines
Diff to previous 1.17 (colored)

Need stat.h.

Revision 1.17 / (download) - annotate - [select for diffs], Mon May 5 07:14:00 1997 UTC (26 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.16: +16 -24 lines
Diff to previous 1.16 (colored) to selected 1.18 (colored)

Eliminate bogus uses of V{READ,WRITE,EXEC}.  Use S_I[RWX]{USR,GRP,OTH} where
appropriate.

Revision 1.16 / (download) - annotate - [select for diffs], Fri Oct 25 21:52:02 1996 UTC (27 years, 5 months ago) by cgd
Branch: MAIN
CVS Tags: thorpej-setroot, mrg-vm-swap, is-newarp-before-merge, is-newarp-base, is-newarp
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored) to selected 1.18 (colored)

remove bogus cast of second arg to bcmp().  (nm_name is a const char*,
and was being unnecessarily cast to 'char *'; -Wcast-qual.)

Revision 1.15 / (download) - annotate - [select for diffs], Mon Feb 12 15:01:42 1996 UTC (28 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2
Changes since 1.14: +4 -5 lines
Diff to previous 1.14 (colored) to selected 1.18 (colored)

close PR/2063: procfs_rw prototyped twice with different prototypes

Revision 1.14 / (download) - annotate - [select for diffs], Fri Feb 9 22:40:51 1996 UTC (28 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.13: +5 -3 lines
Diff to previous 1.13 (colored) to selected 1.18 (colored)

miscfs prototype changes

Revision 1.13 / (download) - annotate - [select for diffs], Wed Jun 29 06:34:57 1994 UTC (29 years, 9 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1, netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Changes since 1.12: +3 -2 lines
Diff to previous 1.12 (colored) to selected 1.18 (colored)

New RCS ID's, take two.  they're more aesthecially pleasant, and use 'NetBSD'

Revision 1.12 / (download) - annotate - [select for diffs], Wed Jun 15 22:59:12 1994 UTC (29 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.11: +5 -6 lines
Diff to previous 1.11 (colored) to selected 1.18 (colored)

Minor update from JSP after merging my changes.

Revision 1.11 / (download) - annotate - [select for diffs], Wed Jun 8 11:33:42 1994 UTC (29 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.10: +65 -76 lines
Diff to previous 1.10 (colored) to selected 1.18 (colored)

Update to 4.4-Lite fs code, with local changes.

Revision 1.10 / (download) - annotate - [select for diffs], Mon Apr 25 03:50:01 1994 UTC (29 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored) to selected 1.18 (colored)

some prototype cleanup, eliminate/replace bogus types (e.g. quad and
u_quad) -> use better types (e.g. quad_t & u_quad_t in inodes),
some cleanup.

Revision 1.9 / (download) - annotate - [select for diffs], Fri Jan 28 07:03:34 1994 UTC (30 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.8: +9 -1 lines
Diff to previous 1.8 (colored) to selected 1.18 (colored)

make a fpregs file.

Revision 1.8 / (download) - annotate - [select for diffs], Thu Jan 20 21:23:07 1994 UTC (30 years, 3 months ago) by ws
Branch: MAIN
Changes since 1.7: +8 -14 lines
Diff to previous 1.7 (colored) to selected 1.18 (colored)

Make procfs really work for debugging.
Implement not & notepg files in procfs.

Revision 1.7 / (download) - annotate - [select for diffs], Mon Jan 10 04:58:14 1994 UTC (30 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.6: +3 -2 lines
Diff to previous 1.6 (colored) to selected 1.18 (colored)

Add a missing break so my machine doesn't panic.

Revision 1.6 / (download) - annotate - [select for diffs], Sun Jan 9 19:44:07 1994 UTC (30 years, 3 months ago) by ws
Branch: MAIN
Changes since 1.5: +27 -11 lines
Diff to previous 1.5 (colored) to selected 1.18 (colored)

Bug fixes and enhancements:
Make NFS serving work (BUT DON'T USE "attach" TO /proc/*/ctl FOR NOW!!!)
Make `curproc' a symbolic link
Add `.' and `..' entries to the directories.
Return better guesses on the size of the files.

Revision 1.5 / (download) - annotate - [select for diffs], Wed Jan 5 07:51:29 1994 UTC (30 years, 3 months ago) by cgd
Branch: MAIN
Changes since 1.4: +247 -323 lines
Diff to previous 1.4 (colored) to selected 1.18 (colored)

add new procfs code, from Jan-Simon Pendry, jsp@sequent.com.
This is pretty-much "virgin", so that diffs can be done later.

Revision 1.4 / (download) - annotate - [select for diffs], Sat Dec 18 03:58:08 1993 UTC (30 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.3: +19 -19 lines
Diff to previous 1.3 (colored) to selected 1.18 (colored)

Canonicalize all #includes.

Revision 1.3.2.1 / (download) - annotate - [select for diffs], Sun Nov 14 22:35:01 1993 UTC (30 years, 5 months ago) by mycroft
Branch: magnum
Changes since 1.3: +22 -19 lines
Diff to previous 1.3 (colored) next main 1.4 (colored) to selected 1.18 (colored)

Canonicalize all #includes.

Revision 1.3 / (download) - annotate - [select for diffs], Tue Aug 24 16:47:24 1993 UTC (30 years, 7 months ago) by pk
Branch: MAIN
CVS Tags: magnum-base
Branch point for: magnum
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored) to selected 1.18 (colored)

copyright update.

Revision 1.2 / (download) - annotate - [select for diffs], Tue Aug 24 16:25:10 1993 UTC (30 years, 7 months ago) by pk
Branch: MAIN
Changes since 1.1: +29 -2 lines
Diff to previous 1.1 (colored) to selected 1.18 (colored)

Rcs Id added.

Revision 1.1 / (download) - annotate - [select for diffs], Tue Aug 24 12:59:10 1993 UTC (30 years, 7 months ago) by pk
Branch: MAIN
Diff to selected 1.18 (colored)

Initial version of a proc filesystem.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>