Intel-Wired-Lan Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Nguyen, Anthony L <anthony.l.nguyen@intel.com>
To: intel-wired-lan@osuosl.org
Subject: [Intel-wired-lan] [PATCH net v2] i40e: Fix NULL ptr dereference on VSI filter sync
Date: Wed, 17 Feb 2021 22:26:06 +0000	[thread overview]
Message-ID: <e423d17ef916b7e81dbbca4eb81f746babbfdf1a.camel@intel.com> (raw)
In-Reply-To: <1613561124-15464-1-git-send-email-michal.maloszewski@intel.com>

On Wed, 2021-02-17 at 11:25 +0000, Micha? Ma?oszewski wrote:
> Remove the reason of null pointer dereference in sync vsi filters.
> Added new I40E_VSI_RELEASING flag to signalize deleting and releasing
> of VSI resources to sync this thread with sync filters subtask.
> Without this patch it is possible to start update the vsi filter list
> after vsi is removed, that's causing a kernel oops.
> 
> Fixes: 17652c6336fd("i40e: remove unused argument")
> Reviewed-by: Przemyslaw Patynowski <przemyslawx.patynowski@intel.com>
> Reviewed-by: Fijalkowski, WitoldX <witoldx.fijalkowski@intel.com>
> Reviewed-by: Jaroslaw Gawin <jaroslawx.gawin@intel.com>
> Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
> Signed-off-by: Grzegorz Szczurek <grzegorzx.szczurek@intel.com>
> Signed-off-by: Michal Maloszewski <michal.maloszewski@intel.com>
> ---
>  drivers/net/ethernet/intel/i40e/i40e.h      | 79
> +++++++++++++++++++++++++++++
>  drivers/net/ethernet/intel/i40e/i40e_main.c | 60 ++++++++++++++++---
> ---
>  2 files changed, 124 insertions(+), 15 deletions(-)
> 
> diff --git a/drivers/net/ethernet/intel/i40e/i40e.h
> b/drivers/net/ethernet/intel/i40e/i40e.h
> index 425d620..558b0ae 100644
> --- a/drivers/net/ethernet/intel/i40e/i40e.h
> +++ b/drivers/net/ethernet/intel/i40e/i40e.h
> @@ -158,6 +158,7 @@ enum i40e_vsi_state_t {
>  	__I40E_VSI_OVERFLOW_PROMISC,
>  	__I40E_VSI_REINIT_REQUESTED,
>  	__I40E_VSI_DOWN_REQUESTED,
> +	__I40E_VSI_RELEASING,
>  	/* This must be last as it determines the size of the BITMAP */
>  	__I40E_VSI_STATE_SIZE__,
>  };
> @@ -425,6 +426,8 @@ struct i40e_channel {
>  	struct i40e_vsi *parent_vsi;
>  };
>  
> +struct i40e_ptp_pins_settings;
> +
>  static inline bool i40e_is_channel_macvlan(struct i40e_channel *ch)
>  {
>  	return !!ch->fwd;
> @@ -641,12 +644,83 @@ struct i40e_pf {
>  	struct i40e_rx_pb_config pb_cfg; /* Current Rx packet buffer
> config */
>  	struct i40e_dcbx_config tmp_cfg;
>  
> +/* GPIO defines used by PTP */
> +#define I40E_SDP3_2			18
> +#define I40E_SDP3_3			19

...

There's a lot of code here that isn't related to the patch and not
mentioned in the commit message. It also wasn't in your v1. It looks
like pieces of other patches. Please review your patch before sending
it.

Thanks,
Tony

  reply	other threads:[~2021-02-17 22:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-17 11:25 [Intel-wired-lan] [PATCH net v2] i40e: Fix NULL ptr dereference on VSI filter sync =?unknown-8bit?q?Micha=C5=82_Ma=C5=82oszewski?=
2021-02-17 22:26 ` Nguyen, Anthony L [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-02-11 11:29 =?unknown-8bit?q?Micha=C5=82_Ma=C5=82oszewski?=
2021-02-11 18:25 ` Jesse Brandeburg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e423d17ef916b7e81dbbca4eb81f746babbfdf1a.camel@intel.com \
    --to=anthony.l.nguyen@intel.com \
    --cc=intel-wired-lan@osuosl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox