lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 22 May 2007 21:54:24 -0700
From:	Dan Dennedy <dan@...nedy.org>
To:	Stefan Richter <stefanr@...6.in-berlin.de>
Cc:	Arnd Bergmann <arnd@...db.de>,
	Petr Vandrovec <petr@...drovec.name>,
	linux1394-devel@...ts.sourceforge.net, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] Fix/add raw1394 CONFIG_COMPAT code

On Sunday 20 May 2007 08:28, Stefan Richter wrote:
> Arnd Bergmann wrote:
> > On Sunday 20 May 2007, Stefan Richter wrote:
> >>> Note that this data structure only needs conversion on x86_64 and ia64, 
but
> >>> not on powerpc and other 64 bit architectures that align __u64 also in
> >>> 32 bit mode.
> >> Is this conversion just unnecessary or actually harmful on ppc64 and 
others?
> > 
> > With the current patch, the compat_ioctl function does not handle the 
ppc32
> > version of the structure at all, so it's broken there, it would at least
> > need a 
> > 
> > 	case RAW1394_IOC_GET_CYCLE_TIMER:
> > 		err = raw1394_ioctl(NULL, file, cmd, arg);
> > 		break;
> 
> Dan,
> 
> maybe we should change
> 
> /* argument to RAW1394_IOC_GET_CYCLE_TIMER ioctl */
> struct raw1394_cycle_timer {
> 	/* contents of Isochronous Cycle Timer register,
> 	   as in OHCI 1.1 clause 5.13 (also with non-OHCI hosts) */
> 	__u32 cycle_timer;
> 
> 	/* local time in microseconds since Epoch,
> 	   simultaneously read with cycle timer */
> 	__u64 local_time;
> };
> 
> to
> 
> /* argument to RAW1394_IOC_GET_CYCLE_TIMER ioctl */
> struct raw1394_cycle_timer {
> 	/*
> 	 * least significant 32 bits are contents of Isochronous Cycle
> 	 * Timer register, as in OHCI 1.1 clause 5.13 (also with
> 	 * non-OHCI hosts)
> 	 */
> 	__u64 cycle_timer;
> 
> 	/*
> 	 * local time in microseconds since Epoch,
> 	 * simultaneously read with cycle timer
> 	 */
> 	__u64 local_time;
> };
> 
> before a libraw1394 with get-cycle-timer support is released.
> Shall I prepare according patches for raw1394 and libraw1394?

This seems like a good idea, and I have forwarded it to the ffado (formerly 
freebob) developers, specifically Pieter Palmers--the submitter of 
raw1394_read_cycle_timer--to get his feedback.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ