diff options
| author | Matthieu Buffet <matthieu@buffet.re> | 2025-12-01 01:36:31 +0100 |
|---|---|---|
| committer | Mickaël Salaün <mic@digikod.net> | 2025-12-26 20:38:58 +0100 |
| commit | e1a57c33590a50a6639798e60a597af4a23b0340 (patch) | |
| tree | b2f72955937f6208fc0043df808029323900968d /scripts/basic/git@git.tavy.me:linux.git | |
| parent | 6685201ebfacff0c889bcd569181fa6e8af5575e (diff) | |
selftests/landlock: Remove invalid unix socket bind()
Remove bind() call on a client socket that doesn't make sense.
Since strlen(cli_un.sun_path) returns a random value depending on stack
garbage, that many uninitialized bytes are read from the stack as an
unix socket address. This creates random test failures due to the bind
address being invalid or already in use if the same stack value comes up
twice.
Fixes: f83d51a5bdfe ("selftests/landlock: Check IOCTL restrictions for named UNIX domain sockets")
Signed-off-by: Matthieu Buffet <matthieu@buffet.re>
Reviewed-by: Günther Noack <gnoack@google.com>
Link: https://lore.kernel.org/r/20251201003631.190817-1-matthieu@buffet.re
Signed-off-by: Mickaël Salaün <mic@digikod.net>
Diffstat (limited to 'scripts/basic/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
