Received: by 10.223.164.202 with SMTP id h10csp780395wrb; Thu, 23 Nov 2017 06:09:39 -0800 (PST) X-Google-Smtp-Source: AGs4zMaP1Zo3xUJ990Ael/L91JlR/C/n47PjVLD4zS8aqsNhptm+yWv2PF/cSPp2ysg+QsluqOS9 X-Received: by 10.98.103.156 with SMTP id t28mr22925433pfj.234.1511446179074; Thu, 23 Nov 2017 06:09:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511446179; cv=none; d=google.com; s=arc-20160816; b=k4qGBfU70RozdL8BTeL41HmH4BmDD6v0ioYfO3Yeje6D3/Uun2k9pgZ8Rc6IMfGSc1 OFfrW4ikgg1VCqJZlt15Nrefhi4kbszYL4RaGCHPWvQVEPJnNcHkmH/ug3tpoBD7aJ2p 1mjkfMIM/c8XcGrsJnJYlJrOzN60KNOLFTqZJFe8/BwomyQALXbIFisEQFwXPnrD/6aD mzIlwIUSG/L3xCKyyFvHVnVxjdkChQ9lxxd05ftmLxV0KE+EsMDteWaMhYWJD6fVhPFu KBJGH6+/EJpv7/LinXTJ1kVdASpCQXdzYBxj16k5P6XO5W2Se3Z/lblHWZ5jhJDJ7UjW CnYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:in-reply-to :content-disposition:mime-version:references:subject:cc:to:from:date :arc-authentication-results; bh=p7mPnBVODP8iUhP2keV/o8m60NFLiPLxnAIuBoaOHJ8=; b=qsAtvYgcO33H/sOR3gjClYgm6bFuB6lzzKmViHqoUH7vIdkVxD4YKsKINJ26iDrE0w 7Q9cIvRTqvFBikKK8W+wMB3kUSnSBBBYc2NiXw/nih9n10B5ZWDHY/pUc5qU9f5gnOUc YITSX64sS2t3Gj8zV8QLF2G10i+45mz+//kwzdEekgDpD1Fe1LJcldtk4yw0grqd/v63 fZW/KyC5yUsF5peksow5aWd4gLnIrU0mGaxOma88fzKLJ7oydawD8LegzrMWSX9ejlRW HFhcCP5/xIjbJjdHQVGX4L2/Ys1nOcNOYZHI1Z8rGdr684zu1E7IeDWZXssaxMudjZZ4 G6GQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c15si17644908pfm.128.2017.11.23.06.09.27; Thu, 23 Nov 2017 06:09:39 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752993AbdKWOHj (ORCPT + 75 others); Thu, 23 Nov 2017 09:07:39 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:55654 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752222AbdKWOHh (ORCPT ); Thu, 23 Nov 2017 09:07:37 -0500 Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id vANE4PGc107278 for ; Thu, 23 Nov 2017 09:07:36 -0500 Received: from e06smtp11.uk.ibm.com (e06smtp11.uk.ibm.com [195.75.94.107]) by mx0b-001b2d01.pphosted.com with ESMTP id 2edyap8ymp-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Thu, 23 Nov 2017 09:07:36 -0500 Received: from localhost by e06smtp11.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 23 Nov 2017 14:07:34 -0000 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp11.uk.ibm.com (192.168.101.141) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 23 Nov 2017 14:07:29 -0000 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id vANE7SXj22544410; Thu, 23 Nov 2017 14:07:28 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 490CA11C04A; Thu, 23 Nov 2017 14:02:08 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 31C5811C064; Thu, 23 Nov 2017 14:02:07 +0000 (GMT) Received: from rapoport-lnx (unknown [9.148.8.236]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Thu, 23 Nov 2017 14:02:07 +0000 (GMT) Date: Thu, 23 Nov 2017 16:07:25 +0200 From: Mike Rapoport To: Greg KH Cc: Andrew Morton , Alexander Viro , linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, criu@openvz.org, Arnd Bergmann , Pavel Emelyanov , Michael Kerrisk , Thomas Gleixner , Josh Triplett , Jann Horn , Andrei Vagin Subject: Re: [PATCH v3 4/4] test: add a test for the process_vmsplice syscall References: <1511379391-988-1-git-send-email-rppt@linux.vnet.ibm.com> <1511379391-988-5-git-send-email-rppt@linux.vnet.ibm.com> <20171123080103.GA490@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171123080103.GA490@kroah.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-TM-AS-GCONF: 00 x-cbid: 17112314-0040-0000-0000-00000411D634 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17112314-0041-0000-0000-000020B4A7C5 Message-Id: <20171123140725.GC2303@rapoport-lnx> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-11-23_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1711230195 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 23, 2017 at 09:01:03AM +0100, Greg KH wrote: > On Wed, Nov 22, 2017 at 09:36:31PM +0200, Mike Rapoport wrote: > > From: Andrei Vagin > > > > This test checks that process_vmsplice() can splice pages from a remote > > process and returns EFAULT, if process_vmsplice() tries to splice pages > > by an unaccessiable address. > > > > Signed-off-by: Andrei Vagin > > --- > > tools/testing/selftests/process_vmsplice/Makefile | 5 + > > .../process_vmsplice/process_vmsplice_test.c | 188 +++++++++++++++++++++ > > 2 files changed, 193 insertions(+) > > create mode 100644 tools/testing/selftests/process_vmsplice/Makefile > > create mode 100644 tools/testing/selftests/process_vmsplice/process_vmsplice_test.c > > [ ... ] > > Shouldn't you check to see if the syscall is even present? You should > not error if it is not, as this test will then "fail" on kernels/arches > without the syscall enabled, which isn't the nicest. Sure, will fix. > thanks, > > greg k-h > -- Sincerely yours, Mike. From 1584843046978081775@xxx Thu Nov 23 08:01:49 +0000 2017 X-GM-THRID: 1584796339371351296 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread