Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1600659iob; Thu, 5 May 2022 04:59:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwyPlW+Y/EBl94bvG8DrnS6wOg8WqZKpy37fGvupcO4WQXFFBIBnWFgSk02vyaqYRJH7+dv X-Received: by 2002:a17:906:c192:b0:6f4:9911:3fc3 with SMTP id g18-20020a170906c19200b006f499113fc3mr12377718ejz.408.1651751967376; Thu, 05 May 2022 04:59:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651751967; cv=none; d=google.com; s=arc-20160816; b=ZGLZcfPENfD7YeFoLCzdGOmQF23N50IekedRciy7zteuKegR1VERScLgLNbz/OBB4J xgMPQDkQg9AeJ2mnmD6mlXzO+XgpL91XO4wBKIuLmfHj4eemDrudwHtZdcC2UOiG691A lx40uG5Tw2hcnieSmZcoypFgzWL+VFJE1a6MxkSuNMosX+eyVV6JDuM9/dgdZX7+Yc73 Vkn1IoQgV+Qx2QsOzR7NT94i94angBNM7RkRxOnKXu8PdjBhXQ68PiUoZS7GkfJhC+jd Kl9ebFKhCS5iEMBVridFRWZvxvXf1X4qO24gfzmBAQLMEuTms7bdw9HemwZYzMvgCCcg ccNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=E92Kc9QSviCU9YuL/lueHEE6ZF2RofRyLsLK9SHZEnk=; b=faY4pl+JDMSgEMfUrTul0sqH0OOfjiJeYYCyPC6U2royKdbck9ADdkS1j/fS1ZtSlx MY2AEB6KEV6eUDZ4QR/2GZaaP7/HagqS1R4yVBYA2qAHS+U/CjrMlZCu5SxKcyiOY4TV RoWtcQQrGXeP4tOg0bnp9X4+lj3I66WnqfjHXdjUa4wCMW+8YX9cKMyl2xc4WEZAr0Ln Ksw3oYlPFMB3ht7yYaDOHDdeP+xEumUXilEGtyQpHJgasJYOCM6kzS78RDnwkdjReaRV p/kYxvQnyfwlFPMYqpfuo+32Q3nGERMyTMMUHWyTbP51euBA0h4mot8nFNpqqIXHAjm4 KxOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="R8J/TT07"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dk7-20020a170906f0c700b006e89be49929si1855062ejb.762.2022.05.05.04.59.03; Thu, 05 May 2022 04:59:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="R8J/TT07"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353563AbiEDQqC (ORCPT + 99 others); Wed, 4 May 2022 12:46:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353581AbiEDQqB (ORCPT ); Wed, 4 May 2022 12:46:01 -0400 Received: from mail-yw1-x1131.google.com (mail-yw1-x1131.google.com [IPv6:2607:f8b0:4864:20::1131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4211646B14 for ; Wed, 4 May 2022 09:42:20 -0700 (PDT) Received: by mail-yw1-x1131.google.com with SMTP id 00721157ae682-2f7b815ac06so21962577b3.3 for ; Wed, 04 May 2022 09:42:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=E92Kc9QSviCU9YuL/lueHEE6ZF2RofRyLsLK9SHZEnk=; b=R8J/TT07oYrufV49kAQ3YHUSBYTRi7VEcKUu2DfAyEmJj8PSITMqzsIwsc42rLW0Z0 8nbWQlU/3RQsgiPhNrJHyn+j7/r1tHvcdC6pOIDDLMIUbbuQvWvEJ4v0ZwdnCpqcnsPy IHt0rZWHVl/W+W61m/2q9L4SKno8dnBt1LDMp/DSlvHFouKxP9qED+QMAElGsdC7DfnT EI2ogF/23MepFXVgjP+dbKj0WscxN2MPaSE6Hq2SP2VvUE7CEX0KNydbZL0JAY1rsn0A qaimhFH3XvY8D6dEErQUro/i8/3eN0G150VIlkGrGf3Zt+8rLud9fme683BmVndhj7Rf TTDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=E92Kc9QSviCU9YuL/lueHEE6ZF2RofRyLsLK9SHZEnk=; b=KgOcDfy+eL9IWG+cosauTX7MiEsfdIbvaYNJDY4S0zYiktpUjSPNNBCflCDVb+GV/3 xl3DtKBfHTrqVGufRaQi7fGgSvceQ8qMZdUgt1mHeNWKHqLgFnowOGP6AUsikZ8StPYT vW5qjs+IHgDeqUAEI+2SqLWeWs8T1WX4kk6PHh+wxwj1f2egFrDNXpD5c02kbrIZjfMg t3ShKdd767+nf3BPbm9wkpLoGUaVtiAj4h2CdwlRDr+hdgiQPVNIM7H1GbRj1t2eLYd3 BCkrsyBcR0Dr8C5BLDpCqO2K6V+BJzuQmylADCr/dP4jty5dsyfpNnx2IREJ++in75hx whEA== X-Gm-Message-State: AOAM532YSYZHZUbs5wkqNvVbcSwq2q0vgsIV1kAlg3tkXkeu8lEwjuZU nwNkiUxOKFZ6+Nc/b1ThWWjg8LEJah7VFDGyFzyx0Q== X-Received: by 2002:a81:1e14:0:b0:2f8:c348:9c62 with SMTP id e20-20020a811e14000000b002f8c3489c62mr20003528ywe.291.1651682539258; Wed, 04 May 2022 09:42:19 -0700 (PDT) MIME-Version: 1.0 References: <20220429203644.2868448-1-samitolvanen@google.com> In-Reply-To: From: Sami Tolvanen Date: Wed, 4 May 2022 09:41:43 -0700 Message-ID: Subject: Re: [RFC PATCH 00/21] KCFI support To: Mark Rutland Cc: LKML , Kees Cook , Josh Poimboeuf , Peter Zijlstra , X86 ML , Catalin Marinas , Will Deacon , Nathan Chancellor , Nick Desaulniers , Joao Moreira , Sedat Dilek , Steven Rostedt , linux-hardening@vger.kernel.org, linux-arm-kernel , llvm@lists.linux.dev Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mark, On Wed, May 4, 2022 at 9:18 AM Mark Rutland wrote: > I wanted to give this a spin on arm64, but I'm seeing some very odd toolchain > behaviour. I'm not sure if I've done something wrong, or if I'm just hitting an > edge-case, but it looks like using -fsanitize=kcfi causes the toolchain to hit > out-of-memory errors and other issues which look like they could be memory > corruption. Thanks for the detailed bug report! It definitely looks like something is wrong with the recent switch from std::string to Twine in the Clang code. I didn't see this issue when compiling the arm64 kernel, but I'll take a closer look and see if I can reproduce it. Sami