Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp176672ybp; Thu, 3 Oct 2019 11:53:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqxrHjlMVgdbGvItxK+DH2uM0oimqk2vxYUC0DOZQZFGru10latveCeicwlvyriKvMWZ5zS7 X-Received: by 2002:a17:906:49c7:: with SMTP id w7mr9165486ejv.167.1570128829879; Thu, 03 Oct 2019 11:53:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570128829; cv=none; d=google.com; s=arc-20160816; b=hFpfppKuhwPnqs2sMpRyuLoPRzb3GQPYLjh3z5u0vNN5fT9Vwm1oiPdIQPRcWcZ6th 5WCZsT9WULRr3z6Hs7vDLH1LuCFWcDPoVYvUOIU31pkFWji9IERidxA0I9rpvDod3Fu4 vFPef3m1d2j4wNJb4Td5LamelvDYZfwiDX136GGRpDRSGo/Nc9wn14KM4vGWle8eggKC +Qi4GUpaBgPpLGsEB7OAp4MiEJ9shZgCUvJNwpX43WyN+/fHfnCInHZDQe9YlP7Un40A DNxWyhwI+6hGhrqVxpZvyIBci1QG7Z01fOFoVTXGM2SUCHaRmapcUl4imATYcFNNsygI R1fQ== 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=Pik4c2/eR2n+O3/UQUVN3F3A2IoOZ15/Aeq10b1MZko=; b=RjeDDqbXv6t7enekMUp6z7CTMuN1Lk2d8Za+GLMVnKJcGnwf3YVCiiQMA5OQgeAzXA gkWpBxhJrPwYrjzltqgGWdqvND06cr752TcfM6KMxRtvv/YletFh9CSVPP4DObSQ6pFw nsDBmIrqWpQPtceYs8E8bwCkt8eS9lcuUc3U9mCbZe+D449tfhZhbboeYVMF3/B3rWsw Minwos0MQXcNPwHrjB9Cjize/AMbv+SeVjooTkWPKuC1V7VE5pjdeUfpnfZF2sTZ0ij8 LJdydJnWvRa3t2SHewcQ7ZhBRGQxXOG3mdeAGpSZTC4vYsMqY7LHbxUrgeEP9bspAmz8 erhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zsU6sq2S; 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 h15si2180123eda.284.2019.10.03.11.53.25; Thu, 03 Oct 2019 11:53:49 -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=zsU6sq2S; 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 S2390607AbfJCRnQ (ORCPT + 99 others); Thu, 3 Oct 2019 13:43:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:38514 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730621AbfJCP4e (ORCPT ); Thu, 3 Oct 2019 11:56:34 -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 1883D207FF; Thu, 3 Oct 2019 15:56:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570118193; bh=fH7xEbLSbHI/G2E3fCNaLnww3DvBBPdljFfySDZlM1s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zsU6sq2S3UQDAj9qEPKF/y1dNgp4zXlv0WyhX31Dqdkd522KayDRReEzj08CnmRDA ab8Fpc6WyawYHx8BZZ7/a2RQRdFMicznUgzaMLgscllTLpWzM4MMMvyFVgY1INh19x ekKf941jQ6Ezpw0BLqTOEB2DvMnZRT8rTN+u0Uwc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Li RongQing , Pravin B Shelar , "David S. Miller" Subject: [PATCH 4.4 23/99] openvswitch: change type of UPCALL_PID attribute to NLA_UNSPEC Date: Thu, 3 Oct 2019 17:52:46 +0200 Message-Id: <20191003154305.326578184@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191003154252.297991283@linuxfoundation.org> References: <20191003154252.297991283@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: Li RongQing [ Upstream commit ea8564c865299815095bebeb4b25bef474218e4c ] userspace openvswitch patch "(dpif-linux: Implement the API functions to allow multiple handler threads read upcall)" changes its type from U32 to UNSPEC, but leave the kernel unchanged and after kernel 6e237d099fac "(netlink: Relax attr validation for fixed length types)", this bug is exposed by the below warning [ 57.215841] netlink: 'ovs-vswitchd': attribute type 5 has an invalid length. Fixes: 5cd667b0a456 ("openvswitch: Allow each vport to have an array of 'port_id's") Signed-off-by: Li RongQing Acked-by: Pravin B Shelar Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- net/openvswitch/datapath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/net/openvswitch/datapath.c +++ b/net/openvswitch/datapath.c @@ -2152,7 +2152,7 @@ static const struct nla_policy vport_pol [OVS_VPORT_ATTR_STATS] = { .len = sizeof(struct ovs_vport_stats) }, [OVS_VPORT_ATTR_PORT_NO] = { .type = NLA_U32 }, [OVS_VPORT_ATTR_TYPE] = { .type = NLA_U32 }, - [OVS_VPORT_ATTR_UPCALL_PID] = { .type = NLA_U32 }, + [OVS_VPORT_ATTR_UPCALL_PID] = { .type = NLA_UNSPEC }, [OVS_VPORT_ATTR_OPTIONS] = { .type = NLA_NESTED }, };