linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] staging: rtl8723bs: prevent ->ssid overflow in rtw_wx_set_scan()
@ 2021-08-26 15:46 Wenlong Zhang
  2021-08-26 16:59 ` Dan Carpenter
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Wenlong Zhang @ 2021-08-26 15:46 UTC (permalink / raw)
  To: gregkh
  Cc: fabioaiuto83, ross.schm.dev, marcocesati, insafonov, cyruscyliu,
	yajin, linux-kernel, linux-staging, Wenlong Zhang

Commit 74b6b20df8cf ("staging: rtl8188eu: prevent ->ssid overflow in rtw_wx_set_scan()")
fixed up the staging driver rtl8188eu by adding another check 
to prevent writing beyond the end of the ->ssid[] array.

Resolve this by properly fixing up the rtl8723bs driver's version of
rtw_wx_set_scan() 

Reported-by: Wenlong Zhang(iLifetruth) <yixiaonn@gmail.com>
Fixes: 74b6b20df8cf ("staging: rtl8188eu: prevent ->ssid overflow in rtw_wx_set_scan()")

Signed-off-by: Wenlong Zhang <yixiaonn@gmail.com>

---
 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c
index 902ac8169948..6fc1020cea11 100644
--- a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c
+++ b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c
@@ -1351,9 +1351,9 @@ static int rtw_wx_set_scan(struct net_device *dev, struct iw_request_info *a,
 
 					sec_len = *(pos++); len -= 1;
 
-					if (sec_len > 0 && sec_len <= len) {
+					if (sec_len > 0 && sec_len <= len && sec_len <= 32) {
 						ssid[ssid_index].SsidLength = sec_len;
-						memcpy(ssid[ssid_index].Ssid, pos, ssid[ssid_index].SsidLength);
+						memcpy(ssid[ssid_index].Ssid, pos, sec_len);
 						/* DBG_871X("%s COMBO_SCAN with specific ssid:%s, %d\n", __func__ */
 						/* 	, ssid[ssid_index].Ssid, ssid[ssid_index].SsidLength); */
 						ssid_index++;
-- 
2.15.0


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

* Re: [PATCH] staging: rtl8723bs: prevent ->ssid overflow in rtw_wx_set_scan()
  2021-08-26 15:46 [PATCH] staging: rtl8723bs: prevent ->ssid overflow in rtw_wx_set_scan() Wenlong Zhang
@ 2021-08-26 16:59 ` Dan Carpenter
  2021-08-26 17:19 ` Fabio Aiuto
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 12+ messages in thread
From: Dan Carpenter @ 2021-08-26 16:59 UTC (permalink / raw)
  To: Wenlong Zhang
  Cc: gregkh, fabioaiuto83, ross.schm.dev, marcocesati, insafonov,
	cyruscyliu, yajin, linux-kernel, linux-staging

On Thu, Aug 26, 2021 at 11:46:22PM +0800, Wenlong Zhang wrote:
> Commit 74b6b20df8cf ("staging: rtl8188eu: prevent ->ssid overflow in rtw_wx_set_scan()")
> fixed up the staging driver rtl8188eu by adding another check 
> to prevent writing beyond the end of the ->ssid[] array.
> 
> Resolve this by properly fixing up the rtl8723bs driver's version of
> rtw_wx_set_scan() 
> 
> Reported-by: Wenlong Zhang(iLifetruth) <yixiaonn@gmail.com>
> Fixes: 74b6b20df8cf ("staging: rtl8188eu: prevent ->ssid overflow in rtw_wx_set_scan()")
> 
> Signed-off-by: Wenlong Zhang <yixiaonn@gmail.com>
> 

The patch looks good but somehow it doesn't apply to today's linux-next.

regards,
dan carpenter


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

* Re: [PATCH] staging: rtl8723bs: prevent ->ssid overflow in rtw_wx_set_scan()
  2021-08-26 15:46 [PATCH] staging: rtl8723bs: prevent ->ssid overflow in rtw_wx_set_scan() Wenlong Zhang
  2021-08-26 16:59 ` Dan Carpenter
@ 2021-08-26 17:19 ` Fabio Aiuto
  2021-08-26 17:26 ` Fabio Aiuto
  2021-08-26 18:55 ` Greg KH
  3 siblings, 0 replies; 12+ messages in thread
From: Fabio Aiuto @ 2021-08-26 17:19 UTC (permalink / raw)
  To: Wenlong Zhang
  Cc: gregkh, ross.schm.dev, marcocesati, insafonov, cyruscyliu, yajin,
	linux-kernel, linux-staging

Hello Welong,

On Thu, Aug 26, 2021 at 11:46:22PM +0800, Wenlong Zhang wrote:
> Commit 74b6b20df8cf ("staging: rtl8188eu: prevent ->ssid overflow in rtw_wx_set_scan()")
> fixed up the staging driver rtl8188eu by adding another check 
> to prevent writing beyond the end of the ->ssid[] array.
> 
> Resolve this by properly fixing up the rtl8723bs driver's version of
> rtw_wx_set_scan() 
> 
> Reported-by: Wenlong Zhang(iLifetruth) <yixiaonn@gmail.com>
> Fixes: 74b6b20df8cf ("staging: rtl8188eu: prevent ->ssid overflow in rtw_wx_set_scan()")
> 
> Signed-off-by: Wenlong Zhang <yixiaonn@gmail.com>
> 
> ---
>  drivers/staging/rtl8723bs/os_dep/ioctl_linux.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c
> index 902ac8169948..6fc1020cea11 100644
> --- a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c
> +++ b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c
> @@ -1351,9 +1351,9 @@ static int rtw_wx_set_scan(struct net_device *dev, struct iw_request_info *a,
>  
>  					sec_len = *(pos++); len -= 1;
>  
> -					if (sec_len > 0 && sec_len <= len) {
> +					if (sec_len > 0 && sec_len <= len && sec_len <= 32) {
>  						ssid[ssid_index].SsidLength = sec_len;
> -						memcpy(ssid[ssid_index].Ssid, pos, ssid[ssid_index].SsidLength);
> +						memcpy(ssid[ssid_index].Ssid, pos, sec_len);
>  						/* DBG_871X("%s COMBO_SCAN with specific ssid:%s, %d\n", __func__ */
>  						/* 	, ssid[ssid_index].Ssid, ssid[ssid_index].SsidLength); */
>  						ssid_index++;
> -- 
> 2.15.0
> 

today the patch which removes wext handlers has been accepted
in staging-testing so maybe rtw_wx_set_scan is going to disappear.

thank you,

fabio

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

* Re: [PATCH] staging: rtl8723bs: prevent ->ssid overflow in rtw_wx_set_scan()
  2021-08-26 15:46 [PATCH] staging: rtl8723bs: prevent ->ssid overflow in rtw_wx_set_scan() Wenlong Zhang
  2021-08-26 16:59 ` Dan Carpenter
  2021-08-26 17:19 ` Fabio Aiuto
@ 2021-08-26 17:26 ` Fabio Aiuto
  2021-08-26 18:16   ` Dan Carpenter
  2021-08-26 18:55 ` Greg KH
  3 siblings, 1 reply; 12+ messages in thread
From: Fabio Aiuto @ 2021-08-26 17:26 UTC (permalink / raw)
  To: Wenlong Zhang
  Cc: gregkh, ross.schm.dev, marcocesati, insafonov, cyruscyliu, yajin,
	linux-kernel, linux-staging

Hello Welong,

(Added commit reference)

On Thu, Aug 26, 2021 at 11:46:22PM +0800, Wenlong Zhang wrote:
> Commit 74b6b20df8cf ("staging: rtl8188eu: prevent ->ssid overflow in rtw_wx_set_scan()")
> fixed up the staging driver rtl8188eu by adding another check 
> to prevent writing beyond the end of the ->ssid[] array.
> 
> Resolve this by properly fixing up the rtl8723bs driver's version of
> rtw_wx_set_scan() 
> 
> Reported-by: Wenlong Zhang(iLifetruth) <yixiaonn@gmail.com>
> Fixes: 74b6b20df8cf ("staging: rtl8188eu: prevent ->ssid overflow in rtw_wx_set_scan()")
> 
> Signed-off-by: Wenlong Zhang <yixiaonn@gmail.com>
> 
> ---
>  drivers/staging/rtl8723bs/os_dep/ioctl_linux.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c
> index 902ac8169948..6fc1020cea11 100644
> --- a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c
> +++ b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c
> @@ -1351,9 +1351,9 @@ static int rtw_wx_set_scan(struct net_device *dev, struct iw_request_info *a,
>  
>  					sec_len = *(pos++); len -= 1;
>  
> -					if (sec_len > 0 && sec_len <= len) {
> +					if (sec_len > 0 && sec_len <= len && sec_len <= 32) {
>  						ssid[ssid_index].SsidLength = sec_len;
> -						memcpy(ssid[ssid_index].Ssid, pos, ssid[ssid_index].SsidLength);
> +						memcpy(ssid[ssid_index].Ssid, pos, sec_len);
>  						/* DBG_871X("%s COMBO_SCAN with specific ssid:%s, %d\n", __func__ */
>  						/* 	, ssid[ssid_index].Ssid, ssid[ssid_index].SsidLength); */
>  						ssid_index++;
> -- 
> 2.15.0
> 

today the patch which removes wext handlers has been accepted
(commit 174ac41a7aafb31041cba3fe54ccd89b9daeef5d)
in staging-testing so maybe rtw_wx_set_scan is going to disappear.

thank you,

fabio

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

* Re: [PATCH] staging: rtl8723bs: prevent ->ssid overflow in rtw_wx_set_scan()
  2021-08-26 17:26 ` Fabio Aiuto
@ 2021-08-26 18:16   ` Dan Carpenter
  2021-08-27  6:46     ` Fabio Aiuto
  0 siblings, 1 reply; 12+ messages in thread
From: Dan Carpenter @ 2021-08-26 18:16 UTC (permalink / raw)
  To: Fabio Aiuto
  Cc: Wenlong Zhang, gregkh, ross.schm.dev, marcocesati, insafonov,
	cyruscyliu, yajin, linux-kernel, linux-staging

On Thu, Aug 26, 2021 at 07:26:19PM +0200, Fabio Aiuto wrote:
> today the patch which removes wext handlers has been accepted
> (commit 174ac41a7aafb31041cba3fe54ccd89b9daeef5d)
> in staging-testing so maybe rtw_wx_set_scan is going to disappear.
> 

From a process perspective, in staging we don't track things that might
happen in the future.  We look at each patch in the order that they
arrive and either apply them or reject them.

And from a practical perspective this patch might be something that
people want to backport so it would be nice to apply it.

regards,
dan carpenter

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

* Re: [PATCH] staging: rtl8723bs: prevent ->ssid overflow in rtw_wx_set_scan()
  2021-08-26 15:46 [PATCH] staging: rtl8723bs: prevent ->ssid overflow in rtw_wx_set_scan() Wenlong Zhang
                   ` (2 preceding siblings ...)
  2021-08-26 17:26 ` Fabio Aiuto
@ 2021-08-26 18:55 ` Greg KH
  2021-08-27  9:00   ` [PATCH v2] " Wenlong Zhang
  2021-08-27 12:50   ` [PATCH v3] " Wenlong Zhang
  3 siblings, 2 replies; 12+ messages in thread
From: Greg KH @ 2021-08-26 18:55 UTC (permalink / raw)
  To: Wenlong Zhang
  Cc: fabioaiuto83, ross.schm.dev, marcocesati, insafonov, cyruscyliu,
	yajin, linux-kernel, linux-staging

On Thu, Aug 26, 2021 at 11:46:22PM +0800, Wenlong Zhang wrote:
> Commit 74b6b20df8cf ("staging: rtl8188eu: prevent ->ssid overflow in rtw_wx_set_scan()")
> fixed up the staging driver rtl8188eu by adding another check 
> to prevent writing beyond the end of the ->ssid[] array.
> 
> Resolve this by properly fixing up the rtl8723bs driver's version of
> rtw_wx_set_scan() 

Odd trailing whitespace :(

> 
> Reported-by: Wenlong Zhang(iLifetruth) <yixiaonn@gmail.com>
> Fixes: 74b6b20df8cf ("staging: rtl8188eu: prevent ->ssid overflow in rtw_wx_set_scan()")
> 
> Signed-off-by: Wenlong Zhang <yixiaonn@gmail.com>

No need for a blank line here.

Also, you don't need a reported-by: if you are the author and sign off
on the patch, that would just be implied :)

Can you fix this up and resend a v2?

thanks,

greg k-h

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

* Re: [PATCH] staging: rtl8723bs: prevent ->ssid overflow in rtw_wx_set_scan()
  2021-08-26 18:16   ` Dan Carpenter
@ 2021-08-27  6:46     ` Fabio Aiuto
  0 siblings, 0 replies; 12+ messages in thread
From: Fabio Aiuto @ 2021-08-27  6:46 UTC (permalink / raw)
  To: Dan Carpenter
  Cc: Wenlong Zhang, gregkh, ross.schm.dev, marcocesati, insafonov,
	cyruscyliu, yajin, linux-kernel, linux-staging

On Thu, Aug 26, 2021 at 09:16:48PM +0300, Dan Carpenter wrote:
> On Thu, Aug 26, 2021 at 07:26:19PM +0200, Fabio Aiuto wrote:
> > today the patch which removes wext handlers has been accepted
> > (commit 174ac41a7aafb31041cba3fe54ccd89b9daeef5d)
> > in staging-testing so maybe rtw_wx_set_scan is going to disappear.
> > 
> 
> From a process perspective, in staging we don't track things that might
> happen in the future.  We look at each patch in the order that they
> arrive and either apply them or reject them.

Wenlong's patch will be applied on top of staging-testing first,
and it won't apply due to wext-removal patch.

> 
> And from a practical perspective this patch might be something that
> people want to backport so it would be nice to apply it.
> 
> regards,
> dan carpenter

thank you,

fabio

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

* [PATCH v2] staging: rtl8723bs: prevent ->ssid overflow in rtw_wx_set_scan()
  2021-08-26 18:55 ` Greg KH
@ 2021-08-27  9:00   ` Wenlong Zhang
  2021-08-27  9:47     ` Greg KH
  2021-08-27 12:50   ` [PATCH v3] " Wenlong Zhang
  1 sibling, 1 reply; 12+ messages in thread
From: Wenlong Zhang @ 2021-08-27  9:00 UTC (permalink / raw)
  To: gregkh
  Cc: fabioaiuto83, ross.schm.dev, marcocesati, insafonov, cyruscyliu,
	yajin, linux-kernel, linux-staging, Wenlong Zhang

Commit 74b6b20df8cf ("staging: rtl8188eu: prevent ->ssid overflow in rtw_wx_set_scan()")
fixed up the staging driver rtl8188eu by adding another check
to prevent writing beyond the end of the ->ssid[] array.

Resolve this by properly fixing up the rtl8723bs driver's version of
rtw_wx_set_scan()

Fixes: 74b6b20df8cf ("staging: rtl8188eu: prevent ->ssid overflow in rtw_wx_set_scan()")
Signed-off-by: Wenlong Zhang <yixiaonn@gmail.com>
---
 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c
index 902ac8169948..6fc1020cea11 100644
--- a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c
+++ b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c
@@ -1351,9 +1351,9 @@ static int rtw_wx_set_scan(struct net_device *dev, struct iw_request_info *a,
 
 					sec_len = *(pos++); len -= 1;
 
-					if (sec_len > 0 && sec_len <= len) {
+					if (sec_len > 0 && sec_len <= len && sec_len <= 32) {
 						ssid[ssid_index].SsidLength = sec_len;
-						memcpy(ssid[ssid_index].Ssid, pos, ssid[ssid_index].SsidLength);
+						memcpy(ssid[ssid_index].Ssid, pos, sec_len);
 						/* DBG_871X("%s COMBO_SCAN with specific ssid:%s, %d\n", __func__ */
 						/* 	, ssid[ssid_index].Ssid, ssid[ssid_index].SsidLength); */
 						ssid_index++;
-- 
2.15.0


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

* Re: [PATCH v2] staging: rtl8723bs: prevent ->ssid overflow in rtw_wx_set_scan()
  2021-08-27  9:00   ` [PATCH v2] " Wenlong Zhang
@ 2021-08-27  9:47     ` Greg KH
  0 siblings, 0 replies; 12+ messages in thread
From: Greg KH @ 2021-08-27  9:47 UTC (permalink / raw)
  To: Wenlong Zhang
  Cc: fabioaiuto83, ross.schm.dev, marcocesati, insafonov, cyruscyliu,
	yajin, linux-kernel, linux-staging

On Fri, Aug 27, 2021 at 05:00:27PM +0800, Wenlong Zhang wrote:
> Commit 74b6b20df8cf ("staging: rtl8188eu: prevent ->ssid overflow in rtw_wx_set_scan()")
> fixed up the staging driver rtl8188eu by adding another check
> to prevent writing beyond the end of the ->ssid[] array.
> 
> Resolve this by properly fixing up the rtl8723bs driver's version of
> rtw_wx_set_scan()
> 
> Fixes: 74b6b20df8cf ("staging: rtl8188eu: prevent ->ssid overflow in rtw_wx_set_scan()")
> Signed-off-by: Wenlong Zhang <yixiaonn@gmail.com>
> ---
>  drivers/staging/rtl8723bs/os_dep/ioctl_linux.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c
> index 902ac8169948..6fc1020cea11 100644
> --- a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c
> +++ b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c
> @@ -1351,9 +1351,9 @@ static int rtw_wx_set_scan(struct net_device *dev, struct iw_request_info *a,
>  
>  					sec_len = *(pos++); len -= 1;
>  
> -					if (sec_len > 0 && sec_len <= len) {
> +					if (sec_len > 0 && sec_len <= len && sec_len <= 32) {
>  						ssid[ssid_index].SsidLength = sec_len;
> -						memcpy(ssid[ssid_index].Ssid, pos, ssid[ssid_index].SsidLength);
> +						memcpy(ssid[ssid_index].Ssid, pos, sec_len);
>  						/* DBG_871X("%s COMBO_SCAN with specific ssid:%s, %d\n", __func__ */
>  						/* 	, ssid[ssid_index].Ssid, ssid[ssid_index].SsidLength); */
>  						ssid_index++;
> -- 
> 2.15.0
> 
> 

Hi,

This is the friendly patch-bot of Greg Kroah-Hartman.  You have sent him
a patch that has triggered this response.  He used to manually respond
to these common problems, but in order to save his sanity (he kept
writing the same thing over and over, yet to different people), I was
created.  Hopefully you will not take offence and will fix the problem
in your patch and resubmit it so that it can be accepted into the Linux
kernel tree.

You are receiving this message because of the following common error(s)
as indicated below:

- This looks like a new version of a previously submitted patch, but you
  did not list below the --- line any changes from the previous version.
  Please read the section entitled "The canonical patch format" in the
  kernel file, Documentation/SubmittingPatches for what needs to be done
  here to properly describe this.

If you wish to discuss this problem further, or you have questions about
how to resolve this issue, please feel free to respond to this email and
Greg will reply once he has dug out from the pending patches received
from other developers.

thanks,

greg k-h's patch email bot

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

* [PATCH v3] staging: rtl8723bs: prevent ->ssid overflow in rtw_wx_set_scan()
  2021-08-26 18:55 ` Greg KH
  2021-08-27  9:00   ` [PATCH v2] " Wenlong Zhang
@ 2021-08-27 12:50   ` Wenlong Zhang
  2021-08-27 13:06     ` Dan Carpenter
  2021-08-27 13:10     ` Greg KH
  1 sibling, 2 replies; 12+ messages in thread
From: Wenlong Zhang @ 2021-08-27 12:50 UTC (permalink / raw)
  To: gregkh
  Cc: fabioaiuto83, ross.schm.dev, marcocesati, insafonov, cyruscyliu,
	yajin, linux-kernel, linux-staging, Wenlong Zhang

Commit 74b6b20df8cf ("staging: rtl8188eu: prevent ->ssid overflow in rtw_wx_set_scan()")
fixed up the staging driver rtl8188eu by adding another check
to prevent writing beyond the end of the ->ssid[] array.

Resolve this by properly fixing up the rtl8723bs driver's version of
rtw_wx_set_scan()

Fixes: 74b6b20df8cf ("staging: rtl8188eu: prevent ->ssid overflow in rtw_wx_set_scan()")
Signed-off-by: Wenlong Zhang <yixiaonn@gmail.com>
---
v3:
- Added the changelogs for this patch.
v2: 
- Fixed the description of this patch.
  Thanks Greg KH for the review and guidance
---
 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c
index 902ac8169948..6fc1020cea11 100644
--- a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c
+++ b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c
@@ -1351,9 +1351,9 @@ static int rtw_wx_set_scan(struct net_device *dev, struct iw_request_info *a,
 
 					sec_len = *(pos++); len -= 1;
 
-					if (sec_len > 0 && sec_len <= len) {
+					if (sec_len > 0 && sec_len <= len && sec_len <= 32) {
 						ssid[ssid_index].SsidLength = sec_len;
-						memcpy(ssid[ssid_index].Ssid, pos, ssid[ssid_index].SsidLength);
+						memcpy(ssid[ssid_index].Ssid, pos, sec_len);
 						/* DBG_871X("%s COMBO_SCAN with specific ssid:%s, %d\n", __func__ */
 						/* 	, ssid[ssid_index].Ssid, ssid[ssid_index].SsidLength); */
 						ssid_index++;
-- 
2.15.0


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

* Re: [PATCH v3] staging: rtl8723bs: prevent ->ssid overflow in rtw_wx_set_scan()
  2021-08-27 12:50   ` [PATCH v3] " Wenlong Zhang
@ 2021-08-27 13:06     ` Dan Carpenter
  2021-08-27 13:10     ` Greg KH
  1 sibling, 0 replies; 12+ messages in thread
From: Dan Carpenter @ 2021-08-27 13:06 UTC (permalink / raw)
  To: Wenlong Zhang
  Cc: gregkh, fabioaiuto83, ross.schm.dev, marcocesati, insafonov,
	cyruscyliu, yajin, linux-kernel, linux-staging

On Fri, Aug 27, 2021 at 08:50:59PM +0800, Wenlong Zhang wrote:
> Commit 74b6b20df8cf ("staging: rtl8188eu: prevent ->ssid overflow in rtw_wx_set_scan()")
> fixed up the staging driver rtl8188eu by adding another check
> to prevent writing beyond the end of the ->ssid[] array.
> 
> Resolve this by properly fixing up the rtl8723bs driver's version of
> rtw_wx_set_scan()
> 
> Fixes: 74b6b20df8cf ("staging: rtl8188eu: prevent ->ssid overflow in rtw_wx_set_scan()")
> Signed-off-by: Wenlong Zhang <yixiaonn@gmail.com>
> ---

This still doesn't apply at all.  I do not think you are writing the
patch against linux-next.

regards,
dan carpenter


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

* Re: [PATCH v3] staging: rtl8723bs: prevent ->ssid overflow in rtw_wx_set_scan()
  2021-08-27 12:50   ` [PATCH v3] " Wenlong Zhang
  2021-08-27 13:06     ` Dan Carpenter
@ 2021-08-27 13:10     ` Greg KH
  1 sibling, 0 replies; 12+ messages in thread
From: Greg KH @ 2021-08-27 13:10 UTC (permalink / raw)
  To: Wenlong Zhang
  Cc: fabioaiuto83, ross.schm.dev, marcocesati, insafonov, cyruscyliu,
	yajin, linux-kernel, linux-staging

On Fri, Aug 27, 2021 at 08:50:59PM +0800, Wenlong Zhang wrote:
> Commit 74b6b20df8cf ("staging: rtl8188eu: prevent ->ssid overflow in rtw_wx_set_scan()")
> fixed up the staging driver rtl8188eu by adding another check
> to prevent writing beyond the end of the ->ssid[] array.
> 
> Resolve this by properly fixing up the rtl8723bs driver's version of
> rtw_wx_set_scan()
> 
> Fixes: 74b6b20df8cf ("staging: rtl8188eu: prevent ->ssid overflow in rtw_wx_set_scan()")
> Signed-off-by: Wenlong Zhang <yixiaonn@gmail.com>
> ---
> v3:
> - Added the changelogs for this patch.
> v2: 
> - Fixed the description of this patch.
>   Thanks Greg KH for the review and guidance

This doesn't apply against any tree that I can see.  Neither my
staging-next or the 5.14-rc6 kernel release.

What did you make it against?  Please rebase and resend it against at
the very least, 5.14-rc6.

thanks,

greg k-h

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

end of thread, other threads:[~2021-08-27 13:10 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-26 15:46 [PATCH] staging: rtl8723bs: prevent ->ssid overflow in rtw_wx_set_scan() Wenlong Zhang
2021-08-26 16:59 ` Dan Carpenter
2021-08-26 17:19 ` Fabio Aiuto
2021-08-26 17:26 ` Fabio Aiuto
2021-08-26 18:16   ` Dan Carpenter
2021-08-27  6:46     ` Fabio Aiuto
2021-08-26 18:55 ` Greg KH
2021-08-27  9:00   ` [PATCH v2] " Wenlong Zhang
2021-08-27  9:47     ` Greg KH
2021-08-27 12:50   ` [PATCH v3] " Wenlong Zhang
2021-08-27 13:06     ` Dan Carpenter
2021-08-27 13:10     ` Greg KH

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