Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp200168pxb; Tue, 19 Oct 2021 00:37:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAPmKMjWZdFDJBIbn7qbhgV1Gt0BRytDW4G/eFlpgEZdV1uZJGR51o39OJxlLkDML1uY48 X-Received: by 2002:a17:906:1682:: with SMTP id s2mr37442204ejd.66.1634629058173; Tue, 19 Oct 2021 00:37:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634629058; cv=none; d=google.com; s=arc-20160816; b=h++Pik6I5W2CgTW1TOY12Ya51M4xY0ObaKolqEfP7+yoXvsIe3Um78jQOl2m9D9k3o EuoQABvd3KvWgF2BExQzxrGRccpcONwgLH8hVrKnzq4DbnezHFRD0t3Pa8jyWtXyqXwc z2dPHga8RJ72CkDHWTl4bSC5TdC0ZXeLG+ZUg+u3t2cNVkX1roSAmrklFSJQQ/PNxts8 TltMvb6WB7iGPiD4DsLQi7VYvmhDYNBMAb/eQiY9zxe9uTnozrXjlIo7n6KcsNAVoaYj L5phNAS3fMGwycBm6dStoNEOm1eN//5Lx6mwj62mNnFm0mCYV8pwpaojmI4vlSOztV+T izgw== 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=LsN013nKThqaG548oxT8eN2kEk6pmD1K6/Ot7iQ/bYg=; b=rirGo8LoGVrkpDICkYKyU8Wl/YY58rkm8dSmO7wTLRzEs2F+C5VqMBoBjTpaVHNW/c aVpy1Tknerbh28MGTMITSh3SWX9kJe79NWQEE4SMIUCOVa2vxx5wyr+YsS//OaTafI7e V//K4FazRYPjijLIuidPj8uDpII6OBy8m2vTs9A/r0gn3Pe4YM0DJHd0ZJ8igZ5p0K7V rCZQ63SOnUYrD3GZymc5d1bFntLXKBOxk9Cq9jqE7CLrn3fQxoko/MS2bTqF1XODLMcF QSPPJZ+XY/XleGAuexEzIcOlzNgTJqWD6hnc7IYrZ5GS7Sr8hJZ2fP1158cjc7Q6FYlR jotQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=V9zsPhXN; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gb14si10118983ejc.339.2021.10.19.00.37.13; Tue, 19 Oct 2021 00:37:38 -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=@linaro.org header.s=google header.b=V9zsPhXN; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234506AbhJSHhp (ORCPT + 99 others); Tue, 19 Oct 2021 03:37:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234516AbhJSHhp (ORCPT ); Tue, 19 Oct 2021 03:37:45 -0400 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C37DBC061749 for ; Tue, 19 Oct 2021 00:35:32 -0700 (PDT) Received: by mail-wr1-x436.google.com with SMTP id y3so46130478wrl.1 for ; Tue, 19 Oct 2021 00:35:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=LsN013nKThqaG548oxT8eN2kEk6pmD1K6/Ot7iQ/bYg=; b=V9zsPhXNAitiduGUsElE8qwd9XM0yA3jgolBcw22hm/Gi+HYdMI+ynf/ql+EMgtSVa EzpbRqmfXb8+0iq/Tsa8jMixolAJKQNStQg/W+j8mbA2o47ic4UR+d7xc8sxKzcpb7sc JfJNkh9wPihx8z1tRClzTgL9QuZsxEBLe+Nfj7s1cParBnZi48QaiocwH6SLHaG9v64Y cXT0BnzrgmljRgo/GMIK9+c/fDkZwMeUEOZ10iP9ckSYCf11iQmbM5GoL23E4tEec3A1 ciZoC8yCvtQ2Lv6bILVzpzhCEZXikFw56z+YJfD2SafVH7RktP78C9PTMoEa1ANfPG4R jAJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=LsN013nKThqaG548oxT8eN2kEk6pmD1K6/Ot7iQ/bYg=; b=BYBFLczdA1GwRf27ywGJDn3D7VbLWCD/Ot98AuxtHnj5XzCU2f8gBqd2lkS8tdNRbd LjTJwfTgFZlZzW2dC2crUOwBdqAI4KFYEAdkDZW7y4HEpRMlVfU3hZA0hTjk3qv36hTq VLCv22Ssszm8Hvonb3gyxKYqOYXa5BNZrhadxyVv9xbW6TX8CMQn94w/uqHsfOxGnD9K Mo0ey0/iVt3UwyErm+Yc467nUbtdMkH1HwzmSTx79DQRC/79ezXDkGbfq3VFBStuDmHa nfe55mGwO2vVLf0WwypKx9qC+E21f/Ren09VsjOTVUf1r3wP8NyxmW7XteZQVV3wPI/M t0XQ== X-Gm-Message-State: AOAM531yURXDIgN1emVivlvquH0sL1CHNspPB0GZzjNj7XbJScXiSlUe lII40Sc5f1oIbFQM3+DwQ2KOiQ== X-Received: by 2002:adf:e0cc:: with SMTP id m12mr42701877wri.62.1634628931087; Tue, 19 Oct 2021 00:35:31 -0700 (PDT) Received: from ?IPv6:2a01:e34:ed2f:f020:c590:9206:d20a:23bd? ([2a01:e34:ed2f:f020:c590:9206:d20a:23bd]) by smtp.googlemail.com with ESMTPSA id 10sm1723951wme.27.2021.10.19.00.35.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 Oct 2021 00:35:30 -0700 (PDT) Subject: Re: [PATCH v2] thermal: Fix a NULL pointer dereference To: Subbaraman Narayanamurthy , Zhang Rui , Amit Kucheria Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, David Collins , Manaf Meethalavalappu Pallikunhi , Ram Chandrasekar , stable@vger.kernel.org References: <1631041289-11804-1-git-send-email-quic_subbaram@quicinc.com> <003252f2-510f-e9ea-0032-6034f26aad11@linaro.org> <16af9946-b662-0bbf-206f-278b7ef98123@quicinc.com> <8cda69a6-907b-e09e-ba64-011b0216a4df@quicinc.com> From: Daniel Lezcano Message-ID: Date: Tue, 19 Oct 2021 09:35:29 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <8cda69a6-907b-e09e-ba64-011b0216a4df@quicinc.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19/10/2021 03:21, Subbaraman Narayanamurthy wrote: > On 10/8/21 12:50 PM, Subbaraman Narayanamurthy wrote: >> On 10/6/21 4:08 AM, Daniel Lezcano wrote: [ ... ] >> /sys/devices/virtual/thermal/thermal_zone87 # echo 120000 > trip_point_0_temp   >> [  184.290964][  T211] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000020 >> [  184.300896][  T211] Mem abort info:                                          >> [  184.304486][  T211]   ESR = 0x96000006                                       >> [  184.308348][  T211]   EC = 0x25: DABT (current EL), IL = 32 bits             >> [  184.314531][  T211]   SET = 0, FnV = 0                                       >> [  184.318384][  T211]   EA = 0, S1PTW = 0                                      >> [  184.322323][  T211] Data abort info:                                         >> [  184.325993][  T211]   ISV = 0, ISS = 0x00000006                              >> [  184.330655][  T211]   CM = 0, WnR = 0                                        >> [  184.334425][  T211] user pgtable: 4k pages, 39-bit VAs, pgdp=000000081a7a2000 >> [  184.341750][  T211] [0000000000000020] pgd=000000081a7a7003, p4d=000000081a7a7003, pud=000000081a7a7003, pmd=0000000000000000 >> [  184.353359][  T211] Internal error: Oops: 96000006 [#1] PREEMPT SMP          >> [  184.359797][  T211] Dumping ftrace buffer:                                   >> [  184.364001][  T211]    (ftrace buffer empty) >> >> Hope this helps. > > Hi Daniel, > Have you got a chance to look at this? Hi Subbaraman, Actually, I think the root problem is the thermal zone is showing up while there is no sensor associated with it. You can read the temperature and get a kernel warning also. That's what should be fixed IMO. -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog