On Tue, Feb 10, 2015 at 07:49:24AM +0900, [email protected] wrote: > Manuel Bouyer <[email protected]> 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 <[email protected]> NetBSD: 26 ans d'experience feront toujours la difference --
