Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp4101348rdg; Wed, 18 Oct 2023 15:20:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHpzlaI2xmssmcLSFq3h2p73BxQkYsQqLWgY2zxBtmKitL6RP9OOtDp/0j4VJJB9+A/43Di X-Received: by 2002:a05:6a20:4295:b0:13f:13cb:bc50 with SMTP id o21-20020a056a20429500b0013f13cbbc50mr182927pzj.25.1697667600099; Wed, 18 Oct 2023 15:20:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697667600; cv=none; d=google.com; s=arc-20160816; b=OgDF0ENZVAdN9MB+tuVfXk8fYEHTFaDzBV53T1qPwHPBD+thsvIIQZoIIQIb2JO5+9 /nTw4Tc1KyX3zf7Eo0h9rtn17VKa2/kqm+XnMWmBp/Psr8QGkbOdLnxKUdilOwnemb4j UvAu0NoDl466wKChwegYEz+6/MB0eV3RWFnOGnwCxHcBmDK9yWBHATEWYCSa97GL2lKs zSRnczjCBlmj1PKvEJlZDRR1K9zGZdSQrQwGbKSMPh/PBFJonixSrp2KyUqWh3O0o6WE KHLpn4yWV3fpGAFzAWx+6m11AxWhhDOyfYuEpEmq9uVXpPIDs/NXL9s013onqinQQ8vj fmUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=2jRC9HVva9g3R+13NnFT9VqaHyccZUivRNg5/IFJX6s=; fh=MWEwNlw3A2rT0uc18RbY73fFL+NsVCheE5V/7qk+/jM=; b=0AugMsk2nU4EMkVDhcQwXhVJt7qgG1JXyYXBhmh4Ijj0iRj0whMrG/1k+FchmdymP6 giyW1Ljg9qOOHxqH94jxoG88aU1X2MTdvTpumX7MarH/UarGL+KtMkNgiQg+J+Ssb47B efo/ez/bEwstJiAKCrHKBLdl8/fgY/G0IPtUsm1xWiCy66ttN2jEd+M6lVX0ONqUb8Di e05JbavI3R/h2hcDZdr8Z0T5xGHUuQegrEbDdj3Y+iknAoecYxQbJf8grRyMwXoDVVsf JDMfU3qQ8oLhTppON/IW4SqviLa5BPd6I2Wil10exm91IUP4ETX8pnTPD5+wFjVTgeIf 4KAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=HQBMX0H4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id e3-20020a656883000000b005b55df27b44si2976169pgt.340.2023.10.18.15.19.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 15:20:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20230601.gappssmtp.com header.s=20230601 header.b=HQBMX0H4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 0728E820DA1A; Wed, 18 Oct 2023 15:19:57 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231458AbjJRWTy (ORCPT + 99 others); Wed, 18 Oct 2023 18:19:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229726AbjJRWTw (ORCPT ); Wed, 18 Oct 2023 18:19:52 -0400 Received: from mail-qv1-xf34.google.com (mail-qv1-xf34.google.com [IPv6:2607:f8b0:4864:20::f34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A291113 for ; Wed, 18 Oct 2023 15:19:48 -0700 (PDT) Received: by mail-qv1-xf34.google.com with SMTP id 6a1803df08f44-66d0f945893so1462716d6.1 for ; Wed, 18 Oct 2023 15:19:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1697667587; x=1698272387; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=2jRC9HVva9g3R+13NnFT9VqaHyccZUivRNg5/IFJX6s=; b=HQBMX0H4B2/9k64d3g16id6iszi3Pj0EfQgt9ElDAr55mNzyrZmLPLAgWdornsU9gc xGSjBAk9GGQb9bhL+oITDz+6djiHEvfGM35hEAo98i/z9ZloKb7GQHWMaHGLV0cpy84Y ZCQYlWX0xAeBw31SfL6OV3jPsVyHI9gxioA//ikj1tlpH38L3loO4+ENmjszM4qq1qfR 0gFhCup4BH7ifELkbC+IHrLoYWf1dZNqDtDonNKlN7dLJvAtcYOozXPePh1oliAwnhY/ b+Sr6ahk4ZpL5wKO1W1HrYXbb6BBv4z2zJL/hW3bjEdn5+XKsFcm4DxuWFe3eQzYCQ3S YR3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697667587; x=1698272387; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=2jRC9HVva9g3R+13NnFT9VqaHyccZUivRNg5/IFJX6s=; b=Olifj/bBFETdGq1vrSBvEJ4uKU9yQshmxauZYQJ1MdwU+QaP3AiDd9fkV3+RljYmsj xJ33GNdUF4dC7TVDdU7LV4AiDeo+JsVY9Y2W6VT1XsyDDMLsA5UGOc6XMM+zTX7jVSdH WE4tfODkplMz4vrhw+l++FCzYq/2GQHJ/jCIdsLCKFHcoHyVqoIEbMOjaSuCXKv9nzgq uoZneH4bSViytRcPP/PIoNTZ17f0uSAVdaLTInzchzrzg8SkF6b4ljb0Au8CM3OTx+U1 tvX/eTzSMljEqH9woozPq1iw3uyHMtZ1ONkvahE4ImUi6doQDLXDf8zjoPygdPsrvWXz xDDw== X-Gm-Message-State: AOJu0YyTZLpXuV+JlZwYgm1FC/l5mrY9xZXbGGkkUvbMAkZ2Z//dmLLY N/GgxbjeAkkdgri4UqJ9plahTKM5JnRSW6GBG80= X-Received: by 2002:a0c:dd92:0:b0:65b:12bb:56cb with SMTP id v18-20020a0cdd92000000b0065b12bb56cbmr319625qvk.12.1697667587161; Wed, 18 Oct 2023 15:19:47 -0700 (PDT) Received: from ghost ([208.116.208.98]) by smtp.gmail.com with ESMTPSA id da12-20020a05621408cc00b0064c9f754794sm280752qvb.86.2023.10.18.15.19.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 15:19:46 -0700 (PDT) Date: Wed, 18 Oct 2023 15:19:43 -0700 From: Charlie Jenkins To: Andreas Schwab Cc: linux-riscv@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Eric Biederman , Kees Cook , Paul Walmsley , Palmer Dabbelt , Albert Ou Subject: Re: [PATCH v4 1/2] riscv: Add remaining module relocations Message-ID: References: <20231017-module_relocations-v4-0-937f5ef316f0@rivosinc.com> <20231017-module_relocations-v4-1-937f5ef316f0@rivosinc.com> <871qdr938h.fsf@igel.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <871qdr938h.fsf@igel.home> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 18 Oct 2023 15:19:57 -0700 (PDT) On Wed, Oct 18, 2023 at 08:47:58PM +0200, Andreas Schwab wrote: > On Okt 17 2023, Charlie Jenkins wrote: > > > +static int apply_r_riscv_sub6_rela(struct module *me, u32 *location, Elf_Addr v) > > +{ > > + *(u8 *)location = (*location - ((u8)v & 0x3F)) & 0x3F; > > I think that should use *(u8*) on both sides. Yep, thank you. - Charlie > > -- > Andreas Schwab, schwab@linux-m68k.org > GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 > "And now for something completely different."