mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-08 18:57:22 +00:00
coredump: fix core_pattern input validation
[ Upstream commita779e27f24] Inbe1e028302("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:be1e028302("coredump: don't pointlessly check and spew warnings") Fixes:16195d2c7d("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>
This commit is contained in:
parent
772bae835a
commit
304aa56038
2 changed files with 2 additions and 2 deletions
Loading…
Add table
Add a link
Reference in a new issue