漏洞信息
# 网络:驱动:netdevsim:不要从 netpoll napi_complete()
## 概述
在Linux内核中,解决了一个与netpoll有关的漏洞。netdevsim在使用netpoll时,避免调用`napi_complete()`,因为它可能未被调度,从而导致警告。
## 影响版本
未提及特定版本,但适用于使用netdevsim和netpoll的Linux内核版本。
## 细节
Breno报告称在调用`napi_complete_done()`时遇到了警告:
```
WARNING: CPU: 14 PID: 104 at net/core/dev.c:6592 napi_complete_done+0x2cc/0x560
__napi_poll+0x2d8/0x3a0
handle_softirqs+0x1fe/0x710
```
这可能是由于netpoll过早地窃取SCHED位引起的。
## 影响
在使用netdevsim和netpoll时,可能导致出现警告信息,从而影响系统的稳定性。通过避免在netpoll中调用`napi_complete()`,可以解决此问题。
提示
尽管我们采用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。
神龙会尽力确保数据准确,但也请结合实际情况进行甄别与判断。
神龙祝您一切顺利!
漏洞标题
net: drv: netdevsim: don't napi_complete() from netpoll
漏洞描述信息
In the Linux kernel, the following vulnerability has been resolved:
net: drv: netdevsim: don't napi_complete() from netpoll
netdevsim supports netpoll. Make sure we don't call napi_complete()
from it, since it may not be scheduled. Breno reports hitting a
warning in napi_complete_done():
WARNING: CPU: 14 PID: 104 at net/core/dev.c:6592 napi_complete_done+0x2cc/0x560
__napi_poll+0x2d8/0x3a0
handle_softirqs+0x1fe/0x710
This is presumably after netpoll stole the SCHED bit prematurely.
CVSS信息
N/A
漏洞类别
N/A
漏洞标题
Linux kernel 安全漏洞
漏洞描述信息
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于netdevsim中的napi_complete调用问题,可能导致系统崩溃。
CVSS信息
N/A
漏洞类别
其他