Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2785097rwd; Fri, 26 May 2023 11:08:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6mT2e6CsYnqz0fyQSRGpUC3jONeaCW1V7VetgTJMAWPajgihNlRdkgD8nUKsueHWasnISE X-Received: by 2002:a17:90a:1c90:b0:253:8469:db5f with SMTP id t16-20020a17090a1c9000b002538469db5fmr3312472pjt.46.1685124497649; Fri, 26 May 2023 11:08:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685124497; cv=none; d=google.com; s=arc-20160816; b=MwXpsYZzP4n0iE815yFvelOpa4F/zl8Ka2a6fJYBpy/4Luyk9NQacteese+xm8pvbp spcLOxIJN0fD2Ybn4BZ+uhPQiP/92LY9xsH8kdhpkKxTtcVuoMRrenMVqZK4K+fWogJG GN+b8czV+gUfPWtkGTe49fHOhixTf/pHutXUOAR55CRRdH/s/BmNxKgwBy8T+iDALzbZ CyLPxiXRDw7Ww2E6X5eQnxe2+eEf5GBdviAVNYIqAj3qidzxGnFfS9NKQbIG3vAQGU87 gENPQhK2ZYXYyZpKjRxJBZEE83rB/gdN0cw3i7J5jGJysYLXprgWO+nHR2gWDYGD0KfS JJ1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=0D6WbSVOOoLij0lL6DdC5RpcoX/GKI6yMPGw+Ha3zz0=; b=ZmF0Tk8BzngpbF8OhDPKEDcrs5o6zmvPEG6iA70uEKmwPpBXHFz7wQ/7fae9KBhUf4 eP/BiGrRUUntQ1a5XGcO6WVF6JPxHGaeOapjLxTR5wR0F1aLGkYf7zjpUaPupIt0xXSC /VEX401UICpOXe/z05J1NrKRsWD1BtLZHQfkkkEEKQoLJ8VMWTqGLgRQhTLt8nHgPsXv gTI1RepCGpALkX0NpDWv+wxpf5y5LlljWiAfrWyDvDYe/pBmQSDzxTmpZeLmKosMJgbu PUx4PLKxmb31EWhXMx6Ji1uLOoscYmcZBgPtek2+tF4zVr/m6eiBo2LnF4I/ytzMgcwO xLuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=cZxEoVnF; 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 bv8-20020a632e08000000b0053ef0f20fe3si2644544pgb.600.2023.05.26.11.08.02; Fri, 26 May 2023 11:08:17 -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=20221208 header.b=cZxEoVnF; 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 S237598AbjEZRvi (ORCPT + 99 others); Fri, 26 May 2023 13:51:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230024AbjEZRvh (ORCPT ); Fri, 26 May 2023 13:51:37 -0400 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31995A4 for ; Fri, 26 May 2023 10:51:36 -0700 (PDT) Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-3f600a6a890so5935e9.0 for ; Fri, 26 May 2023 10:51:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1685123494; x=1687715494; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=0D6WbSVOOoLij0lL6DdC5RpcoX/GKI6yMPGw+Ha3zz0=; b=cZxEoVnFtH9NiD2VhDbf/zG5cfw9ZLaWOsXjjKtYs86XzN+vd3zszgQ7WFnG2eKSEI DJF5CLmQBJSwfyatczR4yjuPOBgHEdAm+mIApIwfppx2GWCMGn4hUIF7kQlIWKIwEaMx SplnfaKRSUvk2vFLJfbAgcFsMwhQx6B1yNnVKkbHQGy3w9J4eXr/cfK3/174TAISqCSq ltOk5xF0GqI8dB1fzm8vW9S6Vnrm7+0Zb/NXrQG6Pwpbn55SP65CSA1TO7aitwo2o2MO 2Y7Jj2GM7g2qG+I3TDCt9Zj0IYCHdd94CY/If1Tc2KvvkoBgSs5hyY6/+kn0RujPAM/D paKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685123494; x=1687715494; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0D6WbSVOOoLij0lL6DdC5RpcoX/GKI6yMPGw+Ha3zz0=; b=f6T5oexSuGCsulq4L+eNd377aCcdiklKPUrujchwJOv+Vm84q/sjO2LwEaEXmxgdFC lF/j2GD7rXG6j5/UYbrZSV6DOH1ny7+9SrpXP2f6BulLocXhOkNdm/X6ONwHBZ5gfm5J +NCldhesCkQvH7W4Iox4UOFBuV8/tUSxJITge/PTGMu1sO71MlSVqmK7oepOcI8qJ0Hy OlXoRSrfJ8kTvexVo0lTZ/6Cn0rVlY+BoXRy01WyrM2LAGfJA32oYP8XJznUYyy5QMJl WsC0CSEU2La2XJbqrxK5xMYkNdYQ/tAuHH17JMiE6eIye1lzhesmZZmUYlck17swyuaB aoiA== X-Gm-Message-State: AC+VfDwviAIRIRFm7CWxgl2V+1flAgw+44aGFC6zCKymt5CzlAwGqjwY JkaXk961YnphFA7uFyuww6SUkOER2Bkka05ldizRKQ== X-Received: by 2002:a05:600c:3b0d:b0:3f1:70d1:21a6 with SMTP id m13-20020a05600c3b0d00b003f170d121a6mr13262wms.0.1685123494510; Fri, 26 May 2023 10:51:34 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Eric Dumazet Date: Fri, 26 May 2023 19:51:22 +0200 Message-ID: Subject: Re: x86 copy performance regression To: Linus Torvalds Cc: LKML , netdev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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,URIBL_BLOCKED,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 On Fri, May 26, 2023 at 7:40=E2=80=AFPM Linus Torvalds wrote: > > On Fri, May 26, 2023 at 10:25=E2=80=AFAM Eric Dumazet wrote: > > > > arch/x86/lib/copy_user_64.S:34:2: error: invalid instruction mnemonic > > 'alternative' > > Ok, that's just odd. For me, assembler mnemonics - very much including > macros - are case-insensitive. > > It's actually documented that way, with the example given is for a > macro that is declared as "sum" and then used as "SUM": > > https://sourceware.org/binutils/docs/as/Macro.html > > And if you want to use macros as pseudo-instructions, that's what you > want, since typically assembler instructions are not case sensitive. > > But yeah, your build environment is clearly different, and yes, we > declare the macro with all caps, and other places use it that way too. > > Clang? Yes, we use clang here ... Hmmm [ 25.532236] RIP: 0010:0xffffffffa5a85134 [ 25.536173] Code: Unable to access opcode bytes at 0xffffffffa5a8510a. [ 25.542720] RSP: 0000:ffff92f08159bcd8 EFLAGS: 00050206 [ 25.547960] RAX: 00007ffc3b16c318 RBX: 0000000000000000 RCX: 00000000000= 00170 [ 25.555118] RDX: 0000000000000170 RSI: ffff92f0944d4c28 RDI: 00007ffc3b1= 6c1a8 [ 25.562275] RBP: ffff92f08159bce0 R08: fefefefefefefeff R09: 00000000000= 0002c [ 25.569432] R10: 000000000000002c R11: ffff92f0944d5bb0 R12: 00007ffc3b1= 6cff2 [ 25.576588] R13: 00007ffc3b16c1a8 R14: 0000000000000001 R15: ffff92f0944= d4ac0 [ 25.583746] FS: 0000000000000000(0000) GS:ffff934e404c0000(0000) knlGS:0000000000000000 [ 25.591862] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 25.597624] CR2: ffffffffa5a8510a CR3: 000000010e33c003 CR4: 00000000003= 706e0 [ 25.604780] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 00000000000= 00000 [ 25.611936] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 00000000000= 00400 [ 25.619092] Call Trace: [ 25.621545] [ 25.623648] ? _copy_to_user+0x20/0x30 [ 25.627409] create_elf_tables+0x528/0x5a0 [ 25.631520] load_elf_binary+0x9e7/0xce0 [ 25.635453] bprm_execve+0x2bf/0x5c0 [ 25.639040] kernel_execve+0x2ad/0x2d0 [ 25.642799] run_init_process+0xa9/0xb0 [ 25.646648] ? rest_init+0xc0/0xc0 [ 25.650059] kernel_init+0x82/0x1a0 [ 25.653558] ret_from _fork+0x1f/0x30 [ 25.657145]