diff options
author | Peter Zijlstra <peterz@infradead.org> | 2023-09-17 13:24:21 +0200 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2023-11-29 15:43:54 +0100 |
commit | 5431fdd2c181dd2eac218e45b44deb2925fa48f0 (patch) | |
tree | f2c70579913577d25213659f520dbdd24c6a915f /lib/test_fortify/write_overflow-strlcpy-src.c | |
parent | 18caaedaf4c3712ab6821f292598a8f86e6d7972 (diff) | |
download | linux-5431fdd2c181dd2eac218e45b44deb2925fa48f0.tar.gz linux-5431fdd2c181dd2eac218e45b44deb2925fa48f0.tar.bz2 linux-5431fdd2c181dd2eac218e45b44deb2925fa48f0.zip |
ptrace: Convert ptrace_attach() to use lock guards
Created as testing for the conditional guard infrastructure.
Specifically this makes use of the following form:
scoped_cond_guard (mutex_intr, return -ERESTARTNOINTR,
&task->signal->cred_guard_mutex) {
...
}
...
return 0;
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Oleg Nesterov <oleg@redhat.com>
Link: https://lkml.kernel.org/r/20231102110706.568467727%40infradead.org
Diffstat (limited to 'lib/test_fortify/write_overflow-strlcpy-src.c')
0 files changed, 0 insertions, 0 deletions