Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 May 1997 13:30:16 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        current@FreeBSD.ORG, gena@NetVision.net.il
Cc:        phk@FreeBSD.ORG
Subject:   Re: Another panic
Message-ID:  <199705080330.NAA01676@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>I reported a panic problem a few days ago (see below). After some investigation
>i find out that i have a file with a very long filename (~220 characters). An
>attempt to "stat" this file caused the panic (and this is reproducible).
>I loaded old kernel and removed it. Anyway, i think it's a bug and it should be
>fixed.
>
>Stopped at _generic_bcopy+0x41:  repe movsl (%esi),%es:(%edi)
>-------------------trace--------------
>_generic_bcopy(f0797b80,f08f4680,f4145ed4,f06f40d8,f0797b80)

[cache_enter]

>_ufs_lookup+0xccc

It seems to be a classic sign extension bug.  nc_nlen has type char, so
it is unsuitable for storing name lengths longer than 127.  This probably
didn't matter until recently because NCHNAMLEN limited the lengths.  The
casts to (u_int) may have helped hide the problem.

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199705080330.NAA01676>