From patchwork Fri Sep 27 10:36:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: You-Sheng Yang X-Patchwork-Id: 1990221 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XFRjP1Qgrz1xtK for ; Fri, 27 Sep 2024 20:36:56 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1su8L8-0005tp-8S; Fri, 27 Sep 2024 10:36:46 +0000 Received: from mail-pf1-f182.google.com ([209.85.210.182]) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1su8L6-0005tS-EN for kernel-team@lists.ubuntu.com; Fri, 27 Sep 2024 10:36:44 +0000 Received: by mail-pf1-f182.google.com with SMTP id d2e1a72fcca58-719b17b2da1so1502561b3a.0 for ; Fri, 27 Sep 2024 03:36:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727433402; x=1728038202; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=VhpJItD/yKGVQ3PTNy54vbKqMMLVirMY44xEQF3HIwQ=; b=OJmvSyefsbUjFsLMu6OgClLPOG5QZTHt7wExxHJCWxZlHDBK2fN5ft4miOiXJnkooQ LDjAErUtNDg7aJNJwgQTCF2+sFMBwP39/WCboXlliD4j2idCC30F2L7wzfVLtbjTAnuX h7zvg49+0WBzvwMJPFBK+qU/FsrAAm4ZLSuEu7fqwOD5gjapY8WmgsrcyL4U/N5D3Y4X ryMTzxSuTA+aZlLdvR4uUyFs8XHFQD1j4CTpCjE7s+/GxFrqyBopVmE9kQ5ahHVU1+vq vaGuvKawFZmrN6/JDr6SasFp4C42TJf3hbAphX8UFgBrvIWJZWqNzpZRD5Na0KnnLrlX 4cWw== X-Gm-Message-State: AOJu0Yw8w0oGzrSvd55Uzkmw4ee8MYCjE4RJCVkx6iqSBlODbtHp9qpZ jNKkxYJ2vFGiJiJpEGDbAry0wgK9I7bzQQuu9wbV/5XgZBNXh4DOwoh0Fg== X-Google-Smtp-Source: AGHT+IGjG3Buss0doWsLlfKWrGj7uk2jbncOMiEHxk3DIEX06+WPh8peBgYraX0Kv5No1hzhxR50Sg== X-Received: by 2002:a05:6a00:4fd2:b0:70d:7547:90f7 with SMTP id d2e1a72fcca58-71b25f38ce2mr4434936b3a.12.1727433401788; Fri, 27 Sep 2024 03:36:41 -0700 (PDT) Received: from localhost.localdomain (125-229-129-140.hinet-ip.hinet.net. [125.229.129.140]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71b2653663asm1298801b3a.187.2024.09.27.03.36.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Sep 2024 03:36:41 -0700 (PDT) From: You-Sheng Yang To: kernel-team@lists.ubuntu.com Subject: [PATCH 0/1][SRU][Unstable][Oracular][Noble] UBSAN: array-index-out-of-bounds in module mt76 Date: Fri, 27 Sep 2024 18:36:05 +0800 Message-ID: <20240927103606.2831505-1-vicamo.yang@canonical.com> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Received-SPF: pass client-ip=209.85.210.182; envelope-from=vicamo@gmail.com; helo=mail-pf1-f182.google.com X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/2081785 [Impact] UBSAN warnings in dmesg: ``` UBSAN: array-index-out-of-bounds in /home/kernel/COD/linux/drivers/net/wireless/mediatek/mt76/mac80211.c:1532:34 index 3 is out of range for type 'mt76_phy *[3]' ``` [Fix] Proposed fix commit https://github.com/torvalds/linux/commit/9679ca7326e52282cc923c4d71d81c999cb6cd55 ("wifi: mt76: mt7925: fix a potential array-index-out-of-bounds issue for clc"), which fixes commit https://github.com/torvalds/linux/commit/c948b5da6bbec742b433138e3e3f9537a85af2e5 ("wifi: mt76: mt7925: add Mediatek Wi-Fi7 driver for mt7925 chips") landed in v6.7. [Test Case] UBSAN warning should go away. [Where problems could occur] No. This bails out early when error occurs. [Other Info] While the affected commit was first introduced in v6.7, nominating all kernels since then: unstable, oracular, oem-6.11, noble, and oem-6.8. Ming Yen Hsieh (1): wifi: mt76: mt7925: fix a potential array-index-out-of-bounds issue for clc drivers/net/wireless/mediatek/mt76/mt7925/mcu.c | 3 +++ 1 file changed, 3 insertions(+) Acked-by: Mehmet Basaran Acked-by: Ivan Hu