From: David Miller <davem@davemloft.net>
To: ameenali023@gmail.com
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 4/4] net/core/dev.c : Race condition in net_tx_action.
Date: Wed, 25 Feb 2015 13:47:43 -0500 (EST) [thread overview]
Message-ID: <20150225.134743.267148874428657838.davem@davemloft.net> (raw)
In-Reply-To: <1424886659-3641-1-git-send-email-ameenali023@gmail.com>
From: Ameen Ali <ameenali023@gmail.com>
Date: Wed, 25 Feb 2015 19:50:59 +0200
> @@ -3413,7 +3413,7 @@ EXPORT_SYMBOL(netif_rx_ni);
>
> static void net_tx_action(struct softirq_action *h)
> {
> - struct softnet_data *sd = this_cpu_ptr(&softnet_data);
> + volatile struct softnet_data *sd = &__get_cpu_var(softnet_data);
volatile is never an appropriate solution to a race condition
prev parent reply other threads:[~2015-02-25 18:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-25 17:50 Ameen Ali
2015-02-25 18:16 ` Eric Dumazet
2015-02-25 18:47 ` 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:
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=20150225.134743.267148874428657838.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=ameenali023@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.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
all inboxes | Powered by JetHome®