[Unionfs] Segfault when running passwd

Mellors, Andrew AMellors at empirix.com
Tue Jul 31 10:16:57 EDT 2007


On a PPC (Freescale MPC8548) machine with a 2.6.11 kernel (That is
pretending to be 2.6.12 for glib reasons)

 

When I run the passwd command for the first time on a system passwd
segfaults with this:

$ passwd

Changing password for root

Enter the new password (minimum of 5, maximum of 8 characters)

Please use a combination of upper and lower case letters and numbers.

Enter new password:

Bad password: too simple.

 

Warning: weak password (continuing).

Re-enter new password:

Oops: kernel access of bad area, sig: 11 [#1]

NIP: C013B71C LR: C013B314 SP: C36FFE80 REGS: c36ffdd0 TRAP: 0300    Not
tainted

MSR: 00029000 EE: 1 PR: 0 FP: 0 ME: 1 IR/DR: 00

DAR: 00000094, DSISR: 00000000

TASK = cfc494d0[776] 'passwd' THREAD: c36fe000

Last syscall: 6

GPR00: 00000001 C36FFE80 CFC494D0 C02A4E20 CF02B6EC 00000002 00000001
C02A4E20

GPR08: C02FD208 00000000 00000000 C37FA2A0 00000000 10021388 FFFFFFF0
100BEF08

GPR16: C02A0000 C0290000 C0290000 C02A0000 C0290000 00000000 C02A0000
CFD6F400

GPR24: C02A0000 C34F76C0 00000000 00000000 CF02B7FC C3704B84 00000000
C3704B84

Call trace: [c013fb90]  [c006408c]  [c0002244]

Segmentation fault

 

I straced it, and it is segfaulting on the close on the FD of the
renamed file.

 

The passwd seemed to have succeeded since the password has been changed,
and any subsequent attempt to run passwd will proceed normally

 

Also if I go into the RW branch and delete the shadow file manually
there I can get this problem to reproduce itself. 

 

Andrew Mellors 
Software Engineer
EMPIRIX 
p: 781.266.3576
email: amellors at empirix.com 
20 Crosby Drive - Bedford, MA 01730
http://www.empirix.com <http://www.empirix.com>  

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.fsl.cs.sunysb.edu/pipermail/unionfs/attachments/20070731/8c1148cc/attachment.htm


More information about the unionfs mailing list