NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
kern/38531: mmap(2) on ntfs should return MAP_FAILED but doesn't
>Number: 38531
>Category: kern
>Synopsis: mmap(2) on ntfs should return MAP_FAILED but doesn't
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Apr 28 08:55:00 +0000 2008
>Originator: Jukka Salmi
>Release: NetBSD 4.99.60
>Environment:
System: NetBSD moray.salmi.ch 4.99.60 NetBSD 4.99.60 (MORAY.APM) #0: Mon Apr 21
20:50:44 CEST 2008
build%moray.salmi.ch@localhost:/b/build/nbsd/c/i386/sys/arch/i386/compile/MORAY.APM
i386
Architecture: i386
Machine: i386
>Description:
mmap(2) on ntfs should return MAP_FAILED but it doesn't.
>How-To-Repeat:
$ mount
[...]
/dev/wd0n on /mnt/win type ntfs (read-only, local)
$ ls -l /mnt/win/BOOT.INI
-rwxr-xr-x 1 root wheel 194 Sep 18 2006 /mnt/win/BOOT.INI
$ cp /mnt/win/BOOT.INI .
cp: ./BOOT.INI: Invalid argument
Tracing cp(1) shows:
[...]
615 1 cp CALL open(0xbb907c00,0,0)
615 1 cp NAMI "/mnt/win/BOOT.INI"
615 1 cp RET open 3
615 1 cp CALL open(0x804b208,0x601,0x81ed)
615 1 cp NAMI "./BOOT.INI"
615 1 cp RET open 4
615 1 cp CALL mmap(0,0xc2,1,1,3,0,0,0)
615 1 cp RET mmap -1146105856/0xbbafd000
615 1 cp CALL madvise(0xbbafd000,0xc2,2)
615 1 cp RET madvise 0
615 1 cp CALL write(4,0xbbafd000,0xc2)
615 1 cp RET write -1 errno 22 Invalid argument
[...]
>Fix:
Home |
Main Index |
Thread Index |
Old Index