Received: by 10.192.165.156 with SMTP id m28csp317300imm; Tue, 17 Apr 2018 10:36:18 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/a/VlcpgSE8y1V81jrVPtT9GOYU5uA9crS3L66MSWk19VnkaHv19RzverdpaQ6TrUZ1oSO X-Received: by 2002:a17:902:b105:: with SMTP id q5-v6mr2929809plr.173.1523986578245; Tue, 17 Apr 2018 10:36:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523986578; cv=none; d=google.com; s=arc-20160816; b=yBg3YjT26yIMsoAIm9rCuBj9kTJvmB2gEoIx0yeKQpqOtUoDoBKivBVmca0UaXbWFZ 5wly6wh7SGrR0d/rzALCpPrfPtlDHRNasmroYCLt1sB5MlnTOAC2ulleXi/7A5tbS9Kp sXPIPA9WTsfyZl5T3zc5zhBC0dKBUZFl98xVmWBtjbdhs8Efuxkvem5JsJBQ20AhhNNW t1mpXSGvl0yNTSI+v2wHwJy3L1FbqUM+iVXJ1gCyW5MllncAS4BjEak8mkbc/lrK87Sa mFssUY+yLOmPWiRCsg98eunc94Qu31tb9hvGjt1SPCXkn8zXdL/TY23QJ4hz1DZpDhhV uZOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date:openpgp :from:references:cc:to:subject:arc-authentication-results; bh=spVeQhXQ9ho8bSjv8FnjGH3ZE67uQq5DAKfw6LWeDXs=; b=Q6JLOKtdVKDNq51UDYLyzODv2GIcR83zwRVN+OUQXdeYJ0ehIi5snSr3py96LaZwlB tsG6aRQLw7lS9QQGAMBPb/moMVy4IAnuaquwUvs2bcursQ2/dsU6l04lQhwYq0bdIatE 9MZjYSdGysCaK/jFMIjjAM9qSkvoWUXtDTlyWeK7P0X8TkCesWqboUjrSKNmvOLJ59bE kYG4ut622JR3Qn8I7mXtnyzhbbM1SCIBXcP2BJ6vGsiNEKsqZkKynWWXunci18MoXxo7 qGQ+aCQRvi1qOKTBXbdVU2P/TJopsRvcttlvMDWO0FLyG2aS/oGEQlqbSfiO2i3ry50j DjAA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c4si9869594pfg.108.2018.04.17.10.36.04; Tue, 17 Apr 2018 10:36:18 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752481AbeDQRfA (ORCPT + 99 others); Tue, 17 Apr 2018 13:35:00 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:37526 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751232AbeDQRe7 (ORCPT ); Tue, 17 Apr 2018 13:34:59 -0400 Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w3HHVhXu121519 for ; Tue, 17 Apr 2018 13:34:58 -0400 Received: from e06smtp12.uk.ibm.com (e06smtp12.uk.ibm.com [195.75.94.108]) by mx0b-001b2d01.pphosted.com with ESMTP id 2hdjs2s6j1-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Tue, 17 Apr 2018 13:34:58 -0400 Received: from localhost by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 17 Apr 2018 18:34:56 +0100 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp12.uk.ibm.com (192.168.101.142) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 17 Apr 2018 18:34:53 +0100 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w3HHYr2A12321188; Tue, 17 Apr 2018 17:34:53 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 131C0A4053; Tue, 17 Apr 2018 18:27:02 +0100 (BST) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7A6A8A4051; Tue, 17 Apr 2018 18:27:01 +0100 (BST) Received: from oc7330422307.ibm.com (unknown [9.145.70.101]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTP; Tue, 17 Apr 2018 18:27:01 +0100 (BST) Subject: Re: [PATCH] modules: Fix display of wrong module .text address To: Arnaldo Carvalho de Melo Cc: Thomas Richter , jeyu@kernel.org, torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, schwidefsky@de.ibm.com, brueckner@linux.vnet.ibm.com, heiko.carstens@de.ibm.com, peterz@infradead.org, me@tobin.cc, keescook@chromium.org References: <20180417082054.26978-1-tmricht@linux.ibm.com> <20180417162000.GA7157@kernel.org> From: Christian Borntraeger Openpgp: preference=signencrypt Date: Tue, 17 Apr 2018 19:34:52 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180417162000.GA7157@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 18041717-0008-0000-0000-000004EC5E9D X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18041717-0009-0000-0000-00001E806414 Message-Id: <74ffc097-2a99-152a-b836-0736bbcdd628@de.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-04-17_09:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1804170152 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/17/2018 06:20 PM, Arnaldo Carvalho de Melo wrote: > Em Tue, Apr 17, 2018 at 10:24:35AM +0200, Christian Borntraeger escreveu: >> >> >> On 04/17/2018 10:20 AM, Thomas Richter wrote: >>> In kernel v4.16.0 the module .text address is displayed >>> wrong when using /sys/module/*/sections/.text file. >>> Commit ef0010a30935 ("vsprintf: don't use 'restricted_pointer()' when >>> not restricting") >>> is the first bad commit. >>> >>> Here is the issue, using module qeth_l2 on s390 which is the >>> ethernet device driver: >>> >>> [root@s35lp76 ~]# lsmod >>> Module Size Used by >>> qeth_l2 94208 1 >>> ... >>> >>> [root@s35lp76 ~]# cat /proc/modules | egrep '^qeth_l2' >>> qeth_l2 94208 1 - Live 0x000003ff80401000 >>> ^ This is the correct address in memory >>> [root@s35lp76 ~]# cat /sys/module/qeth_l2/sections/.text >>> 0x0000000018ea8363 <---- This is a wrong address >>> [root@s35lp76 ~]# >>> >>> This breaks the perf tool which uses this address on s390 >>> to calculate start of .text section in memory. >>> >>> Fix this by printing the correct (unhashed) address. >>> >>> Thanks to Jessica Yu for helping on this. >>> >>> Suggested-by: Linus Torvalds >>> Signed-off-by: Thomas Richter >>> Cc: Jessica Yu >> >> CC stable? > > Adding the missing: > > Fixes: ef0010a30935 ("vsprintf: don't use 'restricted_pointer()' when not restricting") > > Should be enough? Even better.