]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
proc: test lseek on /proc/net/dev
authorAlexey Dobriyan <adobriyan@gmail.com>
Tue, 19 Aug 2025 18:19:17 +0000 (21:19 +0300)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 14 Sep 2025 00:32:48 +0000 (17:32 -0700)
commitb1e34412998d628dfa8ba3da042bb60dee232b6c
tree1c8af856238bf77e17070af1fee1b5196e7957fd
parent6c609f36398adfe0de712a9025cc1065074b9abc
proc: test lseek on /proc/net/dev

This line in tools/testing/selftests/proc/read.c was added to catch
oopses, not to verify lseek correctness:

        (void)lseek(fd, 0, SEEK_SET);

Oh, well. Prevent more embarassement with simple test.

Link: https://lkml.kernel.org/r/aKTCfMuRXOpjBXxI@p183
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/proc/.gitignore
tools/testing/selftests/proc/Makefile
tools/testing/selftests/proc/proc-net-dev-lseek.c [new file with mode: 0644]