Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp978672pxf; Thu, 18 Mar 2021 16:56:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxK9WD5EZf8Z9QuHGZr7AJ/rBv2DmxUXHmyO2oYNeQCCy7KbvOfpOYuswBVOMip7XVtUy9n X-Received: by 2002:a17:906:7d7:: with SMTP id m23mr1240089ejc.205.1616111807673; Thu, 18 Mar 2021 16:56:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616111807; cv=none; d=google.com; s=arc-20160816; b=DT1H7dDmFv8gNMBRsGOjLxz5UR1/vf0g7jJ74+XRG3pGRA7e4WGVXFz3vY5QMpoi3f ye3LRy6IBiWp/T6+x8pLbMWKbs+iJEn4BGh7JhsjJdID+N2Axep+Qc39ItWorId3KvQ9 R4Om24ajG+IJEXfseYZ5KCyCIU2qxEy/66OCVlGv7WFUTG9hH/yZVz/olCDPXCBVzSUq 23WYoHJIXneZX/pxG0C1CJ0y0S9nEIclQ4CxwJjJQ9vin4FxZYac0UOvEaEkSaFUhmIW q001yEzx4KFSjQXxZTvj60NrgdETyg2cCgBPZuP5phTnSbha9KL1tNZrgHVkYAz3xI0k IwXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=8WJ6qFjujuk84HtZNxKJ3XhHk2SJ/KWCJ14sG1Kz83s=; b=vhGgDNS3J1DuNg5w7x0KedplIBs2oSKo7zFgR0/olcWX9UjqqjHVjbntoRYpE13od0 YXGJwlU3lASn1oCv6fmtpe0m10LiMAzpPmy60zgAyKo0XeILNuTwedmraoI54radu1G8 XIWKpknIs6Z4F84yPao7+S3X8zT0BgovfbeydleZz5c/HLdfoJoGNFx9kZqpRQScVvsQ UCg3an/Vf0MN6xyOg1/PCFJjTQ7RVqZqOLORGZR1zLeTIeAYVcBFF83KsJKR2/CFpugN N4M+D6uF9jPTC5bG59EXM2xJ2gzrMCpHKrZ2zamCA/G4GHZluVuwypydDR+8Ksw3N+ZP hjAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=CdkMN8s1; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d2si2563081ejz.77.2021.03.18.16.56.24; Thu, 18 Mar 2021 16:56:47 -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=@chromium.org header.s=google header.b=CdkMN8s1; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229769AbhCRXzS (ORCPT + 99 others); Thu, 18 Mar 2021 19:55:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230204AbhCRXyn (ORCPT ); Thu, 18 Mar 2021 19:54:43 -0400 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E676AC06175F for ; Thu, 18 Mar 2021 16:54:42 -0700 (PDT) Received: by mail-pf1-x42f.google.com with SMTP id q5so4612443pfh.10 for ; Thu, 18 Mar 2021 16:54:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=8WJ6qFjujuk84HtZNxKJ3XhHk2SJ/KWCJ14sG1Kz83s=; b=CdkMN8s18bbHU7BWYnXpDrRJmP+p4loTeWJJyqcx4HuZvW1Vda8z98Y2ASlcHTIJGT kfGOknuMJnd5wDtVN36rhZHHw/YqtK0aGw06udFaXsPxfcgyueVtA7HHrkGtkhobE5G7 5dNTO5PUp7Y4vbrkQ5AISjIAmImTZQcvd/6NA= 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:mime-version :content-transfer-encoding; bh=8WJ6qFjujuk84HtZNxKJ3XhHk2SJ/KWCJ14sG1Kz83s=; b=J8pMsB1L1ksge0wnui14kdWKYG7zmius9OpTFu/AC1txl9OOUwS+pxFxzTlOkdNU5X VQ1um7GALZZAIkBxjLRzKFbnoexcXHxFRyvmbbzzEplVH6rkGzR6dN3STT4AMjoycJrP dYJwaR9VUt3bqcOYJB5z2BJKKkjTRG3GNB03WUK7fK+hmW9RytCSc2k1queuc9oV1Rau aLInz+q+zryU5LxY276plzRW2gbnJ86ZAwt7/NOL1ZBmP/OCfAJ1NHymQ2z53pCTDxiS VnRIHkc2eC/g6CXOGjsmwMFpe4aB0FH1mt7NiKXyH0KGY5rDdRlqZT0fbSIQypUE89fA E2rQ== X-Gm-Message-State: AOAM530rOPqAWpMG1B0Kkv9PcgNnUhHqGhx3dckcgYFCJGRVvW3bDyhR JGnK8DQAWZUTh9bmYH2sAyqCEA== X-Received: by 2002:a62:e119:0:b029:1f8:9345:a099 with SMTP id q25-20020a62e1190000b02901f89345a099mr6618116pfh.21.1616111682271; Thu, 18 Mar 2021 16:54:42 -0700 (PDT) Received: from drinkcat2.tpe.corp.google.com ([2401:fa00:1:b:dc70:2def:a801:e21b]) by smtp.gmail.com with ESMTPSA id t7sm3295816pfg.69.2021.03.18.16.54.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Mar 2021 16:54:41 -0700 (PDT) From: Nicolas Boichat To: stable@vger.kernel.org Cc: Nicolas Boichat , Alexandre Chartre , Arnd Bergmann , Benjamin Herrenschmidt , Christopher Li , Daniel Axtens , Greg Kroah-Hartman , Kees Cook , Masahiro Yamada , Michael Ellerman , Michal Marek , "Naveen N. Rao" , Nicholas Piggin , Paul Mackerras , Peter Zijlstra , Sasha Levin , Thomas Gleixner , clang-built-linux@googlegroups.com, linux-arch@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sparse@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: [for-stable-4.19 PATCH 0/2] Backport patches to fix KASAN+LKDTM with recent clang on ARM64 Date: Fri, 19 Mar 2021 07:54:14 +0800 Message-Id: <20210318235416.794798-1-drinkcat@chromium.org> X-Mailer: git-send-email 2.31.0.rc2.261.g7f71774620-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Backport 2 patches that are required to make KASAN+LKDTM work with recent clang (patch 2/2 has a complete description). Tested on our chromeos-4.19 branch. Patch 1/2 is context conflict only, and 2/2 is a clean backport. These patches have been merged to 5.4 stable already. We might need to backport to older stable branches, but this is what I could test for now. Mark Rutland (1): lkdtm: don't move ctors to .rodata Thomas Gleixner (1): vmlinux.lds.h: Create section for protection against instrumentation arch/powerpc/kernel/vmlinux.lds.S | 1 + drivers/misc/lkdtm/Makefile | 2 +- drivers/misc/lkdtm/rodata.c | 2 +- include/asm-generic/sections.h | 3 ++ include/asm-generic/vmlinux.lds.h | 10 ++++++ include/linux/compiler.h | 54 +++++++++++++++++++++++++++++++ include/linux/compiler_types.h | 4 +++ scripts/mod/modpost.c | 2 +- 8 files changed, 75 insertions(+), 3 deletions(-) -- 2.31.0.rc2.261.g7f71774620-goog