Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2341910ybl; Thu, 15 Aug 2019 10:14:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqwggiqFpQ7E+0Pg/GIxiCC9kf2hBeenUaoVYVCg9OcgjRt8i1vXRSZHkmoZkzo7ORD96gin X-Received: by 2002:aa7:851a:: with SMTP id v26mr6369825pfn.238.1565889280683; Thu, 15 Aug 2019 10:14:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565889280; cv=none; d=google.com; s=arc-20160816; b=pgMQBoHi6u2Rl+tnEJ9U6JD3cG0yDfRe5Pz4y748TxzkeWWc+n6smudj5DehYIO/ET Z2bDytpUqaZwGGK6VPtsuTCp8bqSY5ZDPf17ZblbZ1qaUUUGGWa1jpmLO5yuBji6pKGS mrJAMVuhzr9CmvpyuZz5oYqpJ958QM+l3jqfZnv3hFhkFQsjO7oZ163T/eJDl9GxLwvx axCJg9c25T8zXDlWmWi8TSYu6B/X4xuJ0RQlSD2PiN5xyNt878EoYG4hqtxEGjNiUZHb OmtRx5meCcfY+zVh9eW4dFici2Q0NMwBNNc/K2oYFOKGrq2zUG+Wh5kEGoKtlUC9I9ae /9Hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=0YlmjJPeojzjGuL2iKbKBDyzRelOOlVV+qdVb0SrG38=; b=u49/C2xiv1P0O31+FlDHKtvIsx5jfc29Gvt7VYfDGKQnLZ5bMYxBLPXWT85cWArPKd FeXa+5CHsyyWs59NWx0uaTfzzcp4VOHT/fbYfSvIOrrUzhok33z5xOlTBbLB9lRQ8c7i Bo8ies6UTMbuNqwlLZ+RVVLKv2aM0Rt8AXRoQEymD16cb816pe+73y/atfSMH1w0vuMC zw2lQ4pyRxByZqrkN9uzF2KhOmCV8KJwHMXjGbDRDRf1RkdcNd9DSLsJhxu7Iq4FtTye Q9zOT6aJRIZTYnvC5HXfjcobhDPwR0LWxblH/p5Jt17U6TDtGDlV9/oQrpV4vj0zCMXj omHg== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l6si2173217pgp.391.2019.08.15.10.14.24; Thu, 15 Aug 2019 10:14:40 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732993AbfHOOgL (ORCPT + 99 others); Thu, 15 Aug 2019 10:36:11 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:36224 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730084AbfHOOgJ (ORCPT ); Thu, 15 Aug 2019 10:36:09 -0400 Received: by mail-wr1-f65.google.com with SMTP id r3so2432040wrt.3 for ; Thu, 15 Aug 2019 07:36:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=0YlmjJPeojzjGuL2iKbKBDyzRelOOlVV+qdVb0SrG38=; b=Sip7EW3rJHDQ73FcPLjOeBLe0inVnsf4vOTYp007NTTrNyhLHRK85tJObOi9j4lHJe VlOEYLtqclH+URpeO0Dz1SaYUCXQU6hHftBD7KwkexPyfDbSQa9lT+yjBCSzFOXPxPOu K8Hsl5znAb98XzqvGLeyxTzz/WmSyTnv89+iBEK0Y8xl/BRZBBExG6wWNC06yc131yvJ Lb4MZUhwtUyMnN39aRrl/SScUs5sHVKrCy0SGoTAO6pqL3aJMMb2Gb6u5EgWmINlH6FK wZ70opp6jHY6CYU3Mhtf/YdBaA+norDpO8OXKb0E0OK5VuEdKcipAjYP9aJemrLUUKcg oQxw== X-Gm-Message-State: APjAAAUMv1DQknCrPRWmwTXinHQYaUDRN0Af1jLI1/ozpXXJfoVveNI4 UhVQI5VhU43g+7wFiqTREmz4Q6xqgGE= X-Received: by 2002:a5d:6383:: with SMTP id p3mr6144082wru.34.1565879767470; Thu, 15 Aug 2019 07:36:07 -0700 (PDT) Received: from localhost (nat-pool-brq-t.redhat.com. [213.175.37.10]) by smtp.gmail.com with ESMTPSA id a17sm1708199wmm.47.2019.08.15.07.36.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Aug 2019 07:36:06 -0700 (PDT) From: Oleksandr Natalenko To: linux-kernel@vger.kernel.org Cc: linux-fsdevel@vger.kernel.org, Christian Brauner , Seth Forshee , Stefan Bader , Kleber Sacilotto de Souza , Tyler Hicks , Marcelo Henrique Cerri , Brad Figg , James Bottomley Subject: [PATCH 1/1] shiftfs-5.2: use copy_from_user() correctly Date: Thu, 15 Aug 2019 16:36:03 +0200 Message-Id: <20190815143603.17127-2-oleksandr@redhat.com> X-Mailer: git-send-email 2.22.1 In-Reply-To: <20190815143603.17127-1-oleksandr@redhat.com> References: <20190815143603.17127-1-oleksandr@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Oleksandr Natalenko --- fs/shiftfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/shiftfs.c b/fs/shiftfs.c index 49f6714e9f95..14f3764577d8 100644 --- a/fs/shiftfs.c +++ b/fs/shiftfs.c @@ -1526,7 +1526,7 @@ static bool in_ioctl_whitelist(int flag, unsigned long arg) case BTRFS_IOC_SUBVOL_GETFLAGS: return true; case BTRFS_IOC_SUBVOL_SETFLAGS: - if (copy_from_user(&flags, arg, sizeof(flags))) + if (copy_from_user(&flags, argp, sizeof(flags))) return false; if (flags & ~BTRFS_SUBVOL_RDONLY) -- 2.22.1