Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: netbsd-7 panic (ffs or snapshot-related ?)



On Tue, Feb 10, 2015 at 07:49:24AM +0900, tsugutomo.enami%jp.sony.com@localhost wrote:
> Manuel Bouyer <bouyer%antioche.eu.org@localhost> writes:
> 
> > Stopped in pid 9987.1 (postdrop) at netbsd:kauth_cred_geteuid+0xd:
> > movl 4
> > 4(%rbx),%eax
> > kauth_cred_geteuid() at netbsd:kauth_cred_geteuid+0xd
> > ffs_alloc() at netbsd:ffs_alloc+0x1aa
> > ffs_balloc() at netbsd:ffs_balloc+0x1525
> > wrsnapblk() at netbsd:wrsnapblk+0x4f
> 
> FSCRED passed by wrsnapblk is dereferenced, isn't it?

I guess it will happen in ffs_alloc() in the 'nospace: ' case.
I suspect it could also happen in ffs_valloc() in the noinodes: case.

What's the best way to fix it ? fix kauth_cred_geteuid(), or audit the
kauth_cred_geteuid() calls and handle it there ?

-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index