Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp861303ybi; Wed, 19 Jun 2019 09:04:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqxY6ZCIauVcJDTVp9UD/mdSEmYPQkEzRbi1yxSSBJzEY6jmVJc/WVmGowMyTwz43SYRR3jw X-Received: by 2002:aa7:8752:: with SMTP id g18mr10856023pfo.201.1560960290952; Wed, 19 Jun 2019 09:04:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560960290; cv=none; d=google.com; s=arc-20160816; b=GTxeJf2Pxo7Azh997RK0P5hNvVatzfdVUd5eKjnyvdegqGeG7/LxXJ36ZRUzWzeDAf r+S1aqNHjQN+UEEBVroL3VJ1mqQzAQsDrtBJyGLzESCPxW3k6nI2HUmxFtvtVvNHZUPD u8+ahnFtItN7dvxgqbjb2xrpdkWUyun4tQVtjO5coSnUX5h6aNLrQrm7t8XhwfFj+RvX uvBXwrqfNtVNUAXdaNNgVM5CQZzM08TOWZe+H3GACi/9BGENpPMREOvn8ZTmO/7dZxFq 6pyesyFGdBvC0umcF4EZxzsSybwVOvX6bsXe9uCIa9BVeo6ULPZEHRT1dJa9lT+iCm7e HGMg== 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; bh=HHGRHddmzv4JMLKOokse7N3kTfL9x/t0NTzj9KQKFEU=; b=uij2j+aenQOYtynxEJZHhxWNRi6iQffrzjhfnp0jNll2WptgDQdplec8N/1+hOo3XD ZarYG3QOQ0I6KW2in6ohgyKgI9k8JAHqPKZG2yLStw0fAzuYr/m6USEnW8PdP3y5DiWf avlAe0S8Fz9LfAtMnXl07Jm7I6j/9QS+sgzNixirkV29Da9ewqEAkFKC7x2PUYrF1lFt W9r9gE9N/HZk2TFn6VWCsJsaXJsVx/E/NV9tSSdM8sggDOSncK5+9TuPWddz3L9wU43w 2ZocDRzdlKe5lQVVZxLWqfm9wha3amCVIHxprX9pO+52gMLMll/+/4vx9Y2r2GEPaOvK agKw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o3si3176981pgp.146.2019.06.19.09.04.34; Wed, 19 Jun 2019 09:04:50 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729903AbfFSQE3 (ORCPT + 99 others); Wed, 19 Jun 2019 12:04:29 -0400 Received: from mail.us.es ([193.147.175.20]:34046 "EHLO mail.us.es" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727222AbfFSQE2 (ORCPT ); Wed, 19 Jun 2019 12:04:28 -0400 Received: from antivirus1-rhel7.int (unknown [192.168.2.11]) by mail.us.es (Postfix) with ESMTP id 78578F2691 for ; Wed, 19 Jun 2019 18:04:25 +0200 (CEST) Received: from antivirus1-rhel7.int (localhost [127.0.0.1]) by antivirus1-rhel7.int (Postfix) with ESMTP id 672D3DA713 for ; Wed, 19 Jun 2019 18:04:25 +0200 (CEST) Received: by antivirus1-rhel7.int (Postfix, from userid 99) id 5C21ADA707; Wed, 19 Jun 2019 18:04:25 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on antivirus1-rhel7.int X-Spam-Level: X-Spam-Status: No, score=-108.2 required=7.5 tests=ALL_TRUSTED,BAYES_50, SMTPAUTH_US2,USER_IN_WHITELIST autolearn=disabled version=3.4.1 Received: from antivirus1-rhel7.int (localhost [127.0.0.1]) by antivirus1-rhel7.int (Postfix) with ESMTP id 07631DA70E; Wed, 19 Jun 2019 18:04:23 +0200 (CEST) Received: from 192.168.1.97 (192.168.1.97) by antivirus1-rhel7.int (F-Secure/fsigk_smtp/550/antivirus1-rhel7.int); Wed, 19 Jun 2019 18:04:23 +0200 (CEST) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/antivirus1-rhel7.int) Received: from us.es (sys.soleta.eu [212.170.55.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: 1984lsi) by entrada.int (Postfix) with ESMTPSA id D1B614265A2F; Wed, 19 Jun 2019 18:04:22 +0200 (CEST) Date: Wed, 19 Jun 2019 18:04:22 +0200 X-SMTPAUTHUS: auth mail.us.es From: Pablo Neira Ayuso To: Arnd Bergmann Cc: Jozsef Kadlecsik , Florian Westphal , "David S. Miller" , Fernando Fernandez Mancera , netfilter-devel@vger.kernel.org, coreteam@netfilter.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] netfilter: synproxy: fix nf_synproxy_ipv{4,6}_init() return code Message-ID: <20190619160422.t33ckepbusdtfjzq@salvia> References: <20190619125314.1005993-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190619125314.1005993-1-arnd@arndb.de> User-Agent: NeoMutt/20170113 (1.7.2) X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 19, 2019 at 02:53:07PM +0200, Arnd Bergmann wrote: > We return an uninitialized variable on success: > > net/netfilter/nf_synproxy_core.c:793:6: error: variable 'err' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized] > if (snet->hook_ref4 == 0) { > ^~~~~~~~~~~~~~~~~~~~ > > Initialize the return code to zero first. Thanks Arnd. We got a fix for this: https://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next.git/commit/?id=72c5e11854afb842e157353be0291d65b91725f5