Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4044221pxf; Mon, 29 Mar 2021 19:54:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxa1ZYEm8BBVf6NyJnaLLLgXxnHcLG8zsG3vW0Sf4fnu0AeQgRsTIscvni4caUlXvG658nE X-Received: by 2002:a17:906:ae88:: with SMTP id md8mr30304319ejb.264.1617072891680; Mon, 29 Mar 2021 19:54:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617072891; cv=none; d=google.com; s=arc-20160816; b=Jw5YR2Oi2Ieid3sXO1/ujx7axC5+eXT6JM3vJn3fd9WgzddD4tfq509WTSzxbGAi0S fwTdt0RFeGG1GXZco6Ve+0qbHwYj9x9zXqwwMpfwnICy8TGXwzksSA8FSaT6ZP1J0Fcc HZZzUtIoC6msqjRqyufQgSy8E7LfaviJrZUtGGxLPCt3oB6jrLgWaQ6oltFOA8H9eegA GbCHlt45sp3t3vUv/3UghUs2ir6ZC9XnFt2MYPcmty1VvcrNB7V/omrrmS6lEsfJPDuW 1sTutuxfydqsXSSFmWbUXTygY4qr0BczbJLluL75QIeK882xInXPKkamndU3I7fSVuy1 1WcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=h3tgTgAhTPVHl6C7nGiDPVcZVqzWaFEKu+Mj0evMIr4=; b=LahlcsIqxhjzh8geJjd57f0XTSQx35jkjEap3uro3Qg2mXWZ4bKXbVMeeoYT4Q6qCY RscXOXJbQMs092GpRC1+2ANANpGqaBK9bkH6tCOHyQ789dMfdFvwhNMXlwWSai/84DMD jW3Y4BTUtwLTh02/wSsbOWtDCcUU/a4hQV7XZxPm5qG5HL7tHdO8+fik579rpp4uD4K9 gyQEN8OoRpnbhFRvD2X88agQYv9qudbQJfdLQOZTGlELjcW4DxNGP3Zc33FJXFZnI/DN qGOhhKsOaKgPm/RYvwpCVGCs4LV3GIl6GLbYrsHtB/q5MVFa74MjBwIpfg8oUxpwojJn L+qQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=LI7e3Glz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bc2si13494784edb.263.2021.03.29.19.54.26; Mon, 29 Mar 2021 19:54:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=LI7e3Glz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229479AbhC3Cve (ORCPT + 99 others); Mon, 29 Mar 2021 22:51:34 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:41025 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229762AbhC3Cv2 (ORCPT ); Mon, 29 Mar 2021 22:51:28 -0400 X-UUID: 0c137f90c13f436787ea52a2694f622c-20210330 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=h3tgTgAhTPVHl6C7nGiDPVcZVqzWaFEKu+Mj0evMIr4=; b=LI7e3Glzwpjv1aUej04C4LHb49W1O+HP+7QCPeYeNiwA4nkulkaLUAjZKbYHa+kRIPbMAy1thXHAoqgRTqNU235yUxSLgW3TvMS5vlolspzNH3jHdEQ31HWUtfeX6ONqGonQuGvD1wl5dqC1buA0UCC7mYVMLyMBDi1Ta0S9fpk=; X-UUID: 0c137f90c13f436787ea52a2694f622c-20210330 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1474408315; Tue, 30 Mar 2021 10:51:25 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 30 Mar 2021 10:51:24 +0800 Received: from [172.21.84.99] (172.21.84.99) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 30 Mar 2021 10:51:24 +0800 Message-ID: <1617072684.13941.2.camel@mtksdccf07> Subject: Re: [PATCH v2] thermal: cpufreq_cooling: fix slab OOB issue From: Michael Kao To: Daniel Lezcano CC: Zhang Rui , , , , Mark Rutland , , brian-sy yang , , "Eduardo Valentin" , Rob Herring , , , Matthias Brugger , Date: Tue, 30 Mar 2021 10:51:24 +0800 In-Reply-To: <20201229050831.19493-1-michael.kao@mediatek.com> References: <20201229050831.19493-1-michael.kao@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RGVhciBEYW5pZWwsDQoNCktpbmRseSBwaW5nLg0KQ2FuIHRoaXMgcGF0Y2ggYmUgbWVyZ2VkPyBP ciBhbnkgY29tbWVudD8NCg0KQlIsDQpNaWNoYWVsDQoNCk9uIFR1ZSwgMjAyMC0xMi0yOSBhdCAx MzowOCArMDg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