Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4155364imm; Mon, 30 Jul 2018 09:32:34 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe+FNGo5M1GI2+fMC7YD6nQL61SKQtaA6Uk7CfwQnI4NCP499Uq2ork3Qf1VmJr87F4Vmgv X-Received: by 2002:a62:411a:: with SMTP id o26-v6mr8560904pfa.111.1532968354875; Mon, 30 Jul 2018 09:32:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532968354; cv=none; d=google.com; s=arc-20160816; b=sezELVWoizvAIwG8MJu4tc2t4XiYVJjQrDqWmVq72jljzde6uV7SmBBi8WpasgniP/ aIuJySOJRkzbjy7Zgr+agIu50/CIhpKc52Zy/rvoDPGKPSPSZgnrhU+j9/GOfSm6fuej hsjylSyEfalEFimx3E553rm03EDsL4CEPz9ZQVvgpO2ElKiVmizpZFLo5raog02QIyZd 1+p/GTcrmJuTFQuE1HY/dfJKpSW1o6EJuTg85jH0XyuCR8sZ3IRnCZMYD1MnrWz1P1oE el+1glFQqfnd6GxK9zJ60/G16j4QHaIcKC2/yYUyaMDo9wUpSTwng45DWlYloEHr0HWk gcKw== 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-disposition:mime-version:user-agent:in-reply-to:references :subject:cc:to:from:message-id:date:arc-authentication-results; bh=n/A25s4oWd9k4HgFodksRzlbTOkAJMAwZAFiDnkWd2c=; b=vZXKd/luT2Ztt8TCdjspd5ZjPgNMyhMmz9XCSJGUot9zGZ/6oJOG1eb+pmNcdos3Tk 2ahQRm6JCshl7vxyYFfKSu/vIASCsQ58NujuWiEYiAZkY9juDjEvshOQdC17J3hYwaR2 +DcoHuw7ypNI5L4lwdSYpHjNmBm99SeItWGnKjDnSzj9Lj3TXOmn/prkA/goAo2Ci5ZN FyEavuT7CJ6lYhunOhLNg70vRcWYAws5qZjCpy6Q7Ob1KC2WD77IQxhMqPrM9UdcqmUJ pcQG0LqoQD7Xq2Hy/+FPAY7vNdv0tE8FveM0Pd/kgrTNWLGX8eTx2YP9jnbc2zvhS8RQ wOUA== 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 p15-v6si9811187pgv.525.2018.07.30.09.32.20; Mon, 30 Jul 2018 09:32:34 -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 S1731969AbeG3SGh convert rfc822-to-8bit (ORCPT + 99 others); Mon, 30 Jul 2018 14:06:37 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:31429 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727667AbeG3SGg (ORCPT ); Mon, 30 Jul 2018 14:06:36 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 41fQ6R6cSkz9tvg1; Mon, 30 Jul 2018 18:30:39 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id taGs690wZ9oO; Mon, 30 Jul 2018 18:30:39 +0200 (CEST) Received: from vm-hermes.si.c-s.fr (vm-hermes.si.c-s.fr [192.168.25.253]) by pegase1.c-s.fr (Postfix) with ESMTP id 41fQ6R61zvz9tvfg; Mon, 30 Jul 2018 18:30:39 +0200 (CEST) Received: by vm-hermes.si.c-s.fr (Postfix, from userid 33) id 4D10465B; Mon, 30 Jul 2018 18:30:47 +0200 (CEST) Received: from 37.173.209.192 ([37.173.209.192]) by messagerie.si.c-s.fr (Horde Framework) with HTTP; Mon, 30 Jul 2018 18:30:47 +0200 Date: Mon, 30 Jul 2018 18:30:47 +0200 Message-ID: <20180730183047.Horde.g9hQ_3EXmF6St0upNs2DDw1@messagerie.si.c-s.fr> From: LEROY Christophe To: Murilo Opsfelder Araujo Cc: linux-kernel@vger.kernel.org, Alastair D'Silva , Andrew Donnellan , Balbir Singh , Benjamin Herrenschmidt , Cyril Bur , "Eric W . Biederman" , Michael Ellerman , Michael Neuling , Nicholas Piggin , Paul Mackerras , Simon Guo , Sukadev Bhattiprolu , "Tobin C . Harding" , linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH v2 04/10] powerpc/traps: Use REG_FMT in show_signal_msg() References: <20180727145811.12334-1-muriloo@linux.ibm.com> <20180727145811.12334-5-muriloo@linux.ibm.com> <20180727184023.Horde.KRXPzZpG18uxt_B9sy_FBg5@messagerie.si.c-s.fr> <20180730152838.GA23704@kermit-br-ibm-com> In-Reply-To: <20180730152838.GA23704@kermit-br-ibm-com> User-Agent: Internet Messaging Program (IMP) H5 (6.2.3) Content-Type: text/plain; charset=UTF-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Murilo Opsfelder Araujo a écrit : > Hi, Christophe. > > On Fri, Jul 27, 2018 at 06:40:23PM +0200, LEROY Christophe wrote: >> Murilo Opsfelder Araujo a écrit : >> >> > Simplify the message format by using REG_FMT as the register format. This >> > avoids having two different formats and avoids checking for MSR_64BIT. >> >> Are you sure it is what we want ? > > Yes. > >> Won't it change the behaviour for a 32 bits app running on a 64bits kernel ? > > In fact, this changes how many zeroes are prefixed when displaying > the registers > (%016lx vs. %08lx format). For example, 32-bits userspace, 64-bits kernel: Indeed that's what I suspected. What is the real benefit of this change ? Why not keep the current format for 32bits userspace ? All those leading zeroes are pointless to me. > > before this series: > [66475.002900] segv[4599]: unhandled signal 11 at 00000000 nip > 10000420 lr 0fe61854 code 1 > > after this series: > [ 73.414535] segv[3759]: segfault (11) at 0000000000000000 nip > 0000000010000420 lr 000000000fe61854 code 1 in segv[10000000+10000] > [ 73.414641] segv[3759]: code: 4e800421 80010014 38210010 > 7c0803a6 4bffff30 9421ffd0 93e1002c 7c3f0b78 > [ 73.414665] segv[3759]: code: 39200000 913f001c 813f001c > 39400001 <91490000> 39200000 7d234b78 397f0030 > > Have you spotted any other behaviour change? Not as of today Christophe > > Cheers > Murilo