Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp656290pxb; Fri, 13 Aug 2021 03:29:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVEb2uD/DCdgR4JSC+38q96hGkBTiHHDJ+XDHkArVbwRQHzc1AAZ0n9+z5d36kgmuNqVaE X-Received: by 2002:a17:906:348c:: with SMTP id g12mr1710042ejb.365.1628850571155; Fri, 13 Aug 2021 03:29:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628850571; cv=none; d=google.com; s=arc-20160816; b=mKGp2Tq4drlgjKPenpc1GVHeehLuxpn9O0Quo4+NwqS6aq9u7MzgIFLO8Jgy5qDpKL 9RJr/2TQhJ8TMtneGyY6iL6Qj+t/i4AksWIJ11wvB+bB39uLgEhLUgUxvoPSvdI9QLEA hRd4MhrcmAPN1iL2h6dFWD5D9Hq0nDw/9pFgS/Cg8arkxZa/uUqxLKcY7vA+Xapcj8FS I4noKQAbhEvbvDpehTAkus5hBrSpWo4VBjDSKnlFwBhbqQh2bp83K3YPKmnwVsDtWEd1 4E/O+S43g/PykHX1CoFW3hwU94ar67qW7F/sFsBYKqSTEqSJdmGzEr9oRTha9iuNzNnO xeug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=EwBDn+MmZXsf2retNthI5UkmLCBolXZWJ/auLbis7XI=; b=qqmFV1tAuuAWaVXmv2StFDSnu8hj+JZGCz0e0Sb1dxjnhj2GmZNjDFUOLc4M8l5y1T +PJIDE8oL3+UCnRpGPKhiIhNPNzWyH0Pey9csoQ8SxGPV0eXUqnqNKHSB2JjAYXWC1un jANyLEH16DbWBsdtckfcmxARL12AJK4wAe7xpIzR+XS3v4L19u2YA+kCFVMGh/+YBk0O K88NI5lSCx08Af1k2Z5wnkzDSEl/XM13cL/row0AzZXOYabPh1K9jCggL97BS4Wr4RBv KGL+uuDOrCx4L+ituaEdu82WkYliKNCEGhpqpwgf7DtTYzIAedh2fsKRFH6fJMmhaFYX sYfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=emVUoEH4; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p10si1200935ejl.495.2021.08.13.03.29.05; Fri, 13 Aug 2021 03:29:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=emVUoEH4; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239586AbhHMKPm (ORCPT + 99 others); Fri, 13 Aug 2021 06:15:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239929AbhHMKPl (ORCPT ); Fri, 13 Aug 2021 06:15:41 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DEF17C061756 for ; Fri, 13 Aug 2021 03:15:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=EwBDn+MmZXsf2retNthI5UkmLCBolXZWJ/auLbis7XI=; b=emVUoEH4fQBscl4npECKzQRThY N1Qrb5YdQWpvAL8IUDrYISnYxdL66bqVXsao4YjlNp1GsTmRL0bt6xCneVmdwr2VNm1z7HhceG806 igwYVsocgJ8It/V9QYrPUidnYug2eDAQ8vtJDMf9okWJJu2XgH59vWPfOTvDw2aZFPjU=; Received: from p4ff13206.dip0.t-ipconnect.de ([79.241.50.6] helo=nf.local) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1mEUDN-00069Y-EJ; Fri, 13 Aug 2021 12:15:01 +0200 Subject: Re: [PATCH v4 1/2] mt76: mt7915: fix hwmon temp sensor mem use-after-free To: Ryder Lee Cc: Lorenzo Bianconi , Shayne Chen , Evelyn Tsai , linux-wireless@vger.kernel.org, linux-mediatek@lists.infradead.org, Ben Greear References: <9f5b0cf6c4296d3a9e78a95516cf26d1db4baba9.1627696765.git.ryder.lee@mediatek.com> From: Felix Fietkau Message-ID: <04c61f83-e4ce-536f-7030-9050d8edfe78@nbd.name> Date: Fri, 13 Aug 2021 12:15:00 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <9f5b0cf6c4296d3a9e78a95516cf26d1db4baba9.1627696765.git.ryder.lee@mediatek.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 2021-07-31 04:17, Ryder Lee wrote: > From: Ben Greear > > Without this change, garbage is seen in the hwmon name > and sensors output for mt7915 is garbled. Where does the use-after-free bug come from? It's not obvious to me why using KBUILD_MODNAME instead of wiphy_name() fixes it. I still think the phy name should probably be part of the prefix. > With the change: > > mt7915-pci-1400 > Adapter: PCI adapter > temp1: +49.0°C > > Fixes: d6938251bb5b (mt76: mt7915: add thermal sensor device support) The format is wrong (missing quotes), and the hash references a commit that's not in any upstream tree. - Felix