lkml.org 
[lkml]   [2000]   [Nov]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: binfmt question
On Tue, 28 Nov 2000 jani@virtualro.ic.ro wrote:

>
> Hi,
>
> Is every process supposed to have a valid binary format?
> (binfmt field !=NULL in it's task_struct).I hope so.
>

No, incorrect. You can have a kernel thread with binfmt == NULL, see

# gdb -q vmlinux /proc/kcore
Core was generated by `auto BOOT_IMAGE=240-test11 ro root=302
BOOT_FILE=/boot/vmlinuz-2.4.0-test11'.
#0 0x0 in ?? ()
(gdb) p ((((2) >> 8) ^ (2)) & (1024 - 1))
$1 = 2
(gdb) p pidhash[2]->comm
$2 = "eventd\000\000\000\000\000\000\000\000\000"
(gdb) p pidhash[2]->binfmt
$3 = (struct linux_binfmt *) 0x0

Regards,
Tigran

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:47    [W:0.041 / U:1.916 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site