Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1849414lqa; Tue, 30 Apr 2024 00:32:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXEsHQWTyiGGyoqeVjX7kE/gn+KOtbBw+xn1TQjndiQ3OGLrf+vnZDl/pN6x7EMCcbhtp2Tf+/5xT2SN+VrqlWFMndpCcIJiuVe+ownBQ== X-Google-Smtp-Source: AGHT+IFCdcq3RdmMwTgTKt1OpyzCmid9OAIzzt07iQOm5fV4Mzrkfnr13mb/5AiLrY22LtAqH+id X-Received: by 2002:a50:d519:0:b0:56d:f78f:8747 with SMTP id u25-20020a50d519000000b0056df78f8747mr10054001edi.16.1714462348274; Tue, 30 Apr 2024 00:32:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714462348; cv=pass; d=google.com; s=arc-20160816; b=HsgZwHxlx2+93jCLjNvpH79NhX41d1GMNXCnUhPcZEsRfF7ZvFcGA/ErFKY9F4LgGW O/vD5QCth3DKUTmNS28IQ9n5zdu4aazc8xYQSRD6J6SLEwjNJWrb3AudoN9m+jrSwgQP QJZc13V01K2bw5mTlFDIQ2GDb148Y8QmdziVjjuXQj7TiUeLSsqKjXrQBV+Xo0+Y7c62 Dm+T2GiCktkWoprqu6MZS/9FQTcgX/9qjZnvKTTLVMUuFIF9Bjbb/Sj8uax0oLd/oFyl yq653SBEFfcfqjokTvXTill3Q7EVSB6JHiRJlliDE4UN9eOpHPp4K/TUzTa4XXHmbrH/ rRKA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:subject:cc:to:from :date:dkim-signature; bh=4O72YgIq0VJOrYsc+awiottllT2PSmLYAMhVusgwnMs=; fh=de7KwWRDqty7bWDm4qE/SKW5YAy5WVl1wu8qpvGl+v4=; b=wICDymYnjjd4GLomeRQIifiyxE81YRSKerPjmk1IfhPNZhqkgCsC6edT3gvWlKIRpM PXaw3BmIK/Dj2yOLX6Tcxbgc2e7NJiN6juTIu2nIPywEZ36WpF0sHo+XQainLdGIWBsw aZFCEFXSBdii+dqG5OcR3XHSZ6kBIThZgLQErEgQQCkhmt/gz6oB9waTCyTcnlH0WK7c 0XK0t1dI28BD88ckwesWxkCvbiFgi2t4sIhKThWvTOtDDPPrUtM1gvL452V3HYs6jEdj TjvZOyA4XuBlvUIGcHPZNWMGlxekU7G9wL1UGIkEWUBGIgnggRtLvg94pHqTmC0Ov3AN jtcw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dNKw7SrB; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-163477-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163477-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id g13-20020a0564021ecd00b005726783837bsi4157447edg.490.2024.04.30.00.32.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 00:32:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-163477-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dNKw7SrB; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-163477-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163477-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 255581F2195C for ; Tue, 30 Apr 2024 07:32:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9A60A3F9E0; Tue, 30 Apr 2024 07:30:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="dNKw7SrB" Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DBA463F8E2 for ; Tue, 30 Apr 2024 07:30:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714462203; cv=none; b=ZUaEQFwOYCd3pb2BOzhiBXfjfg4cjXYS5GLyHBZNfShE5G1cqIDgIbiiC7AIslBHBHL1Ka8GPATOw9GF3WBDDNz4Gp8xGbBySD7CPosq1wMrXET5EDNrZd7IuYo6zvVuOEpxORRFbBF2p3Qmxo6HaQkov8wDxAnudMGvrhiOvmA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714462203; c=relaxed/simple; bh=vPRzrz4KHaiKE/Ee8BHlhjHFLIdji5EOgwc/kZSc/PM=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=QHSaO5yvYKwgFJ61F4n4e9kwpRY7TriS03PvoJwwO4bapKGkAHhY5gNNLNMUMP2QTKJHBwggScWNAwlN6rINEgE6RA3KB0Unzuxea17i6LtLJ8AWXucmk40oAWe+YAWtl/6Zfn+nr2qKthpP04K5st8EyRKm0UqptIbmwmc1nG4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=dNKw7SrB; arc=none smtp.client-ip=209.85.218.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-a5200afe39eso594121166b.1 for ; Tue, 30 Apr 2024 00:30:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714462200; x=1715067000; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:message-id:subject:cc :to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=4O72YgIq0VJOrYsc+awiottllT2PSmLYAMhVusgwnMs=; b=dNKw7SrBXWoK8eVXagUTEw8v+s+2hdk42gteXx1buwZsba2azXH9FdzcULf/C+RXek tAl0M344fDAqkp5Xa39iPM7aLi7WZE65cGrjhJDY93+GTg7zACOhjBvJSIF8b0PJNsUn BAmaIniAgngdX6nWotrEsghnCmKIdCRzXE4us6ssWAvNP6MvKYDJIHeHNi3hzzeVv6NC pjSxrBZQEVTkTEqVPDFAYgnEAEGCLY7o2p2EhJKGJJdT+ortkNYTRlWPO+OxsuQHeoiv 6zNJPET5RqYQuxyaL9RURqeKxmYrHeXKmXHNieec/C5ZOarrZijdPvgSYRk9eGVCP+s0 HQ1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714462200; x=1715067000; h=in-reply-to:content-disposition:mime-version:message-id:subject:cc :to:from:date:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=4O72YgIq0VJOrYsc+awiottllT2PSmLYAMhVusgwnMs=; b=uz2uToBaZISzOMZL1NRKBVxOrFT7DnsZ5/Z9WgM0CBOYrUvVOsZhM3zX9qlkuRgOsW B0Ydp9ygIj1dSmu/BWc1fbgP44PLVcp+EdU5HRt54WzfIWubdnQVbhKMqs9znNixdt1Q TZX1RXpnwV9FOjporH6iFAVz9IBibsjMIzF/VgfUreJk/UD9wqF/NvDc0iz3pRhha+l7 UGNnWNAle8oEUZLzmo8sFCKHPQ2LgUW6j6rQc62LiWX+8Tyn/FdGL/pXroCUi3RomMTv rouWajv5Rd3BWupTJrg6MymxgDnvS7IJK4B1MBknlwZoYGNdkiHbBvtKLD7aEVjmMrf3 l85A== X-Forwarded-Encrypted: i=1; AJvYcCUIE9K+tSJ0QFuw3f6U97nMyJoVrHRtVf/gb6tUJbeflB1d0z7lSe1/VYt0zCCk2+nPIJYU6AgF/ff+5fVZMkFOX3w6zfXWFUnK9e2N X-Gm-Message-State: AOJu0Yyo3NMKTpwwooNErl8916xLEQfMcdXQ0VHVZBBYqo+wP8OXjbCm gBGut447LvYdgtAhJsHz6/2Ocjqq90+b8dLArwMsEeQYBGzlHLvAUL5fAGdhDR0= X-Received: by 2002:a17:906:aed2:b0:a58:a2f9:d795 with SMTP id me18-20020a170906aed200b00a58a2f9d795mr12458252ejb.59.1714462199832; Tue, 30 Apr 2024 00:29:59 -0700 (PDT) Received: from localhost ([102.222.70.76]) by smtp.gmail.com with ESMTPSA id s19-20020a170906a19300b00a590f9c1f91sm1066066ejy.197.2024.04.30.00.29.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 00:29:59 -0700 (PDT) Date: Tue, 30 Apr 2024 10:29:56 +0300 From: Dan Carpenter To: oe-kbuild@lists.linux.dev, Adrian Moreno , netdev@vger.kernel.org Cc: lkp@intel.com, oe-kbuild-all@lists.linux.dev, aconole@redhat.com, echaudro@redhat.com, horms@kernel.org, i.maximets@ovn.org, Adrian Moreno , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Pravin B Shelar , Donald Hunter , linux-kernel@vger.kernel.org, dev@openvswitch.org Subject: Re: [PATCH net-next 6/8] net:openvswitch: add psample support Message-ID: <29e82a41-5e10-4135-9928-468e5d3abf39@moroto.mountain> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240424135109.3524355-7-amorenoz@redhat.com> Hi Adrian, kernel test robot noticed the following build warnings: url: https://github.com/intel-lab-lkp/linux/commits/Adrian-Moreno/net-netlink-export-genl-private-pointer-getters/20240424-215821 base: net-next/main patch link: https://lore.kernel.org/r/20240424135109.3524355-7-amorenoz%40redhat.com patch subject: [PATCH net-next 6/8] net:openvswitch: add psample support config: i386-randconfig-141-20240430 (https://download.01.org/0day-ci/archive/20240430/202404300611.kJOZL2KI-lkp@intel.com/config) compiler: gcc-13 (Ubuntu 13.2.0-4ubuntu3) 13.2.0 If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Reported-by: Dan Carpenter | Closes: https://lore.kernel.org/r/202404300611.kJOZL2KI-lkp@intel.com/ New smatch warnings: net/openvswitch/actions.c:1097 sample() error: uninitialized symbol 'ret'. vim +/ret +1097 net/openvswitch/actions.c ccb1352e76cff0 Jesse Gross 2011-10-25 1061 static int sample(struct datapath *dp, struct sk_buff *skb, ccea74457bbdaf Neil McKee 2015-05-26 1062 struct sw_flow_key *key, const struct nlattr *attr, 798c166173ffb5 andy zhou 2017-03-20 1063 bool last) ccb1352e76cff0 Jesse Gross 2011-10-25 1064 { ccc0b9e4657efd Adrian Moreno 2024-04-24 1065 const struct sample_arg *arg; 798c166173ffb5 andy zhou 2017-03-20 1066 struct nlattr *sample_arg; 798c166173ffb5 andy zhou 2017-03-20 1067 int rem = nla_len(attr); ccc0b9e4657efd Adrian Moreno 2024-04-24 1068 struct nlattr *actions; bef7f7567a104a andy zhou 2017-03-20 1069 bool clone_flow_key; ccc0b9e4657efd Adrian Moreno 2024-04-24 1070 int ret; ccb1352e76cff0 Jesse Gross 2011-10-25 1071 798c166173ffb5 andy zhou 2017-03-20 1072 /* The first action is always 'OVS_SAMPLE_ATTR_ARG'. */ 798c166173ffb5 andy zhou 2017-03-20 1073 sample_arg = nla_data(attr); 798c166173ffb5 andy zhou 2017-03-20 1074 arg = nla_data(sample_arg); 798c166173ffb5 andy zhou 2017-03-20 1075 actions = nla_next(sample_arg, &rem); e05176a3283822 Wenyu Zhang 2015-08-05 1076 798c166173ffb5 andy zhou 2017-03-20 1077 if ((arg->probability != U32_MAX) && a251c17aa558d8 Jason A. Donenfeld 2022-10-05 1078 (!arg->probability || get_random_u32() > arg->probability)) { 798c166173ffb5 andy zhou 2017-03-20 1079 if (last) 9d802da40b7c82 Adrian Moreno 2023-08-11 1080 ovs_kfree_skb_reason(skb, OVS_DROP_LAST_ACTION); ccb1352e76cff0 Jesse Gross 2011-10-25 1081 return 0; ccb1352e76cff0 Jesse Gross 2011-10-25 1082 } 651887b0c22cff Simon Horman 2014-07-21 1083 ccc0b9e4657efd Adrian Moreno 2024-04-24 1084 if (arg->flags & OVS_SAMPLE_ARG_FLAG_PSAMPLE) { ccc0b9e4657efd Adrian Moreno 2024-04-24 1085 ret = ovs_psample_packet(dp, key, arg, skb); ccc0b9e4657efd Adrian Moreno 2024-04-24 1086 if (ret) ccc0b9e4657efd Adrian Moreno 2024-04-24 1087 return ret; ccc0b9e4657efd Adrian Moreno 2024-04-24 1088 } ccc0b9e4657efd Adrian Moreno 2024-04-24 1089 ccc0b9e4657efd Adrian Moreno 2024-04-24 1090 if (nla_ok(actions, rem)) { ccc0b9e4657efd Adrian Moreno 2024-04-24 1091 clone_flow_key = !(arg->flags & OVS_SAMPLE_ARG_FLAG_EXEC); ccc0b9e4657efd Adrian Moreno 2024-04-24 1092 ret = clone_execute(dp, skb, key, 0, actions, rem, last, bef7f7567a104a andy zhou 2017-03-20 1093 clone_flow_key); ccc0b9e4657efd Adrian Moreno 2024-04-24 1094 } else if (last) { ccc0b9e4657efd Adrian Moreno 2024-04-24 1095 ovs_kfree_skb_reason(skb, OVS_DROP_LAST_ACTION); ret is uninitialized on this last path. ccc0b9e4657efd Adrian Moreno 2024-04-24 1096 } ccc0b9e4657efd Adrian Moreno 2024-04-24 @1097 return ret; 971427f353f3c4 Andy Zhou 2014-09-15 1098 } -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki