Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp2909144rdb; Wed, 15 Nov 2023 14:31:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IHaJce77VYggj3L2VGqSElUbYODZXgnPj7ktmV/moZrthFpEfGFG+A4zvsMsuuai0Ai3Rgx X-Received: by 2002:a05:6a20:1584:b0:181:9518:5aae with SMTP id h4-20020a056a20158400b0018195185aaemr13597945pzj.10.1700087472607; Wed, 15 Nov 2023 14:31:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700087472; cv=none; d=google.com; s=arc-20160816; b=gJ75zYu3LJza4AALzVBDVe0ukRh4hOGro5f+yK+pio7lYKNv1KEIvRd/MCbHVXrQZD VBQZkgEW7x8JmoVBM7EP4uU2awmKMFd+x8lndZ2AYmnHX+gT15VrTRl/+HAjTxu1ud0T Un6z9aLHPuBWxuKv2+rOIqcovFZdLSOkdYKAAp0eE89o1Uzlszgy1sspo5QI2c5rU9AA LGJIQ4XFsZPTMxkBoSlyXDv2db72glxCkz4GsIt5xs7l7emhMAy1VDZmHoXthCe1QUD6 Xl+fvg+p8PTJ1tCSm7/+sbV2L3W+7EQdKqVr3zBOil/qvV0fSRDJI5jZIf35Y/ZuFcNv nR+g== 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=YylxupOkQhFH1ncpqsZvMSikxbKYHt85VPH5cA+G+Oo=; fh=Ldy2X0GHPiHNb5o0hYWUz4ME54OvL7Z5nadyi9FEB6s=; b=suwVSrZqRkA5BMApJprVXJC7Zon15MKiAfhxbkEd/y5cIX40DIK11a3tlvuZ5vyoWK 4msnrGCYKqbPtk6s1VmgA4pYgB0bwBbrdLVr7xxRyu4l7oTSoaTlAht0AmQDBfZFMpiu OEJw2wCutBlfa3pCyCfa07p04Hqzh9HCqEgMdm2CIaQe04heZ+t3478ISOg2a1UVhutM s9lAM8GoVp5AiKbaqomXpaq9Vt4yK4rRM6VWroNGd/xKXBznEw0vqKjADls+h1VMB0Hi v4zg1yUo6Hxvtb8haw+tCGEFSJZEOt7K7jkf+tQLzPQAKGPiCAoTa2osEhHWO0OLiKml w2vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=UY5yWcNx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id c8-20020a63ea08000000b005b930e0b600si10601442pgi.820.2023.11.15.14.30.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 14:31:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=UY5yWcNx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 4A77E808E8D9; Wed, 15 Nov 2023 14:30:29 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235505AbjKOWaR (ORCPT + 99 others); Wed, 15 Nov 2023 17:30:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229912AbjKOWaQ (ORCPT ); Wed, 15 Nov 2023 17:30:16 -0500 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBB491AB for ; Wed, 15 Nov 2023 14:30:12 -0800 (PST) Received: by mail-pj1-x102d.google.com with SMTP id 98e67ed59e1d1-28037d046b0so76860a91.3 for ; Wed, 15 Nov 2023 14:30:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1700087412; x=1700692212; 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=YylxupOkQhFH1ncpqsZvMSikxbKYHt85VPH5cA+G+Oo=; b=UY5yWcNxei8PxZpZqzxd+lFoYgrgy/jNJZMxjVlaSeEZWSfPdnxu+FrfvYURvlHUlB DLWLWwnusiS2lBerr6nPgpZW4oNTflwThvOQn1U/VqkOnIQc3cEHNkWamvSqgMjj2WSZ XBnEMmp189E4O9bUV6L0BgChoewcfzpqP/AjU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700087412; x=1700692212; 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=YylxupOkQhFH1ncpqsZvMSikxbKYHt85VPH5cA+G+Oo=; b=JMKdMbSZtf2m062fPFq+K55rir5+H6LzvCE17zw+OuT1XB0lJQ0tC+ZLeEkst1nyL9 eu+f+yKdmr8Ikqu79hMmaFy6NIn7kJZmbNphlzIWiFjhgJnr7SiJe3ttytJP03Vs0brZ ljlACHdje5QcZiAYQTBqOW+SRUfkg7Zjh2dHVRSLUTKV7ScSiRMx2z/3e5kzdymKfhpQ UffVomKcIyX4585OG4ebP+E8pmNNHiMIJC5jh0GmtNjvfnln8JkwIv2LZHmUGCm608gU 60NFx/Ffl8Ql2PAkiDuPAl/12WgTVvsM7VNcGnGU9XmYjxyn0UxoCrfvfUr8ZqLxzi2P eQAw== X-Gm-Message-State: AOJu0YxLOUIhZ3oIIhAPbGsV6G0PVYWRytipo6+r1gO8LuUmDNsgBg1L j+EGLLeLAJyt/WeCpcXPUIpyNA== X-Received: by 2002:a17:90b:1b52:b0:280:99ca:1611 with SMTP id nv18-20020a17090b1b5200b0028099ca1611mr10980882pjb.20.1700087412249; Wed, 15 Nov 2023 14:30:12 -0800 (PST) Received: from www.outflux.net (198-0-35-241-static.hfc.comcastbusiness.net. [198.0.35.241]) by smtp.gmail.com with ESMTPSA id nr2-20020a17090b240200b0027d0de51454sm330562pjb.19.2023.11.15.14.30.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 14:30:11 -0800 (PST) Date: Wed, 15 Nov 2023 14:30:11 -0800 From: Kees Cook To: Mark Rutland Cc: linux-kernel@vger.kernel.org, Al Viro , Catalin Marinas , Linus Torvalds , Will Deacon , agordeev@linux.ibm.com, aou@eecs.berkeley.edu, bp@alien8.de, dave.hansen@linux.intel.com, davem@davemloft.net, gor@linux.ibm.com, hca@linux.ibm.com, linux-arch@vger.kernel.org, linux@armlinux.org.uk, mingo@redhat.com, palmer@dabbelt.com, paul.walmsley@sifive.com, robin.murphy@arm.com, tglx@linutronix.de Subject: Re: [PATCH v2 0/4] usercopy: generic tests + arm64 fixes Message-ID: <202311151427.341BC07@keescook> References: <20230321122514.1743889-1-mark.rutland@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230321122514.1743889-1-mark.rutland@arm.com> X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email 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 (groat.vger.email [0.0.0.0]); Wed, 15 Nov 2023 14:30:29 -0800 (PST) On Tue, Mar 21, 2023 at 12:25:10PM +0000, Mark Rutland wrote: > This series adds tests for the usercopy functions, which have found a > few issues on most architectures I've tested on. The last two patches > are fixes for arm64 (which pass all the tests, and are at least as good > performance-wise as the existing implementation). > [...] > lib/usercopy_kunit.c | 506 ++++++++++++++++++++++++++++++++++ You didn't like lib/test_user_copy.c ? :) There was a prior attempt to move it to KUnit: https://lore.kernel.org/lkml/20200721174654.72132-1-vitor@massaru.org/ -- Kees Cook