From nobody@FreeBSD.org  Fri Sep 29 20:12:38 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id BAB0916A403
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 29 Sep 2006 20:12:38 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 7446043D69
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 29 Sep 2006 20:12:38 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k8TKCbBC042808
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 29 Sep 2006 20:12:37 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k8TKCbjd042807;
	Fri, 29 Sep 2006 20:12:37 GMT
	(envelope-from nobody)
Message-Id: <200609292012.k8TKCbjd042807@www.freebsd.org>
Date: Fri, 29 Sep 2006 20:12:37 GMT
From: Dmitry Stefankov <5817@ostrov.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Command "quot -a" causes the unexpected segmentation fault
X-Send-Pr-Version: www-2.3

>Number:         103822
>Category:       bin
>Synopsis:       [patch Command "quot -a" causes the unexpected segmentation fault
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 29 20:20:17 GMT 2006
>Closed-Date:    Sat Oct 14 10:16:24 GMT 2006
>Last-Modified:  Sat Oct 14 10:16:24 GMT 2006
>Originator:     Dmitry Stefankov
>Release:        5.5, 6.1, 6.1-STABLE
>Organization:
RadioMayak
>Environment:
>Description:
quot -a causes a segmentation fault on any FreeBSD system with 5.x, 6.x versions.

>How-To-Repeat:
Call from command line: quot -a

>Fix:
In file quot.c in function get_inode add the check on the cache flush.
124,125c124
< 			//if (super->fs_magic == FS_UFS2_MAGIC) {
< 			if (super && super->fs_magic == FS_UFS2_MAGIC) {
---
> 			if (super->fs_magic == FS_UFS2_MAGIC) {


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->patched 
State-Changed-By: maxim 
State-Changed-When: Sat Sep 30 07:35:21 UTC 2006 
State-Changed-Why:  
Fixed in HEAD.  Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=103822 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/103822: commit references a PR
Date: Sat, 30 Sep 2006 07:34:41 +0000 (UTC)

 maxim       2006-09-30 07:34:20 UTC
 
   FreeBSD src repository
 
   Modified files:
     usr.sbin/quot        quot.c 
   Log:
   o Check we have a non-NULL pointer to a super block before dereference it.
   
   PR:             misc/103822
   Submitted by:   Dmitry Stefankov
   MFC after:      2 weeks
   
   Revision  Changes    Path
   1.25      +1 -1      src/usr.sbin/quot/quot.c
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: patched->closed 
State-Changed-By: maxim 
State-Changed-When: Sat Oct 14 10:16:05 UTC 2006 
State-Changed-Why:  
Merged to RELENG_6. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=103822 
>Unformatted:
