<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments for Truth, Computing and Fail</title>
	<atom:link href="http://anomit.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://anomit.com</link>
	<description></description>
	<lastBuildDate>Sun, 07 Aug 2011 08:30:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>Comment on Democracy and freedom: We don&#8217;t deserve it by TANUSHREE CHOPRA</title>
		<link>http://anomit.com/2008/11/23/democracy-and-freedom-we-dont-deserve-it/comment-page-1/#comment-8499</link>
		<dc:creator>TANUSHREE CHOPRA</dc:creator>
		<pubDate>Sun, 07 Aug 2011 08:30:12 +0000</pubDate>
		<guid isPermaLink="false">http://anomit.com/?p=72#comment-8499</guid>
		<description>I think that they r saying right that we don&#039;t deserve it</description>
		<content:encoded><![CDATA[<p>I think that they r saying right that we don&#8217;t deserve it</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Examining the Linux VDSO by Brandon Potter</title>
		<link>http://anomit.com/2010/04/18/examining-the-linux-vdso/comment-page-1/#comment-8062</link>
		<dc:creator>Brandon Potter</dc:creator>
		<pubDate>Thu, 21 Jul 2011 19:57:40 +0000</pubDate>
		<guid isPermaLink="false">http://anomit.com/?p=200#comment-8062</guid>
		<description>I looked at using the &quot;dd&quot; command for a bit.  I couldn&#039;t figure out how to get it to work with the /proc/pid/mem file.  I don&#039;t know what &quot;dd&quot; is using internally to read from the file, but I ended up getting output similar to Ezra; dropping to root does nothing to resolve the issue.

I know that for /proc/pid/pagemap that you can extract the page frame numbers using lseek and read which is similar to the python script above; I could be that &quot;mem&quot; uses something similar.  It probably only has a few methods defined and &quot;dd&quot; might use something that is not supported.  This is just speculation for /proc/pid/mem as I don&#039;t have any proof.  For /proc/pid/pagemap, see the following LXR link for its operations:
    http://lxr.linux.no/linux+v2.6.39/fs/proc/task_mmu.c#L854

It would be interesting to see if anyone has a method that works directly from a command line and doesn&#039;t require a script or C program.</description>
		<content:encoded><![CDATA[<p>I looked at using the &#8220;dd&#8221; command for a bit.  I couldn&#8217;t figure out how to get it to work with the /proc/pid/mem file.  I don&#8217;t know what &#8220;dd&#8221; is using internally to read from the file, but I ended up getting output similar to Ezra; dropping to root does nothing to resolve the issue.</p>
<p>I know that for /proc/pid/pagemap that you can extract the page frame numbers using lseek and read which is similar to the python script above; I could be that &#8220;mem&#8221; uses something similar.  It probably only has a few methods defined and &#8220;dd&#8221; might use something that is not supported.  This is just speculation for /proc/pid/mem as I don&#8217;t have any proof.  For /proc/pid/pagemap, see the following LXR link for its operations:<br />
    <a href="http://lxr.linux.no/linux+v2.6.39/fs/proc/task_mmu.c#L854" rel="nofollow">http://lxr.linux.no/linux+v2.6.39/fs/proc/task_mmu.c#L854</a></p>
<p>It would be interesting to see if anyone has a method that works directly from a command line and doesn&#8217;t require a script or C program.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Examining the Linux VDSO by Brandon Potter</title>
		<link>http://anomit.com/2010/04/18/examining-the-linux-vdso/comment-page-1/#comment-8056</link>
		<dc:creator>Brandon Potter</dc:creator>
		<pubDate>Thu, 21 Jul 2011 18:29:17 +0000</pubDate>
		<guid isPermaLink="false">http://anomit.com/?p=200#comment-8056</guid>
		<description>You probably have Address Space Layout Randomization (ASLR) turned on.  It randomizes the virtual addresses within the kernel for security reasons.

To check to see if it is enabled, try:
    sudo cat /proc/sys/kernel/randomize_va_space

If it returns 2, the default, then ASLR is turned on.

To turn it off, try:
    sudo su
    sudo echo 0 &gt; /proc/sys/kernel/randomize_va_space

This overcomes the need to write a clever script to extract the virtual address; the address will remain constant on subsequent runs.

I am not sure what you&#039;re doing with the &quot;dd&quot; command because you&#039;re opening up a snapshot of the &quot;dd&quot; process internals.  Previously, you were opening up the &quot;cat&quot; internals.  The two should be completely different.

You might try to write a small C program that contains an infinite loop; you can look at the process ID of that program and then look in /proc/PID/maps for the VDSO page offset.  I think that &quot;dd&quot; uses the decimal offset for the number of pages, the reason why you used &quot;4096&quot;.

The &quot;dd&quot; command becomes:
    dd if=/proc/PID_C_PROGRAM/mem of=linux-gate.dso bs=4096 skip=CALCULATED_OFFSET_IN_PAGES count=1
    objdump -d linux-gate.dso

You might try something like the above.  I don&#039;t really use objdump for anything other than looking at ELF executables.  I don&#039;t really know what /proc/PID/mem contains so I have no idea what the output would look like.  It might work though.</description>
		<content:encoded><![CDATA[<p>You probably have Address Space Layout Randomization (ASLR) turned on.  It randomizes the virtual addresses within the kernel for security reasons.</p>
<p>To check to see if it is enabled, try:<br />
    sudo cat /proc/sys/kernel/randomize_va_space</p>
<p>If it returns 2, the default, then ASLR is turned on.</p>
<p>To turn it off, try:<br />
    sudo su<br />
    sudo echo 0 &gt; /proc/sys/kernel/randomize_va_space</p>
<p>This overcomes the need to write a clever script to extract the virtual address; the address will remain constant on subsequent runs.</p>
<p>I am not sure what you&#8217;re doing with the &#8220;dd&#8221; command because you&#8217;re opening up a snapshot of the &#8220;dd&#8221; process internals.  Previously, you were opening up the &#8220;cat&#8221; internals.  The two should be completely different.</p>
<p>You might try to write a small C program that contains an infinite loop; you can look at the process ID of that program and then look in /proc/PID/maps for the VDSO page offset.  I think that &#8220;dd&#8221; uses the decimal offset for the number of pages, the reason why you used &#8220;4096&#8243;.</p>
<p>The &#8220;dd&#8221; command becomes:<br />
    dd if=/proc/PID_C_PROGRAM/mem of=linux-gate.dso bs=4096 skip=CALCULATED_OFFSET_IN_PAGES count=1<br />
    objdump -d linux-gate.dso</p>
<p>You might try something like the above.  I don&#8217;t really use objdump for anything other than looking at ELF executables.  I don&#8217;t really know what /proc/PID/mem contains so I have no idea what the output would look like.  It might work though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Examining the Linux VDSO by Igor</title>
		<link>http://anomit.com/2010/04/18/examining-the-linux-vdso/comment-page-1/#comment-5540</link>
		<dc:creator>Igor</dc:creator>
		<pubDate>Thu, 14 Apr 2011 18:18:48 +0000</pubDate>
		<guid isPermaLink="false">http://anomit.com/?p=200#comment-5540</guid>
		<description>For readability /proc//mem see very good explanation here: http://unix.stackexchange.com/questions/6301/how-do-i-read-from-proc-pid-mem-under-linux</description>
		<content:encoded><![CDATA[<p>For readability /proc//mem see very good explanation here: <a href="http://unix.stackexchange.com/questions/6301/how-do-i-read-from-proc-pid-mem-under-linux" rel="nofollow">http://unix.stackexchange.com/questions/6301/how-do-i-read-from-proc-pid-mem-under-linux</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Examining the Linux VDSO by Igor</title>
		<link>http://anomit.com/2010/04/18/examining-the-linux-vdso/comment-page-1/#comment-5539</link>
		<dc:creator>Igor</dc:creator>
		<pubDate>Thu, 14 Apr 2011 18:14:56 +0000</pubDate>
		<guid isPermaLink="false">http://anomit.com/?p=200#comment-5539</guid>
		<description>Suresh&#039;s on-liner doesn&#039;t work, because there are different &#039;selfs&#039; there. 

&#039;cat /proc/self/maps &#124; ...&#039; produces mapping for &#039;cat&#039;, not necessarily identical to that of &#039;dd&#039;.</description>
		<content:encoded><![CDATA[<p>Suresh&#8217;s on-liner doesn&#8217;t work, because there are different &#8216;selfs&#8217; there. </p>
<p>&#8216;cat /proc/self/maps | &#8230;&#8217; produces mapping for &#8216;cat&#8217;, not necessarily identical to that of &#8216;dd&#8217;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Apologies by Zubin Mithra</title>
		<link>http://anomit.com/2010/12/27/apologies/comment-page-1/#comment-4529</link>
		<dc:creator>Zubin Mithra</dc:creator>
		<pubDate>Thu, 06 Jan 2011 02:59:23 +0000</pubDate>
		<guid isPermaLink="false">http://anomit.com/?p=207#comment-4529</guid>
		<description>Loved this post.</description>
		<content:encoded><![CDATA[<p>Loved this post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Apologies by Anomit</title>
		<link>http://anomit.com/2010/12/27/apologies/comment-page-1/#comment-4355</link>
		<dc:creator>Anomit</dc:creator>
		<pubDate>Mon, 27 Dec 2010 03:30:27 +0000</pubDate>
		<guid isPermaLink="false">http://anomit.com/?p=207#comment-4355</guid>
		<description>Zed, thanks a lot for dropping by and leaving a comment. It means a lot.</description>
		<content:encoded><![CDATA[<p>Zed, thanks a lot for dropping by and leaving a comment. It means a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Apologies by Tweets that mention Apologies- Why pride of being a hacker is bad - - [Hacker News FH] -- Topsy.com</title>
		<link>http://anomit.com/2010/12/27/apologies/comment-page-1/#comment-4348</link>
		<dc:creator>Tweets that mention Apologies- Why pride of being a hacker is bad - - [Hacker News FH] -- Topsy.com</dc:creator>
		<pubDate>Sun, 26 Dec 2010 21:03:57 +0000</pubDate>
		<guid isPermaLink="false">http://anomit.com/?p=207#comment-4348</guid>
		<description>[...] This post was mentioned on Twitter by Hacker News YC, News Bloom and others. News Bloom said: Apologies- Why pride of being a hacker is bad - http://bit.ly/ee85aj - [Hacker News Top] [...]</description>
		<content:encoded><![CDATA[<p>[...] This post was mentioned on Twitter by Hacker News YC, News Bloom and others. News Bloom said: Apologies- Why pride of being a hacker is bad &#8211; <a href="http://bit.ly/ee85aj" rel="nofollow">http://bit.ly/ee85aj</a> &#8211; [Hacker News Top] [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Apologies by Zed Shaw</title>
		<link>http://anomit.com/2010/12/27/apologies/comment-page-1/#comment-4347</link>
		<dc:creator>Zed Shaw</dc:creator>
		<pubDate>Sun, 26 Dec 2010 20:59:27 +0000</pubDate>
		<guid isPermaLink="false">http://anomit.com/?p=207#comment-4347</guid>
		<description>Very well said.  I appreciate it when someone admits their faults and acts with humility, something very few people refuse to do.  Sadly, in the modern world people (especially young men) only listen to the egomaniac blowhards rather than the peaceful and kind.

Thanks,

Zed</description>
		<content:encoded><![CDATA[<p>Very well said.  I appreciate it when someone admits their faults and acts with humility, something very few people refuse to do.  Sadly, in the modern world people (especially young men) only listen to the egomaniac blowhards rather than the peaceful and kind.</p>
<p>Thanks,</p>
<p>Zed</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Examining the Linux VDSO by Ezra Gilbert</title>
		<link>http://anomit.com/2010/04/18/examining-the-linux-vdso/comment-page-1/#comment-3629</link>
		<dc:creator>Ezra Gilbert</dc:creator>
		<pubDate>Wed, 01 Sep 2010 14:04:18 +0000</pubDate>
		<guid isPermaLink="false">http://anomit.com/?p=200#comment-3629</guid>
		<description>The code in the last comment did not come out very well.  Here is a link to a fork of anomit&#039;s gist above that works with python 2.4.3: http://gist.github.com/560719</description>
		<content:encoded><![CDATA[<p>The code in the last comment did not come out very well.  Here is a link to a fork of anomit&#8217;s gist above that works with python 2.4.3: <a href="http://gist.github.com/560719" rel="nofollow">http://gist.github.com/560719</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

