Panic in zfs_freebsd_getattr -> zfs_fuid_table_load - avl_find() succeeded inside avl_add() [ACL, 9.1-PRERELEASE] [SOLVED]

Bryan Drewery bryan at shatow.net
Mon Sep 3 08:53:59 UTC 2012


On 9/3/2012 3:45 AM, Fabian Keil wrote:
> Bryan Drewery <bryan at shatow.net> wrote:
> 
>> On 9/3/2012 1:03 AM, Bryan Drewery wrote:
>>> On 9/2/2012 11:24 PM, Bryan Drewery wrote:
>>>>> On Sep 2, 2012 8:51 PM, "Bryan Drewery" <bryan at shatow.net
>>>>> <mailto:bryan at shatow.net>> wrote:
>>>>>
>>>>>     Running 9.1-PRERELEASE currently.
>>>>>
>>>>>     Just set this server up, imported the pool from OpenIndiana 151 I
>>>>>     believe it was.
>>>>>
>>>>>     When I access (simply `ls`) certain files/directories, the system
>>>>>     panics. These files have ACL properties set on them from the Solaris
>>>>>     system.
>>>>>
>>>>>     This system has 32gb of ram and only 8gb swap setup, so I do not
>>>>>     currently have a kernel core dump. It's also practically a production
>>>>>     machine, so I do not have much leeway in testing on it.
> 
> For the space issue setting debug.minidump and vfs.zfs.zio.exclude_metadata
> could help (if they aren't set already).

Thanks, will look at those.

> 
>> I've solved this and now have a working system.
>>
>> r230454 [1] fixes this. It had a MFC of 1 week but never made it to
>> 9-STABLE.
>>
>> Please MFC this!
>>
>> OTOH, the change looks wrong, but I don't know enough to say that for
>> certain.
>>
>>
>> Why change kd_name to size 1, and then use strcpy(). Looks like an easy
>> overflow.
>>
>> [1] http://lists.freebsd.org/pipermail/svn-src-head/2012-January/033707.html
> 
> Note that the size of the allocated buffer is sizeof(*kd) + strlen(domain),
> not just sizeof(*kd).


I saw and realized this after sending.

> 
> Fabian
> 


-- 
Regards,
Bryan Drewery
bdrewery at freenode/EFNet


More information about the freebsd-fs mailing list