Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 28 Nov 2000 11:58:40 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 28 Nov 2000 11:58:30 -0500 Received: from 213-123-72-140.btconnect.com ([213.123.72.140]:30215 "EHLO penguin.homenet") by vger.kernel.org with ESMTP id ; Tue, 28 Nov 2000 11:58:19 -0500 Date: Tue, 28 Nov 2000 16:28:48 +0000 (GMT) From: Tigran Aivazian To: jani@virtualro.ic.ro cc: linux-kernel@vger.kernel.org Subject: Re: binfmt question In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 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/