<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/linux.git/Makefile, branch v2.6.31.1</title>
<subtitle>Linux Kernel
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v2.6.31.1</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v2.6.31.1'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/'/>
<updated>2009-09-24T15:45:25Z</updated>
<entry>
<title>Linux 2.6.31.1</title>
<updated>2009-09-24T15:45:25Z</updated>
<author>
<name>Greg Kroah-Hartman</name>
<email>gregkh@suse.de</email>
</author>
<published>2009-09-24T15:45:25Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=2147b209180701193e4a154896494aeeeab9d268'/>
<id>urn:sha1:2147b209180701193e4a154896494aeeeab9d268</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Linux 2.6.31</title>
<updated>2009-09-09T22:13:59Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2009-09-09T22:13:59Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=74fca6a42863ffacaf7ba6f1936a9f228950f657'/>
<id>urn:sha1:74fca6a42863ffacaf7ba6f1936a9f228950f657</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Linux 2.6.31-rc9</title>
<updated>2009-09-05T23:38:12Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2009-09-05T23:38:12Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=e07cccf4046978df10f2e13fe2b99b2f9b3a65db'/>
<id>urn:sha1:e07cccf4046978df10f2e13fe2b99b2f9b3a65db</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Linux 2.6.31-rc8</title>
<updated>2009-08-28T00:59:04Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2009-08-28T00:59:04Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=326ba5010a5429a5a528b268b36a5900d4ab0eba'/>
<id>urn:sha1:326ba5010a5429a5a528b268b36a5900d4ab0eba</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Linux 2.6.31-rc7</title>
<updated>2009-08-22T01:00:46Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2009-08-22T01:00:46Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=422bef879e84104fee6dc68ded0e371dbeb5f88e'/>
<id>urn:sha1:422bef879e84104fee6dc68ded0e371dbeb5f88e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Linux 2.6.31-rc6</title>
<updated>2009-08-13T22:43:34Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2009-08-13T22:43:34Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=64f1607ffbbc772685733ea63e6f7f4183df1b16'/>
<id>urn:sha1:64f1607ffbbc772685733ea63e6f7f4183df1b16</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Linux 2.6.31-rc5</title>
<updated>2009-08-01T00:40:45Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2009-08-01T00:40:45Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=ed680c4ad478d0fee9740f7d029087f181346564'/>
<id>urn:sha1:ed680c4ad478d0fee9740f7d029087f181346564</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Linux 2.6.31-rc4</title>
<updated>2009-07-23T02:32:59Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2009-07-23T02:32:59Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=4be3bd7849165e7efa6b0b35a23d6a3598d97465'/>
<id>urn:sha1:4be3bd7849165e7efa6b0b35a23d6a3598d97465</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add '-fno-delete-null-pointer-checks' to gcc CFLAGS</title>
<updated>2009-07-16T16:19:16Z</updated>
<author>
<name>Eugene Teo</name>
<email>eteo@redhat.com</email>
</author>
<published>2009-07-15T06:59:10Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=a3ca86aea507904148870946d599e07a340b39bf'/>
<id>urn:sha1:a3ca86aea507904148870946d599e07a340b39bf</id>
<content type='text'>
Turning on this flag could prevent the compiler from optimising away
some "useless" checks for null pointers.  Such bugs can sometimes become
exploitable at compile time because of the -O2 optimisation.

See http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/Optimize-Options.html

An example that clearly shows this 'problem' is commit 6bf67672.

 static void __devexit agnx_pci_remove(struct pci_dev *pdev)
 {
     struct ieee80211_hw *dev = pci_get_drvdata(pdev);
-    struct agnx_priv *priv = dev-&gt;priv;
+    struct agnx_priv *priv;
     AGNX_TRACE;

     if (!dev)
         return;
+    priv = dev-&gt;priv;

By reverting this patch, and compile it with and without
-fno-delete-null-pointer-checks flag, we can see that the check for dev
is compiled away.

    call    printk  #
-   testq   %r12, %r12  # dev
-   je  .L94    #,
    movq    %r12, %rdi  # dev,

Clearly the 'fix' is to stop using dev before it is tested, but building
with -fno-delete-null-pointer-checks flag at least makes it harder to
abuse.

Signed-off-by: Eugene Teo &lt;eugeneteo@kernel.sg&gt;
Acked-by: Eric Paris &lt;eparis@redhat.com&gt;
Acked-by: Wang Cong &lt;amwang@redhat.com&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>Linux 2.6.31-rc3</title>
<updated>2009-07-14T01:18:52Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2009-07-14T01:18:52Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=6847e154e3cd74fca6084124c097980a7634285a'/>
<id>urn:sha1:6847e154e3cd74fca6084124c097980a7634285a</id>
<content type='text'>
</content>
</entry>
</feed>
