linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Fw: [Bug 195953] New: Possible access to unintended variable in "linux/net/mac80211/sta_info.c" line 2158
@ 2017-06-01 18:07 Stephen Hemminger
  2017-06-01 18:23 ` Johannes Berg
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Hemminger @ 2017-06-01 18:07 UTC (permalink / raw)
  To: johannes; +Cc: linux-wireless



Begin forwarded message:

Date: Thu, 01 Jun 2017 06:55:22 +0000
From: bugzilla-daemon@bugzilla.kernel.org
To: stephen@networkplumber.org
Subject: [Bug 195953] New: Possible access to unintended variable in "linux/net/mac80211/sta_info.c" line 2158


https://bugzilla.kernel.org/show_bug.cgi?id=195953

            Bug ID: 195953
           Summary: Possible access to unintended variable in
                    "linux/net/mac80211/sta_info.c" line 2158
           Product: Networking
           Version: 2.5
    Kernel Version: 4.12-rc3
          Hardware: All
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Other
          Assignee: stephen@networkplumber.org
          Reporter: petrum@gmail.com
        Regression: No

While experimenting with a CodeSonar plugin we develop, we noticed a
potential issue in file "linux/net/mac80211/sta_info.c" line 2158 function
sta_set_sinfo

        sinfo->rx_dropped_misc = sta->rx_stats.dropped;
        if (sta->pcpu_rx_stats) {
                for_each_possible_cpu(cpu) {
                        struct ieee80211_sta_rx_stats *cpurxs;

                        cpurxs = per_cpu_ptr(sta->pcpu_rx_stats, cpu);
        /*HERE*/        sinfo->rx_packets += cpurxs->dropped;
                }
        }

Wasn't the intention to use "rx_dropped_misc" (instead of "rx_packets") in the
indicated line. In the first line, "rx_dropped_misc" is updated.

Thank you.

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Fw: [Bug 195953] New: Possible access to unintended variable in "linux/net/mac80211/sta_info.c" line 2158
  2017-06-01 18:07 Fw: [Bug 195953] New: Possible access to unintended variable in "linux/net/mac80211/sta_info.c" line 2158 Stephen Hemminger
@ 2017-06-01 18:23 ` Johannes Berg
  0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2017-06-01 18:23 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: linux-wireless

Thanks Stephen, I'll take the bug and fix it.

johannes

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-06-01 18:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-01 18:07 Fw: [Bug 195953] New: Possible access to unintended variable in "linux/net/mac80211/sta_info.c" line 2158 Stephen Hemminger
2017-06-01 18:23 ` Johannes Berg

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).