Module Name: src Committed By: yamaguchi Date: Thu May 11 05:50:18 UTC 2023
Modified Files: src/sys/dev/pci: if_vioif.c Log Message: Fix missing check for netq->netq_stopping in vioif_rx_intr() Reported-by: syzbot+5120b7a1f97a3f5ca...@syzkaller.appspotmail.com https://syzkaller.appspot.com/bug?id=243cf4115808e49774a49294f63200770399660b To generate a diff of this commit: cvs rdiff -u -r1.107 -r1.108 src/sys/dev/pci/if_vioif.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/pci/if_vioif.c diff -u src/sys/dev/pci/if_vioif.c:1.107 src/sys/dev/pci/if_vioif.c:1.108 --- src/sys/dev/pci/if_vioif.c:1.107 Mon Mar 27 14:56:40 2023 +++ src/sys/dev/pci/if_vioif.c Thu May 11 05:50:18 2023 @@ -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;