LKML Archive on
help / color / mirror / Atom feed
From: David Miller <>
Subject: Re: [PATCH net] vmxnet3: fix incorrect dereference when rxvlan is disabled
Date: Thu, 19 Apr 2018 13:59:55 -0400 (EDT)	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

From: Ronak Doshi <>
Date: Wed, 18 Apr 2018 12:48:04 -0700

> vmxnet3_get_hdr_len() is used to calculate the header length which in
> turn is used to calculate the gso_size for skb. When rxvlan offload is
> disabled, vlan tag is present in the header and the function references
> ip header from sizeof(ethhdr) and leads to incorrect pointer reference.
> This patch fixes this issue by taking sizeof(vlan_ethhdr) into account
> if vlan tag is present and correctly references the ip hdr.
> Signed-off-by: Ronak Doshi <>
> Acked-by: Guolin Yang <>
> Acked-by: Louis Luo <>

Applied and queued up for -stable, thanks.

Please provide an appropriate Fixes: tag next time.

      reply	other threads:[~2018-04-19 18:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-18 19:48 Ronak Doshi
2018-04-19 17:59 ` David Miller [this message]

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:

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

  git send-email \ \ \ \ \ \ \
    --subject='Re: [PATCH net] vmxnet3: fix incorrect dereference when rxvlan is disabled' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).