NetBSD Problem Report #29724
From yamt@mwd.biglobe.ne.jp Thu Mar 17 14:32:34 2005
Return-Path: <yamt@mwd.biglobe.ne.jp>
Received: from yamt.dyndns.org (FLA1Aah135.kng.mesh.ad.jp [61.193.101.135])
by narn.netbsd.org (Postfix) with ESMTP id 0E40A63B11B
for <gnats-bugs@gnats.NetBSD.org>; Thu, 17 Mar 2005 14:32:34 +0000 (UTC)
Message-Id: <1111069949.976050.715.nullmailer@yamt.dyndns.org>
Date: Thu, 17 Mar 2005 23:32:29 +0900
From: yamt@mwd.biglobe.ne.jp
Reply-To: yamt@mwd.biglobe.ne.jp
To: gnats-bugs@netbsd.org
Subject: deadbeef dereference in flush_inodedep_deps -- softdep
X-Send-Pr-Version: 3.95
>Number: 29724
>Category: kern
>Synopsis: deadbeef dereference in flush_inodedep_deps -- softdep
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Mar 17 14:33:00 +0000 2005
>Closed-Date: Mon May 07 13:04:15 +0000 2007
>Last-Modified: Tue Jun 05 20:40:01 +0000 2007
>Originator: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
>Release: NetBSD 2.99.16
>Organization:
>Environment:
System: NetBSD kaeru 2.99.16 NetBSD 2.99.16 (build.kaeru.nodebug) #9: Thu Mar 17 21:57:50 JST 2005 takashi@kaeru:/home/takashi/work/kernel/build.kaeru.nodebug i386
Architecture: i386
Machine: i386
>Description:
i got the following on my nfs server.
it seems "adp" got deadbeef, when iterating inodedep->id_inoupdt
in flush_inodedep_deps.
uvm_fault(0xc08645c0, 0xdeadb000, 0, 1) -> 0xe
kernel: page fault trap, code=0
Stopped in pid 109.1 (nfsd) at netbsd:flush_inodedep_deps+0xd4: testb $
0x8,0xc(%ebx)
db{1}> bt
flush_inodedep_deps(c1f94800,4c8bbb,cc59fa9c,c0329c12,c07fcab0,0,cc59fa9c) at ne
tbsd:flush_inodedep_deps+0xd4
softdep_sync_metadata(cc59fb94,c079fc00,1aa,286,ce26a114,0,0) at netbsd:soft
dep_sync_metadata+0x64
ffs_full_fsync(cc59fb94,4c8bbb,cc59fb7c,c032fb42,0,19a,cc59fb1c) at netbsd:f
fs_full_fsync+0x156
ffs_fsync(cc59fb94,36d863d8,c03c5a37,0,c063b4e0,ce26a114,df3b0a2c) at netbs
d:ffs_fsync+0x50
VOP_FSYNC(ce26a114,df3b0a2c,1,0,0,169,0) at netbsd:VOP_FSYNC+0x51
nfsrv_commit(df3b09a8,c309a000,cc5a956c,cc59fdc8,cc5a956c,0,1) at netbsd:nf
srv_commit+0x421
nfssvc_nfsd(cc59fe24,804a320,cc5516b8,c0807e80,cc2c33f8,cc2c16c0,cc59ff1c) a
t netbsd:nfssvc_nfsd+0x39b
sys_nfssvc(cc5516b8,cc59ff64,cc59ff5c,0,282,c07fa0c4,0) at netbsd:sys_nfssv
c+0x362
syscall_plain() at netbsd:syscall_plain+0xa0
--- syscall (number 155) ---
0xbdb56a8b:
db{1}> sh r
ds 0x10
es 0x10
fs 0x30
gs 0x10
edi 0x2
esi 0
ebp 0xcc59fa5c
ebx 0xdeadbeef
edx 0
ecx 0xc15ad800
eax 0xce18ec10
eip 0xc032a118 flush_inodedep_deps+0xd4
cs 0x8
eflags 0x10282
esp 0xcc59fa44
ss 0x10
netbsd:flush_inodedep_deps+0xd4: testb $0x8,0xc(%ebx)
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
From: YAMAMOTO Takashi <yamt@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: PR/29724 CVS commit: src/sys/ufs/ffs
Date: Mon, 7 May 2007 11:13:02 +0000 (UTC)
Module Name: src
Committed By: yamt
Date: Mon May 7 11:13:02 UTC 2007
Modified Files:
src/sys/ufs/ffs: ffs_softdep.c
Log Message:
flush_inodedep_deps: fix access after free. PR/29724.
To generate a diff of this commit:
cvs rdiff -r1.89 -r1.90 src/sys/ufs/ffs/ffs_softdep.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: yamt@netbsd.org
State-Changed-When: Mon, 07 May 2007 13:04:15 +0000
State-Changed-Why:
fixed.
From: Manuel Bouyer <bouyer@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: PR/29724 CVS commit: [netbsd-4] src/sys/ufs/ffs
Date: Tue, 5 Jun 2007 20:38:39 +0000 (UTC)
Module Name: src
Committed By: bouyer
Date: Tue Jun 5 20:38:39 UTC 2007
Modified Files:
src/sys/ufs/ffs [netbsd-4]: ffs_softdep.c
Log Message:
Pull up following revision(s) (requested by yamt in ticket #706):
sys/ufs/ffs/ffs_softdep.c: revision 1.90
flush_inodedep_deps: fix access after free. PR/29724.
To generate a diff of this commit:
cvs rdiff -r1.81 -r1.81.2.1 src/sys/ufs/ffs/ffs_softdep.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.