Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp13804ybx; Tue, 5 Nov 2019 18:26:21 -0800 (PST) X-Google-Smtp-Source: APXvYqx91JFWe+RDknpN5Ecyf8MmLLB7gHeIJUtzomag7swZ/THFmu4PXBbhCCtEvQ+l8wtvhGi7 X-Received: by 2002:a17:906:af62:: with SMTP id os2mr25538291ejb.105.1573007180913; Tue, 05 Nov 2019 18:26:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573007180; cv=none; d=google.com; s=arc-20160816; b=pwbfS0+MAC6T5noZo8MgCYL2ta9ab5g5o1umidcFiNinTko9uiI4CmAOA50/Yc1nV9 WWjKF9dEm2Eo9O3D7TqTJXGsLQnSTEE/XbIgdG+kiObU/1WekC9VtRrZqBW+Ks14vyNO sB6duJQ++yH59t6pwF4rnVzdoxLV5rmP7/S/Su742ghouehRaN7iLqKGHQQXQuhDGflR EFQh6HWjgcEDxL/OCELHSkm20vNjleGt/DX9LicxuFHvRfbZ6U36AsoZTggmI5hy/pVa N0aM3AzJLKWFQ+hasKWexv13gbv706PP2iR+pz+jv8SrSh43XaxrWKi2JcF5+1z0qeZE zU4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=NyNsVExiET/B0p0O+Ccmm1UHgNhyv2yUtlitAUYuRAQ=; b=j+VzzD4lyuwUfAG4ZfN0Akc2jobbPI45ozVuCxIPMKsnYmzaPhGy3VbrtF5mq7ieI5 rhphcOPEi4YAgJjmDrEHUcKeqk/+4d4eL7xDbU9V6bB/Aq3VRMWvNKsFU968ewtmouKP 1ZU9QURu/FoZ1SO0vLMhvBgRUiEy3fFfkPatIcKtSk1OEKUM9jc4Kn6Xt/CuU6keNhF5 gKR5DT1n9J2xUp4/spYjJK0I4NagZ0D3ZmtYUXsncOvlTcf2BjeDW2s55OB54+JrpIiD db0RU9ACI7kFjZ0HbLFCVbZTz+fuh6HVjrpB2AQooBwJUcbAk6JDpHWCI7hhSt0amRs4 vw/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gandi.net header.s=20190808 header.b=VmzJQ+5i; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e12si2849513ejr.39.2019.11.05.18.25.56; Tue, 05 Nov 2019 18:26:20 -0800 (PST) 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=@gandi.net header.s=20190808 header.b=VmzJQ+5i; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730769AbfKFCWp (ORCPT + 99 others); Tue, 5 Nov 2019 21:22:45 -0500 Received: from mail12.gandi.net ([217.70.182.73]:36683 "EHLO gandi.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730562AbfKFCWp (ORCPT ); Tue, 5 Nov 2019 21:22:45 -0500 Received: from khany.gandi.net (unknown [IPv6:2001:470:f3c7:4:4e47:6b16:8d51:b670]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gandi.net (Postfix) with ESMTPSA id 889CF160548; Wed, 6 Nov 2019 02:22:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gandi.net; s=20190808; t=1573006962; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=NyNsVExiET/B0p0O+Ccmm1UHgNhyv2yUtlitAUYuRAQ=; b=VmzJQ+5iUrdHlevo7nUuQChnyVYJIlNkU7I+Yw0yS+8LHy/vvJWfOToiHRi/yq7XKfjFLo D7KHD4s+bEmg37zhDUnak08bIrzyZu8UVDZvtrfoh4oMMoaWWJPXr/X60ThX0jYKQGcjs0 VZtt/DLCjV0NnKlPJlfUiWU+bin+OeJJOv9ijnZKE5tpXczxW/6cNjD/fiaJYuv4tfTVYj o+hq7jaUY0nN5ig12y9fw3TSjPUtXvf32zgqhwUZqBi6h5wXBpZ6/+MWqgrY4CYGi2IUvH cTaBDNi1QNqHeZsWPRwStwd+ZBwI6J5wJ76txzSZ57aGXMWwSM/R8Y/ksQ2kOw== Received: by khany.gandi.net (Postfix, from userid 1000) id 822C6DC009B; Wed, 6 Nov 2019 02:22:16 +0000 (GMT) Date: Wed, 6 Nov 2019 02:22:16 +0000 From: Arthur Gautier To: Andy Lutomirski Cc: Borislav Petkov , Thomas Gleixner , Al Viro , Jann Horn , the arch/x86 maintainers , Ingo Molnar , kernel list Subject: Re: [PATCH] x86: uaccess: fix regression in unsafe_get_user Message-ID: <20191106022216.emntu2aiapsbyyeh@khany> References: <20190217042201.GU2217@ZenIV.linux.org.uk> <20190218215150.xklqbfckwmbtdm3t@khany> <20190926095825.zkdpya55yjusvv4g@khany> <20190926140939.GD18383@zn.tnic> <20191010164951.kr2epy5lyywgngt6@khany> <20191105141112.GB28418@zn.tnic> <20191105160530.vdaii44gckfo45rw@khany> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 05, 2019 at 04:21:06PM -0800, Andy Lutomirski wrote: > On Tue, Nov 5, 2019 at 8:05 AM Arthur Gautier wrote: > > > > On Tue, Nov 05, 2019 at 03:11:12PM +0100, Borislav Petkov wrote: > > > On Thu, Oct 10, 2019 at 04:49:51PM +0000, Arthur Gautier wrote: > > > > I did not receive neither the patch Andy provided, nor the comments made > > > > on it. But I'd be happy to help and/or take over to fix those if someone could > > > > send me both. > > > > > > Yes, please do, it seems Andy's busy. You can find the whole thread here: > > > > > > https://lore.kernel.org/lkml/20190215235901.23541-1-baloo@gandi.net/ > > > > > > and you can download it in mbox format. > > > > > > Care to take Andy's patch, work in the comments I made to it, test it, > > > write a commit message, i.e., productize it? > > > > > > So that we get this thing moving... > > > > > > Thx. > > > > > > > Hello Boris, > > > > Thank you! But I believe this is the patch I sent, I know Andy sent a > > patchset with two patches, I believe privately (not copied to a public > > ML) to some of the recepients here. I got a copy of the second patch > > but not the first one. > > > > I believe from discussions here, that comments have been made on those > > patchset and because I was not Cc-ed on those patches, I do not have > > neither the full patchset nor the comments. > > > > I cannot take over the work, nor finish the patchset. > > > > Would anyone have a copy of the thread and could send them my way? > > > > I forwarded it to you. > > Here are the patches in git: > > https://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git/log/?h=task_size > > it's "unaligned", "fix test sparse warning", optionally > "strncpy_from_user: Zero any extra output bytes that get written", > "uaccess: Add a selftest for strncpy_from_user()", and > "strncpy_from_user: Don't overrun the input buffer onto the next page" > > The basic summary is that Linus didn't like calling it bug fix, but it > might be acceptable as an improvement. I also thought that the > KERNEL_DS oops was changed so it didn't trigger here. Thank you so much! -- \o/ Arthur G Gandi.net