Subject: kern/36225: pkgsrc/security/uvscan does not work anymore since CHECK_ALT_xxx() removal
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <njoly@pasteur.fr>
List: netbsd-bugs
Date: 04/26/2007 17:55:00
>Number:         36225
>Category:       kern
>Synopsis:       pkgsrc/security/uvscan does not work anymore since CHECK_ALT_xxx() removal
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 26 17:55:00 +0000 2007
>Originator:     Nicolas Joly
>Release:        NetBSD 4.99.18
>Organization:
Institut Pasteur
>Environment:
System: NetBSD cixy.dial.pasteur.fr 4.99.18 NetBSD 4.99.18 (CIXY_DEVEL) #75: Thu Apr 26 19:09:44 CEST 2007  njoly@cixy.dial.pasteur.fr:/local/src/NetBSD/obj/i386/sys/arch/i386/compile/CIXY_DEVEL i386
Architecture: i386
Machine: i386
>Description:
It seems that recent CHECK_ALT_xxx() removal broke uvscan running under
compat_linux on i386.

njoly@cixy [~]> pkg_info | grep uvscan
uvscan-4.40nb1      Evaluation version of a DOS/Windows file virus scanner

njoly@cixy [~]> uname -a
NetBSD cixy.dial.pasteur.fr 4.99.18 NetBSD 4.99.18 (CIXY_DEVEL) #75: Thu Apr 26 19:09:44 CEST 2007  njoly@cixy.dial.pasteur.fr:/local/src/NetBSD/obj/i386/sys/arch/i386/compile/CIXY_DEVEL i386
njoly@cixy [~]> uvscan --version           
uvscan: error while loading shared libraries: liblnxfv.so.4: cannot open shared object file: No such file or directory

   240      1 uvscan   CALL  open(0xbfbfdef0,0,0xbbbf8f61)
   240      1 uvscan   NAMI  "/emul/linux/usr/local/lib/liblnxfv.so.4"
   240      1 uvscan   NAMI  "/usr/local/lib/liblnxfv.so.4"
   240      1 uvscan   RET   open -1 errno -2 No such file or directory

The needed file exists, and looks good to me :

njoly@cixy [~]> ls -l /emul/linux/usr/local/lib/liblnxfv.so.4 
lrwxr-xr-x  1 root  wheel  43 Apr 26 18:57 /emul/linux/usr/local/lib/liblnxfv.so.4 -> ../../../../../libexec/uvscan/liblnxfv.so.4
njoly@cixy [~]> ls -lL /emul/linux/usr/local/lib/liblnxfv.so.4
-r-xr-xr-x  1 root  wheel  2909612 Apr 26 18:57 /emul/linux/usr/local/lib/liblnxfv.so.4

Booting an older kernel make it works.

njoly@cixy [~]> uname -a
NetBSD cixy.dial.pasteur.fr 4.99.17 NetBSD 4.99.17 (CIXY_DEVEL) #41: Wed Apr 18 10:35:14 CEST 2007  njoly@cixy.dial.pasteur.fr:/local/src/NetBSD/obj/i386/sys/arch/i386/compile/CIXY_DEVEL i386
njoly@cixy [~]> uvscan --version           
Virus Scan for Linux v4.40.0
Copyright (c) 1992-2004 Networks Associates Technology Inc. All rights reserved. (408) 988-3832  EVALUATION COPY - Sep 23 2004

Scan engine v4.4.00 for Linux.
Virus data file v4400 created Oct 20 2004
Scanning for 104507 viruses, trojans and variants.

   593      1 uvscan   CALL  open(0xbfbfdef0,0,0xbbbf8f61)
   593      1 uvscan   NAMI  "/emul/linux/usr/local/lib/liblnxfv.so.4"
   593      1 uvscan   NAMI  "/emul/linux"
   593      1 uvscan   NAMI  "/emul/linux/usr/local/lib/liblnxfv.so.4"
   593      1 uvscan   RET   open 3

>How-To-Repeat:
Install pkgsrc/security/uvscan and try to run it.
>Fix:
n/a