From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f201.google.com (mail-pf1-f201.google.com [209.85.210.201]) (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 3AB772DECA0 for ; Mon, 5 Jan 2026 23:25:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767655508; cv=none; b=O2pGm1ODzIQTVvdV03sRAxr3TBtuNhk32cQxOop+znyreK1U9FcAQCCvnbTm/lF63+aPkrNIdBNViyP1Wov5MXgOAxVkKuA5XVozOmv39fVs359Bnmann9d55bJ/Uw+4zJ0Cf204Q82cxY6ECBdO7DrxMTsxLTi5B3EqwMN9QwI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767655508; c=relaxed/simple; bh=2PCUcxAxYvAy2hcKx+rpzCh92HmmXeKRsj2JwCyhNNo=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=J8rYUtpoTXkrxuJ5JBE1HMnLkRkAo3h1gBN1sM6Eou4MRYsfwCy+hAbMqSmGF4LRR5bbRjyQRGkoKvpn3ZFLgbDbnHe6yQdHsD1eP8HeIgtBVzMIXPJuwR9ibjE9yx21UXhu1Vgem1XiLnCbEcoK8+UENMyH9uoZBSWCxACBGbI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--joshwash.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=mEgc8P04; arc=none smtp.client-ip=209.85.210.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--joshwash.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="mEgc8P04" Received: by mail-pf1-f201.google.com with SMTP id d2e1a72fcca58-7b6b194cf71so941487b3a.3 for ; Mon, 05 Jan 2026 15:25:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1767655506; x=1768260306; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=oan93+lIIMYyN82Q1bThEoWEawSCNkralKofR36luXo=; b=mEgc8P042RNqmJ+zaeHwBN4l0EPeu3Xpyw7kGAHM9Lw1Beq/mXqAexQKjeHV0jy7kA 4nLLGTr7oOP3TCHxV6j4LlwED8RtTRraePCZhN/Xkw5cI5QbOgfyoP0JKGQFW8yfz/yU KVUPwVAgnX3H9vj+zT5qjHmarEs6F10JGpnUeoo8D4SvR+s4fkZHKvY2kaRNrWNOLMa5 e2HqGXRgyVYsATDLV4phJSg2CU548ud4X1lkpdCfMOo1uuSsWkGaPzLvwvu7ik1wuhG5 nc9XjpiEfnZAQtclAHQJu6ToLyzulmY8LCKHQ8T2HsozenlKWE2QCteONxhjaCoEDgC6 GTWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767655506; x=1768260306; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=oan93+lIIMYyN82Q1bThEoWEawSCNkralKofR36luXo=; b=JVD18jUtJvYf3bi4x6lcAAKb57Lr7UcWCQD7sgO6T9uea5GxyPYzKb4NLkZ+78APHm 49lAdVoChpQOfK3G3cmImR+3n6S+Ry8PsegotOBplHTMBKf2E9Y1S1w2hotGcobPNr1e gKL5j55JHYs8sJ7DxXvFTfchlxUCkjdH/PQysRbwTwo8kALPnIbiHeEzQs90Z8xC8gNU AaCQuOdcIK5BZJ0pgl4X6EUwv4tajuk9RsxS4n/6HNn69cAmIEBgd/Jy69RwRMWy9mfU gc6D2ooH6WfgGxwNq4byVZPTZaDfnEmmOrsW5/NS62pt8JzJ3liThqI3ctQ00XGF10jL B0og== X-Forwarded-Encrypted: i=1; AJvYcCXCY9/Qz5ub/LAlKgIpmXFuDBbHhVVzm/Ml9mwJkr0m6AMCiV94uwMz2eDwpTDD1QCfSJiUOZk/xCYnhU8=@vger.kernel.org X-Gm-Message-State: AOJu0Yy5FcnWf90whd6GKqsrx8lJzVBCDLCz3fFR3G/oapCaKVNaqAKn RhH0k11+lQfFUiynCyzzHZpumfLFLKHQCcxXanS4isoMilbh4pN7PJ0rC7NoJXuubL/TWBRAMkP 9z/g0GoWdyRRZuA== X-Google-Smtp-Source: AGHT+IFjGBS1OewhxpTi+b0M8y/KRXURzfVXrE7TyQAgG4fiHsq4dPh1ARjDDlzv84hCcBhZTI9UvHqsSHQXXA== X-Received: from pgbfy11.prod.google.com ([2002:a05:6a02:2a8b:b0:c06:f719:e7b6]) (user=joshwash job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a20:a120:b0:366:5bda:1ebd with SMTP id adf61e73a8af0-3898223c070mr773538637.2.1767655506441; Mon, 05 Jan 2026 15:25:06 -0800 (PST) Date: Mon, 5 Jan 2026 15:25:02 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.52.0.351.gbe84eed79e-goog Message-ID: <20260105232504.3791806-1-joshwash@google.com> Subject: [PATCH net 0/2] gve: fix crashes on invalid TX queue indices From: Joshua Washington To: netdev@vger.kernel.org Cc: Joshua Washington , Harshitha Ramamurthy , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Willem de Bruijn , Ankit Garg , Praveen Kaligineedi , Catherine Sullivan , Luigi Rizzo , Jon Olson , Sagi Shahar , Bailey Forrest , linux-kernel@vger.kernel.org, stable@vger.kernel.org Content-Type: text/plain; charset="UTF-8" From: Ankit Garg This series fixes a kernel panic in the GVE driver caused by out-of-bounds array access when the network stack provides an invalid TX queue index. The issue impacts both GQI and DQO queue formats. For both cases, the driver is updated to validate the queue index and drop the packet if the index is out of range. Ankit Garg (2): gve: drop packets on invalid queue indices in GQI TX path gve: drop packets on invalid queue indices in DQO TX path drivers/net/ethernet/google/gve/gve_tx.c | 12 +++++++++--- drivers/net/ethernet/google/gve/gve_tx_dqo.c | 9 ++++++++- 2 files changed, 17 insertions(+), 4 deletions(-) -- 2.52.0.351.gbe84eed79e-goog