Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp738529pxb; Thu, 5 Nov 2020 11:37:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJyuv8PEY1ylx2xhKKb8h68t49Mq+9Hlg5P7a8fvUsfVvvdsyaIuSyPlUw/ZTl4Vwl047LvY X-Received: by 2002:a17:906:4104:: with SMTP id j4mr3991119ejk.439.1604605079510; Thu, 05 Nov 2020 11:37:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604605079; cv=none; d=google.com; s=arc-20160816; b=NnRnDSY3Fm8yQidpIOHxaUFyvCjLHnXWDju/QXnajAzCT6nL5e9BYHiJ4mWoll1VLD JzwakHgYCqGWeO/qKN4nF0vubtRowHuE/sCOwOel1LfRWu51oh4fzE4RqXdBTlZylv2u Pu4RAs+sldQ1BwVxrOcYzpVrc9D0jKT7wS/LWW62fSg2SAFs0ojkZPHKWY9l8KGNCz71 f8nxPKIDYkrojK1zhHXlrrQp9tIXOcHA7WWQ7g/PDeO6B+BMj7L5w80H4v+xzEtrT+GA Jm/9CJ0WZ12QJxD+5fDvVtar44Ah8tFv3vYM/BeH872AkmlDQK9OXMfPS9lPlPmHQSQG YNsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=J+I5mGplYFJN7wumht41kxt/rlVCg3PQN1A+ZAhOzuc=; b=qIBE9DmSb9ZpsMMebxrIn8DpnreysAU6qhHDhFFOKrfu2IsEMSyHCUTpXrs9pzBVP8 m25IVkgTTQ7gYjg1AeCvG5A0vLCTaaGjDj00+hZJo6AtGNmgOLhLZVlmmHaD3bIPvaWL blFQHEvA2c/jjdecHAHTSnhNYUd9q3AWXKS4vk+4YChcI1fKq9tq/1Cs17yV7dZRhI9r r0AS3TXHaRGuydgBkTEwOU8POcilN4hlVxA/uXJrpJHym74knliJIBdqhO8b5CGk5L+f plPo7x/tZn9iJlBqI3zxE71YBirL9RFD3rrd9TPlGN8hutOFOlW1IENzLIgM5aCiE85Z xrSw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h2si1836835ejd.547.2020.11.05.11.37.36; Thu, 05 Nov 2020 11:37:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732281AbgKETfh (ORCPT + 99 others); Thu, 5 Nov 2020 14:35:37 -0500 Received: from jabberwock.ucw.cz ([46.255.230.98]:55774 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732233AbgKETff (ORCPT ); Thu, 5 Nov 2020 14:35:35 -0500 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 4A8861C0B82; Thu, 5 Nov 2020 20:35:32 +0100 (CET) Date: Thu, 5 Nov 2020 20:35:31 +0100 From: Pavel Machek To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Masami Hiramatsu , Ingo Molnar , Sasha Levin Subject: Re: [PATCH 4.19 078/191] ia64: kprobes: Use generic kretprobe trampoline handler Message-ID: <20201105193531.GA19723@duo.ucw.cz> References: <20201103203232.656475008@linuxfoundation.org> <20201103203241.558540091@linuxfoundation.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="zhXaljGHf11kAtnf" Content-Disposition: inline In-Reply-To: <20201103203241.558540091@linuxfoundation.org> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --zhXaljGHf11kAtnf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > From: Masami Hiramatsu >=20 > [ Upstream commit e792ff804f49720ce003b3e4c618b5d996256a18 ] >=20 > Use the generic kretprobe trampoline handler. Don't use > framepointer verification. >=20 > Signed-off-by: Masami Hiramatsu > Signed-off-by: Ingo Molnar > Link: https://lore.kernel.org/r/159870606883.1229682.12331813108378725668= =2Estgit@devnote2 > Signed-off-by: Sasha Levin There's no explanation here why this is good idea for -stable. Plus, this seems to depend on commit 66ada2ccae4ed4dd07ba91df3b5fdb4c11335bd1 which is not present in stable, so this will likely not build due to lack of __kretprobe_trampoline_handler symbol. (I don't have ia64 to verify): $ grep -ri __kretprobe_trampoline_handler . =2E/arch/ia64/kernel/kprobes.c: regs->cr_iip =3D __kretprobe_trampoline_han= dler(regs, kretprobe_trampoline, NULL); $ I believe it should be dropped. Best regards, Pavel =2E.. > - hlist_for_each_entry_safe(ri, tmp, &empty_rp, hlist) { > - hlist_del(&ri->hlist); > - kfree(ri); > - } > + regs->cr_iip =3D __kretprobe_trampoline_handler(regs, kretprobe_trampol= ine, NULL); --=20 http://www.livejournal.com/~pavelmachek --zhXaljGHf11kAtnf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCX6RUAwAKCRAw5/Bqldv6 8i+CAJwNRSKg9fCi/1xiwSGC2BApgG0m3QCgiRnrgI0hqmKSMayrd73Y4yAZMx4= =UOTC -----END PGP SIGNATURE----- --zhXaljGHf11kAtnf--