CVS commit: src/sys/miscfs/procfs

2024-05-17 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Sat May 18 00:05:50 UTC 2024 Modified Files: src/sys/miscfs/procfs: procfs_cmdline.c Log Message: Remove unnecessary include of . To generate a diff of this commit: cvs rdiff -u -r1.32 -r1.33

CVS commit: src/sys/miscfs/procfs

2024-05-17 Thread Jason R Thorpe
Module Name:src Committed By: thorpej Date: Sat May 18 00:05:50 UTC 2024 Modified Files: src/sys/miscfs/procfs: procfs_cmdline.c Log Message: Remove unnecessary include of . To generate a diff of this commit: cvs rdiff -u -r1.32 -r1.33

CVS commit: src/sys/miscfs/procfs

2024-05-12 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun May 12 17:26:51 UTC 2024 Modified Files: src/sys/miscfs/procfs: procfs.h procfs_linux.c procfs_subr.c procfs_vfsops.c procfs_vnops.c Log Message: PR/58227: Ricardo Branco: Add support for proc/sysvipc in Linux

CVS commit: src/sys/miscfs/procfs

2024-05-12 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun May 12 17:26:51 UTC 2024 Modified Files: src/sys/miscfs/procfs: procfs.h procfs_linux.c procfs_subr.c procfs_vfsops.c procfs_vnops.c Log Message: PR/58227: Ricardo Branco: Add support for proc/sysvipc in Linux

CVS commit: src/sys/miscfs/procfs

2024-05-12 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun May 12 17:22:29 UTC 2024 Modified Files: src/sys/miscfs/procfs: procfs.h procfs_limit.c procfs_subr.c procfs_vfsops.c procfs_vnops.c Log Message: PR/58240: Ricardo Branco: Add support for proc/self/limits as

CVS commit: src/sys/miscfs/procfs

2024-05-12 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun May 12 17:22:29 UTC 2024 Modified Files: src/sys/miscfs/procfs: procfs.h procfs_limit.c procfs_subr.c procfs_vfsops.c procfs_vnops.c Log Message: PR/58240: Ricardo Branco: Add support for proc/self/limits as

CVS commit: src/sys/miscfs/procfs

2024-01-17 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Wed Jan 17 10:21:01 UTC 2024 Modified Files: src/sys/miscfs/procfs: procfs_vfsops.c Log Message: Remove all procfs nodes for this process on process exit. To generate a diff of this commit: cvs rdiff -u -r1.113 -r1.114

CVS commit: src/sys/miscfs/procfs

2024-01-17 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Wed Jan 17 10:21:01 UTC 2024 Modified Files: src/sys/miscfs/procfs: procfs_vfsops.c Log Message: Remove all procfs nodes for this process on process exit. To generate a diff of this commit: cvs rdiff -u -r1.113 -r1.114

CVS commit: src/sys/miscfs/procfs

2024-01-17 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Wed Jan 17 10:20:12 UTC 2024 Modified Files: src/sys/miscfs/procfs: procfs.h procfs_subr.c procfs_vfsops.c Log Message: Using the exechook to revoke procfs nodes is racy and may deadlock: one thread runs doexechooks() ->

CVS commit: src/sys/miscfs/procfs

2024-01-17 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Wed Jan 17 10:20:12 UTC 2024 Modified Files: src/sys/miscfs/procfs: procfs.h procfs_subr.c procfs_vfsops.c Log Message: Using the exechook to revoke procfs nodes is racy and may deadlock: one thread runs doexechooks() ->

CVS commit: src/sys/miscfs/procfs

2024-01-17 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Wed Jan 17 10:19:21 UTC 2024 Modified Files: src/sys/miscfs/procfs: procfs.h procfs_vfsops.c procfs_vnops.c Log Message: Add a hashmap to access all procfs nodes by pid. To generate a diff of this commit: cvs rdiff -u -r1.82

CVS commit: src/sys/miscfs/procfs

2024-01-17 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Wed Jan 17 10:19:21 UTC 2024 Modified Files: src/sys/miscfs/procfs: procfs.h procfs_vfsops.c procfs_vnops.c Log Message: Add a hashmap to access all procfs nodes by pid. To generate a diff of this commit: cvs rdiff -u -r1.82

CVS commit: src/sys/miscfs/specfs

2023-04-22 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Apr 22 15:32:49 UTC 2023 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs: KNF. No functional change intended. To generate a diff of this commit: cvs rdiff -u -r1.217 -r1.218

CVS commit: src/sys/miscfs/specfs

2023-04-22 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Apr 22 15:32:49 UTC 2023 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs: KNF. No functional change intended. To generate a diff of this commit: cvs rdiff -u -r1.217 -r1.218

CVS commit: src/sys/miscfs/specfs

2023-04-22 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Sat Apr 22 14:30:17 UTC 2023 Modified Files: src/sys/miscfs/specfs: spec_vnops.c specdev.h Log Message: Remove unused specdev member sd_rdev. Ride 10.99.4 To generate a diff of this commit: cvs rdiff -u -r1.216 -r1.217

CVS commit: src/sys/miscfs/specfs

2023-04-22 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Sat Apr 22 14:30:17 UTC 2023 Modified Files: src/sys/miscfs/specfs: spec_vnops.c specdev.h Log Message: Remove unused specdev member sd_rdev. Ride 10.99.4 To generate a diff of this commit: cvs rdiff -u -r1.216 -r1.217

CVS commit: src/sys/miscfs/genfs

2023-04-09 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Apr 9 12:26:36 UTC 2023 Modified Files: src/sys/miscfs/genfs: genfs_io.c Log Message: genfs: KASSERT(A && B) -> KASSERT(A); KASSERT(B) To generate a diff of this commit: cvs rdiff -u -r1.102 -r1.103

CVS commit: src/sys/miscfs/genfs

2023-04-09 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sun Apr 9 12:26:36 UTC 2023 Modified Files: src/sys/miscfs/genfs: genfs_io.c Log Message: genfs: KASSERT(A && B) -> KASSERT(A); KASSERT(B) To generate a diff of this commit: cvs rdiff -u -r1.102 -r1.103

CVS commit: src/sys/miscfs/genfs

2023-03-03 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Fri Mar 3 10:02:51 UTC 2023 Modified Files: src/sys/miscfs/genfs: genfs_vnops.c Log Message: Fix genfs_can_chtimes() to also handle the condition: If the time pointer is null, then write permission on the file is also

CVS commit: src/sys/miscfs/genfs

2023-03-03 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Fri Mar 3 10:02:51 UTC 2023 Modified Files: src/sys/miscfs/genfs: genfs_vnops.c Log Message: Fix genfs_can_chtimes() to also handle the condition: If the time pointer is null, then write permission on the file is also

CVS commit: src/sys/miscfs/nullfs

2023-02-06 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Mon Feb 6 10:32:58 UTC 2023 Modified Files: src/sys/miscfs/nullfs: null_vfsops.c Log Message: Set IMNT_MPSAFE only if the lower layer has it set. To generate a diff of this commit: cvs rdiff -u -r1.100 -r1.101

CVS commit: src/sys/miscfs/nullfs

2023-02-06 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Mon Feb 6 10:32:58 UTC 2023 Modified Files: src/sys/miscfs/nullfs: null_vfsops.c Log Message: Set IMNT_MPSAFE only if the lower layer has it set. To generate a diff of this commit: cvs rdiff -u -r1.100 -r1.101

CVS commit: src/sys/miscfs/specfs

2022-10-15 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Oct 15 15:20:46 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs(9): Attribute blame by stack trace for write to r/o medium. To generate a diff of this commit: cvs rdiff -u -r1.215 -r1.216

CVS commit: src/sys/miscfs/specfs

2022-10-15 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Oct 15 15:20:46 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs(9): Attribute blame by stack trace for write to r/o medium. To generate a diff of this commit: cvs rdiff -u -r1.215 -r1.216

CVS commit: src/sys/miscfs/specfs

2022-09-21 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Wed Sep 21 10:59:10 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs(9): XXX comment: what if read downgrades lock? To generate a diff of this commit: cvs rdiff -u -r1.214 -r1.215

CVS commit: src/sys/miscfs/specfs

2022-09-21 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Wed Sep 21 10:59:10 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs(9): XXX comment: what if read downgrades lock? To generate a diff of this commit: cvs rdiff -u -r1.214 -r1.215

CVS commit: src/sys/miscfs/specfs

2022-08-12 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Fri Aug 12 21:25:39 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs: Refuse to open a closing-in-progress block device. We could wait for close to complete, but if this happened ever so

CVS commit: src/sys/miscfs/specfs

2022-08-12 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Fri Aug 12 21:25:39 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs: Refuse to open a closing-in-progress block device. We could wait for close to complete, but if this happened ever so

CVS commit: src/sys/miscfs/specfs

2022-08-12 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Fri Aug 12 17:06:01 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs: Assert !closing on successful open. - If there's a prior concurrent close, it must have interrupted this open. - If

CVS commit: src/sys/miscfs/specfs

2022-08-12 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Fri Aug 12 17:06:01 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs: Assert !closing on successful open. - If there's a prior concurrent close, it must have interrupted this open. - If

CVS commit: src/sys/miscfs/specfs

2022-08-12 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Fri Aug 12 17:05:49 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs: Assert opencnt>0 on successful open. To generate a diff of this commit: cvs rdiff -u -r1.211 -r1.212

CVS commit: src/sys/miscfs/specfs

2022-08-12 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Fri Aug 12 17:05:49 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs: Assert opencnt>0 on successful open. To generate a diff of this commit: cvs rdiff -u -r1.211 -r1.212

CVS commit: src/sys/miscfs/specfs

2022-08-11 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Thu Aug 11 12:52:24 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs: Sprinkle opencnt/opened/closing assertions. There seems to be a bug here but I'm not sure what it is yet:

CVS commit: src/sys/miscfs/specfs

2022-08-11 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Thu Aug 11 12:52:24 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs: Sprinkle opencnt/opened/closing assertions. There seems to be a bug here but I'm not sure what it is yet:

CVS commit: src/sys/miscfs/deadfs

2022-07-08 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Fri Jul 8 07:44:18 UTC 2022 Modified Files: src/sys/miscfs/deadfs: dead_vfsops.c Log Message: Make dead vfs ops "vfs_statvfs" and "vfs_vptofh" return EOPNOTSUPP. Both operations may originate from (possible dead) vnodes.

CVS commit: src/sys/miscfs/deadfs

2022-07-08 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Fri Jul 8 07:44:18 UTC 2022 Modified Files: src/sys/miscfs/deadfs: dead_vfsops.c Log Message: Make dead vfs ops "vfs_statvfs" and "vfs_vptofh" return EOPNOTSUPP. Both operations may originate from (possible dead) vnodes.

CVS commit: src/sys/miscfs/overlay

2022-07-08 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Fri Jul 8 07:43:48 UTC 2022 Modified Files: src/sys/miscfs/overlay: overlay_vfsops.c Log Message: Don't use LK_RETRY as we need an active vnode here. To generate a diff of this commit: cvs rdiff -u -r1.71 -r1.72

CVS commit: src/sys/miscfs/overlay

2022-07-08 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Fri Jul 8 07:43:48 UTC 2022 Modified Files: src/sys/miscfs/overlay: overlay_vfsops.c Log Message: Don't use LK_RETRY as we need an active vnode here. To generate a diff of this commit: cvs rdiff -u -r1.71 -r1.72

CVS commit: src/sys/miscfs/procfs

2022-06-17 Thread Mateusz Kocielski
Module Name:src Committed By: shm Date: Fri Jun 17 14:30:37 UTC 2022 Modified Files: src/sys/miscfs/procfs: procfs_vnops.c Log Message: Add missing permission check To generate a diff of this commit: cvs rdiff -u -r1.228 -r1.229 src/sys/miscfs/procfs/procfs_vnops.c

CVS commit: src/sys/miscfs/procfs

2022-06-17 Thread Mateusz Kocielski
Module Name:src Committed By: shm Date: Fri Jun 17 14:30:37 UTC 2022 Modified Files: src/sys/miscfs/procfs: procfs_vnops.c Log Message: Add missing permission check To generate a diff of this commit: cvs rdiff -u -r1.228 -r1.229 src/sys/miscfs/procfs/procfs_vnops.c

CVS commit: src/sys/miscfs/specfs

2022-03-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Mar 28 12:38:04 UTC 2022 Modified Files: src/sys/miscfs/specfs: specdev.h Log Message: specfs: Reorder struct specnode members to save padding. Shrinks from 40 bytes to 32 bytes on LP64 systems this way. To generate a

CVS commit: src/sys/miscfs/specfs

2022-03-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Mar 28 12:38:04 UTC 2022 Modified Files: src/sys/miscfs/specfs: specdev.h Log Message: specfs: Reorder struct specnode members to save padding. Shrinks from 40 bytes to 32 bytes on LP64 systems this way. To generate a

CVS commit: src/sys/miscfs/specfs

2022-03-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Mar 28 12:37:35 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs: Assert opencnt is nonzero before decrementing. To generate a diff of this commit: cvs rdiff -u -r1.206 -r1.207

CVS commit: src/sys/miscfs/specfs

2022-03-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Mar 28 12:37:35 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs: Assert opencnt is nonzero before decrementing. To generate a diff of this commit: cvs rdiff -u -r1.206 -r1.207

CVS commit: src/sys/miscfs/specfs

2022-03-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Mar 28 12:37:27 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs: Take an I/O reference across bdev/cdev_open. - Revoke is used to invalidate all prior access control checks when device

CVS commit: src/sys/miscfs/specfs

2022-03-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Mar 28 12:37:27 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs: Take an I/O reference across bdev/cdev_open. - Revoke is used to invalidate all prior access control checks when device

CVS commit: src/sys/miscfs/specfs

2022-03-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Mar 28 12:37:18 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs: Wait for last close in spec_node_revoke. Otherwise, revoke -- and vdevgone, in the detach path of removable devices -- may

CVS commit: src/sys/miscfs/specfs

2022-03-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Mar 28 12:37:18 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs: Wait for last close in spec_node_revoke. Otherwise, revoke -- and vdevgone, in the detach path of removable devices -- may

CVS commit: src/sys/miscfs/specfs

2022-03-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Mar 28 12:37:09 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c specdev.h Log Message: specfs: Prevent new opens while close is waiting to drain. Otherwise, bdev/cdev_close could have cancelled all _existing_

CVS commit: src/sys/miscfs/specfs

2022-03-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Mar 28 12:37:09 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c specdev.h Log Message: specfs: Prevent new opens while close is waiting to drain. Otherwise, bdev/cdev_close could have cancelled all _existing_

CVS commit: src/sys/miscfs/specfs

2022-03-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Mar 28 12:37:01 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs: Take an I/O reference in spec_node_setmountedfs. This is not quite correct. We _should_ require the caller to hold a vnode

CVS commit: src/sys/miscfs/specfs

2022-03-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Mar 28 12:37:01 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs: Take an I/O reference in spec_node_setmountedfs. This is not quite correct. We _should_ require the caller to hold a vnode

CVS commit: src/sys/miscfs/specfs

2022-03-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Mar 28 12:36:51 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c specdev.h Log Message: specfs: Drain all I/O operations after last .d_close call. New kind of I/O reference on specdevs, sd_iocnt. This could

CVS commit: src/sys/miscfs/specfs

2022-03-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Mar 28 12:36:51 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c specdev.h Log Message: specfs: Drain all I/O operations after last .d_close call. New kind of I/O reference on specdevs, sd_iocnt. This could

CVS commit: src/sys/miscfs/specfs

2022-03-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Mar 28 12:36:42 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c specdev.h Log Message: specfs: Resolve a race between close and a failing reopen. To generate a diff of this commit: cvs rdiff -u -r1.200

CVS commit: src/sys/miscfs/specfs

2022-03-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Mar 28 12:36:42 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c specdev.h Log Message: specfs: Resolve a race between close and a failing reopen. To generate a diff of this commit: cvs rdiff -u -r1.200

CVS commit: src/sys/miscfs/specfs

2022-03-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Mar 28 12:36:34 UTC 2022 Modified Files: src/sys/miscfs/specfs: specdev.h Log Message: specfs: Document sn_opencnt, sd_opencnt, sd_refcnt. To generate a diff of this commit: cvs rdiff -u -r1.46 -r1.47

CVS commit: src/sys/miscfs/specfs

2022-03-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Mar 28 12:36:34 UTC 2022 Modified Files: src/sys/miscfs/specfs: specdev.h Log Message: specfs: Document sn_opencnt, sd_opencnt, sd_refcnt. To generate a diff of this commit: cvs rdiff -u -r1.46 -r1.47

CVS commit: src/sys/miscfs/specfs

2022-03-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Mar 28 12:36:27 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs: Paranoia: Assert opencnt is zero on reclaim. To generate a diff of this commit: cvs rdiff -u -r1.199 -r1.200

CVS commit: src/sys/miscfs/specfs

2022-03-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Mar 28 12:36:27 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs: Paranoia: Assert opencnt is zero on reclaim. To generate a diff of this commit: cvs rdiff -u -r1.199 -r1.200

CVS commit: src/sys/miscfs/specfs

2022-03-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Mar 28 12:36:18 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs: Omit needless vdead_check in spec_fdiscard. The vnode lock is held, so the vnode cannot be revoked without also changing

CVS commit: src/sys/miscfs/specfs

2022-03-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Mar 28 12:36:18 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs: Omit needless vdead_check in spec_fdiscard. The vnode lock is held, so the vnode cannot be revoked without also changing

CVS commit: src/sys/miscfs/specfs

2022-03-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Mar 28 12:36:09 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs: Add a comment and assertion to spec_close about refcnts. To generate a diff of this commit: cvs rdiff -u -r1.197 -r1.198

CVS commit: src/sys/miscfs/specfs

2022-03-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Mar 28 12:36:09 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs: Add a comment and assertion to spec_close about refcnts. To generate a diff of this commit: cvs rdiff -u -r1.197 -r1.198

CVS commit: src/sys/miscfs/specfs

2022-03-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Mar 28 12:36:01 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs: If sd_opencnt is zero, sn_opencnt had better be zero. To generate a diff of this commit: cvs rdiff -u -r1.196 -r1.197

CVS commit: src/sys/miscfs/specfs

2022-03-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Mar 28 12:36:01 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs: If sd_opencnt is zero, sn_opencnt had better be zero. To generate a diff of this commit: cvs rdiff -u -r1.196 -r1.197

CVS commit: src/sys/miscfs/specfs

2022-03-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Mar 28 12:35:52 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs: Factor KASSERT out of switch in spec_open. No functional change. To generate a diff of this commit: cvs rdiff -u -r1.195

CVS commit: src/sys/miscfs/specfs

2022-03-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Mar 28 12:35:52 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs: Factor KASSERT out of switch in spec_open. No functional change. To generate a diff of this commit: cvs rdiff -u -r1.195

CVS commit: src/sys/miscfs/specfs

2022-03-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Mar 28 12:35:44 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs: sn_gone cannot be set while we hold the vnode lock. Revoke runs with the vnode lock too, which is exclusive. Add an

CVS commit: src/sys/miscfs/specfs

2022-03-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Mar 28 12:35:44 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs: sn_gone cannot be set while we hold the vnode lock. Revoke runs with the vnode lock too, which is exclusive. Add an

CVS commit: src/sys/miscfs/specfs

2022-03-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Mar 28 12:35:35 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs: Reorganize D_DISK tail of spec_open and explain what's up. No functional change intended. To generate a diff of this

CVS commit: src/sys/miscfs/specfs

2022-03-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Mar 28 12:35:35 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs: Reorganize D_DISK tail of spec_open and explain what's up. No functional change intended. To generate a diff of this

CVS commit: src/sys/miscfs/specfs

2022-03-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Mar 28 12:35:26 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs: Factor VOP_UNLOCK/vn_lock out of switch for clarity. No functional change. To generate a diff of this commit: cvs rdiff

CVS commit: src/sys/miscfs/specfs

2022-03-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Mar 28 12:35:26 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs: Factor VOP_UNLOCK/vn_lock out of switch for clarity. No functional change. To generate a diff of this commit: cvs rdiff

CVS commit: src/sys/miscfs/specfs

2022-03-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Mar 28 12:35:17 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs: Factor common device_lock out of switch for clarity. No functional change. To generate a diff of this commit: cvs rdiff

CVS commit: src/sys/miscfs/specfs

2022-03-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Mar 28 12:35:17 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs: Factor common device_lock out of switch for clarity. No functional change. To generate a diff of this commit: cvs rdiff

CVS commit: src/sys/miscfs/specfs

2022-03-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Mar 28 12:35:08 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs: Delete bogus comment about .d_open/.d_close at same time. Annoying as it is that .d_open and .d_close can run at the same

CVS commit: src/sys/miscfs/specfs

2022-03-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Mar 28 12:35:08 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs: Delete bogus comment about .d_open/.d_close at same time. Annoying as it is that .d_open and .d_close can run at the same

CVS commit: src/sys/miscfs/specfs

2022-03-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Mar 28 12:34:59 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs: Split spec_open switch into three sections. The sections are now: 1. Acquire open reference. 1a (intermezzo). Set

CVS commit: src/sys/miscfs/specfs

2022-03-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Mar 28 12:34:59 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs: Split spec_open switch into three sections. The sections are now: 1. Acquire open reference. 1a (intermezzo). Set

CVS commit: src/sys/miscfs/specfs

2022-03-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Mar 28 12:34:51 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs: Factor common kauth check out of switch in spec_open. No functional change. To generate a diff of this commit: cvs rdiff

CVS commit: src/sys/miscfs/specfs

2022-03-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Mar 28 12:34:51 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs: Factor common kauth check out of switch in spec_open. No functional change. To generate a diff of this commit: cvs rdiff

CVS commit: src/sys/miscfs/specfs

2022-03-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Mar 28 12:34:42 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs: Assert v_type is VBLK or VCHR in spec_open. Nothing else makes sense. Prune dead branches (and replace default case by

CVS commit: src/sys/miscfs/specfs

2022-03-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Mar 28 12:34:42 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs: Assert v_type is VBLK or VCHR in spec_open. Nothing else makes sense. Prune dead branches (and replace default case by

CVS commit: src/sys/miscfs/specfs

2022-03-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Mar 28 12:34:34 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs: Call bdev_open without the vnode lock. There is no need for it to serialize opens, because they are already serialized by

CVS commit: src/sys/miscfs/specfs

2022-03-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Mar 28 12:34:34 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs: Call bdev_open without the vnode lock. There is no need for it to serialize opens, because they are already serialized by

CVS commit: src/sys/miscfs/specfs

2022-03-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Mar 28 12:34:26 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs: Note lock order for vnode lock, device_lock, v_interlock. To generate a diff of this commit: cvs rdiff -u -r1.185 -r1.186

CVS commit: src/sys/miscfs/specfs

2022-03-28 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Mon Mar 28 12:34:26 UTC 2022 Modified Files: src/sys/miscfs/specfs: spec_vnops.c Log Message: specfs: Note lock order for vnode lock, device_lock, v_interlock. To generate a diff of this commit: cvs rdiff -u -r1.185 -r1.186

CVS commit: src/sys/miscfs/genfs

2022-03-19 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Sat Mar 19 13:52:45 UTC 2022 Modified Files: src/sys/miscfs/genfs: genfs_vnops.c Log Message: Remove now unused genfs_nolock(), genfs_nounlock() and genfs_noislocked(). To generate a diff of this commit: cvs rdiff -u -r1.216

CVS commit: src/sys/miscfs/genfs

2022-03-19 Thread Juergen Hannken-Illjes
Module Name:src Committed By: hannken Date: Sat Mar 19 13:52:45 UTC 2022 Modified Files: src/sys/miscfs/genfs: genfs_vnops.c Log Message: Remove now unused genfs_nolock(), genfs_nounlock() and genfs_noislocked(). To generate a diff of this commit: cvs rdiff -u -r1.216

CVS commit: src/sys/miscfs/kernfs

2022-03-12 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Mar 12 17:36:14 UTC 2022 Modified Files: src/sys/miscfs/kernfs: kernfs_vnops.c Log Message: kernfs: Just fail with EOPNOTSUPP, don't panic, on VOP_BMAP. Reported-by: syzbot+870d2eb4b4c8904ac...@syzkaller.appspotmail.com

CVS commit: src/sys/miscfs/kernfs

2022-03-12 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Mar 12 17:36:14 UTC 2022 Modified Files: src/sys/miscfs/kernfs: kernfs_vnops.c Log Message: kernfs: Just fail with EOPNOTSUPP, don't panic, on VOP_BMAP. Reported-by: syzbot+870d2eb4b4c8904ac...@syzkaller.appspotmail.com

CVS commit: src/sys/miscfs/procfs

2022-01-19 Thread Martin Husemann
Module Name:src Committed By: martin Date: Wed Jan 19 10:23:00 UTC 2022 Modified Files: src/sys/miscfs/procfs: procfs.h Log Message: Now that an inline function dereferences it, make sure struct proc is declared by including sys/proc.h here. To generate a diff of this

CVS commit: src/sys/miscfs/procfs

2022-01-19 Thread Martin Husemann
Module Name:src Committed By: martin Date: Wed Jan 19 10:23:00 UTC 2022 Modified Files: src/sys/miscfs/procfs: procfs.h Log Message: Now that an inline function dereferences it, make sure struct proc is declared by including sys/proc.h here. To generate a diff of this

CVS commit: src/sys/miscfs/procfs

2022-01-17 Thread Manuel Bouyer
Module Name:src Committed By: bouyer Date: Mon Jan 17 11:20:00 UTC 2022 Modified Files: src/sys/miscfs/procfs: procfs.h procfs_vfsops.c procfs_vnops.c Log Message: If the calling process is running under linux emulation, make /proc/xxx/fd/ return only symlinks pointing to

CVS commit: src/sys/miscfs/procfs

2022-01-17 Thread Manuel Bouyer
Module Name:src Committed By: bouyer Date: Mon Jan 17 11:20:00 UTC 2022 Modified Files: src/sys/miscfs/procfs: procfs.h procfs_vfsops.c procfs_vnops.c Log Message: If the calling process is running under linux emulation, make /proc/xxx/fd/ return only symlinks pointing to

CVS commit: src/sys/miscfs/fdesc

2022-01-15 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Jan 15 19:33:59 UTC 2022 Modified Files: src/sys/miscfs/fdesc: fdesc_vnops.c Log Message: sys/fs/fdesc: Delete silly vnop #define aliases. To generate a diff of this commit: cvs rdiff -u -r1.138 -r1.139

CVS commit: src/sys/miscfs/fdesc

2022-01-15 Thread Taylor R Campbell
Module Name:src Committed By: riastradh Date: Sat Jan 15 19:33:59 UTC 2022 Modified Files: src/sys/miscfs/fdesc: fdesc_vnops.c Log Message: sys/fs/fdesc: Delete silly vnop #define aliases. To generate a diff of this commit: cvs rdiff -u -r1.138 -r1.139

CVS commit: src/sys/miscfs/procfs

2022-01-14 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Fri Jan 14 23:46:56 UTC 2022 Modified Files: src/sys/miscfs/procfs: procfs_vnops.c Log Message: Fix emul and exe DT_ types (from RVP, as was the previous commit) To generate a diff of this commit: cvs rdiff -u -r1.225 -r1.226

CVS commit: src/sys/miscfs/procfs

2022-01-14 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Fri Jan 14 23:46:56 UTC 2022 Modified Files: src/sys/miscfs/procfs: procfs_vnops.c Log Message: Fix emul and exe DT_ types (from RVP, as was the previous commit) To generate a diff of this commit: cvs rdiff -u -r1.225 -r1.226

  1   2   >