Re: [PATCH] selftests/cgroup: test pids.events notification

From: Sahaj Chaudhari

Date: Mon Oct 12 2026 - 05:57:31 EST


The signedness finding is valid. The test previously compared the signed
ssize_t result from read() with the unsigned sizeof() result before checking
for errors. V2 checks n < 0 first, then compares the nonnegative length with
sizeof(struct inotify_event). I also exercised the read-error path with fault
injection.

V2 was sent as a fresh thread and links to the original submission:
https://lore.kernel.org/r/20261007063516.1192279-1-sahaj123.sc@xxxxxxxxx
V2 Message-ID: <20261012095011.3188830-1-sahaj123.sc@xxxxxxxxx>

pw-bot: cr