<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/glibc.git/sysdeps/unix, branch rsa/stdint</title>
<subtitle>sourceware.org: git/glibc.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glibc.git/'/>
<entry>
<title>Add #include &lt;stdint.h&gt; for uint[32|64]_t usage.</title>
<updated>2013-04-29T23:48:43+00:00</updated>
<author>
<name>Ryan S. Arnold</name>
<email>rsa@linux.vnet.ibm.com</email>
</author>
<published>2013-04-29T23:48:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glibc.git/commit/?id=4eb401a9c95a1313baad1393b0c3e0508b5d3f9a'/>
<id>4eb401a9c95a1313baad1393b0c3e0508b5d3f9a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>S/390: Change struct statfs[64] member types to unsigned values</title>
<updated>2013-04-23T06:59:35+00:00</updated>
<author>
<name>Heiko Carstens</name>
<email>heiko.carstens@de.ibm.com</email>
</author>
<published>2013-04-23T06:53:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glibc.git/commit/?id=5c95f7b66be2e59cf26f3c29cfab7657880bd76d'/>
<id>5c95f7b66be2e59cf26f3c29cfab7657880bd76d</id>
<content type='text'>
Kay Sievers reported that coreutils' stat tool has a problem with
s390's statfs[64] definition:

&gt; The definition of struct statfs::f_type needs a fix. s390 is the only
&gt; architecture in the kernel that uses an int and expects magic
&gt; constants lager than INT_MAX to fit into.
&gt;
&gt; A fix is needed to make Fedora boot on s390, it currently fails to do
&gt; so. Userspace does not want to add code to paper-over this issue.

[...]

&gt; Even coreutils cannot handle it:
&gt;   #define RAMFS_MAGIC  0x858458f6
&gt;   # stat -f -c%t /
&gt;   ffffffff858458f6
&gt;
&gt;   #define BTRFS_SUPER_MAGIC 0x9123683E
&gt;   # stat -f -c%t /mnt
&gt;   ffffffff9123683e

The bug is caused by an implicit sign extension within the stat tool:

out_uint_x (pformat, prefix_len, statfsbuf-&gt;f_type);

where the format finally will be "%lx".
A similar problem can be found in the 'tail' tool.
s390 is the only architecture which has an int type f_type member in
struct statfs[64]. Other architectures have either unsigned ints or
long values, so that the problem doesn't occur there.

Therefore change the type of the f_type member to unsigned int, so
that we get zero extension instead sign extension when assignment to
a long value happens.

Reported-by: Kay Sievers &lt;kay@vrfy.org&gt;
Signed-off-by: Heiko Carstens &lt;heiko.carstens@de.ibm.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Kay Sievers reported that coreutils' stat tool has a problem with
s390's statfs[64] definition:

&gt; The definition of struct statfs::f_type needs a fix. s390 is the only
&gt; architecture in the kernel that uses an int and expects magic
&gt; constants lager than INT_MAX to fit into.
&gt;
&gt; A fix is needed to make Fedora boot on s390, it currently fails to do
&gt; so. Userspace does not want to add code to paper-over this issue.

[...]

&gt; Even coreutils cannot handle it:
&gt;   #define RAMFS_MAGIC  0x858458f6
&gt;   # stat -f -c%t /
&gt;   ffffffff858458f6
&gt;
&gt;   #define BTRFS_SUPER_MAGIC 0x9123683E
&gt;   # stat -f -c%t /mnt
&gt;   ffffffff9123683e

The bug is caused by an implicit sign extension within the stat tool:

out_uint_x (pformat, prefix_len, statfsbuf-&gt;f_type);

where the format finally will be "%lx".
A similar problem can be found in the 'tail' tool.
s390 is the only architecture which has an int type f_type member in
struct statfs[64]. Other architectures have either unsigned ints or
long values, so that the problem doesn't occur there.

Therefore change the type of the f_type member to unsigned int, so
that we get zero extension instead sign extension when assignment to
a long value happens.

Reported-by: Kay Sievers &lt;kay@vrfy.org&gt;
Signed-off-by: Heiko Carstens &lt;heiko.carstens@de.ibm.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove __wur from setfsuid and setfsgid.</title>
<updated>2013-04-19T05:58:16+00:00</updated>
<author>
<name>Adam Conrad</name>
<email>adconrad@0c3.net</email>
</author>
<published>2013-04-19T05:58:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glibc.git/commit/?id=ccdad15df5bb2ec898fbf10c7195164cf228833a'/>
<id>ccdad15df5bb2ec898fbf10c7195164cf228833a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Preserve errno across _PC_CHOWN_RESTRICTED call on XFS</title>
<updated>2013-04-03T05:26:45+00:00</updated>
<author>
<name>Siddhesh Poyarekar</name>
<email>siddhesh@redhat.com</email>
</author>
<published>2013-04-03T05:26:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glibc.git/commit/?id=d755bba40f880c01ced8740a26fecc85534454b9'/>
<id>d755bba40f880c01ced8740a26fecc85534454b9</id>
<content type='text'>
Fix BZ #15305.

On kernel versions earlier than 2.6.29, the Linux kernel exported a
sysctl called restrict_chown for xfs, which could be used to allow
chown to users other than the owner.  2.6.29 removed this support,
causing the open_not_cancel_2 to fail and thus modify errno.  The fix
is to save and restore errno so that the caller sees it as unmodified.

Additionally, since the code to check the sysctl is not useful on
newer kernels, we add an ifdef so that in future the code block gets
rmeoved completely.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix BZ #15305.

On kernel versions earlier than 2.6.29, the Linux kernel exported a
sysctl called restrict_chown for xfs, which could be used to allow
chown to users other than the owner.  2.6.29 removed this support,
causing the open_not_cancel_2 to fail and thus modify errno.  The fix
is to save and restore errno so that the caller sees it as unmodified.

Additionally, since the code to check the sysctl is not useful on
newer kernels, we add an ifdef so that in future the code block gets
rmeoved completely.
</pre>
</div>
</content>
</entry>
<entry>
<title>New &lt;math.h&gt; macro named issignaling to check for a signaling NaN (sNaN).</title>
<updated>2013-04-02T11:51:02+00:00</updated>
<author>
<name>Thomas Schwinge</name>
<email>thomas@codesourcery.com</email>
</author>
<published>2013-04-02T11:51:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glibc.git/commit/?id=572676160d5639edc0ecb663147bd291841458d1'/>
<id>572676160d5639edc0ecb663147bd291841458d1</id>
<content type='text'>
It is based on draft TS 18661 and currently enabled as a GNU extension.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It is based on draft TS 18661 and currently enabled as a GNU extension.
</pre>
</div>
</content>
</entry>
<entry>
<title>Consolidate Linux and POSIX libc_fatal code.</title>
<updated>2013-03-20T00:07:15+00:00</updated>
<author>
<name>Roland McGrath</name>
<email>roland@hack.frob.com</email>
</author>
<published>2013-03-20T00:07:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glibc.git/commit/?id=a600e5cef53e10147932d910cdb2fdfc62afae4e'/>
<id>a600e5cef53e10147932d910cdb2fdfc62afae4e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Move _dl_non_dynamic_init, _dl_aux_init declarations.</title>
<updated>2013-03-15T21:32:04+00:00</updated>
<author>
<name>Roland McGrath</name>
<email>roland@hack.frob.com</email>
</author>
<published>2013-03-15T21:32:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glibc.git/commit/?id=bc16e260d0e74b36e48d30edc6ea4f1152700c09'/>
<id>bc16e260d0e74b36e48d30edc6ea4f1152700c09</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>PowerPC: gettimeofday optimization by using IFUNC</title>
<updated>2013-03-15T13:58:56+00:00</updated>
<author>
<name>Adhemerval Zanella</name>
<email>azanella@linux.vnet.ibm.com</email>
</author>
<published>2013-03-15T13:58:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glibc.git/commit/?id=ef26eece6331a1f6d959818e37c438cc7ce68e53'/>
<id>ef26eece6331a1f6d959818e37c438cc7ce68e53</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix formatting in last change</title>
<updated>2013-03-14T02:48:48+00:00</updated>
<author>
<name>Siddhesh Poyarekar</name>
<email>siddhesh@redhat.com</email>
</author>
<published>2013-03-14T02:48:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glibc.git/commit/?id=e25cfa60057364e8bb6e5340b26ac21341fa4953'/>
<id>e25cfa60057364e8bb6e5340b26ac21341fa4953</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix __times() handling of EFAULT when buf is NULL</title>
<updated>2013-03-14T00:16:53+00:00</updated>
<author>
<name>Petr Baudis</name>
<email>pasky@ucw.cz</email>
</author>
<published>2013-03-14T00:16:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/glibc.git/commit/?id=58a1335e76a553e1cf4edeebc27f16fc9b53d6e6'/>
<id>58a1335e76a553e1cf4edeebc27f16fc9b53d6e6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
