Bug 688 - xmag infinite loop if untrusted
Summary: xmag infinite loop if untrusted
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: App/other (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Xorg Project Team
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-28 07:57 UTC by Jim Carter
Modified: 2007-02-22 14:28 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Jim Carter 2004-05-28 07:57:01 UTC
Using OpenSSH v3.8p1 with ForwardX11Trusted = false (i.e. the remote client will 
be untrusted), give the command "xmag" (no arguments).  It has an infinite loop 
saying "X error of failed request:  BadDrawable (invalid Pixmap or Window 
parameter), Major opcode of failed request:  67 (X_PolyRectangle)".  (And it 
gives the resource ID, failed serno, and current serno.)  Most likely it is 
trying to draw its selection cursor.  No blame for running afoul of the security 
system, but it should do it once and die, not get an infinite loop.
    Please forgive me if I've identified the wrong component to complain about, 
but a Google search suggested that xmag does exist as a subdir of xorg, and 
there were no other xmag bugs that I could find.
Comment 1 Mike A. Harris 2004-07-07 23:21:02 UTC
Assigning bug to myself.
Comment 2 Mike A. Harris 2004-07-07 23:22:29 UTC
Argh, bugzilla automatically jumps to the next bug whenever you submit a
change.  If you try to submit 2 changes to a bug which can not be done in
one transaction (like I just did), you end up making the first change
to the right report, and the second change to the random bug that bugzilla
throws up at you after your first submit.
Comment 3 Mike A. Harris 2004-07-07 23:23:19 UTC
Comment Required
	  	
You have to specify a comment on this change. Please give some words on the
reason for your change.

Please press Back and try again. 
Comment 4 Chris Lee 2005-07-13 00:04:46 UTC
Sending this to mharris since it looks like he wanted it and somehow bugzilla
stole it back from him.
Comment 5 Mike A. Harris 2005-07-13 00:11:54 UTC
Not sure why this is assigned to me.  I've no interest in xmag.  Must be
a mixup.

However since I'm here....   with modern openssh, you must manually enable
X11 forwarding by passing -Y, or reconfigure the server or client to
forcibly enable full forwarding for remote X apps to work.  By default
apps will behave strangely because they were never written to deal with
XSECURITY.  While it can be argued that such apps are "broken" if they
hang/crash/loop/whatever, it can also be argued that XSECURITY is
broken.

Anyhow, that's just my personal opinion as xmag non-maintainer.

<singing>
Will the real xmag maintainer please stand up? Please stand up? Please
stand up?  Will the real ...
</singing>

Ok, my singing career isn't that prosperous, back to my day job...

;o)
Comment 6 Erik Andren 2006-04-04 05:22:21 UTC
Jim, do you still have this issue with a current version of xorg?
Comment 7 Erik Andren 2006-06-28 12:20:33 UTC
Ping!
Comment 8 Timo Jyrinki 2007-02-22 14:28:03 UTC
Marking broken (status null/blank) bugs in xorg with no activity in a long time as fixed. Please reopen if you think it's necessary, but first do a search if a similar bug report is already filed and in a NEW/ASSIGNED state. These bugs do not currently show in most search results as they do not have any status.

Sorry for this janitorial spam, you know where to send hate mails to when your inbox gets full of bugs you're subscribed to.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.