mirror of
https://github.com/torvalds/linux
synced 2026-07-25 19:50:44 +09:00
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>
50 KiB
50 KiB