Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp5933233pxb; Tue, 16 Feb 2021 11:07:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJyuQAlQb878i52yUiPeVCpOGO6Ff1cJyy2IqMM2YpGQI2bM+H07RGO66vq82hJ2vYKjtvbC X-Received: by 2002:a05:6402:1e4:: with SMTP id i4mr16390952edy.227.1613502452807; Tue, 16 Feb 2021 11:07:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613502452; cv=none; d=google.com; s=arc-20160816; b=igQo+wXOfDf4/dRTdTjO68WWW2LrI1vrqlOKXbCfiznoCzR5S5FIokw3ZN0FKQVhxm idW/csNbVxka7fyoFHDpaO+ZklKordzj/RSjBZF3mnKzWTjNqN/YBXDhjnmSSEQGY95u FMkp3VvHLQtakfnP/6eWM53ls4xQm9kMmuDoUxe8tiVgifGpy0L3enaYY414cPamOiQw CElKoCY3zLl54nfjGgM9l3JpV1Wi1BA36rShT+W/zL3T6dRA6SnMgTsh1EdiReiHX7Tn S4Tjic0VjlVWWzMiplW7fUSEYwLoiXr2KxBfF5Dd62ww5hSBlgoRMpFW+96StfKCnuHv Hv1g== 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=pfgdjjFnzWT6nIXYea4eb2LxWJE9z91Xa9+Wh/cdXH8=; b=xozid2GXOiehzqXaaSnFZAuQdex05qJ/vKpP6ZKMZFE7b6kbAmT/+/VdomfEsooiyd mnWIY51tZZ9YV+ibWN2GV082+GycqUNYdwC+2Q+W3Sy0cKTtIvhqWWJsBUvoRYkOmO7r 1NDCnJbPamEJoP5pto3n9iUuyKXsn+QMO++M+MjNd3C3grJgk4bkaCdmPEat+3GNkCNG PsK/6NWJ7djFnpDjzwpijmhc4J/GpT91KUm5rVBZ2DQfG7AqpT79NqgvF1i6OJ3UzVAF dkcKZT+qUkRLRF/jKuIlpPSCKnXrz/XVbUDzg4EoXs9Tn4k1O6jSGskH/m65uJdx3z5L KBeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZC3gMres; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b2si14765996ejc.551.2021.02.16.11.07.09; Tue, 16 Feb 2021 11:07:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZC3gMres; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S231194AbhBPTF7 (ORCPT + 99 others); Tue, 16 Feb 2021 14:05:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231190AbhBPTFy (ORCPT ); Tue, 16 Feb 2021 14:05:54 -0500 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92A23C06174A; Tue, 16 Feb 2021 11:05:14 -0800 (PST) Received: by mail-pj1-x1029.google.com with SMTP id gx20so6567326pjb.1; Tue, 16 Feb 2021 11:05:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=pfgdjjFnzWT6nIXYea4eb2LxWJE9z91Xa9+Wh/cdXH8=; b=ZC3gMrescLMP5wYUdc3qyaQfGBodRCwh+6wc2zGjUmxE0nQKYV1MzOrfTJL31d/AWf 0XqLwhQAXhEupz6BEj24nIcDWSRUDST2k1ozDAREtI9qV2AO925qzIc2dvf5CdbHnRhJ KKIbgvMwGTPbkSsExDnXMXLOgagGhK+uWJ4Igbx8zCV5rANwknSco1oo9+Po3dcvRki7 P9Y4YpapShaR9P7WK32QSkXqAMdpzR0UFYA3eUiwF9H7ls4jxacxJbah2pLzqw2wJkva QwDj+k9MX5xLHJxGhYu0OKi01/+fw37WlrzglkuASugW5jfT30laFMQlVcspQ87diVm1 NIqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pfgdjjFnzWT6nIXYea4eb2LxWJE9z91Xa9+Wh/cdXH8=; b=qq5xikB8KD4w396KXuXygaB6KbYXy/AwKZwwmNp0MsNTo4C6cFCWKsS8y61bGF9Px1 m1mMnqjkMdVAjJS+37uVneU7wpAIYm9+b2k+y2lEDT1KDCVw0f/7NZleOwflPxseZdFe Zi7eHPMFrMR/lrv/p9cBonQFPukLTvU9C7rilpRvZyrSi+3eFxWYMkAmyWkVQ5HNlSOd 2lJ9ATqQOe0j+axnpR89XePUEGn+moEcYK77ShCm6ptwNcvVj9g3IY3dC4YnDitMTSzb Gjct9rnfyGqTmbDRVweOc3Lkgx4g9ImxpUO+jwldRaixeX211VsW54tfmqo76qqeDwzl uQQg== X-Gm-Message-State: AOAM5329iO/X2jcUwaKSll//1vCCj/Cuw8qPmhLPFymU/0knIf/XzO51 KUipOMwlIZq7By9944D/wnpKZJV8lEGOmFlhbrk= X-Received: by 2002:a17:902:c155:b029:e3:7396:ec41 with SMTP id 21-20020a170902c155b02900e37396ec41mr4336335plj.10.1613502314183; Tue, 16 Feb 2021 11:05:14 -0800 (PST) MIME-Version: 1.0 References: <20210216162200.1834139-1-vladbu@nvidia.com> In-Reply-To: <20210216162200.1834139-1-vladbu@nvidia.com> From: Cong Wang Date: Tue, 16 Feb 2021 11:05:03 -0800 Message-ID: Subject: Re: [PATCH net] net: sched: fix police ext initialization To: Vlad Buslov Cc: syzbot , David Miller , Jamal Hadi Salim , Jiri Pirko , Jakub Kicinski , LKML , Linux Kernel Network Developers Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 16, 2021 at 8:22 AM Vlad Buslov wrote: > > When police action is created by cls API tcf_exts_validate() first > conditional that calls tcf_action_init_1() directly, the action idr is not > updated according to latest changes in action API that require caller to > commit newly created action to idr with tcf_idr_insert_many(). This results > such action not being accessible through act API and causes crash reported > by syzbot: Good catch! This certainly makes sense to me, and I feed it to syzbot too, it is happy with this patch, so: Reported-and-tested-by: syzbot+151e3e714d34ae4ce7e8@syzkaller.appspotmail.com Reviewed-by: Cong Wang Thanks.