PT-2026-166595
CVE-2026-142872
·
تاريخ النشر
2026-12-03
·
تاريخ التحديث
2026-12-03
الوصف من
الدرجة
N/A
غير متوفرلا تتوفر حاليًا تقييمات أو مقاييس للخطورة. سنحدّث المعلومات المقابلة في الصفحة فور توفرها.
In the Linux kernel, the following vulnerability has been resolved:
net: count last skb of each sk backlog pass in release sock()
Running 500 concurrent TCPv6 streams (neper "tcp stream -6 -T 1 -F 500")
on a 2-core Cortex-A53 (CONFIG PREEMPT NONE=y, HZ=1000, LATENCY WARN)
triggers resched latency warn() in release sock():
[ 3655.311821] sched: CPU 0 need resched set for > 100006892 ns (100 ticks) without schedule
[ 3655.311889] Call trace:
...
[ 3655.311944] resched latency warn+0x7c/0x88
[ 3655.311958] sched tick+0x1c0/0x418
...
[ 3655.312578] net rx action+0x238/0x438
...
[ 3655.312641] do softirq+0x4c/0x90
[ 3655.312651] local bh enable ip+0x84/0x90
[ 3655.312663] local bh enable+0x1c/0x28
[ 3655.312674] dev queue xmit+0x4a8/0xb00
...
[ 3655.312782] tcp v6 do rcv+0x240/0x5f8
[ 3655.312793] release sock+0x9c/0x188
[ 3655.312806] release sock+0x150/0x168
[ 3655.312817] tcp sendmsg+0x4c/0x70
release sock() can loop past 100 ms without calling cond resched():
- Each outer-loop pass drains sk backlog, but "if (!skb) break;" runs before "++nb", so a pass of B skbs only adds B - 1 to nb (0 for 1 skb).
- With 500 TCPv6 streams and NAPI sharing two Cortex-A53 cores, runnable tasks keep TIF NEED RESCHED set on CPU 0.
- During spin unlock bh() and TX softirqs ( dev queue xmit() -> local bh enable()), tcp add backlog() coalesces arriving pure ACKs into a single tail skb.
- Repeated 1-skb passes never advance nb or call cond resched(), triggering resched latency warn() after 100 ticks.
Restore the do-while loop and drop "if (!skb) break;" so every skb
increments nb across passes and calls cond resched() every 16 skbs.
Reproduced the issue and verified the fix on two 2-core Cortex-A53 hosts
(CONFIG PREEMPT NONE=y, HZ=1000, LATENCY WARN, latency warn once=0) with
a userspace reproducer over /dev/net/tun:
- CPU 0 runs a TCPv6 sender and a second runnable task while CPU 1 writes pure ACKs to /dev/net/tun (~30k TCPBacklogCoalesce/run), sustaining 1-skb sk backlog refills in release sock() for ~400 ms (ftrace).
- Before: CPU 0 stayed unscheduled in release sock(), hitting resched latency warn() 293 and 275 times on the two hosts (> 100.9 ms).
- After: cond resched() yielded CPU 0 inside release sock(), with 0 resched latency warn() hits on both hosts.
- Also observed no regression with the workload from commit 16c610162d1f ("net: call cond resched() less often in release sock()"), "super netperf 4 -H srv -T,10 -l 3000 &".
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾