selftests: filesystems: Fix incorrect kernel headers search pathUse $(KHDR_INCLUDES) as lookup path for kernel headers. This preventsbuilding against kernel headers from the build environment in s
selftests: filesystems: Fix incorrect kernel headers search pathUse $(KHDR_INCLUDES) as lookup path for kernel headers. This preventsbuilding against kernel headers from the build environment in scenarioswhere kernel headers are installed into a specific output directory(O=...).Signed-off-by: Mathieu Desnoyers <[email protected]>Cc: Shuah Khan <[email protected]>Cc: [email protected]Cc: Ingo Molnar <[email protected]>Cc: <[email protected]> # 5.18+Signed-off-by: Shuah Khan <[email protected]>
show more ...
kselftest: introduce new epoll test casePatch series "fs/epoll: restore user-visible behavior upon event ready".This series tries to address a change in user visible behavior, reportedin https:/
kselftest: introduce new epoll test casePatch series "fs/epoll: restore user-visible behavior upon event ready".This series tries to address a change in user visible behavior, reportedin https://bugzilla.kernel.org/show_bug.cgi?id=208943.Epoll does not report an event to all the threads running epoll_wait()on the same epoll descriptor. Unsurprisingly, this was bisected back to339ddb53d373 (fs/epoll: remove unnecessary wakeups of nested epoll), whichhas had various problems in the past, beyond only nested epoll usage.This patch (of 2):This incorporates the testcase originally reported in: https://bugzilla.kernel.org/show_bug.cgi?id=208943Which ensures an event is reported to all threads blocked on the sameepoll descriptor, otherwise only a single thread will receive the wakeuponce the event become ready.Link: https://lkml.kernel.org/r/[email protected]Link: https://lkml.kernel.org/r/[email protected]Signed-off-by: Davidlohr Bueso <[email protected]>Cc: Jason Baron <[email protected]>Cc: Roman Penyaev <[email protected]>Cc: Al Viro <[email protected]>Signed-off-by: Andrew Morton <[email protected]>Signed-off-by: Linus Torvalds <[email protected]>
selftests/filesystems: expand epoll with epoll_pwait2Code coverage for the epoll_pwait2 syscall.epoll62: Repeat basic test epoll1, but exercising the new syscall.epoll63: Pass a timespec and exe
selftests/filesystems: expand epoll with epoll_pwait2Code coverage for the epoll_pwait2 syscall.epoll62: Repeat basic test epoll1, but exercising the new syscall.epoll63: Pass a timespec and exercise the timeout wakeup path.Link: https://lkml.kernel.org/r/[email protected]Signed-off-by: Willem de Bruijn <[email protected]>Cc: Al Viro <[email protected]>Cc: Arnd Bergmann <[email protected]>Cc: Matthew Wilcox (Oracle) <[email protected]>Signed-off-by: Andrew Morton <[email protected]>Signed-off-by: Linus Torvalds <[email protected]>
epoll: add a selftest for epoll timeout raceAdd a test case to ensure an event is observed by at least one pollerwhen an epoll timeout is used.Signed-off-by: Guantao Liu <[email protected]>Si
epoll: add a selftest for epoll timeout raceAdd a test case to ensure an event is observed by at least one pollerwhen an epoll timeout is used.Signed-off-by: Guantao Liu <[email protected]>Signed-off-by: Soheil Hassas Yeganeh <[email protected]>Signed-off-by: Andrew Morton <[email protected]>Reviewed-by: Eric Dumazet <[email protected]>Reviewed-by: Khazhismel Kumykov <[email protected]>Acked-by: Willem de Bruijn <[email protected]>Cc: Al Viro <[email protected]>Cc: Davidlohr Bueso <[email protected]>Link: https://lkml.kernel.org/r/[email protected]Signed-off-by: Linus Torvalds <[email protected]>
kselftests: introduce new epoll60 testcase for catching lost wakeupsThis test case catches lost wake up introduced by commit 339ddb53d373("fs/epoll: remove unnecessary wakeups of nested epoll")T
kselftests: introduce new epoll60 testcase for catching lost wakeupsThis test case catches lost wake up introduced by commit 339ddb53d373("fs/epoll: remove unnecessary wakeups of nested epoll")The test is simple: we have 10 threads and 10 event fds. Each threadcan harvest only 1 event. 1 producer fires all 10 events at once andwaits that all 10 events will be observed by 10 threads.In case of lost wakeup epoll_wait() will timeout and 0 will be returned.Test case catches two sort of problems: forgotten wakeup on event, whichhits the ->ovflist list, this problem was fixed by: 5a2513239750 ("eventpoll: fix missing wakeup for ovflist in ep_poll_callback")the other problem is when several sequential events hit the same waitingthread, thus other waiters get no wakeups. Problem is fixed in thefollowing patch.Signed-off-by: Roman Penyaev <[email protected]>Signed-off-by: Andrew Morton <[email protected]>Cc: Khazhismel Kumykov <[email protected]>Cc: Alexander Viro <[email protected]>Cc: Heiher <[email protected]>Cc: Jason Baron <[email protected]>Link: http://lkml.kernel.org/r/[email protected]Signed-off-by: Linus Torvalds <[email protected]>
kselftest: introduce new epoll test caseThis testcase repeats epollbug.c from the bug: https://bugzilla.kernel.org/show_bug.cgi?id=205933What it tests? It tests the race between epoll_ctl() a
kselftest: introduce new epoll test caseThis testcase repeats epollbug.c from the bug: https://bugzilla.kernel.org/show_bug.cgi?id=205933What it tests? It tests the race between epoll_ctl() and epoll_wait().New event mask passed to epoll_ctl() triggers wake up, which can be missedbecause of the bug described in the link. Reproduction is 100%, so easyto fix. Kudos, Max, for wonderful test case.Signed-off-by: Roman Penyaev <[email protected]>Signed-off-by: Andrew Morton <[email protected]>Cc: Max Neunhoeffer <[email protected]>Cc: Jakub Kicinski <[email protected]>Cc: Christopher Kohlhoff <[email protected]>Cc: Davidlohr Bueso <[email protected]>Cc: Jason Baron <[email protected]>Cc: Jes Sorensen <[email protected]>Link: http://lkml.kernel.org/r/[email protected]Signed-off-by: Linus Torvalds <[email protected]>
.gitignore: add SPDX License IdentifierAdd SPDX License Identifier to all .gitignore files.Signed-off-by: Masahiro Yamada <[email protected]>Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfou
.gitignore: add SPDX License IdentifierAdd SPDX License Identifier to all .gitignore files.Signed-off-by: Masahiro Yamada <[email protected]>Signed-off-by: Greg Kroah-Hartman <[email protected]>
selftests: filesystems/epoll: fix build errorepoll build fails to find pthread lib. Fix Makefile to use LDLIBSinstead of LDFLAGS. LDLIBS is the right flag to use here with -loption when invoking
selftests: filesystems/epoll: fix build errorepoll build fails to find pthread lib. Fix Makefile to use LDLIBSinstead of LDFLAGS. LDLIBS is the right flag to use here with -loption when invoking ld.gcc -I../../../../../usr/include/ -lpthread epoll_wakeup_test.c -o .../tools/testing/selftests/filesystems/epoll/epoll_wakeup_test/usr/bin/ld: /tmp/ccaZvJUl.o: in function `kill_timeout':epoll_wakeup_test.c:(.text+0x4dd): undefined reference to `pthread_kill'/usr/bin/ld: epoll_wakeup_test.c:(.text+0x4f2): undefined reference to `pthread_kill'/usr/bin/ld: /tmp/ccaZvJUl.o: in function `epoll9':epoll_wakeup_test.c:(.text+0x6382): undefined reference to `pthread_create'/usr/bin/ld: epoll_wakeup_test.c:(.text+0x64d2): undefined reference to `pthread_create'/usr/bin/ld: epoll_wakeup_test.c:(.text+0x6626): undefined reference to `pthread_join'/usr/bin/ld: epoll_wakeup_test.c:(.text+0x684c): undefined reference to `pthread_tryjoin_np'/usr/bin/ld: epoll_wakeup_test.c:(.text+0x6864): undefined reference to `pthread_kill'/usr/bin/ld: epoll_wakeup_test.c:(.text+0x6878): undefined reference to `pthread_join'Signed-off-by: Shuah Khan <[email protected]>
selftests: add epoll selftestsThis adds the promised selftest for epoll. It will verify the wakeupsof epoll. Including leaf and nested mode, epoll_wait() and poll() andmulti-threads.Link: htt
selftests: add epoll selftestsThis adds the promised selftest for epoll. It will verify the wakeupsof epoll. Including leaf and nested mode, epoll_wait() and poll() andmulti-threads.Link: http://lkml.kernel.org/r/[email protected]Signed-off-by: hev <[email protected]>Reviewed-by: Roman Penyaev <[email protected]>Cc: Jason Baron <[email protected]>Cc: Shuah Khan <[email protected]>Signed-off-by: Andrew Morton <[email protected]>Signed-off-by: Linus Torvalds <[email protected]>