Re: ls and stat segfault on loopback mounted image

From: Knut Eckstein (knutat_private)
Date: Wed Jan 23 2002 - 13:52:14 PST

  • Next message: Brian Carrier: "mac-robber 1.00 release"

    Brian,
    
    I cannot reproduce your segfaults:
    
    df -k runs fine, ls -l *inside* /home/ftp/lib
    runs fine:
    
    teefax:/t/home/ftp/lib # ls -l
    total 1172
    drwxr-xr-x    2 root     root         4096 Nov  5  2000 .
    drwxr-xr-x    6 root     root         4096 Nov  5  2000 ..
    -rwxr-xr-x    1 root     root        77216 Feb  4  2000 ld-2.1.3.so
    lrwxrwxrwx    1 root     root           11 Nov  5  2000 ld-linux.so.2 -> ld-2.1.3.so
    -rwxr-xr-x    1 root     root       985256 Feb  4  2000 libc-2.1.3.so
    lrwxrwxrwx    1 root     root           13 Nov  5  2000 libc.so.6 -> libc-2.1.3.so
    -rwxr-xr-x    1 root     root        75888 Feb  4  2000 libnsl-2.1.3.so
    lrwxrwxrwx    1 root     root           15 Nov  5  2000 libnsl.so.1 -> libnsl-2.1.3.so
    -rwxr-xr-x    1 root     root        33036 Feb  4  2000 libnss_files-2.1.3.so
    lrwxrwxrwx    1 root     root           21 Nov  5  2000 libnss_files.so.2 -> libnss_files-2.1.3.so
    teefax:/t/home/ftp/lib # df -k
    Filesystem           1k-blocks      Used Available Use% Mounted on
    /honey/honeypot.hda8.dd
                             257673     32226    212143  14% /t
    /honey/honeypot.hda1.dd
                              19487      2482     15999  14% /t/boot
    /honey/honeypot.hda6.dd
                            1210360      2096   1146780   1% /t/home
    /honey/honeypot.hda5.dd
                            1210360    384328    764548  34% /t/usr
    /honey/honeypot.hda7.dd
                             257673      5754    238615   3% /t/var
    
    I do get the same output from lsattr that you got:
    
    teefax:/t/home/ftp/lib # lsattr *
    ------------- ld-2.1.3.so
    ------------- ld-linux.so.2
    ------------- libc-2.1.3.so
    ------------- libc.so.6
    ------------- libnsl-2.1.3.so
    ------------- libnsl.so.1
    ------------- libnss_files-2.1.3.so
    ------------- libnss_files.so.2
    
    But I think there might be something wrong with
    lsattr, as I doesn't report attributes for any
    other directories on my system either, be it loop
    mounted or "real":
    
    teefax:/t/home/ftp/lib # lsattr /t
    ------------- /t/lost+found
    ------------- /t/boot
    ------------- /t/home
    ------------- /t/usr
    ------------- /t/var
    ------------- /t/proc
    ------------- /t/tmp
    ------------- /t/dev
    ------------- /t/etc
    ------------- /t/bin
    ------------- /t/lib
    ------------- /t/mnt
    ------------- /t/opt
    ------------- /t/root
    ------------- /t/sbin
    ------------- /t/floppy
    teefax:/t/home/ftp/lib # lsattr /usr
    ------------- /usr/bin
    ------------- /usr/etc
    ------------- /usr/lib
    ------------- /usr/sbin
    ------------- /usr/share
    ------------- /usr/X11R6
    ------------- /usr/cyrus
    ------------- /usr/games
    ------------- /usr/i486-linux
    ------------- /usr/include
    ------------- /usr/local
    ------------- /usr/man
    ------------- /usr/openwin
    ------------- /usr/spool
    ------------- /usr/src
    ------------- /usr/tmp
    ------------- /usr/i486-suse-linux
    ------------- /usr/dict
    ------------- /usr/X11
    
    So to me it looks like there is nothing wrong with
    /home/ftp/lib on that image...
    
    Best regards,
    
    Knut
    
    PS: My system is a Suse 7.3
    teefax:/t/home/ftp/lib # uname -a
    Linux teefax 2.4.10-4GB #1 Tue Sep 25 12:33:54 GMT 2001 i686 unknown
    
    
    
    
    -----------------------------------------------------------------
    This list is provided by the SecurityFocus ARIS analyzer service.
    For more information on this free incident handling, management 
    and tracking system please see: http://aris.securityfocus.com
    



    This archive was generated by hypermail 2b30 : Thu Jan 24 2002 - 03:54:15 PST