Received: by 10.223.164.202 with SMTP id h10csp365881wrb; Tue, 14 Nov 2017 02:52:17 -0800 (PST) X-Google-Smtp-Source: AGs4zMYmyjcyFSqWmfQUqmu6h+8doypzi6klts1MBzQ34c8GBT8ouKYqwrnkOAN5YAnJfRFkgo5d X-Received: by 10.101.99.144 with SMTP id h16mr11715228pgv.13.1510656737546; Tue, 14 Nov 2017 02:52:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510656737; cv=none; d=google.com; s=arc-20160816; b=kqeu6iZJr1myHgaMEIBk8L8vg9X71pf4FtUhuTg+QI+Atu1idPEm1i5t/EEGY5i6Ta UezR+99ibNOmbGKn7V1RkUj/V66oKVWyBQHPlDsiPHpjnsX1kr1diiWhZmOkb9Pz2fNN cYBgv/+yq7N3vrttqm9fesDOZwXf/cTKFZbHm07kwP8CpEV2xoNiTZH+EE41enRTfNTc 5WYqnFpUdP0GaBNQ8AUT4dxsefRCy2H+w3TgBtI9oq28ea0QSwiltB07BZfEB4CSezE+ 4h9d+90b28kWzL6X35g55Atj/SAth/9GGWQi/Dq3bjwSAJnT+3lnX/GIt91byNAs/bjg +HDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=lDhxJmQBtkzHfTqnsROmvvw+nko2t66pqLMqjvhuI3g=; b=HKCEgYuCw4lk5ckFOgYZu9qzWwl6lVVMMD4fe8hGenFwMQCqk/OlmMjO+VAK2GeSmV z0ng47p148Abmgk3PeGzTjGrkxOlIJ10JudX3RbJVP5z1fQSnhd0RcfrFkQmu31nG6XA 23et77e7QKKTsiRTyDj4YIKR0q2iys+kiCw8miPPZcfLxZaYzUTJ8PZ7/ajhtjo+k8uE 33mc3+2mqR7Wt6reoRREzSpWRueWC9G9ZQ0R51zBe2a0jEmxoKqEcUW/TUTEEj9VaUXj ZqkRYlq08m43ea9qF59iJpSUhasdwK89e/kquzFMkE88FCENyJtwi0ank5BtFESYON/M LNEw== 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 r28si17125011pfk.101.2017.11.14.02.52.06; Tue, 14 Nov 2017 02:52:17 -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; 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 S1754092AbdKNJbK (ORCPT + 87 others); Tue, 14 Nov 2017 04:31:10 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:35352 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754061AbdKNJa5 (ORCPT ); Tue, 14 Nov 2017 04:30:57 -0500 Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id vAE9UfsU061572 for ; Tue, 14 Nov 2017 04:30:56 -0500 Received: from e06smtp11.uk.ibm.com (e06smtp11.uk.ibm.com [195.75.94.107]) by mx0b-001b2d01.pphosted.com with ESMTP id 2e7wcdsnce-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Tue, 14 Nov 2017 04:30:52 -0500 Received: from localhost by e06smtp11.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 14 Nov 2017 09:29:27 -0000 Received: from b06cxnps3075.portsmouth.uk.ibm.com (9.149.109.195) by e06smtp11.uk.ibm.com (192.168.101.141) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 14 Nov 2017 09:29:24 -0000 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id vAE9TOel5177706; Tue, 14 Nov 2017 09:29:24 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D1290AE056; Tue, 14 Nov 2017 09:22:50 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B0F24AE04D; Tue, 14 Nov 2017 09:22:49 +0000 (GMT) Received: from localhost.localdomain (unknown [9.40.192.198]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTP; Tue, 14 Nov 2017 09:22:49 +0000 (GMT) From: Kamalesh Babulal To: Michael Ellerman Cc: Kamalesh Babulal , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, live-patching@vger.kernel.org, Josh Poimboeuf , Balbir Singh Subject: [PATCH v4 0/3] ppc64le: Add REL24 relocation support of livepatch symbols Date: Tue, 14 Nov 2017 04:29:07 -0500 X-Mailer: git-send-email 2.9.3 X-TM-AS-GCONF: 00 x-cbid: 17111409-0040-0000-0000-0000040E0AF7 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17111409-0041-0000-0000-000020B0BD4E Message-Id: <20171114092910.20399-1-kamalesh@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-11-14_05:,, 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=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1711140129 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset drop the approach of creating new stub type for livepatch symbols and offloads the issue of handling local function becoming global to kpatch tool via gcc-plugin. In function restore_r2(), a check for sibling call is added and also improves the error message on unexpected op-code. v4: - Drop creation of stubs for livepatch symbols and offload solution to kpatch tool. - Introduce check for sibling call, when restoring r2 after branch. (Josh) - Improve error message in restore_r2(). (Josh) v3: - Defined FUNC_DESC_OFFSET to calculate func_desc offset from struct ppc64le_klp_stub_entry. - Replaced BUG_ON() with WARN_ON() in klp_stub_for_addr(). - Major commit message re-write. v2: - Changed klp_stub construction to re-use livepatch_handler and additional patch code required for klp_stub, instead of duplicating it. - Minor comments and commit body edit. Josh Poimboeuf (2): powerpc/modules: Don't try to restore r2 after a sibling call powerpc/modules: Improve restore_r2() error message Kamalesh Babulal (1): kernel/modules: Add REL24 relocation support of livepatch symbols arch/powerpc/kernel/module_64.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) -- 2.9.3 From 1584056477942936432@xxx Tue Nov 14 15:39:38 +0000 2017 X-GM-THRID: 1584056477942936432 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread