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  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Fri, 18 Apr 2008 15:25:09 +0100
From:	Gerrit Renker <gerrit@....abdn.ac.uk>
To:	David Miller <davem@...emloft.net>
Cc:	netdev@...r.kernel.org
Subject: Re: [COMPAT]: non-cmsg data gets interpreted as cmsg data (sparc64)

| > The following code segment works without problems on IA-32:
| > 
| > 	uint32_t prio = 10;
| > 	struct msghdr msg;
| > 
| > 	// fill in iov bits of msg
| > 	// ...
| > 	msg.msg_control	   = &prio;
| > 	msg.msg_controllen = sizeof prio;
| > 
| > 	if (sendmsg(sockfd, &msg, 0))
| > 		err(1, "sendmsg failed");
| 
| It works in non-compat situations only by accident.
| 
| You have to use proper CMSG encoding to send things into the kernel
| vis the msg_control area.
| 
Many thanks indeed. This has helped to revise an otherwise ugly approach
into something which now works beautifully well and without problems -
as predicted.

Really, thanks a lot,
Gerrit


The University of Aberdeen is a charity registered in Scotland, No SC013683.

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists