Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3074991pxj; Mon, 7 Jun 2021 01:20:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJweo90cbRX0gQrCmUxm3w+si09sUSOSF5i2jMSjQZmH+wdXncDPd7pXZaRSGvA1Jc79UkDt X-Received: by 2002:a50:fc84:: with SMTP id f4mr18871379edq.252.1623054058488; Mon, 07 Jun 2021 01:20:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623054058; cv=none; d=google.com; s=arc-20160816; b=ugc+qb01N5nD5O8bOJzfGRZO2yZA+InN9UdY3usvO0+zhALMC4gxgIhmliJaY0Gyxe sdB/075FEhh4vpdMvbQVYc3d83wInYI20X4A+8orNqFho63r1t+RLI5t0WXgiFTcoVkU nbCPf5qC6bw1Kcelr90ou2wNxXUCG2VcSgfvCRC8uL1OW4x6b+XlghOTnV3RfWkUx40E RA6z5/7VE4uH415GcWtv6jXo6yPvdr8IUW+l9zsB6E3WHzQz2M01YFTdss3OcjS0/5Qj ZtZDOXdtmB8UbA/dvODxnf1CKHAU4wqc1Bjt6gUaYcmRYHdI1wHv2DNdJXGxHl1NGUKI ejqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Wpsm446VyaKPzhp5TMpr9XEEcJZ06UFuqrM7pz71NoY=; b=iYLhUdZr5mxE4XJ9pPVIq2DEOe+b5Sn8rtE6O6dAGPdhDgWbXyo4fK8YtcvDeE62ZL jJDua/hvVtHmlCNQO4FyN4OOUJzlibmmWGEoTW8b0BHccxTQivdegtncC1ouVsWhAHp3 mopOegyaKMoUePpziGgmJHi4n/2jO3tX3XFkef6NmR+J+pIMTLWZYWflQ+T9ZYCvAL6g gkDFkVYEOsQMe7XAiNJLJctMIZzpTBcRk04MuOVePtflrxsfL8oY4r/9uQN4EfcvqHAL uanc9NQmQBXwEKFvFKgLtUOKEcq3LmXkBYSyWif+HmdM2RSACTul7vSXCxLynnzfY5bG +35Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=vMChmujZ; 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 ba17si8075511edb.400.2021.06.07.01.20.35; Mon, 07 Jun 2021 01:20:58 -0700 (PDT) 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; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=vMChmujZ; 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 S230250AbhFGISb (ORCPT + 99 others); Mon, 7 Jun 2021 04:18:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230211AbhFGISa (ORCPT ); Mon, 7 Jun 2021 04:18:30 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D76FBC061766 for ; Mon, 7 Jun 2021 01:16:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Wpsm446VyaKPzhp5TMpr9XEEcJZ06UFuqrM7pz71NoY=; b=vMChmujZeDPt614cftbApytsqe 48Ti5sSTUqJZ3rUjuuzB3/IOzlHiqEU5FTIzvlyl+M2Tz49ftyXSumJYVjO/CUsLQvjy1pQieL//v AVlUDEiVfeNzIMP/4swU920El6RPKMSMGOrZKNsryBYJrjhB9tI1AwSEYYQM3TneDwAxWccFkJgkO pcPVnpFlrCszm7GZUm8fOLURVWBDAApZJjZdC6PEx2WNkiMKhV9z/G5Sm60E4vUNNlAt1nXR2mIeg 6NfJro6H5xfUdz2XVyUBSKWt8wB5xcxhbbtWBAsmVvUZme7YoyeJ2g5AzwnkoCLmdSCXVonCnjwV/ LioFt8nQ==; Received: from hch by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1lqAQL-00FWKe-DM; Mon, 07 Jun 2021 08:15:56 +0000 Date: Mon, 7 Jun 2021 09:15:53 +0100 From: Christoph Hellwig To: Barry Song Cc: hpa@zytor.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] x86/kprobes: remove free_insn_page since it is same with the common weak function Message-ID: References: <20210601040856.22080-1-song.bao.hua@hisilicon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210601040856.22080-1-song.bao.hua@hisilicon.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 01, 2021 at 04:08:56PM +1200, Barry Song wrote: > free_insn_page() in x86 is same with the common weak function in > kernel/kprobes.c. Plus, its comment "Recover page to RW mode before > releasing it" seems insensible to be there since resetting mapping > is done by common code in vfree() of module_memfree(). > So drop the strong function and its comment in x86 totally. > > Signed-off-by: Barry Song It also is the same for s390, so please remove that as well and remove the __weak.