Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3467658ybi; Tue, 18 Jun 2019 01:02:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqxNOvV63ukLfS9NssEMm53iEkOxDCU23EHetjUMdY7fzAE5lktCCZiHVReLImHHyBRnkNHH X-Received: by 2002:a63:d24f:: with SMTP id t15mr1345657pgi.301.1560844929242; Tue, 18 Jun 2019 01:02:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560844929; cv=none; d=google.com; s=arc-20160816; b=TRqyzrkPQaXEycEEwBK2aAYrAtXLn7+hLi+XME8QpMQcGJUyIyO22fXNEmBZGUGios aAyv9FwINsoxrVnhL2DOQUTPCP4LwNBSlQyj91J3lQpYBp2N4NTPgM2LXs5bzFCv5emc 1aFm9FGK9cQx5G6zHrPaWkO24Rcwm7P/to9j2M53vIP5IQNuBMq8hCLgUU6UHsO1tSVd iqRqwHv6a3o0Ld4iqhPixVnDVnYjMyZ/7m2spteldcbnrK5zv7FxoGGu43VgrtiLpsgd iWjausdritu7AWm36SpIU8qEESmcX6XQBsY7JrX4q8E50Ri27uNDfpkKqbs9azNsdepP fmfw== 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; bh=DejklwWgVARs652bjdHPksG0N5j7dxs4P81hFP+wSFM=; b=XMrQOn2Ag2uhxB6oze5wg/dHOCgTSuCZnDn/vtpIpsbqCr+VfHXm95bPXZkXDjWu2t abxgGQ2fHMwJ+PxRQhQLudhohdKUAhUWv2F8FXHx5jasnHFJim6m/aN2dHp4KORu4C6c n4JYYMl6lSPj0z1bzMazPdRc+PnmGueaFtHSpPmrsNMNzoxKf1mE5dXHkP4yrAniu48U c+3UGKJDNGBSPyF0wav7acaxagKp4Llg9IozT50UXZTX8L3hGDgDyytasLGdKdx4S7vL fQJbVy0Of2elPMJnwMK5IaAR1FecmG28ReW/CvNYVML/Np3rPiX1jHftN3IKBZeG5xw3 MxLw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o11si1712557pjb.30.2019.06.18.01.01.50; Tue, 18 Jun 2019 01:02:09 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726852AbfFRIAW (ORCPT + 99 others); Tue, 18 Jun 2019 04:00:22 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:56246 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725913AbfFRIAV (ORCPT ); Tue, 18 Jun 2019 04:00:21 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 31443FBB816E552F36E2; Tue, 18 Jun 2019 16:00:19 +0800 (CST) Received: from [127.0.0.1] (10.177.223.23) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.439.0; Tue, 18 Jun 2019 16:00:09 +0800 Subject: Re: [PATCH] irqchip/mbigen: stop printing kernel addresses To: Kefeng Wang , Marc Zyngier , Thomas Gleixner , Jason Cooper , References: <20190618032202.11087-1-wangkefeng.wang@huawei.com> From: Hanjun Guo Message-ID: <7c3fc84d-79a7-fef7-94c9-1acccd90d660@huawei.com> Date: Tue, 18 Jun 2019 15:59:54 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <20190618032202.11087-1-wangkefeng.wang@huawei.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.223.23] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/6/18 11:22, Kefeng Wang wrote: > After commit ad67b74d2469d9b8 ("printk: hash addresses printed with %p"), > it will print "____ptrval____" instead of actual addresses when mbigen > create domain fails, > > Hisilicon MBIGEN-V2 HISI0152:00: Failed to create mbi-gen@(____ptrval____) irqdomain > Hisilicon MBIGEN-V2: probe of HISI0152:00 failed with error -12 > > Instead of changing the print to "%px", and leaking kernel addresses, > just remove the print completely. This is a little bit misleading, as the "base" was used for identify which mbigen failed, so saying 'remove completely' will make people think that we will miss some debug information. In fact, we have HISI0152:00 stands for mbigen ACPI HID and its UID, so we can identify the failing probed mbigen even we remove the printing "mgn_chip->base". It's better to add this clarify in the commit message as well. Thanks Hanjun