From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ot1-f71.google.com (mail-ot1-f71.google.com [209.85.210.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E659B4B0482 for ; Sat, 8 Aug 2026 06:01:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.71 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786168915; cv=none; b=mA5omdUBOsSP3RIXw9+/zp9oHfQiGJGePIOeUZq029Hu098d1hElfG3qtAYPxXDlawY5q5W1l9C16RQ6W+VCX+3rFVYfq+5kfZ24E8wNPBtxmoU3asfUPvhjQHWfw6eXKZKM6M3fjCRb5L1u74ApnWqkdrAlWHG+u5QLvxUTyM8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786168915; c=relaxed/simple; bh=TJr3Wx1vSAPT02NRfmvdBFcrEHOiFBw5jlVhKqkTGaM=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=dOfpXPJI5NCGuw6w7j+tb+hUnALyfvA49DRle76/Vv6pfEahQ+spsK8BBfxDetv310WfCGU1VGUAReA7InQj7sQsulw4LZ7U/N5LQRmbKQwz8BcsnHQ93AhkJdw4+wu7y+RLjid0/OGiW40+/qXkuKRa2Xv0ymm+YEHNCF6Qsjk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.210.71 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-ot1-f71.google.com with SMTP id 46e09a7af769-7ec6685adabso461508a34.0 for ; Fri, 07 Aug 2026 23:01:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786168913; x=1786773713; h=content-type:to:from:subject:message-id:in-reply-to:date :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to:content-type; bh=Di+7gusQN2AcRU8rPErCPMrErpz8GTGW4w3Lqb6Ogf4=; b=qWt+7aZrIJs19Dy4onuEm2nH16ILBXHsOYzMBy3yvBe5pnTb9RqqfE5w38al3/qYut XpKqV976CN+4ojGU1bpRaIlh0VH2rRARzK3LqzzCl7rdivWlmpPvtm1ea6Am57Ctw43l DsyZiSMqg6DfX8D0qP7VUmF2jRI7IDpArfBn28ghC7AnqLSdd0K8zgW1DrpWYcUR4k2s 3WnjlCNdioTssOrPy/3HeRKZJKbwhGsi2qsDdoOrDZO7jv1aqXYLIKB1tEKK/jzAXHTn DEXixKiL4yqm3oDoBs8kZvjDr3RT/W97mPZk6w4+XSzsp1Da6dD/sgOVfgr8AhxQABYW 5fDw== X-Gm-Message-State: AOJu0YzRJpAXroX9D6CXYlnAXlk0/0uMsK8wU6dcGK/cwbvk5O24p72V h65FjgjJHrFjMp3My+ttLXInk3sQkODoaaXLcHijk35lLhfY/WJ4h4DqBBthaNg35o/ugxn2jny RWQs5+TQ2d+4VMX8AbTOiCmwGFeNZUCurfkiwFAJvcvp4xSK/Uek28mVZxH0= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6820:f06:b0:69e:41d8:f7e8 with SMTP id 006d021491bc7-6b0211b2633mr8206676eaf.7.1786168912964; Fri, 07 Aug 2026 23:01:52 -0700 (PDT) Date: Fri, 07 Aug 2026 23:01:52 -0700 In-Reply-To: <6a74a76c.ec7c9571.3ac9bb.0054.GAE@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <6a76c650.01d0871a.3a0d52.005b.GAE@google.com> Subject: Forwarded: [PATCH] sync napi pointer during qreset From: syzbot To: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" For archival purposes, forwarding an incoming command email to linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com. *** Subject: [PATCH] sync napi pointer during qreset Author: subasris1210@gmail.com #syz test: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master Signed-off-by: Subasri S --- drivers/net/netdevsim/netdev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/netdevsim/netdev.c b/drivers/net/netdevsim/netdev.c index 4e9d7e10b527..c18f9f540084 100644 --- a/drivers/net/netdevsim/netdev.c +++ b/drivers/net/netdevsim/netdev.c @@ -826,6 +826,8 @@ nsim_queue_start(struct net_device *dev, struct netdev_queue_config *qcfg, } ns->rq[idx] = qmem->rq; + netif_queue_set_napi(dev, idx, NETDEV_QUEUE_TYPE_RX, + &ns->rq[idx]->napi); napi_enable_locked(&ns->rq[idx]->napi); return 0; @@ -838,6 +840,7 @@ static int nsim_queue_stop(struct net_device *dev, void *per_queue_mem, int idx) netdev_assert_locked(dev); + netif_queue_set_napi(dev, idx, NETDEV_QUEUE_TYPE_RX, NULL); napi_disable_locked(&ns->rq[idx]->napi); if (ns->rq_reset_mode == 1) { -- 2.43.0