Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3688836rwb; Tue, 20 Sep 2022 03:20:36 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4gAt6oWQmZ2wE8KGLML9BwlpHOR5JcuvNZEWlFkewmdonfCnsFC0z7s3iFZQLs9wnUm8wL X-Received: by 2002:a17:90b:3a90:b0:202:d341:bf81 with SMTP id om16-20020a17090b3a9000b00202d341bf81mr3081253pjb.179.1663669235988; Tue, 20 Sep 2022 03:20:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663669235; cv=none; d=google.com; s=arc-20160816; b=zqdyhXJC73dM2ACL3mywKfYqFzODMx5YaauqhBmJ5RWEYCaVkmTbfU10pTjhO6B44E VzDIJfRt3DWM117lIwtcy8Qz6j6FUD1u4HXVjBMjVNb4Y9afevjTjIYaOt68gG0THl6c PbGxqi1WAq2aLms6DdrZtHHQYPIce84fvTbl16IASLmUo1NFYhrh7Gaj2iH5npy4lS2R kmWHMNGFbuRy+8NB6CEVNAiZ23wxUVPKgEPyOfi4FOGiWwsKSqxR9AvmPMPDu17muGm9 mSwTYHvSpDmf8DGkOI3ZiN5pyQCjlpTwTOm6C+iwsZpS/8xIHWdPvhbBmr8D4M56D9Bs YS2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=PCpH7XaOYZZ5Juyccnl2JBqJJq74rbofAcRfa5pnMW4=; b=lKGUG2XRKbGEPYMVqDsjt8xu84idH3EKr9f23oK0tH9YRaIYPY/B7Y9acvIKM74e7A 8J2Tnmzet15lG2JhNdjV6fmPybR4wx+1JUCqeBnY72Bc5opY6MMk8OtQIESy3HDmFmip BjO7dCHAuZw66R9KPo78DE3lEo+mc9QPk5VszJWpTdwggvOHepOuTaV/0KNsndoJngk8 bhHknHfkmdnM6yg99NtNPXdY2SMQs+mtTZ4V10p3dtZCu5kUKI6guE0QksTddiH5Vpnw 19l+BmYWk5eGFKnmOjSbnLk9TAWiB38EMGFwz3X69A0AIIFlIWWeTmYUQuVYhYPPWDMb Smrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=F4XYTJfQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q10-20020a170902eb8a00b00171afc7898esi1302196plg.300.2022.09.20.03.20.24; Tue, 20 Sep 2022 03:20:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=F4XYTJfQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229721AbiITKKD (ORCPT + 99 others); Tue, 20 Sep 2022 06:10:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229667AbiITKJj (ORCPT ); Tue, 20 Sep 2022 06:09:39 -0400 Received: from mail-yb1-xb2d.google.com (mail-yb1-xb2d.google.com [IPv6:2607:f8b0:4864:20::b2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F835F12; Tue, 20 Sep 2022 03:09:33 -0700 (PDT) Received: by mail-yb1-xb2d.google.com with SMTP id e187so2608790ybh.10; Tue, 20 Sep 2022 03:09:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=PCpH7XaOYZZ5Juyccnl2JBqJJq74rbofAcRfa5pnMW4=; b=F4XYTJfQTTCYoo4OMhB4Z/sqJL21Ik7naXfWjfZE+1h6DzFB/TwjLGDVcUsUzxJYda cvpra7dueS1+C9mRHZONpsH4XVQye02M/ra+Aaj99Q35PD9bkU8TW8TCmXb4dupck9Hf ochtIMPQmgu8BdMdXurxEfWPlCzve9N3mwYQZn8LfwkNpLcp0OKXwmWYxlXF+flA75z7 OmzqElNNpVU1RNo3wBv1iWGHBcKcDb8EvtIQC99bTkFC8dtt0Miy51KNgQecOcrdgbiM /z695TTWwrQSfMsyvznICWZKW6T6209NBmftinqMOs5qkUaWMcKHm1uAj0xEeAQoXBs4 Ap1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=PCpH7XaOYZZ5Juyccnl2JBqJJq74rbofAcRfa5pnMW4=; b=aPLhlJpHP5wpwH2FaKsmTpHUxoge205KM1cdzhriioTpRRj+AeFN5Zi5afjzIoqx88 pi8E/Zq+kOOHMXMEcuvdefR64cwqJO83kOlcRayyM3lEPtj0zoR1qaHqxwjZAczLkiqW nIYeIXGjKKtVxMA8hHy53sYbGzyOWze7twVd0zVKOA4qM+dQ7vicojK+cM93PHg0gHRj PdGQd17XgOYRNoJkVP3mfksdaDJ51ITnUuYbeGR9wuD5yMmT70J5xvgFweolbEmeelXC HALujvDvPs2l+Utc04P8RNL5oMWsqS0JeQodPCnwzQu3s2BvjCvv1cTa0CQsaMrNZFec GfSQ== X-Gm-Message-State: ACrzQf3GH2sbeF15N5b2KZSAdQoE/NIk8wgFhCi0goXVQOoCN1G/5JrC y0LgxgcNJLvJhcHdd5vRD6lkNa1R7apYrDohdw== X-Received: by 2002:a25:d0c7:0:b0:6af:218:1751 with SMTP id h190-20020a25d0c7000000b006af02181751mr5911218ybg.508.1663668572279; Tue, 20 Sep 2022 03:09:32 -0700 (PDT) MIME-Version: 1.0 References: <3cd65bdf26ba7b64c8ade801820562c426b90109.1663628505.git.jtoppins@redhat.com> In-Reply-To: <3cd65bdf26ba7b64c8ade801820562c426b90109.1663628505.git.jtoppins@redhat.com> From: Jussi Maki Date: Tue, 20 Sep 2022 12:08:56 +0200 Message-ID: Subject: Re: [PATCH net 2/2] bonding: fix NULL deref in bond_rr_gen_slave_id To: Jonathan Toppins Cc: "netdev @ vger . kernel . org" , Jay Vosburgh , Veaceslav Falico , Andy Gospodarek , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 20, 2022 at 1:09 AM Jonathan Toppins wrote: > > Fix a NULL dereference of the struct bonding.rr_tx_counter member because > if a bond is initially created with an initial mode != zero (Round Robin) > the memory required for the counter is never created and when the mode is > changed there is never any attempt to verify the memory is allocated upon > switching modes. Thanks for the fix and sorry for missing the mode change path in the original patch. Acked-by: Jussi Maki