Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4491350imu; Tue, 29 Jan 2019 02:28:22 -0800 (PST) X-Google-Smtp-Source: ALg8bN6Qj0/cCOoiBJf8F7LzZdkhcMuTge3vPpUCMCi9+zig3YhxWoA/u6Y3fpQSexegUSBWYN2O X-Received: by 2002:a17:902:583:: with SMTP id f3mr26111756plf.202.1548757701977; Tue, 29 Jan 2019 02:28:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548757701; cv=none; d=google.com; s=arc-20160816; b=Y9Who0m9Fkwu4B/cOsb17VjIQdvsx0Y3NBd2i3XV3GN34VkGP9+6kyD2143xmRTVkZ m18AsxAxToiHFjnovOn4lWhrooAL5DKExUfER8aGk0JHFk5z57qkcZ4bBvLqVUMNAgyb ZWUeSHKT7RfpksWIH+/SWhLLiIxFGxvZ2kM0ZxQb1o1VyOLdrCttwH4qrA10D45gb7aS R64jaOMEu24NRewfiPzbIIOxaTqh5/Sxf5ZqPNt6Ruy9uQHDXcRPNZR4vkjBPtLBLQF/ 1IyK3a9sZvESL2mSOGLzExk8qPh74O5gVklYQHwuaqQAi8AEDHiayzJYxY8Xao5wFYA9 lCJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature:dkim-signature; bh=PpjcOy7UAlkkXMZrtNW6CBgmpe/gdzgxUwvs3wCwuq0=; b=ZEiH6Z9PsyIkVEv200QVquqyrpVERVYhVZRFCmR5eW9WIREQ7NQ16VS2IzBnCx4EEY 1urX+mU2aIiWMGyxXZqeuzKEE2BrYXuY5hH4RsZmshqrPy6KwbeqyJO0plM7fK0Z0yq6 YZqjm5dLmD0xiWnMaDZ8IZi5W9fZj9A6fVlz9HE3CSgjtEi6LxkJ2bdmsj2hHHJCMsiG Fl25Gd12YcrDG0QXcPsTMKme9fyl0ZneEC3aYszDjZaYDM8VwhD0jmiAaxoCYxKlfzhh KvPWNAnpJp+cqur+7KKXsFu5QArhishwPkKLj+EPLdhYyLweeFw1jbr/pnvciAJXECBH o9OQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@raspberrypi.org header.s=pp header.b=fv0JTjNf; dkim=pass header.i=@raspberrypi.org header.s=google header.b=Smyta9O7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=raspberrypi.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s73si6199909pfs.54.2019.01.29.02.28.05; Tue, 29 Jan 2019 02:28:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@raspberrypi.org header.s=pp header.b=fv0JTjNf; dkim=pass header.i=@raspberrypi.org header.s=google header.b=Smyta9O7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=raspberrypi.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726997AbfA2K1u (ORCPT + 99 others); Tue, 29 Jan 2019 05:27:50 -0500 Received: from mx07-00252a01.pphosted.com ([62.209.51.214]:24359 "EHLO mx07-00252a01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725927AbfA2K1t (ORCPT ); Tue, 29 Jan 2019 05:27:49 -0500 Received: from pps.filterd (m0102628.ppops.net [127.0.0.1]) by mx07-00252a01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x0T9qxje010673 for ; Tue, 29 Jan 2019 09:54:21 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.org; h=subject : to : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=pp; bh=PpjcOy7UAlkkXMZrtNW6CBgmpe/gdzgxUwvs3wCwuq0=; b=fv0JTjNfxyu3lwF7Eb6wGd/0bbu/5430OxLuUlyvmUqvAKSK3kJLVFl0osuJneAQGcB5 JYuZqyBmLfw+6QSAMgxjMiOgvKisfdgP7T7/kv/XIZT2vQOrFyDZcQO1SkQ5o9bCaGD2 ht6VFV8edar+/K1FQAiUed318piEjtfVRZX2bU10HMkftuyfURmd8gd6+HclKxlOvhBU 5Lw8sIZuSTNBCOjLztJm7tZeyVLTTOsH6bLG63rmTnRP/+nRfqs5tyGvFhpaC7RcUhbt Ex+1M6kRigTRuyHTy0RxVqXD4OTCxbopmylrd4dk+n5TwUs1IOmeL8I5i3bnHOQVN5Gq xg== Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by mx07-00252a01.pphosted.com with ESMTP id 2q8du51e4m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=OK) for ; Tue, 29 Jan 2019 09:54:21 +0000 Received: by mail-wm1-f69.google.com with SMTP id f193so5622682wme.8 for ; Tue, 29 Jan 2019 01:54:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.org; s=google; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=PpjcOy7UAlkkXMZrtNW6CBgmpe/gdzgxUwvs3wCwuq0=; b=Smyta9O7W61oETrT9kLRPOqG16GbddwcLMQFZPF6QEhQ2KWH5lKUQjq+r3yP0/tEj0 noTzPr0QonENY8g0h/Hn6W8VPtrDmSOfbSZQXaIUL07IEVIkk5u55CelVFqtIzCHIS2g qQpdIK7ZZBNGxyEiLWHlGwASovC67Eh89oSo499D40eXRB4vONiShP86te2+DZg6n1rg 5o/MXnr0UViAY2FZoWvRNlVwJmPBbcO1myY4UiDB0/ujfybdxafnCAKmEI89aYrdkxgE 0l9YL99eUzVpPxeQJgfolpNegPDgOYrXz8yJRBFpqvGYtfGKmLkLCsZp4jOCyK1hAiKR /osw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=PpjcOy7UAlkkXMZrtNW6CBgmpe/gdzgxUwvs3wCwuq0=; b=KeOO2WCwGBKkcIoML2O2mwUhrwR8StB2DIGy5I+w1uXHW3t/kyQQ7A+qd5Z4jMxwtD 1ksV3LiuVMjG/gAa/GYAiNoiczDwIbEK3XGRYa6xRcWsoAE/rhfI/31A1YGkBISVX7rr ho4ZHQP5KjjPsd8tdcW4rBuTRJK0b5IAi7fCstwypTs8hSThUIueTylmO6BiEx9YL6Vu 6pyruYn0FV4AaWKUSR2QeI0m5tQ+ULqa/gQQrDbkcYBMszmYx699IxwhlMomMOvbnfvG muQ3Ybczjksswbe5/fYHNFf1Z/10vOomllDVwpv+VYMz17D4C1NQwZrZh53RqRpku+Ti tlcw== X-Gm-Message-State: AJcUukfDu4YZ0n3D8Yuop5i32DiFFrQngbA++cjsDBHIaIEP6ULBdvSv JrB1YP6CGLNkjua58BZTej3GTZBn3Gzz4FT4/cr8KYrSINyqNrgeZ1Axd7Rxrp8H3fxuBTtmxTJ H1Kjrr6DRxhDte+9BbWNKTScz X-Received: by 2002:adf:c108:: with SMTP id r8mr26251053wre.233.1548755660291; Tue, 29 Jan 2019 01:54:20 -0800 (PST) X-Received: by 2002:adf:c108:: with SMTP id r8mr26251030wre.233.1548755659980; Tue, 29 Jan 2019 01:54:19 -0800 (PST) Received: from [10.3.14.17] (cust51-dsl50.idnet.net. [212.69.50.51]) by smtp.gmail.com with ESMTPSA id r200sm5420073wmb.36.2019.01.29.01.54.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Jan 2019 01:54:19 -0800 (PST) Subject: Re: [PATCH] thermal: bcm2835: Fix crash in bcm2835_thermal_debugfs To: Stefan Wahren , Daniel Lezcano , Eric Anholt , Florian Fainelli , bcm-kernel-feedback-list@broadcom.com, Geert Uytterhoeven , linux-pm@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <1548753048-78735-1-git-send-email-phil@raspberrypi.org> From: Phil Elwell Message-ID: Date: Tue, 29 Jan 2019 09:54:18 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-01-29_07:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Stefan, On 29/01/2019 09:44, Stefan Wahren wrote: > Hi Phil, > > Am 29.01.2019 um 10:10 schrieb Phil Elwell: >> "cat /sys/kernel/debug/bcm2835_thermal/regset" causes a NULL pointer >> dereference in bcm2835_thermal_debugfs. The driver makes use of the >> implementation details of the thermal framework to retrieve a pointer >> to its private data from a struct thermal_zone_device, and gets it >> wrong - leading to the crash. Instead, store its private data as the >> drvdata and retrieve the thermal_zone_device pointer from it. >> >> Fixes: bcb7dd9ef206 ("thermal: bcm2835: add thermal driver for bcm2835 SoC") >> >> Signed-off-by: Phil Elwell > > thanks for this patch. > > Could you please resend this patch to the thermal maintainers Zhang Rui and Eduardo Valentin?|||| > > Regards > Stefan > I blame the get_maintainer script - a "Supporter" sounds less invested and less authoritative than a "Maintainer". A resend is imminent. Phil