Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5673743imm; Tue, 12 Jun 2018 11:21:52 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJAqg3l+cFzjBm5ozAYjh84RPKE53lZQkHNzxd2+92cA4BqeNM6Np9faB/YS+hY/xqoivWV X-Received: by 2002:a17:902:aa95:: with SMTP id d21-v6mr1580865plr.73.1528827712085; Tue, 12 Jun 2018 11:21:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528827712; cv=none; d=google.com; s=arc-20160816; b=oBdwO+boLGvo5YJsB3PCPlKJ8p5d5LmxHzarEJ8n8jHP+vLq1c1NavKDA223t9fYCE H64WFfS9wMA5LuCYwLfKpCvLaPlCeV1J5RrCka0OAAhgThNTE0Z8zYvPVgQEMb00xlQD GLICf8g19iMrQj6V+pialxH7xbHziwJrSHu7QUBOqwPfT3V3XYHDhVhkOSlOBvWDyMU4 A1fpOoEJkFrm5Mt4FpZLRtXc8BlL5RLYxBbJCCk1/SAsPyDYh3hoQvSPoWuyJUXl5lkf 9J+b32YEdY8YuRygSvS9vFmES2WRp7S3Hc9t1xzfVsZCgiZbFd9/y6NcPoPvLTvbjcXw qv/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=si6MOoP6RDPuWCv2+Q6EgDn/kXN6Bcwd2/cgCDa/2Ng=; b=RSajxj4RQuQbwHRmcQO5JeIx+ndYi0vtBJhZWGHTz5unHlP3HtlypXE1j8qXQu1147 tnowR7xJzTYR3j7Ou+mS45Ip35am0DGxbNCvPHL/1oIrgU2/0qIow857pHmXBoXGoOSP OrqTteCz9gDqAK9XRbxcAF+0ygSq5XcefnrMbgjZgCpvO3wo3r6A//Bv9Cs6yle8ebJD DT7mwpOLEZS1pCtgGtIPzVEGvWZC7S7BXZSR3doB7Wg+uLlrB93yMDCfEzzfO/HipcqS LUdIF0UBe5wPytNdyb7yX5BFp0pc7Vw6bd0Yel/uBy6oWzMivZhRLBBLZ1vMVsEbOF2N lx1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hpjUwJug; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s193-v6si569707pgc.372.2018.06.12.11.21.37; Tue, 12 Jun 2018 11:21:52 -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=@gmail.com header.s=20161025 header.b=hpjUwJug; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754090AbeFLST7 (ORCPT + 99 others); Tue, 12 Jun 2018 14:19:59 -0400 Received: from mail-vk0-f66.google.com ([209.85.213.66]:43803 "EHLO mail-vk0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753511AbeFLST6 (ORCPT ); Tue, 12 Jun 2018 14:19:58 -0400 Received: by mail-vk0-f66.google.com with SMTP id d74-v6so14692494vke.10 for ; Tue, 12 Jun 2018 11:19:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=si6MOoP6RDPuWCv2+Q6EgDn/kXN6Bcwd2/cgCDa/2Ng=; b=hpjUwJugAH1JQFG95b/Jzyv7wLFeVZDE9bgqqLMGgzG0EHqhJA8vgQfQVR1aLPkN+p XdpvGNLGcAKHJ314eOF7MpfSfcDrl9h7DjwYUs1W2KKSk6ee6jkOZSiiYleJyF3hkMhc 0M8lpmTWU/JN5YAIms/BKsnx58M58+br2ImXtG66HIoZex37L7Zjef4GNi5znD73Hrzy imu6BzW+VrfztuO0t9ugJ5fkKQs/Lm+D++u0EXAvugElG+mIQLYUDhMxuvHBMqHZBf+6 ST357hEboVyt7DpxciYC7xcnK9UaJbcODVtbjFHq643PBV1S16gUh+p0wn3Y6+tMrKd2 NT2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=si6MOoP6RDPuWCv2+Q6EgDn/kXN6Bcwd2/cgCDa/2Ng=; b=iN2s8yl//ce8ETi3x9Ad0VBwGFDEgS/7kLVjk3QZdaj9+nhzpnHhUglYl1tgdhmRqP rqNErE9bvRx1XKz5P9E0t/jXGrtDiCpLtLkSQhIyG1NAK+zvb/PaXy8nYny6UQARUrBD ciVnufSvmkRaKkZhTqeA2hyLBXQNvpxFoobmfL9PlVKvSxjNJmNUTpTBo+Y1AQ1dPRXQ bx9whE9yNM3cc+2W+usfqQOmHtLdNcVkFLky/yyzeEA9qx5VzlK/nAx5DmjdkSnmRjha HtLZf1t0JZTYJ0YZAlxPiVB+uQsv+39/C8RUgeSx8jPaBWhkhvKW1YHoA77F0WZRXAFW rETw== X-Gm-Message-State: APt69E0w8XdF+tbAtpff5iPihK/rUaDXU9Y1e9QCIMs6Lj4+qlIA9y9w tQMHk7sR2pPgsFLxdPQN9ma3KzQJFvA0tP+ReMQ= X-Received: by 2002:a1f:5244:: with SMTP id g65-v6mr1031230vkb.28.1528827597988; Tue, 12 Jun 2018 11:19:57 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9f:3c04:0:0:0:0:0 with HTTP; Tue, 12 Jun 2018 11:19:57 -0700 (PDT) In-Reply-To: References: <20180612030006.h7a4mag76aqqifod@ltop.local> From: Luc Van Oostenryck Date: Tue, 12 Jun 2018 20:19:57 +0200 Message-ID: Subject: Re: [PATCH 3/3] riscv: fix __user annotation for __copy_user() To: Palmer Dabbelt Cc: Atish Patra , linux-riscv@lists.infradead.org, LKML , Albert Ou Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 12, 2018 at 7:12 PM, Palmer Dabbelt wrote: > On Mon, 11 Jun 2018 20:00:08 PDT (-0700), luc.vanoostenryck@gmail.com wrote: >> On Mon, Jun 11, 2018 at 12:01:37PM -0700, Palmer Dabbelt wrote: >>> >>> OK, I'll try and figure out what's going on. We've had a handful of >>> headaches trying to get things like '.align 2; .align 2' to actually >>> produce >>> no NOPs for the second alignment directive, which is surprisingly >>> complicated due to the aggressive linker relaxation we do. >> >> >> OK. I imagine indeed but note that no linker is involved here so, >> if the problem is still present, it must already be in the assembler. > > > Ah, OK -- in that case then it's just not a bug. In RISC-V land we handle > alignment as part of relaxation in the linker, so if you're looking at the > output of the assembler then you'll always see a bunch of NOPs for every > alignment directive. If you 'objdump -dr' you should be able to see the > relocations that get emitted, there should be a R_RISCV_ALIGN that points to > the run of NOPs. Ah OK. Indeed I see the R_RISCV_ALIGN. Thanks for the explanation. -- Luc