Hi, I assume this is relevant: :H. Peter Anvin writes: Mikael Pettersson wrote:
On Wed, 19 Sep 2007 14:35:29 +0100, James Pearson wrote: /proc/PID/environ currently truncates at 4096 characters, patch based on the /proc/PID/mem code. Does /proc/PID/mem even work? If I do `strace cat /proc/PID/mem > /dev/null' for a known good PID, the first read() from /proc/PID/mem fails with ESRCH, Of course it does. Address zero isn't typically mapped. I would also look here: http://www.comptechdoc.org/os/linux/howlinuxworks/linux_hlproc.html and use item 6 maps plus /dev/mem (Warning I am not a kernel programmer, so this is just my 2 cents after goggling) Indeed. My bad :-( - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ On Sun, Aug 31, 2008 at 12:18 PM, Shachar Shemesh <[EMAIL PROTECTED]>wrote: > Gilad Ben-Yossef wrote: > >> >> Shachar Shemesh wrote: >> >> You can only use /proc/PID/mem if you are already attached to that >>> process as a debugger. >>> >> How interesting. Where is that documented? >> > Google. I spent almost half an hour trying to figure that one out. It is, > indeed, not documented anywhere I could find. > >> neither the proc man page or the relevant kernel documentation file does >> not mention this. >> > > Don't use no double negatives! Sorry, couldn't resist. > > >> I'm going to send a patch... >> > Go for it. > > Shachar > > ================================================================= > To unsubscribe, send mail to [EMAIL PROTECTED] with > the word "unsubscribe" in the message body, e.g., run the command > echo unsubscribe | mail [EMAIL PROTECTED] > > -- Constant change is here to stay! President John F. Kennedy once said that "the hottest places in Hell are reserved for those who in a period of moral crisis maintain their neutrality."