Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Fix missing check for netq->netq_stopping in vio...
details: https://anonhg.NetBSD.org/src/rev/804b45841a4f
branches: trunk
changeset: 374734:804b45841a4f
user: yamaguchi <yamaguchi%NetBSD.org@localhost>
date: Thu May 11 05:50:18 2023 +0000
description:
Fix missing check for netq->netq_stopping in vioif_rx_intr()
Reported-by: syzbot+5120b7a1f97a3f5ca052%syzkaller.appspotmail.com@localhost
https://syzkaller.appspot.com/bug?id=243cf4115808e49774a49294f63200770399660b
diffstat:
sys/dev/pci/if_vioif.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 28eb5185c671 -r 804b45841a4f sys/dev/pci/if_vioif.c
--- a/sys/dev/pci/if_vioif.c Thu May 11 01:56:31 2023 +0000
+++ b/sys/dev/pci/if_vioif.c Thu May 11 05:50:18 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_vioif.c,v 1.107 2023/03/27 14:56:40 nakayama Exp $ */
+/* $NetBSD: if_vioif.c,v 1.108 2023/05/11 05:50:18 yamaguchi Exp $ */
/*
* Copyright (c) 2020 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_vioif.c,v 1.107 2023/03/27 14:56:40 nakayama Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_vioif.c,v 1.108 2023/05/11 05:50:18 yamaguchi Exp $");
#ifdef _KERNEL_OPT
#include "opt_net_mpsafe.h"
@@ -1924,6 +1924,9 @@ vioif_rx_intr(void *arg)
if (netq->netq_running_handle)
goto done;
+ if (netq->netq_stopping)
+ goto done;
+
netq->netq_running_handle = true;
limit = sc->sc_rx_intr_process_limit;
Home |
Main Index |
Thread Index |
Old Index