Thread View: linux.kernel.netdev
2 messages
2 total messages
Started by Eric Dumazet
Fri, 16 Oct 2026 08:22
Re: [PATCH net 2/2] selftests: net: packetdrill: add test for negative sk_forward_alloc in tcp_wmem_schedule()
Author: Eric Dumazet
Date: Fri, 16 Oct 2026 08:22
Date: Fri, 16 Oct 2026 08:22
23 lines
7592 bytes
7592 bytes
Le ven. 16 oct. 2026 à 09:54, Kuniyuki Iwashima <kuniyu@google.com> a écrit : > > On Thu, Oct 15, 2026 at 12:37 AM Octavian Purdila <tavip@google.com> wrote: > > > > Add a packetdrill test that drives sk->sk_forward_alloc negative via > > tcp_collapse() on the receive queue while sk->sk_wmem_queued exceeds > > sysctl_tcp_wmem[0], and verifies that a subsequent non-blocking write() > > under TCP memory pressure fails with EAGAIN rather than returning a > > negative copy length from tcp_wmem_schedule() and failing with EFAULT. > > > > Assisted-by: LLM > > Signed-off-by: Octavian Purdila <tavip@google.com> > > Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com> > > Thanks ! Are you sure this test is passing on arches with 6K pages (as some arm64 and ppc64 platforms) ? We might need to add a check to only run it on 4K platforms.
Re: [PATCH net 2/2] selftests: net: packetdrill: add test for negative sk_forward_alloc in tcp_wmem_schedule()
Author: Eric Dumazet
Date: Fri, 16 Oct 2026 08:23
Date: Fri, 16 Oct 2026 08:23
31 lines
7818 bytes
7818 bytes
Le ven. 16 oct. 2026 à 10:22, Eric Dumazet <edumazet@kernel.org> a écrit : > > Le ven. 16 oct. 2026 à 09:54, Kuniyuki Iwashima <kuniyu@google.com> a écrit : > > > > On Thu, Oct 15, 2026 at 12:37 AM Octavian Purdila <tavip@google.com> wrote: > > > > > > Add a packetdrill test that drives sk->sk_forward_alloc negative via > > > tcp_collapse() on the receive queue while sk->sk_wmem_queued exceeds > > > sysctl_tcp_wmem[0], and verifies that a subsequent non-blocking write() > > > under TCP memory pressure fails with EAGAIN rather than returning a > > > negative copy length from tcp_wmem_schedule() and failing with EFAULT. > > > > > > Assisted-by: LLM > > > Signed-off-by: Octavian Purdila <tavip@google.com> > > > > Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com> > > > > Thanks ! > > Are you sure this test is passing on arches with 6K pages (as some > arm64 and ppc64 platforms) ? This was meant to read : 64K pages. > We might need to add a check to only run it on 4K platforms.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads