Bug 1278818 - Logitech wireless KS520 keyboard is producing fake KEY_5 keydown events
Summary: Logitech wireless KS520 keyboard is producing fake KEY_5 keydown events
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 23
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-06 13:43 UTC by Mauro Carvalho Chehab
Modified: 2016-12-20 15:30 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-20 15:27:23 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
output of: ir-keytable -t -d /dev/input/by-id/usb-Logitech_USB_Receiver-if02-event-kbd (60.79 KB, text/plain)
2015-11-06 13:45 UTC, Mauro Carvalho Chehab
no flags Details

Description Mauro Carvalho Chehab 2015-11-06 13:43:26 UTC
Description of problem:

This is an intermittent problem. Since I upgraded from Fedora 22 to Fedora 23, a weird bug appeared: Sometimes, when switching windows on x11 or when using the keyboard, it produces a series of EV_KEY keydown events for KEY_5.

Kernel: 4.2.5-300.fc23.x86_64

How reproducible:

It is random. Sometimes, it takes a long time to manifest.

Steps to Reproduce:

1. Start the machine and do normal work. Sometimes, the bug will trigger (often while moving the mouse and clicking on some new window or when turning off the Keyboard).

Comment 1 Mauro Carvalho Chehab 2015-11-06 13:45:27 UTC
Created attachment 1090673 [details]
output of: ir-keytable -t -d /dev/input/by-id/usb-Logitech_USB_Receiver-if02-event-kbd

When the bug starts, it will keep producing KEY_5 events until some other key is pressed at the keyboard.

Comment 2 Martin von Wittich 2016-01-25 19:40:51 UTC
Is KEY_5 just the "5" character? If so, I'm seeing the same bug on my Ubuntu system:

martin@martin ~ % lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 15.10
Release:        15.10
Codename:       wily

martin@martin ~ % uname -a
Linux martin 4.2.0-25-generic #30-Ubuntu SMP Mon Jan 18 12:31:50 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

martin@martin ~ % modinfo hid-logitech-hidpp
filename:       /lib/modules/4.2.0-25-generic/kernel/drivers/hid/hid-logitech-hidpp.ko
author:         Nestor Lopez Casado <nlopezcasad>
author:         Benjamin Tissoires <benjamin.tissoires>
license:        GPL
srcversion:     414D826A7D952C3B988E81C
alias:          hid:b0003g0102v0000046Dp*
alias:          hid:b0003g0102v0000046Dp0000402D
alias:          hid:b0005g*v0000046Dp0000B00C
alias:          hid:b0003g0102v0000046Dp00004101
alias:          hid:b0003g0102v0000046Dp00004011
depends:        hid
intree:         Y
vermagic:       4.2.0-25-generic SMP mod_unload modversions 
signer:         Build time autogenerated kernel key
sig_key:        A4:10:30:FB:DF:1D:C9:62:B4:BB:7D:16:44:C3:33:7E:C4:16:DB:86
sig_hashalgo:   sha512
parm:           disable_raw_mode:Disable Raw mode reporting for touchpads and keep firmware gestures. (bool)

At random times, it just starts typing the letter "5" repeatedly, and will only stop when I press another key on the keyboard. If I understand the output coming from "xinput test-xi2 --root" correctly, the source of these fake keystrokes is definitively my keyboard, and not one of my two other HID devices (Logitech G35 headset, Logitech G602 mouse).

Maybe this is an upstream bug in the hid_logitech_hidpp module?

Comment 3 Stefan Löwen 2016-02-26 10:18:13 UTC
I see the exact same bug on my openSUSE System:


# lsb_release -a
LSB Version:    core-5.0-amd64:core-5.0-noarch:desktop-5.0-amd64:desktop-5.0-noarch:imaging-5.0-amd64:imaging-5.0-noarch:languages-5.0-amd64:languages-5.0-noarch
Distributor ID: SUSE LINUX
Description:    openSUSE Leap 42.1 (x86_64)
Release:        42.1
Codename:       n/a

# uname -a
Linux suse 4.1.15-8-default #1 SMP PREEMPT Wed Jan 20 16:41:00 UTC 2016 (0e3b3ab) x86_64 x86_64 x86_64 GNU/Linux

# lsmod | grep logitech
hid_logitech_hidpp     20480  0 
hid_logitech_dj        20480  0 
# modinfo hid_logitech_dj
filename:       /lib/modules/4.1.15-8-default/kernel/drivers/hid/hid-logitech-dj.ko
author:         nlopezcasad
author:         Nestor Lopez Casado
author:         Logitech
license:        GPL
srcversion:     3FB9DF0521AE6C25D851165
alias:          hid:b0003g*v0000046Dp0000C532
alias:          hid:b0003g*v0000046Dp0000C52B
depends:        
intree:         Y
vermagic:       4.1.15-8-default SMP preempt mod_unload modversions 
signer:         openSUSE Secure Boot Signkey
sig_key:        03:32:FA:9C:BF:0D:88:BF:21:92:4B:0D:E8:2A:09:A5:4D:5D:EF:C8
sig_hashalgo:   sha256
# modinfo hid_logitech_hidpp
filename:       /lib/modules/4.1.15-8-default/kernel/drivers/hid/hid-logitech-hidpp.ko
author:         Nestor Lopez Casado <nlopezcasad>
author:         Benjamin Tissoires <benjamin.tissoires>
license:        GPL
srcversion:     89E7AEBC12A6BECED5A2AA8
alias:          hid:b0003g0102v0000046Dp*
alias:          hid:b0005g*v0000046Dp0000B00C
alias:          hid:b0003g0102v0000046Dp00004101
alias:          hid:b0003g0102v0000046Dp00004011
depends:        
intree:         Y
vermagic:       4.1.15-8-default SMP preempt mod_unload modversions 
signer:         openSUSE Secure Boot Signkey
sig_key:        03:32:FA:9C:BF:0D:88:BF:21:92:4B:0D:E8:2A:09:A5:4D:5D:EF:C8
sig_hashalgo:   sha256
parm:           disable_raw_mode:Disable Raw mode reporting for touchpads and keep firmware gestures. (bool)

Comment 4 Stefan Löwen 2016-02-26 10:37:57 UTC
Oh I forgot to mention my hardware:

Keyboard: Logitech MK700
Mouse: Logitech M705

Both wireless with a Logitech Unifying receiver connected to a USB3 Port

Comment 5 Tim Taylor 2016-02-29 12:18:08 UTC
I also have this problem on my Ubuntu 15.10 system (apologies for interloping on this board, but I guess it's useful to establish that it's not just a RedHat issue).

I have an MK520 keyboard and mouse set (the individual components being an K520 keyboard and an M310 mouse).

Comment 6 Tim Taylor 2016-02-29 19:04:22 UTC
My setup is very similar to Martin's (Comment 2). For completeness, the output is:

> lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 15.10
Release:        15.10
Codename:       wily

> uname -a
Linux ooo 4.2.0-30-generic #36-Ubuntu SMP Fri Feb 26 00:58:07 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

> modinfo hid-logitech-hidpp
filename:       /lib/modules/4.2.0-30-generic/kernel/drivers/hid/hid-logitech-hidpp.ko
author:         Nestor Lopez Casado <nlopezcasad>
author:         Benjamin Tissoires <benjamin.tissoires>
license:        GPL
srcversion:     414D826A7D952C3B988E81C
alias:          hid:b0003g0102v0000046Dp*
alias:          hid:b0003g0102v0000046Dp0000402D
alias:          hid:b0005g*v0000046Dp0000B00C
alias:          hid:b0003g0102v0000046Dp00004101
alias:          hid:b0003g0102v0000046Dp00004011                                                                                                              
depends:        hid                                                                                                                                           
intree:         Y                                                                                                                                             
vermagic:       4.2.0-30-generic SMP mod_unload modversions                                                                                                   
signer:         Build time autogenerated kernel key                                                                                                           
sig_key:        AA:46:91:2A:20:E4:E1:7B:1E:4A:6C:CC:08:BD:3C:70:D4:D8:F4:64                                                                                   
sig_hashalgo:   sha512                                                                                                                                        
parm:           disable_raw_mode:Disable Raw mode reporting for touchpads and keep firmware gestures. (bool)

Comment 7 Didier G 2016-03-06 19:32:15 UTC
Same random problem for me with Logitech K800 and

kernel-4.3.5-300.fc23.x86_64
kernel-4.4.3-300.fc23.x86_64
kernel-4.4.4-300.fc23.x86_64

Comment 8 Tim Taylor 2016-05-16 20:11:33 UTC
For info, I'm still getting this problem having upgraded to Ubuntu 16.04:

> lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04 LTS
Release:        16.04
Codename:       xenial

> uname -a
Linux ooo 4.4.0-22-generic #40-Ubuntu SMP Thu May 12 22:03:46 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

> modinfo hid-logitech-hidpp
filename:       /lib/modules/4.4.0-22-generic/kernel/drivers/hid/hid-logitech-hidpp.ko
author:         Nestor Lopez Casado <nlopezcasad>
author:         Benjamin Tissoires <benjamin.tissoires>
license:        GPL
srcversion:     83FBE413C7DFA832E4A610C
alias:          hid:b0003g0102v0000046Dp*
alias:          hid:b0003g0102v0000046Dp00004024
alias:          hid:b0003g0102v0000046Dp0000402D
alias:          hid:b0005g*v0000046Dp0000B00C
alias:          hid:b0003g0102v0000046Dp00004101
alias:          hid:b0003g0102v0000046Dp00004011
depends:        hid
intree:         Y
vermagic:       4.4.0-22-generic SMP mod_unload modversions 
parm:           disable_raw_mode:Disable Raw mode reporting for touchpads and keep firmware gestures. (bool)
parm:           disable_tap_to_click:Disable Tap-To-Click mode reporting for touchpads (only on the K400 currently). (bool)

Comment 9 Kamal Mostafa 2016-06-14 17:35:44 UTC
Per our testing in https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579190
the fix for this issue appears to be:

  [mainline] 50220de HID: core: prevent out-of-bound readings

Comment 10 Josh Boyer 2016-07-07 13:20:40 UTC
(In reply to Kamal Mostafa from comment #9)
> Per our testing in
> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579190
> the fix for this issue appears to be:
> 
>   [mainline] 50220de HID: core: prevent out-of-bound readings

Thanks for pointing us to that Kamal.  Much appreciated.

F23 has been rebased to 4.6.3 and an update will be filed soonish.

Comment 11 Fedora End Of Life 2016-11-24 13:08:28 UTC
This message is a reminder that Fedora 23 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 23. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '23'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 23 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 12 Fedora End Of Life 2016-12-20 15:27:23 UTC
Fedora 23 changed to end-of-life (EOL) status on 2016-12-20. Fedora 23 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.