aboutsummaryrefslogtreecommitdiffstats
path: root/lib/notifier-error-inject.c
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2023-08-23 19:08:06 +0200
committerAndrew Morton <akpm@linux-foundation.org>2023-08-24 16:25:15 -0700
commitdce8f8ed1de1d9d6d27c5ccd202ce4ec163b100c (patch)
tree93e6156402383138221d53cb0937d28cefa97cf0 /lib/notifier-error-inject.c
parentdrivers/char/mem.c: shrink character device's devlist[] array (diff)
downloadlinux-dce8f8ed1de1d9d6d27c5ccd202ce4ec163b100c.tar.gz
linux-dce8f8ed1de1d9d6d27c5ccd202ce4ec163b100c.zip
document while_each_thread(), change first_tid() to use for_each_thread()
Add the comment to explain that while_each_thread(g,t) is not rcu-safe unless g is stable (e.g. current). Even if g is a group leader and thus can't exit before t, t or another sub-thread can exec and remove g from the thread_group list. The only lockless user of while_each_thread() is first_tid() and it is fine in that it can't loop forever, yet for_each_thread() looks better and I am going to change while_each_thread/next_thread. Link: https://lkml.kernel.org/r/20230823170806.GA11724@redhat.com Signed-off-by: Oleg Nesterov <oleg@redhat.com> Cc: Eric W. Biederman <ebiederm@xmission.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'lib/notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions
td>Johannes Schindelin3-2/+9 2024-04-19Git 2.41.1v2.41.1Johannes Schindelin3-2/+9 2024-04-19Git 2.40.2v2.40.2Johannes Schindelin3-2/+9 2024-04-19Git 2.39.4v2.39.4Johannes Schindelin3-2/+81 2024-04-19fsck: warn about symlink pointing inside a gitdirJohannes Schindelin4-0/+117 2024-04-19core.hooksPath: add some protection while cloningJohannes Schindelin2-1/+27 2024-04-19init.templateDir: consider this config setting protectedJohannes Schindelin2-7/+61 2024-04-19clone: prevent hooks from running during a cloneJohannes Schindelin3-1/+94 2024-04-19Add a helper function to compare file contentsJohannes Schindelin4-0/+123 2024-04-17init: refactor the template directory discovery into its own functionJohannes Schindelin3-18/+37 2024-04-17find_hook(): refactor the `STRIP_EXTENSION` logicJohannes Schindelin1-7/+11 2024-04-17clone: when symbolic links collide with directories, keep the latterJohannes Schindelin3-2/+31 2024-04-17entry: report more colliding pathsJohannes Schindelin3-1/+20 2024-04-17t5510: verify that D/F confusion cannot lead to an RCEJohannes Schindelin1-0/+24 2024-04-17submodule: require the submodule path to contain directories onlyJohannes Schindelin4-5/+113 2024-04-17clone_submodule: avoid using `access()` on directoriesJohannes Schindelin1-1/+1 2024-04-17submodules: submodule paths must not contain symlinksJohannes Schindelin2-0/+83 2024-04-17clone: prevent clashing git dirs when cloning submodule in parallelFilip Hejsek3-2/+66