From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752824AbbG0JIE (ORCPT ); Mon, 27 Jul 2015 05:08:04 -0400 Received: from casper.infradead.org ([85.118.1.10]:37979 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752254AbbG0JH4 (ORCPT ); Mon, 27 Jul 2015 05:07:56 -0400 Date: Mon, 27 Jul 2015 11:07:37 +0200 From: Peter Zijlstra To: linux-kernel@vger.kernel.org, mingo@kernel.org Cc: jasonbaron0@gmail.com, bp@alien8.de, luto@amacapital.net, tglx@linutronix.de, rostedt@goodmis.org, will.deacon@arm.com, liuj97@gmail.com, rabin@rab.in, ralf@linux-mips.org, ddaney@caviumnetworks.com, benh@kernel.crashing.org, michael@ellerman.id.au, heiko.carstens@de.ibm.com, davem@davemloft.net Subject: Re: [RFC][PATCH 5/7] jump_label: Rework update logic Message-ID: <20150727090737.GO19282@twins.programming.kicks-ass.net> References: <20150724175209.814173117@infradead.org> <20150724175823.013936034@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150724175823.013936034@infradead.org> User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 24, 2015 at 07:52:14PM +0200, Peter Zijlstra wrote: > @@ -330,8 +318,7 @@ static int jump_label_add_module(struct > jlm->next = key->next; > key->next = jlm; > > - if (jump_label_type(key) == JUMP_LABEL_JMP) > - __jump_label_update(key, iter, iter_stop, JUMP_LABEL_JMP); > + __jump_label_update(key, iter, iter_stop); > } > > return 0; That is the fail; the arch_jump_label_transform() function (at least on x86) double checks that we're changing the branch, so we cannot unconditionally write whatever it should be.