Make sure all tasklets are drained before unloading the LinuxKPI.

Else use-after-free may happen.

MFC after:	1 week
Sponsored by:	Mellanox Technologies // NVIDIA Networking
This commit is contained in:
Hans Petter Selasky 2021-05-21 08:52:59 +02:00
parent 032bf749fd
commit 209d4919c5

View File

@ -128,6 +128,8 @@ tasklet_subsystem_uninit(void *arg __unused)
struct tasklet_worker *tw;
int i;
taskqgroup_drain_all(qgroup_softirq);
CPU_FOREACH(i) {
if (CPU_ABSENT(i))
continue;