Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp2092966pxf; Sat, 20 Mar 2021 04:22:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhA38mn+go7BJmGq8siItUNslY3UjN8Yx5u1LR653ex16rRSXefN2J+U9ZXDlGXWugKqlM X-Received: by 2002:a05:6402:95b:: with SMTP id h27mr15155469edz.93.1616239341009; Sat, 20 Mar 2021 04:22:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616239341; cv=none; d=google.com; s=arc-20160816; b=vPDMlglnvkR/Gf9yllicWmUL6MYeDN4CuK6sKRqWMMf/bPW7rXgdE4Py+SJ6mLpB5M lcxm1JJy8llifTEEKHkt2qh5aAEapF7LzS0S7pKIi+yadVEAJG0QsOe2zyq15A+fLmuU qCk06gmzVgW2xm00UdAuNjr9MWiMW5/SXp6WZM3dnp1IRkD9hAghzPmdXr0fEOHfaz6M v3aaFrD1e0I2fX4+tREmSUpigG/p0nEd6/OXUYtu9K0nPYZGJhcEb+BQmJGOtt+yvE7a iVEKxRRPLoVwuIoFCbnWdhZ9MzM6nwkWbhH+j4pFcPtaMYsec3SFL0Iq601f4YN1+Bic FBUA== 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=nbCYfgiOtpWpaHW3UiZCAz94mqRPq79OLUJJtrbRI7I=; b=sIz3HMldK1yjT29XkNE1y2OoflgXNKxWWRZ9bh+pr3Hl2prgx6IsYZXySR+dLd5w6T tX8dDVhOVIUEER4MbNg4gPZk+YNY8kNi4vB1LNR68fWbRzCEz6SWhK1/J95q0ei1q8Ws peu4ljKcGEhlpEYdRRUI8GQusT4HllmXuCr7cQVI08MFu9IwdJUSN+FYzsm86qsA2N/c G/gfkVDXV3EwO2BVXur2DpwBAOoiqynKOh2xvCG5W4GT73WPPiGR5K/50b+JnkZi3CCq 1PBbTK1XmXsyk1VadCEmk93HouCGT9CGaVj0nroi7nVLK36ofsvjaKZSp0vexDsYBapv 9g6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=saJooZ4Q; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 24si6567114edv.533.2021.03.20.04.21.58; Sat, 20 Mar 2021 04:22:20 -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=@gmail.com header.s=20161025 header.b=saJooZ4Q; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229445AbhCTLQp (ORCPT + 99 others); Sat, 20 Mar 2021 07:16:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230022AbhCTLQM (ORCPT ); Sat, 20 Mar 2021 07:16:12 -0400 Received: from mail-yb1-xb2c.google.com (mail-yb1-xb2c.google.com [IPv6:2607:f8b0:4864:20::b2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95427C06178A; Sat, 20 Mar 2021 04:16:12 -0700 (PDT) Received: by mail-yb1-xb2c.google.com with SMTP id a143so1066279ybg.7; Sat, 20 Mar 2021 04:16:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nbCYfgiOtpWpaHW3UiZCAz94mqRPq79OLUJJtrbRI7I=; b=saJooZ4QrInaIbgLt/0TQ3KfUuHi93CFnRBZGfCVMa169EMUxKgXQEsup67xw7zWVm RGn7HXCP1/e9rX6n64NQE9GC9WpxKcp1MUjjSpZI/jUTlTsavzKi4WTwDwuuWI/90ZUk IBsgecR4tixEFWVm+XoBpKDnrP3BBvCBU2IBqM+Ce6WKzN7PSp09e1JSks8tTMsQtbXe HrBzJyBsiGnvEJf0BM1ARZS+zEXTmiUAAvQ9fW0A6MUIHA2nvddHnzZLPtO1vlp6qiS2 +HusYyo48lAx7b34v70zwVsInwcnDMOn3J6mpHtXq2KiCXXPDUup0TWz97tM0E6O+vTh WVOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nbCYfgiOtpWpaHW3UiZCAz94mqRPq79OLUJJtrbRI7I=; b=q11rnOvQiYV6fKGo8DecoBZvKSr9M+nVfF1xH7M65NOciZIO6J5KiQ550Ak5UEwfOx me1R2O1fELdgUKiKZOSXZMR1GpL9RZDWAub1AcRm5jhmT6JeUlm+3+OUix3nDvLK4UOJ mOoQjG+P8+lqZyfAeDmyc5TsofYtN2V1FkhwMs9vNFcC63KnULVJFQpcBRdxmsGNLTlS dxBX2AshUFXKS7noV/I4I9pACkaGXsCY/EQtKvp9RO1wbRj1Wxp8+qMuRkuwvC5bOymA apRRcVKmcLqAOqHqwwWGb44+a+54cBifsSk50k4EcDRxMMkH5FXKuUN/k4mEUDq81j1/ K3FQ== X-Gm-Message-State: AOAM530mGMNhEerMqwr9Albqiu7MYnF98k6j+FWCW90kp3j+zgs5iWoc iWDlMtHnPWBnRannXZRFSsngrp0GZ8hASOubS7R+sH4t1Z4q5Q== X-Received: by 2002:a5b:449:: with SMTP id s9mr11448764ybp.115.1616222982003; Fri, 19 Mar 2021 23:49:42 -0700 (PDT) MIME-Version: 1.0 References: <20210319175950.509fcbd0@canb.auug.org.au> <20210320162734.1630cc55@elm.ozlabs.ibm.com> In-Reply-To: From: Miguel Ojeda Date: Sat, 20 Mar 2021 07:49:31 +0100 Message-ID: Subject: Re: linux-next: Tree for Mar 19 To: Stephen Rothwell Cc: Heiko Carstens , Stephen Rothwell , Alex Gaynor , Geoffrey Thomas , Finn Behrens , Wedson Almeida Filho , Adam Bratschi-Kaye , Miguel Ojeda , Linux Next Mailing List , Linux Kernel Mailing List , Vasily Gorbik , Christian Borntraeger , Daniel Axtens Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Mar 20, 2021 at 7:07 AM Miguel Ojeda wrote: > > Sorry for that, and thanks a lot for taking a look. For the Rust > support I had to increase a few limits, mainly the symbol length. Let > me check and I'll report back. Reproduced on s390. However, under defconfig, one also needs to revert kernel/livepatch/core.c to avoid triggering the assert, i.e.: diff --git a/include/linux/moduleparam.h b/include/linux/moduleparam.h index a33f3dcde593..eed280fae433 100644 --- a/include/linux/moduleparam.h +++ b/include/linux/moduleparam.h @@ -18,7 +18,7 @@ #endif /* Chosen so that structs with an unsigned long line up. */ -#define MAX_PARAM_PREFIX_LEN (256 - sizeof(unsigned long)) +#define MAX_PARAM_PREFIX_LEN (64 - sizeof(unsigned long)) #define __MODULE_INFO(tag, name, info) \ static const char __UNIQUE_ID(name)[] \ diff --git a/kernel/livepatch/core.c b/kernel/livepatch/core.c index 080ebb94d012..1e1699cc3fd6 100644 --- a/kernel/livepatch/core.c +++ b/kernel/livepatch/core.c @@ -213,7 +213,7 @@ static int klp_resolve_symbols(Elf64_Shdr *sechdrs, const char *strtab, * we use the smallest/strictest upper bound possible (248, based on * the current definition of MODULE_NAME_LEN) to prevent overflows. */ - BUILD_BUG_ON(MODULE_NAME_LEN < 248 || KSYM_NAME_LEN != 512); + BUILD_BUG_ON(MODULE_NAME_LEN < 56 || KSYM_NAME_LEN != 512); relas = (Elf_Rela *) relasec->sh_addr; /* For each rela in this klp relocation section */ @@ -227,7 +227,7 @@ static int klp_resolve_symbols(Elf64_Shdr *sechdrs, const char *strtab, /* Format: .klp.sym.sym_objname.sym_name,sympos */ cnt = sscanf(strtab + sym->st_name, - ".klp.sym.%247[^.].%511[^,],%lu", + ".klp.sym.%55[^.].%511[^,],%lu", sym_objname, sym_name, &sympos); if (cnt != 3) { pr_err("symbol %s has an incorrectly formatted name\n", Cheers, Miguel