Received: by 10.192.165.148 with SMTP id m20csp367143imm; Thu, 3 May 2018 22:30:00 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrxw54arPE86/FdiWs/OZ3uTCvPnqEn5ECtlGU2uS9Anx2r9GuWny872K8wcwZ7ifB5eEoT X-Received: by 10.98.251.20 with SMTP id x20mr25650363pfm.48.1525411800551; Thu, 03 May 2018 22:30:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525411800; cv=none; d=google.com; s=arc-20160816; b=A+zX824CjqjVLby2uveJ0yEGP4bzlYTDnWCJ7s3CbF1FHM0tD8S8cJa6u9Hih+zWRo yIhblboqxsjik/bpp8hDYYeEsiTCxk62yIBBCJ98Qd3lKni2uCHO1zhYHXy1cC0urtBn sMxrMeuuL6smifHOOro1VFaOkL45OilAgbjrf0HKQdt0VdLMOqwmZWOU4PeoIscYBtP7 ZAn96DP2Ukmja2Y8S8NMs9sfRdm1tvPte2YbwN1kZUWJ6dAFi6pX4vz7OKxIZi0Y50YI wM9ezxewV0436dffLEbHl23Bhf4JMbKr8H+APWX/K3jbI8mGv2Iya6U/giBM3pNcqHlD 8OSA== 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:arc-authentication-results; bh=wPS+AaAVfyF5zETi+EdjWXzhCeiAKgX1hRwcDE78pMw=; b=aXlgqOLqArbEPJSGHIcnXoNWpiF5k9OpWTqQHVo+yKLHAyIO+sWJ+Ol9lGo5IB0pGo 5h4hoTPaGh5QBnxSvd8nyRIdGrjmMskGPePCLclyAdZEYPxr29cw9QqeTL30E77+YQSM 6BhNZ8l8cLEGibtteu1jvWZan3LMTRDtrnPD4TAZBr8IKhLMt0LmYQflZxsWVmZOOEZZ vhnPBLHmqwhxW8RsNOtokLvONCma3jS6os0qNG2v+vVYzJWAwCF2l7zuWXRsuGpvhNCX MKzKhj6nLYPzehnVo9HGHNEl9kVRkXsK2Xs9N+TVXN2/ZBdLnb5+iJcNcH6t4YidF+JJ 7oXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=GzHxCCTT; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i64-v6si603402pli.274.2018.05.03.22.29.43; Thu, 03 May 2018 22:30:00 -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; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=GzHxCCTT; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751106AbeEDF2T (ORCPT + 99 others); Fri, 4 May 2018 01:28:19 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:42456 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750733AbeEDF2S (ORCPT ); Fri, 4 May 2018 01:28:18 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w445QFw5110453; Fri, 4 May 2018 05:27:52 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2017-10-26; bh=wPS+AaAVfyF5zETi+EdjWXzhCeiAKgX1hRwcDE78pMw=; b=GzHxCCTT1sc2UjDTWj21HpAaokWIlQ3cZNaoDLu+qGzUVV14sGN2PpfOivvDTcOFKiqY Xkl/HlH2Sh5Hldt51MP4ghJbF2+domH6ker4ab/fIfQglvwpmdCOAbAeHqm7kDH3uGJ6 8/5JZT3LGfHAAU0Q9+FMXZ6ukmbm08m2HE47I6DsJYucENQOmQpqBe4511fzgwO6T3lv Xbh9V3oSGaWZ9ucbfb0DtJuUI0PLf1xIgLCp+hg0PV16vMK9kb+IiJ9t7wrbZDxbxX7G 4eYV/0VobkSVtV7G1GpAOQDAoQgl4YdqcvtHOXfI5d78ZDeCNRBHaO3Z3a65wY3ZV+aE Yw== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp2120.oracle.com with ESMTP id 2hmgxg4f5b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 04 May 2018 05:27:52 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w445RqSY007368 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 4 May 2018 05:27:52 GMT Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w445Rn3h003633; Fri, 4 May 2018 05:27:49 GMT Received: from mwanda (/197.254.35.146) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 03 May 2018 22:27:49 -0700 Date: Fri, 4 May 2018 08:27:32 +0300 From: Dan Carpenter To: Wenwen Wang Cc: "open list:STAGING SUBSYSTEM" , Aastha Gupta , Roman Storozhenko , Andreas Dilger , Jeff Layton , Greg Kroah-Hartman , Kangjie Lu , NeilBrown , open list , Oleg Drokin , "moderated list:STAGING - LUSTRE PARALLEL FILESYSTEM" Subject: Re: [PATCH v2] staging: lustre: llite: fix potential missing-check bug when copying lumv Message-ID: <20180504052731.jkwhs4h4fuia3pft@mwanda> References: <1525128971-8946-1-git-send-email-wang6495@umn.edu> <20180501084621.jfxrm3qoqfmftnxh@mwanda> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170609 (1.8.3) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8882 signatures=668698 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=747 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1805040048 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is no security problem here. The user is allowed to choose either v1 or v3. Using a double read race condition to choose v1 is not going to cause problems. It's slightly more complicated than just choosing it directly but that doesn't make it a security issue. It's a bit like typing with your feet in that just because using your toes instead of your fingergs is more complicated, it doesn't make it a security issue. regards, dan carpenter