Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp264665pxk; Wed, 2 Sep 2020 00:04:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwv62XlTD41kBAkwjGpYMm+ci6g3JfoCIJENKdsHhtcBsm2PyiyY6d6Fw0psfaas8eTtOLL X-Received: by 2002:a05:6402:1151:: with SMTP id g17mr5273199edw.227.1599030274531; Wed, 02 Sep 2020 00:04:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599030274; cv=none; d=google.com; s=arc-20160816; b=bEK5Jg75xlaEi0JCFwAa6maaqoGoNPWkj7fJnWN/dLLU+GXU9Cp4CjM142+zYeQyGB MD35lw0bRxTzxWVGX3ct0wquMUbuD796te2xZnKFqBSt26h4eMH2Ih92KGeeVq9FF7J9 sttwyj8hMjN0TQ+hJfVZ0KhVH1hdUHknqijSkVHK+2jo6IJyPnnpvrrB0UhnT24pHIJc 0Y0oROIaeNG6cVc6hmC7LBP6yXndV7N4iS7JQhJsVQLNDqtL9hExcdwJtHDK5EtZ2TWf ziYbie78nz8FeMTttSbRYvy819920RlnNdyiJywGrvBAK7hL3iHJydrdq5mVvOBFjKyy 2yQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=wETnSd18KmVdHGiQrOod3fMaukGGVo26iGV8/eRIszM=; b=oQ3n7zTaNQoxWFqMfvkfhxaEKqOOr07+Jm6koj6Voonm2XicQs/okFNSc9OMIq22Bk dUSCkYSnBSv2G2fhmXHKlVR0aHGn0EsanpoxenJqEhlqXX1S87xLDstNryMJioAysUTq DbASJvjRhdOvhrAbOYZkPdCnVBM1lVV7RlVjOutfacGcrORHDxrkV32sKyQ+emJzKGH2 oi8OWZ/WjNPTQy7zzeAKveE0F6r9GU3BhK0hwuizeWYwYaZfwrlJM/5NXY2COq83AAr8 Itkyknf02Ff8AFsuXn44Wkq8EJqmLtHNCj0xLjJWj7h81giSZlffIzyHeo4bKX/lX8aQ 3V9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=CLBKV4PG; 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 q3si2077754edg.429.2020.09.02.00.04.11; Wed, 02 Sep 2020 00:04:34 -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=fail header.i=@infradead.org header.s=casper.20170209 header.b=CLBKV4PG; 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 S1726536AbgIBHDN (ORCPT + 99 others); Wed, 2 Sep 2020 03:03:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726130AbgIBHDM (ORCPT ); Wed, 2 Sep 2020 03:03:12 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1181C061244; Wed, 2 Sep 2020 00:03:11 -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=wETnSd18KmVdHGiQrOod3fMaukGGVo26iGV8/eRIszM=; b=CLBKV4PGA/m9rvGdAFkFNGKZjc lyqcoXfM+nT2VZltV4ENPo/Wbd66EiRaInTSiAHgTc3YpYFkpzJo79C8gXhwNgWjKmUMfdWL2st7/ CiwzilPZ3XU5h7ZktGAdRFFpU5FHY0Noq8TOskFZDyLMKW8rXGZ3sw8/IHhg1Xd6EG2y4vvQEFSQC CdurELo2ykFBaUROmKYFFzGWMlVcCdHp2+ULoyTNsEQLCXooNQ9dJrZ4kdzbuqMgQhfD1CEGX2DMN HtrWjfaV2ImjScJ6JuOyqAkgUCY9pczdm709LqLVd/ZLsFx+ewG3jMKD7iaj78+WR9ece9/IQ0RQA doMVzapQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kDMmr-0005hv-IF; Wed, 02 Sep 2020 07:02:29 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 4D6703012DF; Wed, 2 Sep 2020 09:02:26 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 0D12B2B774673; Wed, 2 Sep 2020 09:02:26 +0200 (CEST) Date: Wed, 2 Sep 2020 09:02:26 +0200 From: peterz@infradead.org To: Masami Hiramatsu Cc: Ingo Molnar , linux-kernel@vger.kernel.org, Eddy_Wu@trendmicro.com, x86@kernel.org, davem@davemloft.net, rostedt@goodmis.org, naveen.n.rao@linux.ibm.com, anil.s.keshavamurthy@intel.com, linux-arch@vger.kernel.org, cameron@moodycamel.com, oleg@redhat.com, will@kernel.org, paulmck@kernel.org Subject: Re: [PATCH v5 00/21] kprobes: Unify kretprobe trampoline handlers and make kretprobe lockless Message-ID: <20200902070226.GG2674@hirez.programming.kicks-ass.net> References: <159870598914.1229682.15230803449082078353.stgit@devnote2> <20200901190808.GK29142@worktop.programming.kicks-ass.net> <20200902093739.8bd13603380951eaddbcd8a5@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200902093739.8bd13603380951eaddbcd8a5@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 02, 2020 at 09:37:39AM +0900, Masami Hiramatsu wrote: > On Tue, 1 Sep 2020 21:08:08 +0200 > Peter Zijlstra wrote: > > > On Sat, Aug 29, 2020 at 09:59:49PM +0900, Masami Hiramatsu wrote: > > > Masami Hiramatsu (16): > > > kprobes: Add generic kretprobe trampoline handler > > > x86/kprobes: Use generic kretprobe trampoline handler > > > arm: kprobes: Use generic kretprobe trampoline handler > > > arm64: kprobes: Use generic kretprobe trampoline handler > > > arc: kprobes: Use generic kretprobe trampoline handler > > > csky: kprobes: Use generic kretprobe trampoline handler > > > ia64: kprobes: Use generic kretprobe trampoline handler > > > mips: kprobes: Use generic kretprobe trampoline handler > > > parisc: kprobes: Use generic kretprobe trampoline handler > > > powerpc: kprobes: Use generic kretprobe trampoline handler > > > s390: kprobes: Use generic kretprobe trampoline handler > > > sh: kprobes: Use generic kretprobe trampoline handler > > > sparc: kprobes: Use generic kretprobe trampoline handler > > > kprobes: Remove NMI context check > > > kprobes: Free kretprobe_instance with rcu callback > > > kprobes: Make local used functions static > > > > > > Peter Zijlstra (5): > > > llist: Add nonatomic __llist_add() and __llist_dell_all() > > > kprobes: Remove kretprobe hash > > > asm-generic/atomic: Add try_cmpxchg() fallbacks > > > freelist: Lock less freelist > > > kprobes: Replace rp->free_instance with freelist > > > > This looks good to me, do you want me to merge them through -tip? If so, > > do we want to try and get them in this release still? > > Yes, thanks. For the kretprobe missing issue, we will need the first half > (up to "kprobes: Remove NMI context check"), so we can split the series > if someone think the lockless is still immature. Ok, but then lockdep will yell at you if you have that enabled and run the unoptimized things. > > Ingo, opinions? This basically fixes a regression cauesd by > > > > 0d00449c7a28 ("x86: Replace ist_enter() with nmi_enter()") > > > > Oops, I missed Ingo in CC. You had x86@, he'll have a copy :-)