NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/56160: Mount ntfs usb disk



The following reply was made to PR kern/56160; it has been noted by GNATS.

From: "J. Hannken-Illjes" <hannken%eis.cs.tu-bs.de@localhost>
To: NetBSD GNATS <gnats-bugs%netbsd.org@localhost>
Cc: 
Subject: Re: kern/56160: Mount ntfs usb disk
Date: Thu, 13 May 2021 10:10:36 +0200

 --Apple-Mail=_1E038A7A-7989-410D-A632-C696B8FDAF56
 Content-Transfer-Encoding: 7bit
 Content-Type: text/plain;
 	charset=us-ascii
 
 This disk has an unusual format, what happens is:
 
 - On mounting the disk we want to preload critical nodes,
   first node 0 (MFT).
 
 - During load we look for attribute 0x30 (NTFS_A_NAME) of node 0.
 
 - While this attribute is usually resident this disk stores it
   through its attribute 0x20 (NTFS_A_ATTRLIST) in node 16.
 
 - Now happens what Michael expected:  trying to load node 16
   we use the not-yet initialized node 0 (MFT) to read the
   attribute node and crash on null pointer dereference.
 
 Excerpt from "ntfsinfo -i 0 -v":
 
 Dumping Inode 0 (0x0)
 Dumping attribute $STANDARD_INFORMATION (0x10) from mft record 0 (0x0)
 Dumping attribute $ATTRIBUTE_LIST (0x20) from mft record 0 (0x0)
         Dumping attribute list:
                 Attribute type: 0x10
                 Attribute type: 0x30
                         Starting VCN:   0 (0x0)
                         MFT reference:  16 (0x10)
                 Attribute type: 0x80
                 Attribute type: 0x80
                 Attribute type: 0xb0
         End of attribute list reached.
 Dumping attribute $FILE_NAME (0x30) from mft record 16 (0x10)
         File Creation Time:      Wed Oct 31 13:52:23 2012 UTC
         Filename:                '$MFT'
 
 --
 J. Hannken-Illjes - hannken%eis.cs.tu-bs.de@localhost - TU Braunschweig
 
 --Apple-Mail=_1E038A7A-7989-410D-A632-C696B8FDAF56
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
 	filename=signature.asc
 Content-Type: application/pgp-signature;
 	name=signature.asc
 Content-Description: Message signed with OpenPGP
 
 -----BEGIN PGP SIGNATURE-----
 
 iQEzBAEBCAAdFiEE2BL3ha7Xao4WUZVYKoaVJdNr+uEFAmCc3vwACgkQKoaVJdNr
 +uEI6Qf9FeQ4ngLOIMZtNLchPwY2xfPd3+5o/EbV7/uwtgSbhAspqTBe+Zda20w2
 PVki9BP2iPfRN+F6xC0LBXDfshQJIvuGUPFeOyR5UredLMJG9UWh7c1iYYsX7sUu
 GTmFMz2B3ag12ru4OlWevMU4n4cjkMEN+4KKoLGna8C+UiQvE+72PJgahDX3k2BN
 3dLibZ9GAXpqtaPE+GWjCw+myttMk4b6xCqn3EBvpyCL0Pjtb7tQkaQoXr9aEJvN
 7VT5VjtF3OtF7z7Qpl52udN708KX33WKkOzjUIjn5vNf3l8H88RaULenSincREa7
 vL60x84q0J4Vmae8Nagxt6iIzKZlIA==
 =y6lj
 -----END PGP SIGNATURE-----
 
 --Apple-Mail=_1E038A7A-7989-410D-A632-C696B8FDAF56--
 


Home | Main Index | Thread Index | Old Index