Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp676029rdb; Tue, 23 Jan 2024 11:08:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IE5gb5DJlI3tNwvYY321yTwPNa7ba6xsU69IG2B9Br44NsldRIPiDINV9TzpxNggyY+sogt X-Received: by 2002:ac2:54b9:0:b0:510:ec2:5c22 with SMTP id w25-20020ac254b9000000b005100ec25c22mr29179lfk.172.1706036880813; Tue, 23 Jan 2024 11:08:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706036880; cv=pass; d=google.com; s=arc-20160816; b=d5MQj/k5IlyhU/cPAOno4RQFDjhgnB+m3/x1SE1VKVLvMAd3ftaM+3K6SkmEOuOIye VKMIuAsjT1B+OBCESrw63+YKDAG/9QgX9bgIdz1v1luuKmXYhQ4tO4+LeTwoYDnxoMQw bHBqP1+4iDNJhBZcGfr0fahipBKphmz2wyJQT34tHaVgWJrf9pFiagTw9dAnBr422640 qH3fFea9W5VF1V+Ter0+Mkl6D6RHd6oAjYAkZd6wr1OygMA9XBy2q1RMSsr+of5+akDn z17kdWFH7JbKbxXH3aIBeCatw+YV1TFV65eD+tB3U1o5xe4k+fkrnjODOT+dQNWuZ+fe SnLw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=+zD471NXUhbwznZgjJ9xueHoYazXRd8uyMKDSIzD0JQ=; fh=9bIabTQM297v6YqunBBcu7WvpaG7aaEUoL/vTnvQlZY=; b=pewFZFKTuq3o7yEQ0uVh7KlRRoYM6rwWTPRDrYgUfCH33F1bh+AQtun6dvom1v9ffm ioPqUCcViZ/G9yCyAH8Jtegh7XOUEEiBI68/xJs9ZoRxM3I5qTbYnF7GSLNEdP8SUG3f oyA098xBc35cxtiw1sOLyhAZOVta8pF+vN50AJ34wS96ih8vnJ/cBsRF9XUkz9jjQqaT I++LM1yI7Iy5llch965vOnySFCrGRjRFsMPtBvDjIul4hDelJXKrMzVYburiRvbZEYuC GjUqtaQtEtguGp0oS4IM2fYLOggSRX6lg5OWw4pg2Tg4hvwCZkKqCLlH4WWqjiewqG3o 4cPQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="uI+E/vQa"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-35954-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35954-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id c7-20020a170906170700b00a2a222dd0c1si11815728eje.939.2024.01.23.11.08.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 11:08:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-35954-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="uI+E/vQa"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-35954-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35954-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id B151A1F2DC8C for ; Tue, 23 Jan 2024 19:07:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B49BC12AAE0; Tue, 23 Jan 2024 19:02:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uI+E/vQa" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D7A7182D68; Tue, 23 Jan 2024 19:02:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706036548; cv=none; b=DMNZZ39ZIkaTuVYH3uO3nQvIGXpHF3aA1t3LrmocH41f7N5y2s+aer+C1N1qZn2gk+TvOXzHFw2rfkfdyRCuRM8xzaA2KJSYIyfHRfJmu+q4F7amQO1UMasm56zUEWMHcwSJec0tli2Bh5hvPhHhL8+ZzrNW5A+aNXvNsUTDxLg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706036548; c=relaxed/simple; bh=AMlDrC2WRr+dn3kpkOK/SkiOONKbAsdL0acAmBH3IjU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ENtregCY+vGVO4adjV4osA06lVp7WsLynR/xluEpNl37Cv1DMqMQ76BzFAaTU2vUJCZzQR/a2dA0G6BkHmMrjyAFVuOpbv6ETIWafrihXjBfoDA3XpCYtviyyGz9SfhoWROG2yijbmxfmyLZWTjtT4+6a6js/egVWxyhdLKTWVc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uI+E/vQa; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0AC7EC433F1; Tue, 23 Jan 2024 19:02:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706036548; bh=AMlDrC2WRr+dn3kpkOK/SkiOONKbAsdL0acAmBH3IjU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uI+E/vQarJSnVSiAoOq2dQ+lhl/3Dg9WADb6ph2o3G24rWx9PVbPPWzvKd7z2zbon fd6tZtG/0iNYSKyscM4lFRgg2/UaexicgL6rNqJYfM30JB4KsOQL5l1oWYLoYxMR97 I0EncXE4ocoHnjdEM4oyR8YA19HLvXSLEdV1HW7psOzzgaAY21cO3Nb4XpYPaphHNn 90li19FKkUnbA7o2ArL4OM4cyZxrKwRsWI2pHKzDLgnvpj9HC2OuX37bFZu/sQrgcS QAhXfNIsJufrQs3TEWy/D0kEWsGaZIPkiBCz3GaZNV7kzmZoCtQU76ow+j+Afkj6Pb 6VmYsmdwH/FLw== Date: Tue, 23 Jan 2024 19:02:23 +0000 From: Mark Brown To: Kees Cook Cc: Russell King , Ard Biesheuvel , Wang Kefeng , Andrew Morton , Ben Hutchings , linux-arm-kernel@lists.infradead.org, "Russell King (Oracle)" , Hugh Dickins , linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH] ARM: fault: Implement copy_from_kernel_nofault_allowed() Message-ID: <4d46dafe-b5bd-4395-b680-94b11814f7c6@sirena.org.uk> References: <20240123011238.work.301-kees@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="nyrYAyHMl+yOHan+" Content-Disposition: inline In-Reply-To: <20240123011238.work.301-kees@kernel.org> X-Cookie: Stay together, drag each other down. --nyrYAyHMl+yOHan+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Jan 22, 2024 at 05:12:38PM -0800, Kees Cook wrote: > Under PAN emulation when dumping backtraces from things like the > LKDTM EXEC_USERSPACE test[1], a double fault (which would hang a CPU) > would happen because of dump_instr() attempting to read a userspace > address. Make sure copy_from_kernel_nofault() does not attempt this > any more. This appears to fix the original issue: https://lava.sirena.org.uk/scheduler/job/497571 (though so did your earlier patch) so: Tested-by: Mark Brown --nyrYAyHMl+yOHan+ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmWwDT4ACgkQJNaLcl1U h9Cz8Qf/Qy2KDqML2iyqq2XSVkt1s9bKd4G6tBipnCo95/TlOxpB5ZqdYHctfIBP aDHBIqLHEm9S3Czkfrl3AvoWoir3p72kVBnaIYjoREM3n/33Qlg4tyR6s3ZNP4oP 6yVQeL13bjBKf1833x0AZ2WV6ShsyHf5BFgR5H2zCoK7wxg8IyfhHsorMGOHOTOA TX328+5DL39ZskOyWnAwdte3d7oXTUDN9KSPUJEKav62YHjz63FWo4QhyXDTF9Hl rO07Q8ky6jGtc8OCFi07Z5CLth43IyU1SGNQqxsibIYhtuyziqIU6pUeb62Oli67 UQ/nlT/qhBrOd4Ns+kX/2VQaHTvVMg== =d+Ba -----END PGP SIGNATURE----- --nyrYAyHMl+yOHan+--