Bug 461904 - ioctl default minimum argument length of 256 should be restored
Summary: ioctl default minimum argument length of 256 should be restored
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: perl
Version: 5.2.z
Hardware: ppc64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Marcela Mašláňová
QA Contact: desktop-bugs@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-09-11 10:16 UTC by Petr Šplíchal
Modified: 2016-06-01 01:36 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-03-17 14:56:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
testcase (184 bytes, text/plain)
2008-09-11 10:20 UTC, Petr Šplíchal
no flags Details
updated testcase (214 bytes, text/plain)
2008-09-11 10:20 UTC, Petr Šplíchal
no flags Details

Comment 1 Petr Šplíchal 2008-09-11 10:20:04 UTC
Created attachment 316408 [details]
testcase

Comment 2 Petr Šplíchal 2008-09-11 10:20:46 UTC
Created attachment 316409 [details]
updated testcase

Comment 6 Stepan Kasal 2009-03-17 15:18:16 UTC
Since this started as a report that the check for bug 185240 fails in a strange way on ppc, here is a hack that fills the gap in sys/ioctl.ph

# redefine broken _IOC_TYPECHECK macro
sub _IOC_TYPECHECK {
  $sizeof{$_[0]} or do {
    # can't die because we're being eval-ed by _IOR or _IOW
    print STDERR "invalid size argument for IOC: \%sizeof contains no '$_[0]' ke
    exit 1;
  }
}

# define a sizeof hash
%sizeof = (
        int => 4, 'unsigned int' => 4, 'struct winsize' => 8,
)

Comment 7 Stepan Kasal 2009-03-17 15:39:31 UTC
I forgot to give proper credit; the workaroud presented in comment #6 comes from a comment by Kevin Buhr:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=190887#15


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