Bug 616653

Summary: Button → keycode configurations can cause server hangs
Product: Red Hat Enterprise Linux 6 Reporter: Peter Hutterer <peter.hutterer>
Component: xorg-x11-drv-wacomAssignee: Peter Hutterer <peter.hutterer>
Status: CLOSED CURRENTRELEASE QA Contact: desktop-bugs <desktop-bugs>
Severity: medium Docs Contact:
Priority: low    
Version: 6.0CC: duffy, mgordon, syeghiay
Target Milestone: rcKeywords: RHELNAK, Triaged
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: xorg-x11-drv-wacom-0.10.5-6.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-11-10 21:57:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Peter Hutterer 2010-07-21 03:54:06 UTC
Description of problem:
If a button is configured to send key events, an allocation in the signal handler may cause a server hang.

Version-Release number of selected component (if applicable):
xorg-x11-drv-wacom-0.10.5-5.el6

How reproducible:
Configure a button to send key strokes, execute button action repeatedly until the server hangs.


Steps to Reproduce:
1. xsetwacom --set "Wacom device name" Button1 "key a b c"
2. Click button 1 on the device
3. repeat 2 until hang
  
Actual results:
The driver calls XkbGetCoreMap() during wcmEmitKeysym(). This function calls malloc, but we're in the signal handler. malloc() during the signal handler may hang the machine.

Comment 2 RHEL Program Management 2010-07-21 04:18:12 UTC
This issue has been proposed when we are only considering blocker
issues in the current Red Hat Enterprise Linux release.

** If you would still like this issue considered for the current
release, ask your support representative to file as a blocker on
your behalf. Otherwise ask that it be considered for the next
Red Hat Enterprise Linux release. **

Comment 6 Peter Hutterer 2010-07-28 05:53:51 UTC
MODIFIED 

xorg-x11-drv-wacom-0.10.5-6.el6 is available in brew

Comment 8 Máirín Duffy 2010-08-31 19:04:16 UTC
I set the eraser button to output 'abc' and tapped it repeatedly in gedit. Based on the character count I've tapped over 600 times, no crash.

kernel-2.6.32-63.el6.x86_64
xorg-x11-drv-wacom-0.10.5-6.el6.x86_64
wacomexpresskeys-0.4.2-3.el6.x86_64
xorg-x11-server-Xorg-1.7.7-26.el6.x86_64

I will note I tried to set my pointer and eraser back after this and they still print out abc instead of left click. I tried

xsetwacom set "Wacom Serial Tablet PC Pen Tablet/Digitizer" Button1 "button 1"

and

xsetwacom set "Wacom Serial Tablet PC Pen Tablet/Digitizer" Button1 1

Comment 9 Andrew Ross 2010-08-31 23:48:35 UTC
Thanks Máirín.

Comment 10 releng-rhel@redhat.com 2010-11-10 21:57:08 UTC
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.