Unverified Commit a779e27f authored by Christian Brauner's avatar Christian Brauner
Browse files

coredump: fix core_pattern input validation



In be1e0283 ("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: be1e0283 ("coredump: don't pointlessly check and spew warnings")
Fixes: 16195d2c ("coredump: validate socket name as it is written")
Reviewed-by: default avatarJan Kara <jack@suse.cz>
Reported-by: default avatarYu Watanabe <watanabe.yu@gmail.com>
Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
parent 56094ad3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment