[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20190712.152538.1282305452397171244.davem@davemloft.net>
Date: Fri, 12 Jul 2019 15:25:38 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: vladbu@...lanox.com
Cc: netdev@...r.kernel.org, jhs@...atatu.com, xiyou.wangcong@...il.com,
jiri@...nulli.us, pablo@...filter.org, saeedm@...lanox.com
Subject: Re: [PATCH net-next] net: sched: Fix NULL-pointer dereference in
tc_indr_block_ing_cmd()
From: Vlad Buslov <vladbu@...lanox.com>
Date: Wed, 10 Jul 2019 20:12:29 +0300
> After recent refactoring of block offlads infrastructure, indr_dev->block
> pointer is dereferenced before it is verified to be non-NULL. Example stack
> trace where this behavior leads to NULL-pointer dereference error when
> creating vxlan dev on system with mlx5 NIC with offloads enabled:
...
> Introduce new function tcf_block_non_null_shared() that verifies block
> pointer before dereferencing it to obtain index. Use the function in
> tc_indr_block_ing_cmd() to prevent NULL pointer dereference.
>
> Fixes: 955bcb6ea0df ("drivers: net: use flow block API")
> Signed-off-by: Vlad Buslov <vladbu@...lanox.com>
Applied.
Powered by blists - more mailing lists