Bug 593150

Summary: xinput fails with BadAtom when listing properties on 64 bit
Product: Red Hat Enterprise Linux 6 Reporter: Peter Hutterer <peter.hutterer>
Component: xorg-x11-appsAssignee: Peter Hutterer <peter.hutterer>
Status: CLOSED CURRENTRELEASE QA Contact: desktop-bugs <desktop-bugs>
Severity: medium Docs Contact:
Priority: low    
Version: 6.0CC: mgordon
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: xorg-x11-apps-7.4-10.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-07-02 19:57:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Description Flags
upstream patch none

Description Peter Hutterer 2010-05-18 00:40:17 UTC
Description of problem:
xinput --list-props <device> fails with BadAtom on 64 bit machines due to an invalid memory access. The size of properties is different on 32/64 bit, hence the read goes past the memory boundary

Upstream bug: https://bugs.freedesktop.org/show_bug.cgi?id=27657, already committed, can be back-ported easily.

Version-Release number of selected component (if applicable):

How reproducible:
xinput --list-props "<device id or name>"

In my case it failed on Wacom devices, not on my USB mouse (probably due to the number of atoms being different on the two)

Comment 1 RHEL Program Management 2010-05-18 00:45:16 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for

Comment 2 Matěj Cepl 2010-05-18 10:15:13 UTC
Created attachment 414796 [details]
upstream patch

Comment 4 Peter Hutterer 2010-05-19 00:50:53 UTC

xorg-x11-apps-7.4-10.el6 is available in brew.

Comment 6 Mark Gordon 2010-06-22 19:36:22 UTC
Fix confirmed, using an intuos3 9x12 that had previously exposed the bug.


Comment 7 releng-rhel@redhat.com 2010-07-02 19:57:48 UTC
Red Hat Enterprise Linux Beta 2 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.