lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-ID: <20230505113315.3307723-1-liujian56@huawei.com> Date: Fri, 5 May 2023 19:33:06 +0800 From: Liu Jian <liujian56@...wei.com> To: <corbet@....net>, <paulmck@...nel.org>, <frederic@...nel.org>, <quic_neeraju@...cinc.com>, <joel@...lfernandes.org>, <josh@...htriplett.org>, <boqun.feng@...il.com>, <rostedt@...dmis.org>, <mathieu.desnoyers@...icios.com>, <jiangshanlai@...il.com>, <qiang1.zhang@...el.com>, <jstultz@...gle.com>, <tglx@...utronix.de>, <sboyd@...nel.org>, <davem@...emloft.net>, <edumazet@...gle.com>, <kuba@...nel.org>, <pabeni@...hat.com>, <peterz@...radead.org>, <frankwoo@...gle.com>, <Rhinewuwu@...gle.com> CC: <liujian56@...wei.com>, <linux-doc@...r.kernel.org>, <linux-kernel@...r.kernel.org>, <rcu@...r.kernel.org>, <netdev@...r.kernel.org> Subject: [PATCH 0/9] fix softlockup in run_timer_softirq I encountered the run_timer_softirq lockup issue[1] many times during fuzz tests. We analyze __run_timers() and find the following problem. In the while loop of __run_timers(), because there are too many timers or improper timer handler functions, if the processing time of the expired timers is always greater than the time wheel's next_expiry, the function will loop infinitely. Here base on Peter's softirq_needs_break patchset[2], use the timeout/break logic jump out of the loop. [1] https://lore.kernel.org/lkml/fb8d80434b2148e78c0032c6c70a8b4d@huawei.com/ [2] https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/log/?h=core/softirq Liu Jian (1): softirq, timer: Use softirq_needs_break() Peter Zijlstra (8): softirq: Rewrite softirq processing loop softirq: Use sched_clock() based timeout softirq: Factor loop termination condition softirq: Allow early break softirq: Context aware timeout softirq: Provide a softirq_needs_break() API softirq,net: Use softirq_needs_break() softirq,rcu: Use softirq_needs_break() Documentation/admin-guide/sysctl/net.rst | 11 +-- include/linux/interrupt.h | 5 ++ kernel/rcu/tree.c | 29 ++----- kernel/rcu/tree_nocb.h | 2 +- kernel/softirq.c | 97 +++++++++++++++--------- kernel/time/timer.c | 12 ++- net/core/dev.c | 6 +- net/core/dev.h | 1 - net/core/sysctl_net_core.c | 8 -- 9 files changed, 86 insertions(+), 85 deletions(-) -- 2.34.1
Powered by blists - more mailing lists