Received: by 10.192.165.156 with SMTP id m28csp294678imm; Sun, 15 Apr 2018 23:30:53 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/ZyqgyrxmuzpiNlhQxybh84YRS17UzhDcfznbRmKt+CRB0d0SESBpSD+mZXbmXeKkXitcT X-Received: by 2002:a17:902:4303:: with SMTP id i3-v6mr9649826pld.394.1523860253394; Sun, 15 Apr 2018 23:30:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523860253; cv=none; d=google.com; s=arc-20160816; b=T//FxstZ0B0DyS54SMekNGJlrqFpdkMDZvrNIkEF8p5FbzE3WZb//s/JmQPxRKIht1 wUxuv3X2XQU5opEzKhX4EJ7qu5J2OpPCIrRWizu2XcbEgV3ZvGdO/N3o2krQwdPDlvFR 7tFEaqv2PmLzR92rb/MSL7ZcPjuebFoaoMXWvQa7K96Gh0TMB4vxmhxAw3RVD+jytGo/ q/GsQfhnNE7gTbVVPuMF1SvAXMLtgHiHwfhncMYY3RFoKXc2WZeuce2BUbSYkaX7E8HJ cvkWAZGNzmEa3+bk8eK7oWj7+eQN1wR6hExzXgSKpj/all9chHoijuTkyqDZ8pKJ047U fHfg== 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=EsZb4WG6ln2y8TooCf2OhjSOAKjw6XFHQkrMmUbPQtM=; b=MZAUD1xFZo2FDUIkY0/FajlJUBlRe5XCmho2YP57WVh8gVR7l+YcDmvntr5qjytMCV 1rrnds+cIvjvOwI8dBed2GTWntvwwwjzccq1XysmDRSuV0zwpzEPgmGidvLw4qD6n10M WhxC6u+uZqsJSqDYVXObFjpD3qbuC4P/ohmeLQP99vliC6dgo1wTWqRlcCRX2QM9OdvI +9aphfa0r7F+XrDN1pH5dYkLqi0f/OsvM0UxVHooxUm7Btj0Ge+hajDA2Pm8bpzsVNZU 8on8leK8QAWdfKptchOYrKzWzkWF9tyxGu5DdGKIc8fS9LpkQ73Nmwhb9QG+PlB0Dxw2 1A4w== 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 n7si2427427pgt.480.2018.04.15.23.30.39; Sun, 15 Apr 2018 23:30:53 -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 S1753391AbeDPGXf (ORCPT + 99 others); Mon, 16 Apr 2018 02:23:35 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:34772 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753346AbeDPGXe (ORCPT ); Mon, 16 Apr 2018 02:23:34 -0400 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w3G6JofQ050916 for ; Mon, 16 Apr 2018 02:23:33 -0400 Received: from e06smtp14.uk.ibm.com (e06smtp14.uk.ibm.com [195.75.94.110]) by mx0a-001b2d01.pphosted.com with ESMTP id 2hcn50u4y5-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Mon, 16 Apr 2018 02:23:32 -0400 Received: from localhost by e06smtp14.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 16 Apr 2018 07:23:31 +0100 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp14.uk.ibm.com (192.168.101.144) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 16 Apr 2018 07:23:28 +0100 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w3G6NRbA51511334; Mon, 16 Apr 2018 06:23:27 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BAB0B4C044; Mon, 16 Apr 2018 07:16:00 +0100 (BST) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 649804C040; Mon, 16 Apr 2018 07:16:00 +0100 (BST) Received: from oc7330422307.ibm.com (unknown [9.145.11.130]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 16 Apr 2018 07:16:00 +0100 (BST) Subject: Re: Wrong module .text address in 4.16.0 To: Thomas-Mich Richter , Linux Kernel Mailing List Cc: Martin Schwidefsky , Hendrik Brueckner , Heiko Carstens , Peter Zijlstra , Arnaldo Carvalho de Melo , Jessica Yu References: <7e17e3b1-25c3-cb61-ae94-dcbb1bf3473e@linux.ibm.com> From: Christian Borntraeger Openpgp: preference=signencrypt Date: Mon, 16 Apr 2018 08:23:27 +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: <7e17e3b1-25c3-cb61-ae94-dcbb1bf3473e@linux.ibm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 18041606-0044-0000-0000-000005489E32 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18041606-0045-0000-0000-00002888A3B9 Message-Id: <3836add7-8691-77c1-33d2-0fbee7051795@de.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-04-16_03:,, 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-1804160059 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org FWIW, this breaks at least perf capability to resolve module symbols. Adding some more CCs for perf and module. On 04/16/2018 07:51 AM, Thomas-Mich Richter wrote: > I just installed 4.16.0 and discovered the module .text address is > wrong. It happens on s390 and x86 platforms. I have not tested others. > > Here is the issue, I have used 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 the wrong address > [root@s35lp76 ~]# > > File /sys/module/qeth_l2/sections/.text displays a very strange > address which is definitely wrong. It should be something like > 0x000003ff80401xxx. > > Same on x86. > > I have checked file kernel/module.c function add_sect_attrs() > and it calls module_sect_show() when the sysfs file is read. > And module_sect_show() uses > > sprintf(buf, "0x%pK\n", (void *)sattr->address); > > and my sysctl setting should be correct: > [root@s35lp76 linux]# sysctl -a | fgrep kernel.kptr_restrict > kernel.kptr_restrict = 0 > [root@s35lp76 linux]# > > I wonder if somebody else has seen this issue? > Ideas how to fix this? > > Thanks >