diff options
| author | 2025-10-07 11:32:42 +0200 | |
|---|---|---|
| committer | 2025-10-23 16:24:27 +0200 | |
| commit | 304aa560385720baf3660fe8500f6dd425b63ea9 (patch) | |
| tree | 549f6611ba9abab2df4d8108ee3d892a47ac665d /tools/perf/scripts/python/bin/ssh:/git@git.zx2c4.com/git: | |
| parent | dax: skip read lock assertion for read-only filesystems (diff) | |
coredump: fix core_pattern input validation
[ Upstream commit a779e27f24aeb679969ddd1fdd7f636e22ddbc1e ]
In be1e0283021e ("coredump: don't pointlessly check and spew warnings")
we tried to fix input validation so it only happens during a write to
core_pattern. This would avoid needlessly logging a lot of warnings
during a read operation. However the logic accidently got inverted in
this commit. Fix it so the input validation only happens on write and is
skipped on read.
Fixes: be1e0283021e ("coredump: don't pointlessly check and spew warnings")
Fixes: 16195d2c7dd2 ("coredump: validate socket name as it is written")
Reviewed-by: Jan Kara <jack@suse.cz>
Reported-by: Yu Watanabe <watanabe.yu@gmail.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/ssh:/git@git.zx2c4.com/git:')
0 files changed, 0 insertions, 0 deletions
