Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp2890262rdb; Wed, 15 Nov 2023 13:50:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IGsuM+wubs/3MkPyDIAC2GI0lLsBbA/Voje2DvE61re+px4lccwnBHbAK7MWN7NGXWhLooT X-Received: by 2002:a05:6808:912:b0:3b5:8742:c091 with SMTP id w18-20020a056808091200b003b58742c091mr14341669oih.49.1700085036991; Wed, 15 Nov 2023 13:50:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700085036; cv=none; d=google.com; s=arc-20160816; b=KN6vMMae8zzDOgkA95WdU2LvT2hJd+WLlSDt8sxN9kqAU5tQDe0XCSpqWDKorWUVnR /XdUysUInwy/A4l+8I3Qr2eNt8/a1mICISOjgDFPPPWoUHkKomw5oFOExtcFi2or0MuO 8E7J8JeqXopr4JeRpOfJAsbHWW/1LWZkXHSW8pzrsHZotcPG2xEo3qC42ID+Ah+Ze6dS uGReqdciHxFsEqY4iiqaFHFF8kca/i7xPh+webAiVOdNVMsk+5Cs9AavssSC33h1NzdX cPxJAB+eSny52B+zVLDnJR9JyG90PoDsdMIXKGE0kvrhXMDWLR4LVUNTjBxQgjy75OLC 0NdA== 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=euaKLHnf5NJceWFhMbsDdv1xMlqpCbfs4YJAKx1yvno=; fh=OWEPqVNoDNCOxjOcFUxeJTl3zCBbx5znrXcPpfE9vKs=; b=Dqf0CDYcFOYS9lYORGZIMPRdeDJtRIQp5rcRq53imbDEgxSuo0AOptNoR+KtVsHrUb iXGzJk1ekyGR5kjOn8IVasKWmbY4nHLEV1fWHZyja6krg6UWi/cX/IuRMht23epXBu1/ rCg0HirzhrApMkMc+KLCXV6EEbPfAns4tEMy4qEty/ljbOc7Ii2lgbZLPGgoH0kNvqNo fmJvn2E1OJOkiuHV/E2+CaLyCcCQ+8Gshuox5i4goT0W3/JZtL0sNG+k6nvfMH71hXDT 5y/GMcLFNhXqi8+Y6ZFk7rWZQeT++Wup5+jcA1x7/AIWnhYMCqexD/inHl44JP5FQwPx VzLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=c4mSnWgl; 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 e7-20020a635447000000b0056b024a4dd0si10203613pgm.614.2023.11.15.13.50.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 13:50:36 -0800 (PST) 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=@linux-foundation.org header.s=google header.b=c4mSnWgl; 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 0417A802F85E; Wed, 15 Nov 2023 13:50:33 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235036AbjKOVuc (ORCPT + 99 others); Wed, 15 Nov 2023 16:50:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233253AbjKOVua (ORCPT ); Wed, 15 Nov 2023 16:50:30 -0500 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 031FB1A4 for ; Wed, 15 Nov 2023 13:50:27 -0800 (PST) Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-99bdeae1d0aso23880366b.1 for ; Wed, 15 Nov 2023 13:50:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1700085025; x=1700689825; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=euaKLHnf5NJceWFhMbsDdv1xMlqpCbfs4YJAKx1yvno=; b=c4mSnWglBKRwKbzvaa1GTvwlD261qX+VUfnzEMxj+bCUx+LuIgcG6FQRntun3s66tV PmeSIs63p8ww+j7kuZaFpeR0a2eugJ9kt5fPLqScRNUSzRRcDXaXObwgaLYIdm3NU32V VAGRzYOqEj2hyvZoOxfbmf3JOsEsnTTR/UUXc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700085025; x=1700689825; h=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=euaKLHnf5NJceWFhMbsDdv1xMlqpCbfs4YJAKx1yvno=; b=hMZm3t3ltVHYOqNbwIeC9LZ75wjme9X99UdpjxvklckPNcONlQWBBf+yObzSceHsfs Fjt1IzpUel+SiEi7DtokSiN4vET9XrhcJhwhSX//p58kUtA0hrqtSOrbWvmcFshYw83h iUAK/3Niw9+Or6GwMVHEI5PNnm91TJtij2UU87f7Mk+fsFVHv5VEQc6bP8lrK3AhnIhB jP4+5yzKE+4wpjEsgZ46d8s5lMmT/0l8OiQsa572g1QfZH5ihUYdRp8yHsIa9fSVutm2 AXKF5uOTWtbTEynhLyeq39Z4Yr6/lH4kLyKZo3yJhwwbKkeAMEyB2wJUxQuVnxPCd659 EJSA== X-Gm-Message-State: AOJu0YzsDsieY8hgIu31aZHia+tAnC7xZ7TpJTD0Db7sCWq9wquSpkan u64a8dHNK60F93DrTgLl5jk7cEo8L3MBqrKt3hK5ZVqn X-Received: by 2002:a17:906:ae91:b0:9a2:28dc:4166 with SMTP id md17-20020a170906ae9100b009a228dc4166mr10501414ejb.75.1700085025321; Wed, 15 Nov 2023 13:50:25 -0800 (PST) Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com. [209.85.208.43]) by smtp.gmail.com with ESMTPSA id dt10-20020a170906b78a00b009a5f1d15644sm7465686ejb.119.2023.11.15.13.50.24 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 15 Nov 2023 13:50:25 -0800 (PST) Received: by mail-ed1-f43.google.com with SMTP id 4fb4d7f45d1cf-54553e4888bso215671a12.2 for ; Wed, 15 Nov 2023 13:50:24 -0800 (PST) X-Received: by 2002:aa7:d49a:0:b0:540:b1fb:b630 with SMTP id b26-20020aa7d49a000000b00540b1fbb630mr10875459edr.27.1700085024118; Wed, 15 Nov 2023 13:50:24 -0800 (PST) MIME-Version: 1.0 References: <202311061616.cd495695-oliver.sang@intel.com> <3865842.1700061614@warthog.procyon.org.uk> <4097023.1700084620@warthog.procyon.org.uk> In-Reply-To: <4097023.1700084620@warthog.procyon.org.uk> From: Linus Torvalds Date: Wed, 15 Nov 2023 16:50:06 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [linus:master] [iov_iter] c9eec08bac: vm-scalability.throughput -16.9% regression To: David Howells Cc: Borislav Petkov , kernel test robot , oe-lkp@lists.linux.dev, lkp@intel.com, linux-kernel@vger.kernel.org, Christian Brauner , Alexander Viro , Jens Axboe , Christoph Hellwig , Christian Brauner , Matthew Wilcox , David Laight , ying.huang@intel.com, feng.tang@intel.com, fengwei.yin@intel.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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, 15 Nov 2023 13:50:33 -0800 (PST) On Wed, 15 Nov 2023 at 16:43, David Howells wrote: > > LD arch/x86/purgatory/purgatory.chk > ld: arch/x86/purgatory/purgatory.ro:(.altinstr_replacement+0x1): undefined reference to `rep_movs_alternative' > ld: arch/x86/purgatory/purgatory.ro:(.altinstr_replacement+0x6): undefined reference to `rep_movs_alternative' > > The symbol is available in the arch lib directory: That patch of mine ends up exposing the fact that we have a lot of special boot-time code and similar that isn't real kernel code, but is built with kernel headers. Normally not that noticeable, but when it modified something as core as memcpy(), it shows up in a big way. Sadly, we don't seem to have any obvious #define for "this is not real kernel code". We just have a lot of ad-hoc tricks, like removing compiler flags and disabling things like KASAN etc on a file-by-file (or directory) basis. The purgatory code isn't exactly boot-time code, but it's very similar - it's kind of a limited environment that runs at crash time to load a new kernel. Linus