Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1274182imm; Wed, 4 Jul 2018 15:39:46 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf2VCUwNe+1sjK31u35iLHbz3XVgdQrdNwWW8KmQSHSCOqSxT5cpayAmsyLvkRsR/YLwGAh X-Received: by 2002:a17:902:28e4:: with SMTP id f91-v6mr3772335plb.146.1530743986840; Wed, 04 Jul 2018 15:39:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530743986; cv=none; d=google.com; s=arc-20160816; b=Iz949e6cj2D6qE6oVYmNOqfzYmiHsratflBETvxawd6W4d2mu3GBgz2yCSoLfAUqPv u4yVptwYd/46CDVdx7ww1iby/Tz7DjnzuTpGWyx0++8eEta8EqmVcqz9GG467a96urcy axKHuV6dzYli6TLKTT09JVOBQhi9IjwEG4ADq6Z8c2Ka1em8Qmp+XDq7SO2Kl5fo0hpu B+wE6vWZThsCwcBWH9L4ByzM3rMwbNsbvnFw67y0fMnAUV4JBRS6GHoXNCqgPcMC1yAz caWlHvc9ZBON5iNI+H5IZcuL1GI53Sh7Z8M0oo0Bsa+S5Tag2qeFKj9nkqLuz7x0hKEj SXzg== 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:arc-authentication-results; bh=FFv4Ax8cN+IKnLRwWbDz/TWDX+bQXXLon2Q4cq6npIA=; b=pFjAefR+GLkf7kjsbhmzz5HUrjdSdnefA5hRo0y4nAMxdK2LxDovNRRRnbWI6WcbCq 9oOpoJG/HZ1/Tw89IbqH7I5YBy7BmB6a3e7/nCZQvmHdyoYLrIiMpK5w6G7cDRJsRZTJ 7KCquOD+JxbiIkzAn70/cpfIqF+n5tTR/XZ+W1FvHHY4qQrN6bHyRjkdk/lmfMLnZ5QT tMiiIX0KAejVaI89+nggfYujjZeHnTBh8gWhtLPgZwOuYkC/7oQWUSBQet0UX2GxJPrZ E64j90ESKIlO8bjG8Aw66qvnogNy5ycs3Bi9IbRRvkwMrxshkbBMbepMVMzj5p59Xr/b c1pw== ARC-Authentication-Results: i=1; mx.google.com; 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 135-v6si4616075pfz.334.2018.07.04.15.39.32; Wed, 04 Jul 2018 15:39:46 -0700 (PDT) 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; 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 S1753049AbeGDWiw (ORCPT + 99 others); Wed, 4 Jul 2018 18:38:52 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:49364 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752881AbeGDWiv (ORCPT ); Wed, 4 Jul 2018 18:38:51 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.87 #1 (Red Hat Linux)) id 1faqPp-0001A1-Mk; Wed, 04 Jul 2018 22:38:25 +0000 Date: Wed, 4 Jul 2018 23:38:25 +0100 From: Al Viro To: Ingo Molnar Cc: Dan Williams , Andrew Morton , Andy Lutomirski , Borislav Petkov , Linus Torvalds , Peter Zijlstra , Thomas Gleixner , Tony Luck , Ross Zwisler , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, x86@kernel.org Subject: Re: [PATCH] x86/asm/memcpy_mcsafe: Fix copy_to_user_mcsafe() exception handling Message-ID: <20180704223825.GZ30522@ZenIV.linux.org.uk> References: <20180702165803.GB19488@linux.intel.com> <153056565378.3420.295180898468362039.stgit@dwillia2-desk3.amr.corp.intel.com> <20180703083040.GB971@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180703083040.GB971@gmail.com> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 03, 2018 at 10:30:40AM +0200, Ingo Molnar wrote: > > * Dan Williams wrote: > > > Hi Ingo, > > > > Here is an additional copy_to_iter_mcsafe() fix to address the crash > > reported by Ross. This now passes xfstests:generic/323 on my system. > > The lib/iov_iter fix would need an Acked-by from Al. I can live with that; I would really like to see some documentation on the copy_to_iter_mcsafe(), but that's a separate story. Incidentally, are there any expectations of other callers appearing, or is that (and copy_from_iter_flushcache()) YASingleConsumerAPI?