From owner-freebsd-security@FreeBSD.ORG Mon Feb 18 21:51:12 2008 Return-Path: Delivered-To: freebsd-security@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 66B8C16A419 for ; Mon, 18 Feb 2008 21:51:12 +0000 (UTC) (envelope-from petersanchez@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.234]) by mx1.freebsd.org (Postfix) with ESMTP id 0EC6B13C46B for ; Mon, 18 Feb 2008 21:51:11 +0000 (UTC) (envelope-from petersanchez@gmail.com) Received: by wr-out-0506.google.com with SMTP id 68so1336989wri.3 for ; Mon, 18 Feb 2008 13:51:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer:sender; bh=43lPMpYZxlKz+fH3f8q1j/HQICB4Wh9UNDs3JQSNK/w=; b=aj4GgcvLfbH7dvFcuwKjgudeZ0F+yhv6j1h8QzJYFz39idB1USmKuhJFY0jzhWSMofPbEOygtcqzqASjSNSWFDKMxkPDEsGORGJcuIe6JQxgLEXB4Z1Reh2PfED72XQgSQ0x+YqL8dKDv5pUQwp5TloguOqyZUhU6B/0RKcj96I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer:sender; b=ZcWlAmSwuTCnhdEnaK4F8tv4WJgh8+JffWaZeXIDFgYzzhppjzAxnMjYDBOEtF4mAD9C5F6wVtnoVpuQbINjhi9uRmSgjlFDyfZzXSr6GJGurz/bHXBXX4wMZm5FvwK6nTMfxVRw0/Nh1zJnqUi+mh5vohO5AvuWIQGZf1YLYiI= Received: by 10.142.141.21 with SMTP id o21mr4773661wfd.102.1203371470254; Mon, 18 Feb 2008 13:51:10 -0800 (PST) Received: from ?192.168.1.4? ( [76.169.98.169]) by mx.google.com with ESMTPS id 22sm16597852wfd.4.2008.02.18.13.51.09 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 18 Feb 2008 13:51:09 -0800 (PST) Message-Id: From: Peter Sanchez To: Technical Department In-Reply-To: <47B9F0E1.5030506@datadream.co.uk> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Date: Mon, 18 Feb 2008 13:51:03 -0800 References: <47B90868.7000900@electron-tube.net> <200802182052.m1IKqkFF004605@lava.sentex.ca> <47B9F0E1.5030506@datadream.co.uk> X-Mailer: Apple Mail (2.919.2) Sender: Peter Sanchez Cc: freebsd-security@freebsd.org Subject: Re: How to take down a system to the point of requiring a newfs with one line of C (userland) X-BeenThere: freebsd-security@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Security issues \[members-only posting\]" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Feb 2008 21:51:12 -0000 On Feb 18, 2008, at 12:56 PM, Technical Department wrote: > I have tried on 6.3p1 Release and 6.2p10 Release - ran out of inodes > - system fine. Tried on 6.2-S and 6.3-S and I didn't get a system panic. Peter > > > Mike Tancsa wrote: >> At 11:24 PM 2/17/2008, Jim Bryant wrote: >>> One line summary: >>> Too many files in a top-level UFS-2 filesystem directory will >>> cause a panic on mount. >>> How to repeat the problem: >>> Compile and run the following as instructed: >>> >>> umount that filesystem. >> Hi, >> I tried this on RELENG_7 and RELENG_6 and was not able to panic the >> box >> 0[releng7]# ls -l | wc >> 20098 200972 1377211 >> 0[releng7]# df -i >> Filesystem 1K-blocks Used Avail Capacity iused ifree >> %iused Mounted on >> /dev/ad6s1a 1012974 284464 647474 31% 3308 138002 >> 2% / >> devfs 1 1 0 100% 0 0 >> 100% /dev >> /dev/ad6s1d 5077038 1221890 3448986 26% 20243 639211 >> 3% /tmp >> /dev/ad6s1e 25385516 15683412 7671264 67% 370099 2927179 >> 11% /usr >> /dev/ad6s1f 40139596 847342 36081088 2% 1001 5203989 >> 0% /var >> 0[releng7]# >> and releng_6 >> 0[nanobsd]# ./a.out /tmp/k >> 0[nanobsd]# ./a.out /tmp/kl >> 0[nanobsd]# ls -l /tmp/ | wc >> 20248 182229 1327842 >> 0[nanobsd]# df -i >> Filesystem 1K-blocks Used Avail Capacity iused ifree >> %iused Mounted on >> /dev/twed0s1a 1012974 109076 822862 12% 2099 139211 >> 1% / >> devfs 1 1 0 100% 0 0 >> 100% /dev >> /dev/twed0s1d 4058062 3264732 468686 87% 23045 518649 >> 4% /tmp >> /dev/twed0s1f 82042376 57488474 17990512 76% 2014718 8607232 >> 19% /usr >> /dev/twed0s1e 20308398 5173252 13510476 28% 1813 2636009 >> 0% /var >> 0[nanobsd]# >> After running the program and creating all the files, I just did a >> reboot and all worked just fine post reboot. >> Did you fill up the partition or run out of inodes perhaps ? >> ---Mike >> _______________________________________________ >> freebsd-security@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-security >> To unsubscribe, send any mail to "freebsd-security-unsubscribe@freebsd.org >> " > _______________________________________________ > freebsd-security@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-security > To unsubscribe, send any mail to "freebsd-security-unsubscribe@freebsd.org > "