coredump: don't pointlessly check and spew warnings
authorChristian Brauner <brauner@kernel.org>
Thu, 21 Aug 2025 11:50:47 +0000 (13:50 +0200)
committerChristian Brauner <brauner@kernel.org>
Thu, 21 Aug 2025 11:54:40 +0000 (13:54 +0200)
commitbe1e0283021ec73c2eb92839db9a471a068709d9
tree51cf0d5982442bca24b95ed791cd1735345ef464
parent41a86f62424ac436cb51e3de612ef1e1ddb0c873
coredump: don't pointlessly check and spew warnings

When a write happens it doesn't make sense to check perform checks on
the input. Skip them.

Whether a fixes tag is licensed is a bit of a gray area here but I'll
add one for the socket validation part I added recently.

Link: https://lore.kernel.org/20250821-moosbedeckt-denunziant-7908663f3563@brauner
Fixes: 16195d2c7dd2 ("coredump: validate socket name as it is written")
Reported-by: Brad Spengler <brad.spengler@opensrcsec.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/coredump.c
fs/exec.c