From owner-freebsd-bugs Tue Apr 2 10:51:22 2002 Delivered-To: freebsd-bugs@freebsd.org Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by hub.freebsd.org (Postfix) with ESMTP id F1C2537B41B for ; Tue, 2 Apr 2002 10:51:19 -0800 (PST) Received: (from dillon@localhost) by apollo.backplane.com (8.11.6/8.9.1) id g32IpCu16951; Tue, 2 Apr 2002 10:51:12 -0800 (PST) (envelope-from dillon) Date: Tue, 2 Apr 2002 10:51:12 -0800 (PST) From: Matthew Dillon Message-Id: <200204021851.g32IpCu16951@apollo.backplane.com> To: freebsd-bugs@FreeBSD.ORG, "Dorr H. Clark" Subject: Re: kern/36504: crash/panic vm_object_allocate under file system code w/fix References: <200204020819.g328JPJ21423@freefall.freebsd.org> Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Ok, I've looke at this some more. The second part of the patch created a little confusion because you diff'd the files backwards, but I see what you are doing. But there's a problem. Actually several problems. The biggest one is that many filesystems, including UFS uses VM backing store heavily. If the object creation fails, UFS is screwed up and so is any user program that uses mmap() on the file in question. So we can't allow it to fail. Second problem: vm_object_allocate() assumes that the zalloc() will succeed. The system must be crashing in there, before your defensive check. The only thing that can cause vm_object_allocate() to fail that I know of is if the system runs out of KVM. If the system runs out of KVM the system is in real trouble. I will make changes that check for the zalloc failure and panic the system, but that's about the best I can do for the moment. What you need to do if you are experiencing crashes is to compile up a debug kernel and obtain a crash dump. I should be able to diagnose the cause of the crash from that. -Matt Matthew Dillon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message