From patchwork Sun Sep 30 16:49:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 147863 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp3016149lji; Sun, 30 Sep 2018 09:50:20 -0700 (PDT) X-Google-Smtp-Source: ACcGV62c8tapzoBFKg4fRUnGCMK1LMnkr7yivvvfmb0QS5HnFCB0sIpA8i2KxfGkMNXNZ7zH6hnV X-Received: by 2002:a63:5922:: with SMTP id n34-v6mr7010513pgb.134.1538326220692; Sun, 30 Sep 2018 09:50:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538326220; cv=none; d=google.com; s=arc-20160816; b=dMBCEM2CqYwjYvs1CoJqwCrKdD8MMbU67oyoXZAmPhou9qs0eEC3lcjwfqftaj/bJn fPx98FUSbRqoSVYQgeE14zDQ3GIAEtb9AnAC+ZDIQiRmmT/uZ+5/yaqQc/Qx4qmyJkVW b9SKpOQRyQYVlAoPlUJS0qf8xZh65ZJISCZCi3U0xUDKKnuZKjk0AJFSDBNsjZiEAXom 1Xlgup+++HAzhKuvqXOS2n0VhM/BlSZJgi4tn250Xh6rXwoEscwk8CdLrnIwd3ixXA04 ISx0KqJDpI4GpbnrGd2g63S6+wxkP1CnIS0QlvbFOIb34GLcDYwnLU9gsZ/Fu/zxF/Da 0ueQ== 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 :dkim-signature; bh=zQQypsis8U9V5SwYSdiwkV97643L7/h1ZNc5LuarjFA=; b=IfoSRawYHNg2V0k5ACvNOtYt8Lt52A6vTrjW8ypKtEkRJ7WoRjCBbeegw9all321WI +efNtVsJPAaRtbSq07x19U0kh1fkniIrRZR8CTNOzYtELD8Z3QxFidDy+n/4gBcwqhm1 /RjRW2vwcDkEtCFMXGuc0LH3Iljy008n78TPcxN+0a/OVRJED0PErKSG8IgMKTecuqPc O5vDzqntSQMh1xHwAKPVS0M2RO4qKkXwoFi7pj4wgwgg5MGhJu6ZSK/xdX0x7LBHj67b GzHiAplj1WBCf+rf0YKb80ddMoOZfLMXLj8hJHcwEt1SYNiqfcyjdG0AsdkxTDQhJZPA CArA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OodV8v3b; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t1-v6si9723338pgf.262.2018.09.30.09.50.19; Sun, 30 Sep 2018 09:50:20 -0700 (PDT) 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; dkim=pass header.i=@linaro.org header.s=google header.b=OodV8v3b; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728504AbeI3XX6 (ORCPT + 32 others); Sun, 30 Sep 2018 19:23:58 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:38982 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728192AbeI3XX6 (ORCPT ); Sun, 30 Sep 2018 19:23:58 -0400 Received: by mail-wr1-f65.google.com with SMTP id s14-v6so11217563wrw.6 for ; Sun, 30 Sep 2018 09:50:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=zQQypsis8U9V5SwYSdiwkV97643L7/h1ZNc5LuarjFA=; b=OodV8v3bobbNdNmv+cyAs7PWon/jUCL6IXhX8zoP6ZMFXVleoUbzKbG9D2/GRaF9QG BsJm819S8GwMLZLRsjwV6EgU2r+6udwYyxDkA1GKMycHcSavhwU6BKEmQKKW7jFETad4 iA/XnQaMWoKEtuGi8dfLEvZFNd+PsFxPnWbGk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=zQQypsis8U9V5SwYSdiwkV97643L7/h1ZNc5LuarjFA=; b=C/8JgqwykeUoVAdjz36Y5zPkdZxE/VsrC1pOQuknsqZw7ICowacN6rx7MR4MJkLXiz NcQRtl9wqcg8fFr4Exh1XV7PUHReb4ZRyAeOvPP3d8x1O5R2PVhAPjz+QsO5mW8xkqyV yfaUo7Jr1NGqz3Y2xSruQLqEWA1W78CIPMDsA+cVExvhrWYvlS+VV7EtiwRWzwAhS8M7 3wX9DLqn6PahjARJSdAzeJhgRfpZCIm6k28oVLDJj4f9Dzd26fn1LfflP4nIXOrUv447 UaxDiz1i+GNbHxjDB9oZZAZbVyjdaeaDPFlbJWF2UTU8DsA3dCTbZq/9ddSMLKlJwQD0 89FA== X-Gm-Message-State: ABuFfoiP6HoEh8XeXgXjOZKVePiT4cIEQCzEbvMYL0QZdEow1hg9yHQG nXvPbMjwaK1YjpfsWip2rvkJ2Q== X-Received: by 2002:a05:6000:14b:: with SMTP id r11mr5040655wrx.300.1538326211066; Sun, 30 Sep 2018 09:50:11 -0700 (PDT) Received: from dogfood.home ([2a01:cb1d:112:6f00:60c8:8590:40da:4e8e]) by smtp.gmail.com with ESMTPSA id s26-v6sm6740812wmh.44.2018.09.30.09.50.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 30 Sep 2018 09:50:10 -0700 (PDT) From: Ard Biesheuvel To: linux-s390@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux@roeck-us.net, Ard Biesheuvel , Heiko Carstens , Kees Cook , Thomas Gleixner , Ingo Molnar , Martin Schwidefsky , Jessica Yu , Peter Zijlstra Subject: [PATCH] s390: vmlinux.lds: move JUMP_TABLE_DATA into output section Date: Sun, 30 Sep 2018 18:49:50 +0200 Message-Id: <20180930164950.3841-1-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit e872267b8bcbb179 ("jump_table: move entries into ro_after_init region") moved the __jump_table input section into the __ro_after_init output section, but inadvertently put the macro in the wrong place in the s390 linker script. Let's fix that. Fixes: e872267b8bcbb179 ("jump_table: move entries into ro_after_init region") Reported-by: Guenter Roeck Cc: Heiko Carstens Cc: Kees Cook Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Martin Schwidefsky Cc: Jessica Yu Cc: Peter Zijlstra Signed-off-by: Ard Biesheuvel --- arch/s390/kernel/vmlinux.lds.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 Reviewed-by: Kees Cook Acked-by: Heiko Carstens diff --git a/arch/s390/kernel/vmlinux.lds.S b/arch/s390/kernel/vmlinux.lds.S index 4042bbf3f9ad..457713f48734 100644 --- a/arch/s390/kernel/vmlinux.lds.S +++ b/arch/s390/kernel/vmlinux.lds.S @@ -64,9 +64,9 @@ SECTIONS __start_ro_after_init = .; .data..ro_after_init : { *(.data..ro_after_init) + JUMP_TABLE_DATA } EXCEPTION_TABLE(16) - JUMP_TABLE_DATA . = ALIGN(PAGE_SIZE); __end_ro_after_init = .;