From: Bastien Nocera <hadess@hadess.net>
To: Larry Finger <Larry.Finger@lwfinger.net>, gregkh@linuxfoundation.org
Cc: netdev@vger.kernel.org, devel@driverdev.osuosl.org,
hdegoede@redhat.com, jes.sorensen@gmail.com
Subject: Re: [PATCH 06/22] staging: rtl8723bs: Fix various errors in os_dep/ioctl_cfg80211.c
Date: Sun, 09 Apr 2017 17:28:18 +0200 [thread overview]
Message-ID: <1491751698.10783.18.camel@hadess.net> (raw)
In-Reply-To: <20170408160745.14328-7-Larry.Finger@lwfinger.net>
On Sat, 2017-04-08 at 11:07 -0500, Larry Finger wrote:
> Smatch lists the following:
>
> CHECK drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c
> drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:470
> rtw_cfg80211_ibss_indicate_connect() error: we previously assumed
> 'scanned' could be null (see line 466)
> drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:942
> rtw_cfg80211_set_encryption() warn: inconsistent indenting
> drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:955
> rtw_cfg80211_set_encryption() error: buffer overflow 'psecuritypriv-
> >dot11DefKey' 4 <= 4
> drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:1017
> rtw_cfg80211_set_encryption() error: buffer overflow 'padapter-
> >securitypriv.dot118021XGrpKey' 5 <= 5
> drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:1216
> cfg80211_rtw_set_default_key() warn: inconsistent indenting
> drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:2498
> rtw_cfg80211_monitor_if_xmit_entry() error: we previously assumed
> 'skb' could be null (see line 2495)
> drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:2850
> cfg80211_rtw_start_ap() warn: if statement not indented
> drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:2860
> cfg80211_rtw_start_ap() warn: if statement not indented
> drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:3417
> rtw_cfg80211_preinit_wiphy() warn: inconsistent indenting
> drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:3547
> rtw_wdev_alloc() info: ignoring unreachable code.
>
> The indenting warnings were fixed by simple white space changes.
>
> The section where 'scanned' could be null required an immediate exit
> from
> the routine at that point. A similar fix was required where 'skb'
> could be null.
>
> The two buffer overflow errors were caused by off-by-one errors.
> While
> locating these problems, another one was found in
> os_dep/ioctl_linux.c.
Could you please split those up into patches that fix one kind of
problem? Makes it easier to review.
next prev parent reply other threads:[~2017-04-09 15:28 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-08 16:07 [PATCH 00/22] staging: rtl87232bs: Fix errors and warnings detected by Smatch Larry Finger
2017-04-08 16:07 ` [PATCH 01/22] staging: rtl8723bs: Fix indenting warning in os_dep/xmit_linux.c Larry Finger
2017-04-08 16:07 ` [PATCH 02/22] staging: rtl8723bs: Fix indenting warning in os_dep/rtw_proc.c Larry Finger
2017-04-08 16:07 ` [PATCH 03/22] staging: rtl8723bs: Fix dereference before check warning in os_dep/recv_linux.c Larry Finger
2017-04-08 16:07 ` [PATCH 04/22] staging: rtl8723bs: Fix indenting warning in os_dep/os_intfs.c Larry Finger
2017-04-08 16:07 ` [PATCH 05/22] staging: rtl8723bs: Fix indenting mistake in os_dep/mlme_linux.c Larry Finger
2017-04-08 16:07 ` [PATCH 06/22] staging: rtl8723bs: Fix various errors in os_dep/ioctl_cfg80211.c Larry Finger
2017-04-09 15:28 ` Bastien Nocera [this message]
2017-04-09 15:46 ` Larry Finger
2017-04-08 16:07 ` [PATCH 07/22] staging: rtl8723bs: Fix potential usage while NULL error in hal/rtl8723b_hal_init.c Larry Finger
2017-04-08 16:07 ` [PATCH 08/22] staging: rtl8723bs: Fix indenting problems in hal/HalHWImg8723B_BB.c Larry Finger
2017-04-08 16:07 ` [PATCH 09/22] staging: rtl8723bs: Fix indening problem in hal/hal_com_phycfg.c Larry Finger
2017-04-08 16:07 ` [PATCH 10/22] staging: rtl8723bs: Fix indenting problem for hal/hal_com.c Larry Finger
2017-04-08 16:07 ` [PATCH 11/22] staging: rtl8723bs: Fix indenting problems in core/rtw_xmit.c Larry Finger
2017-04-08 16:07 ` [PATCH 12/22] staging: rtl8723bs: Fix possible usage of NULL pointer in core/rtw_debug.c Larry Finger
2017-04-08 16:07 ` [PATCH 13/22] staging: rtl8723bs: Fix indenting mistake in core/rtw_ap.c Larry Finger
2017-04-09 15:28 ` Bastien Nocera
2017-04-08 16:07 ` [PATCH 14/22] staging: rtl8723bs: Fix indenting mistakes in core/rtw_ieee80211.c Larry Finger
2017-04-08 16:07 ` [PATCH 15/22] staging: rtl8723bs: Fix indenting mistakes in core/rtw_mlme.c Larry Finger
2017-04-08 16:07 ` [PATCH 16/22] staging: rtl8723bs: Fix some indenting problems and a potential data overrun Larry Finger
2017-04-09 15:28 ` Bastien Nocera
2017-04-08 16:07 ` [PATCH 17/22] staging: rtl8723bs: Fix indenting problem in core/rtw_sta_mgt.c Larry Finger
2017-04-08 16:07 ` [PATCH 18/22] staging: rtl8723bs: Fix some white-space errors in core/rtw_security.c Larry Finger
2017-04-08 16:07 ` [PATCH 19/22] staging: rtl8723bs: Fix white-space errors in core/rtw_recv.c Larry Finger
2017-04-08 16:07 ` [PATCH 20/22] staging rtl8723bs: Fix indenting errors and an off-by-one mistake in core/rtw_mlme_ext.c Larry Finger
2017-04-09 15:28 ` Bastien Nocera
2017-04-08 16:07 ` [PATCH 21/22] staging: rtl8723bs: Fix indenting problems in core/rtw_odm.c Larry Finger
2017-04-08 16:07 ` [PATCH 22/22] staging: rtl8723bs: Fix indenting error in core/rtw_pwrctrl.c Larry Finger
2017-04-09 15:29 ` [PATCH 00/22] staging: rtl87232bs: Fix errors and warnings detected by Smatch Bastien Nocera
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=1491751698.10783.18.camel@hadess.net \
--to=hadess@hadess.net \
--cc=Larry.Finger@lwfinger.net \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=hdegoede@redhat.com \
--cc=jes.sorensen@gmail.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.