Re: rtlwifi: rtl8192c_common: "BUG: KASAN: slab-out-of-bounds"

2017-02-07 Thread Larry Finger
On 02/07/2017 10:45 AM, Tobias Guggenmos wrote: Am Montag, 6. Februar 2017, 09:45:31 CET schrieb Larry Finger: On 02/06/2017 04:29 AM, Johannes Berg wrote: On Sat, 2017-02-04 at 12:41 -0600, Larry Finger wrote: On 02/04/2017 10:58 AM, Dmitry Osipenko wrote: Seems the problem is caused by

Re: rtlwifi: rtl8192c_common: "BUG: KASAN: slab-out-of-bounds"

2017-02-07 Thread Larry Finger
On 02/07/2017 10:45 AM, Tobias Guggenmos wrote: Am Montag, 6. Februar 2017, 09:45:31 CET schrieb Larry Finger: On 02/06/2017 04:29 AM, Johannes Berg wrote: On Sat, 2017-02-04 at 12:41 -0600, Larry Finger wrote: On 02/04/2017 10:58 AM, Dmitry Osipenko wrote: Seems the problem is caused by

Re: rtlwifi: rtl8192c_common: "BUG: KASAN: slab-out-of-bounds"

2017-02-07 Thread Dmitry Osipenko
On 07.02.2017 20:22, Tobias Guggenmos wrote: > Am Sonntag, 5. Februar 2017, 11:30:30 CET schrieb Larry Finger: >> On 02/05/2017 05:34 AM, Dmitry Osipenko wrote: >>> BTW, I have an issue with the 8192cu: WiFi stops to work after a while >>> (3-15 minutes) if I enable WMM QoS on the AP. There is

Re: rtlwifi: rtl8192c_common: "BUG: KASAN: slab-out-of-bounds"

2017-02-07 Thread Dmitry Osipenko
On 07.02.2017 20:22, Tobias Guggenmos wrote: > Am Sonntag, 5. Februar 2017, 11:30:30 CET schrieb Larry Finger: >> On 02/05/2017 05:34 AM, Dmitry Osipenko wrote: >>> BTW, I have an issue with the 8192cu: WiFi stops to work after a while >>> (3-15 minutes) if I enable WMM QoS on the AP. There is

Re: rtlwifi: rtl8192c_common: "BUG: KASAN: slab-out-of-bounds"

2017-02-07 Thread Tobias Guggenmos
Am Sonntag, 5. Februar 2017, 11:30:30 CET schrieb Larry Finger: > On 02/05/2017 05:34 AM, Dmitry Osipenko wrote: > > BTW, I have an issue with the 8192cu: WiFi stops to work after a while > > (3-15 minutes) if I enable WMM QoS on the AP. There is nothing suspicious > > in KMSG, connection is up

Re: rtlwifi: rtl8192c_common: "BUG: KASAN: slab-out-of-bounds"

2017-02-07 Thread Tobias Guggenmos
Am Sonntag, 5. Februar 2017, 11:30:30 CET schrieb Larry Finger: > On 02/05/2017 05:34 AM, Dmitry Osipenko wrote: > > BTW, I have an issue with the 8192cu: WiFi stops to work after a while > > (3-15 minutes) if I enable WMM QoS on the AP. There is nothing suspicious > > in KMSG, connection is up

Re: rtlwifi: rtl8192c_common: "BUG: KASAN: slab-out-of-bounds"

2017-02-07 Thread Dmitry Osipenko
On 07.02.2017 19:45, Tobias Guggenmos wrote: > Am Montag, 6. Februar 2017, 09:45:31 CET schrieb Larry Finger: >> On 02/06/2017 04:29 AM, Johannes Berg wrote: >>> On Sat, 2017-02-04 at 12:41 -0600, Larry Finger wrote: On 02/04/2017 10:58 AM, Dmitry Osipenko wrote: > Seems the problem is

Re: rtlwifi: rtl8192c_common: "BUG: KASAN: slab-out-of-bounds"

2017-02-07 Thread Dmitry Osipenko
On 07.02.2017 19:45, Tobias Guggenmos wrote: > Am Montag, 6. Februar 2017, 09:45:31 CET schrieb Larry Finger: >> On 02/06/2017 04:29 AM, Johannes Berg wrote: >>> On Sat, 2017-02-04 at 12:41 -0600, Larry Finger wrote: On 02/04/2017 10:58 AM, Dmitry Osipenko wrote: > Seems the problem is

Re: rtlwifi: rtl8192c_common: "BUG: KASAN: slab-out-of-bounds"

2017-02-07 Thread Tobias Guggenmos
Am Montag, 6. Februar 2017, 09:45:31 CET schrieb Larry Finger: > On 02/06/2017 04:29 AM, Johannes Berg wrote: > > On Sat, 2017-02-04 at 12:41 -0600, Larry Finger wrote: > >> On 02/04/2017 10:58 AM, Dmitry Osipenko wrote: > >>> Seems the problem is caused by rtl92c_dm_*() casting .priv to > >>>

Re: rtlwifi: rtl8192c_common: "BUG: KASAN: slab-out-of-bounds"

2017-02-07 Thread Tobias Guggenmos
Am Montag, 6. Februar 2017, 09:45:31 CET schrieb Larry Finger: > On 02/06/2017 04:29 AM, Johannes Berg wrote: > > On Sat, 2017-02-04 at 12:41 -0600, Larry Finger wrote: > >> On 02/04/2017 10:58 AM, Dmitry Osipenko wrote: > >>> Seems the problem is caused by rtl92c_dm_*() casting .priv to > >>>

Re: rtlwifi: rtl8192c_common: "BUG: KASAN: slab-out-of-bounds"

2017-02-06 Thread Larry Finger
On 02/06/2017 04:29 AM, Johannes Berg wrote: On Sat, 2017-02-04 at 12:41 -0600, Larry Finger wrote: On 02/04/2017 10:58 AM, Dmitry Osipenko wrote: Seems the problem is caused by rtl92c_dm_*() casting .priv to "struct rtl_pci_priv", while it is "struct rtl_usb_priv". Those routines are shared

Re: rtlwifi: rtl8192c_common: "BUG: KASAN: slab-out-of-bounds"

2017-02-06 Thread Larry Finger
On 02/06/2017 04:29 AM, Johannes Berg wrote: On Sat, 2017-02-04 at 12:41 -0600, Larry Finger wrote: On 02/04/2017 10:58 AM, Dmitry Osipenko wrote: Seems the problem is caused by rtl92c_dm_*() casting .priv to "struct rtl_pci_priv", while it is "struct rtl_usb_priv". Those routines are shared

Re: rtlwifi: rtl8192c_common: "BUG: KASAN: slab-out-of-bounds"

2017-02-06 Thread Johannes Berg
On Sat, 2017-02-04 at 12:41 -0600, Larry Finger wrote: > On 02/04/2017 10:58 AM, Dmitry Osipenko wrote: > > Seems the problem is caused by rtl92c_dm_*() casting .priv to > > "struct > > rtl_pci_priv", while it is "struct rtl_usb_priv". > > Those routines are shared by rtl8192ce and rtl8192cu,

Re: rtlwifi: rtl8192c_common: "BUG: KASAN: slab-out-of-bounds"

2017-02-06 Thread Johannes Berg
On Sat, 2017-02-04 at 12:41 -0600, Larry Finger wrote: > On 02/04/2017 10:58 AM, Dmitry Osipenko wrote: > > Seems the problem is caused by rtl92c_dm_*() casting .priv to > > "struct > > rtl_pci_priv", while it is "struct rtl_usb_priv". > > Those routines are shared by rtl8192ce and rtl8192cu,

Re: rtlwifi: rtl8192c_common: "BUG: KASAN: slab-out-of-bounds"

2017-02-05 Thread Dmitry Osipenko
On 05.02.2017 20:30, Larry Finger wrote: > On 02/05/2017 05:34 AM, Dmitry Osipenko wrote: >> BTW, I have an issue with the 8192cu: WiFi stops to work after a while (3-15 >> minutes) if I enable WMM QoS on the AP. There is nothing suspicious in KMSG, >> connection is up but no packets go in/out. I

Re: rtlwifi: rtl8192c_common: "BUG: KASAN: slab-out-of-bounds"

2017-02-05 Thread Dmitry Osipenko
On 05.02.2017 20:30, Larry Finger wrote: > On 02/05/2017 05:34 AM, Dmitry Osipenko wrote: >> BTW, I have an issue with the 8192cu: WiFi stops to work after a while (3-15 >> minutes) if I enable WMM QoS on the AP. There is nothing suspicious in KMSG, >> connection is up but no packets go in/out. I

Re: rtlwifi: rtl8192c_common: "BUG: KASAN: slab-out-of-bounds"

2017-02-05 Thread Larry Finger
On 02/05/2017 05:34 AM, Dmitry Osipenko wrote: BTW, I have an issue with the 8192cu: WiFi stops to work after a while (3-15 minutes) if I enable WMM QoS on the AP. There is nothing suspicious in KMSG, connection is up but no packets go in/out. I tried to enable debug messages in the driver, so

Re: rtlwifi: rtl8192c_common: "BUG: KASAN: slab-out-of-bounds"

2017-02-05 Thread Larry Finger
On 02/05/2017 05:34 AM, Dmitry Osipenko wrote: BTW, I have an issue with the 8192cu: WiFi stops to work after a while (3-15 minutes) if I enable WMM QoS on the AP. There is nothing suspicious in KMSG, connection is up but no packets go in/out. I tried to enable debug messages in the driver, so

Re: rtlwifi: rtl8192c_common: "BUG: KASAN: slab-out-of-bounds"

2017-02-05 Thread Dmitry Osipenko
On 05.02.2017 04:05, Larry Finger wrote: > On 02/04/2017 01:32 PM, Dmitry Osipenko wrote: >> On 04.02.2017 21:41, Larry Finger wrote: >>> On 02/04/2017 10:58 AM, Dmitry Osipenko wrote: Seems the problem is caused by rtl92c_dm_*() casting .priv to "struct rtl_pci_priv", while it is

Re: rtlwifi: rtl8192c_common: "BUG: KASAN: slab-out-of-bounds"

2017-02-05 Thread Dmitry Osipenko
On 05.02.2017 04:05, Larry Finger wrote: > On 02/04/2017 01:32 PM, Dmitry Osipenko wrote: >> On 04.02.2017 21:41, Larry Finger wrote: >>> On 02/04/2017 10:58 AM, Dmitry Osipenko wrote: Seems the problem is caused by rtl92c_dm_*() casting .priv to "struct rtl_pci_priv", while it is

Re: rtlwifi: rtl8192c_common: "BUG: KASAN: slab-out-of-bounds"

2017-02-04 Thread Larry Finger
On 02/04/2017 01:32 PM, Dmitry Osipenko wrote: On 04.02.2017 21:41, Larry Finger wrote: On 02/04/2017 10:58 AM, Dmitry Osipenko wrote: Seems the problem is caused by rtl92c_dm_*() casting .priv to "struct rtl_pci_priv", while it is "struct rtl_usb_priv". Those routines are shared by

Re: rtlwifi: rtl8192c_common: "BUG: KASAN: slab-out-of-bounds"

2017-02-04 Thread Larry Finger
On 02/04/2017 01:32 PM, Dmitry Osipenko wrote: On 04.02.2017 21:41, Larry Finger wrote: On 02/04/2017 10:58 AM, Dmitry Osipenko wrote: Seems the problem is caused by rtl92c_dm_*() casting .priv to "struct rtl_pci_priv", while it is "struct rtl_usb_priv". Those routines are shared by

Re: rtlwifi: rtl8192c_common: "BUG: KASAN: slab-out-of-bounds"

2017-02-04 Thread Dmitry Osipenko
On 04.02.2017 21:41, Larry Finger wrote: > On 02/04/2017 10:58 AM, Dmitry Osipenko wrote: >> Seems the problem is caused by rtl92c_dm_*() casting .priv to "struct >> rtl_pci_priv", while it is "struct rtl_usb_priv". > > Those routines are shared by rtl8192ce and rtl8192cu, thus we need to make >

Re: rtlwifi: rtl8192c_common: "BUG: KASAN: slab-out-of-bounds"

2017-02-04 Thread Dmitry Osipenko
On 04.02.2017 21:41, Larry Finger wrote: > On 02/04/2017 10:58 AM, Dmitry Osipenko wrote: >> Seems the problem is caused by rtl92c_dm_*() casting .priv to "struct >> rtl_pci_priv", while it is "struct rtl_usb_priv". > > Those routines are shared by rtl8192ce and rtl8192cu, thus we need to make >

Re: rtlwifi: rtl8192c_common: "BUG: KASAN: slab-out-of-bounds"

2017-02-04 Thread Larry Finger
On 02/04/2017 10:58 AM, Dmitry Osipenko wrote: Seems the problem is caused by rtl92c_dm_*() casting .priv to "struct rtl_pci_priv", while it is "struct rtl_usb_priv". Those routines are shared by rtl8192ce and rtl8192cu, thus we need to make that difference in cast to be immaterial. I think

Re: rtlwifi: rtl8192c_common: "BUG: KASAN: slab-out-of-bounds"

2017-02-04 Thread Larry Finger
On 02/04/2017 10:58 AM, Dmitry Osipenko wrote: Seems the problem is caused by rtl92c_dm_*() casting .priv to "struct rtl_pci_priv", while it is "struct rtl_usb_priv". Those routines are shared by rtl8192ce and rtl8192cu, thus we need to make that difference in cast to be immaterial. I think

Re: rtlwifi: rtl8192c_common: "BUG: KASAN: slab-out-of-bounds"

2017-02-04 Thread Dmitry Osipenko
Seems the problem is caused by rtl92c_dm_*() casting .priv to "struct rtl_pci_priv", while it is "struct rtl_usb_priv". -- Dmitry

Re: rtlwifi: rtl8192c_common: "BUG: KASAN: slab-out-of-bounds"

2017-02-04 Thread Dmitry Osipenko
Seems the problem is caused by rtl92c_dm_*() casting .priv to "struct rtl_pci_priv", while it is "struct rtl_usb_priv". -- Dmitry

rtlwifi: rtl8192c_common: "BUG: KASAN: slab-out-of-bounds"

2017-02-04 Thread Dmitry Osipenko
Hello, I ran a 4.9.7 kernel with CONFIG_KASAN=y on my machine and it detected the following problem: [ 23.012238] rtl8192cu: MAC auto ON okay! [ 23.045656] rtl8192cu: Tx queue select: 0x05 [ 23.541152] == [ 23.541160] BUG:

rtlwifi: rtl8192c_common: "BUG: KASAN: slab-out-of-bounds"

2017-02-04 Thread Dmitry Osipenko
Hello, I ran a 4.9.7 kernel with CONFIG_KASAN=y on my machine and it detected the following problem: [ 23.012238] rtl8192cu: MAC auto ON okay! [ 23.045656] rtl8192cu: Tx queue select: 0x05 [ 23.541152] == [ 23.541160] BUG: