Received: by 2002:a25:d783:0:0:0:0:0 with SMTP id o125csp660055ybg; Thu, 19 Mar 2020 06:34:10 -0700 (PDT) X-Google-Smtp-Source: ADFU+vufkNGfHfSEtcQMB8rn/fL7mKepxunm06/mKaM858ayuuhnMmwofn/C8hBwEb3/JeVdw9dA X-Received: by 2002:a05:6808:18:: with SMTP id u24mr2333912oic.137.1584624850761; Thu, 19 Mar 2020 06:34:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584624850; cv=none; d=google.com; s=arc-20160816; b=K4sm+w26AkvBc72KXs/ZkoR9ifNDY/s9ieKw4wftWh39wMg7CnWFSxRaqHkrVTyB7E lhQYybwaY3QHPRpQPDZ2RP9DZshW6wGrP37lG9AeGxBWi5iHnAnKBM+ZDbic9fTSy9nM TGAH86o8J1375qhrAiIMvV+VRJNT3PS6jnrsJQ/cyzX6qhAI3gC3ifaVOd7WSWDWi60A 5/Et5KaVnhUr6tmVx71auRG0RsGEdsQ2BuU4ZofPs4fVJ71SdkxYO2BESapTiCc++OyV qC+ULqzsM2WsZvhdn/mSr+Vd9TVj8kED8DYdjsEL1CGmDGNPCtKjWzOZKo8+GrLzkXnS hFjQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=b44EKFcNIBezMjMwz4fq1amFPO8cEib/2KK0I+Y2VIw=; b=lFOCZIVqNMAs9K1//2oyULcz0RJo2X4Jz02aJVaZRWbHbj/wPTTp6b0QTJv18Kjf1Z KNaTuISjbqjqS+Wqto6oxGhYjrFJnKn2t/Q614l/kslDTQdLJbXxn3hLDhS2QJOtzdDX 5v2a31bM8MiCWHbJDsisFeATNG47Qcl35dAvNI88NVRBNZ3AvhJrftKUJMNb+6vHqw3U FTbpsIyiebzF6nvCXqwBLtwhNHs7LW8x05lMtQ2i5o+0Umqiho3ASj/6tKbJtC5Mkl4S qobfnRbF/6NOyN9UkeDArIqwAuiR8wFV/ZEHoLdzxWSNxq7M1t3yFRF1gdCx3IsnQCa2 62jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1q+KWQvQ; 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 f21si1103412oib.258.2020.03.19.06.33.56; Thu, 19 Mar 2020 06:34:10 -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=@kernel.org header.s=default header.b=1q+KWQvQ; 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 S1727382AbgCSNPK (ORCPT + 99 others); Thu, 19 Mar 2020 09:15:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:34888 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729380AbgCSNPI (ORCPT ); Thu, 19 Mar 2020 09:15:08 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 219C621556; Thu, 19 Mar 2020 13:15:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584623708; bh=HoeQ4lDKHXj6lw1McrN/AYs92QY7yOxv7D8eaxGfLmc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1q+KWQvQlDU/oGHJz0TnyPjcbpULkDr39WGlj5kStEntC+7Ii92kmxo3XhyPbg401 qhJnKvjycWW0ozna3p/RrATdg+EGQupZLlBsoVAEw+0umjbiciHaP21GyyGVt0WyLh BqmUfCSPne2qBaKv0g9eIJxbatHUFDo8hsr8/P5M= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jakub Kicinski , "David S. Miller" Subject: [PATCH 4.14 26/99] nfc: add missing attribute validation for SE API Date: Thu, 19 Mar 2020 14:03:04 +0100 Message-Id: <20200319123949.668326452@linuxfoundation.org> X-Mailer: git-send-email 2.25.2 In-Reply-To: <20200319123941.630731708@linuxfoundation.org> References: <20200319123941.630731708@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jakub Kicinski [ Upstream commit 361d23e41ca6e504033f7e66a03b95788377caae ] Add missing attribute validation for NFC_ATTR_SE_INDEX to the netlink policy. Fixes: 5ce3f32b5264 ("NFC: netlink: SE API implementation") Signed-off-by: Jakub Kicinski Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- net/nfc/netlink.c | 1 + 1 file changed, 1 insertion(+) --- a/net/nfc/netlink.c +++ b/net/nfc/netlink.c @@ -55,6 +55,7 @@ static const struct nla_policy nfc_genl_ [NFC_ATTR_LLC_SDP] = { .type = NLA_NESTED }, [NFC_ATTR_FIRMWARE_NAME] = { .type = NLA_STRING, .len = NFC_FIRMWARE_NAME_MAXSIZE }, + [NFC_ATTR_SE_INDEX] = { .type = NLA_U32 }, [NFC_ATTR_SE_APDU] = { .type = NLA_BINARY }, [NFC_ATTR_VENDOR_DATA] = { .type = NLA_BINARY },