# Re: \[PATCH v2 08/27\] selftests/landlock: Handle a missing control message in recv\_fd()

- From: sashiko-bot@kernel.org
- Date: 2026-11-04 21:12:26 
- List: linux-security-module
- Page: https://ratatoskr.run/linux-security-module/2026/11/17864683
- Thread: https://ratatoskr.run/linux-security-module/2026/11/17864489/t.md

```text
> CMSG_FIRSTHDR() returns NULL when recvmsg(2) did not receive any
> ancillary data, e.g. when the peer closed the socket without sending an
> FD.  recv_fd() dereferences the result unconditionally and crashes
> instead of returning an error.
> 
> Return -EIO in that case.
> 
> Signed-off-by: Günther Noack <redacted>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261104-selftests-refactor-v2-0-c52f23f7ce33@gmail.com?part=8

```
