[Pkg-clamav-devel] Bug#904111: clamav-daemon causing deadlocks/blocking I/O

Marc Dequènes (duck) duck at duckcorp.org
Mon Jul 23 09:54:44 BST 2018


Quack,

I just upgraded and cannot reproduce this problem. I'm not using the 
ScanOnAccess feature.

Follows collected config info.
\_o<


-- Package-specific info:
--- configuration ---
Checking configuration files in /etc/clamav

Config file: clamd.conf
-----------------------
BlockMax disabled
PreludeEnable disabled
PreludeAnalyzerName = "ClamAV"
LogFile = "/var/log/clamav/clamav.log"
LogFileUnlock disabled
LogFileMaxSize = "4294967295"
LogTime = "yes"
LogClean disabled
LogSyslog disabled
LogFacility = "LOG_LOCAL6"
LogVerbose disabled
LogRotate = "yes"
ExtendedDetectionInfo = "yes"
PidFile disabled
TemporaryDirectory disabled
DatabaseDirectory = "/var/lib/clamav"
OfficialDatabaseOnly disabled
LocalSocket disabled
LocalSocketGroup disabled
LocalSocketMode disabled
FixStaleSocket = "yes"
TCPSocket = "3310"
TCPAddr disabled
MaxConnectionQueueLength = "15"
StreamMaxLength = "10485760"
StreamMinPort = "1024"
StreamMaxPort = "2048"
MaxThreads = "10"
ReadTimeout = "180"
CommandReadTimeout = "5"
SendBufTimeout = "200"
MaxQueue = "100"
IdleTimeout = "30"
ExcludePath disabled
MaxDirectoryRecursion = "15"
FollowDirectorySymlinks disabled
FollowFileSymlinks disabled
CrossFilesystems = "yes"
SelfCheck = "3600"
DisableCache disabled
VirusEvent disabled
ExitOnOOM = "yes"
AllowAllMatchScan = "yes"
Foreground disabled
Debug disabled
LeaveTemporaryFiles disabled
User = "clamav"
Bytecode = "yes"
BytecodeSecurity = "TrustSigned"
BytecodeTimeout = "60000"
BytecodeUnsigned disabled
BytecodeMode = "Auto"
DetectPUA disabled
ExcludePUA disabled
IncludePUA disabled
AlgorithmicDetection = "yes"
ScanPE = "yes"
ScanELF = "yes"
DetectBrokenExecutables disabled
ScanMail = "yes"
ScanPartialMessages disabled
PhishingSignatures = "yes"
PhishingScanURLs = "yes"
PhishingAlwaysBlockCloak disabled
PhishingAlwaysBlockSSLMismatch disabled
PartitionIntersection disabled
HeuristicScanPrecedence = "yes"
StructuredDataDetection disabled
StructuredMinCreditCardCount = "3"
StructuredMinSSNCount = "3"
StructuredSSNFormatNormal = "yes"
StructuredSSNFormatStripped disabled
ScanHTML = "yes"
ScanOLE2 = "yes"
OLE2BlockMacros disabled
ScanPDF = "yes"
ScanSWF = "yes"
ScanXMLDOCS = "yes"
ScanHWP3 = "yes"
ScanArchive = "yes"
ArchiveBlockEncrypted disabled
ForceToDisk disabled
MaxScanSize = "104857600"
MaxFileSize = "26214400"
MaxRecursion = "16"
MaxFiles = "10000"
MaxEmbeddedPE = "10485760"
MaxHTMLNormalize = "10485760"
MaxHTMLNoTags = "2097152"
MaxScriptNormalize = "5242880"
MaxZipTypeRcg = "1048576"
MaxPartitions = "50"
MaxIconsPE = "100"
MaxRecHWP3 = "16"
PCREMatchLimit = "10000"
PCRERecMatchLimit = "5000"
PCREMaxFileSize = "26214400"
ScanOnAccess disabled
OnAccessMountPath disabled
OnAccessIncludePath disabled
OnAccessExcludePath disabled
OnAccessExcludeRootUID disabled
OnAccessExcludeUID disabled
OnAccessMaxFileSize = "5242880"
OnAccessDisableDDD disabled
OnAccessPrevention disabled
OnAccessExtraScanning disabled
DevACOnly disabled
DevACDepth disabled
DevPerformance disabled
DevLiblog disabled
DisableCertCheck disabled

Config file: freshclam.conf
---------------------------
LogFileMaxSize = "4294967295"
LogTime disabled
LogSyslog disabled
LogFacility = "LOG_LOCAL6"
LogVerbose disabled
LogRotate = "yes"
PidFile disabled
DatabaseDirectory = "/var/lib/clamav/"
Foreground disabled
Debug disabled
UpdateLogFile = "/var/log/clamav/freshclam.log"
DatabaseOwner = "clamav"
Checks = "24"
DNSDatabaseInfo = "current.cvd.clamav.net"
DatabaseMirror = "db.local.clamav.net", "database.clamav.net"
PrivateMirror disabled
MaxAttempts = "5"
ScriptedUpdates = "yes"
TestDatabases = "yes"
CompressLocalDatabase disabled
ExtraDatabase disabled
DatabaseCustomURL disabled
HTTPProxyServer disabled
HTTPProxyPort disabled
HTTPProxyUsername disabled
HTTPProxyPassword disabled
HTTPUserAgent disabled
NotifyClamd = "/etc/clamav/clamd.conf"
OnUpdateExecute disabled
OnErrorExecute disabled
OnOutdatedExecute disabled
LocalIPAddress disabled
ConnectTimeout = "30"
ReceiveTimeout = "30"
SafeBrowsing disabled
Bytecode = "yes"

clamav-milter.conf not found

Software settings
-----------------
Version: 0.100.0
Optional features supported: MEMPOOL IPv6 FRESHCLAM_DNS_FIX AUTOIT_EA06 
BZIP2 LIBXML2 PCRE ICONV JSON JIT

Database information
--------------------
Database directory: /var/lib/clamav/
WARNING: freshclam.conf and clamd.conf point to different database 
directories
[3rd Party] phishtank.ndb: 30797 sigs
[3rd Party] bofhland_malware_attach.hdb: 1835 sigs
[3rd Party] winnow_bad_cw.hdb: 1 sig
[3rd Party] jurlbl.ndb: 14183 sigs
[3rd Party] bofhland_malware_URL.ndb: 4 sigs
[3rd Party] spamattach.hdb: 14 sigs
[3rd Party] winnow_malware_links.ndb: 4623 sigs
[3rd Party] doppelstern.hdb: 1 sig
[3rd Party] winnow_malware.hdb: 293 sigs
[3rd Party] winnow_extended_malware.hdb: 245 sigs
[3rd Party] sanesecurity.ftm: 170 sigs
[3rd Party] rogue.hdb: 4678 sigs
[3rd Party] porcupine.ndb: 3341 sigs
[3rd Party] phish.ndb: 27408 sigs
[3rd Party] crdfam.clamav.hdb: 1 sig
[3rd Party] bofhland_cracked_URL.ndb: 18 sigs
[3rd Party] blurl.ndb: 62123 sigs
[3rd Party] winnow.attachments.hdb: 182 sigs
[3rd Party] spamimg.hdb: 164 sigs
[3rd Party] junk.ndb: 56783 sigs
main.cld: version 58, sigs: 4566249, built on Wed Jun  7 23:38:10 2017
[3rd Party] bofhland_phishing_URL.ndb: 24 sigs
bytecode.cld: version 325, sigs: 90, built on Wed Jul 18 20:05:37 2018
[3rd Party] scam.ndb: 12486 sigs
daily.cld: version 24774, sigs: 2021923, built on Mon Jul 23 02:44:52 
2018
Total number of signatures: 6807636

Platform information
--------------------
uname: Linux 4.9.0-6-amd64 #1 SMP Debian 4.9.82-1+deb9u3 (2018-03-02) 
x86_64
OS: linux-gnu, ARCH: x86_64, CPU: x86_64
Full OS version: Debian GNU/Linux 9.5 (stretch)
zlib version: 1.2.8 (1.2.8), compile flags: a9
Triple: x86_64-pc-linux-gnu
CPU: k8-sse3, Little-endian
platform id: 0x0a215b5b0806030001060300

Build information
-----------------
GNU C: 6.3.0 20170516 (6.3.0)
GNU C++: 6.3.0 20170516 (6.3.0)
CPPFLAGS: -Wdate-time -D_FORTIFY_SOURCE=2
CFLAGS: -g -O2 
-fdebug-prefix-map=/build/clamav-E1AVcn/clamav-0.100.0+dfsg=. 
-fstack-protector-strong -Wformat -Werror=format-security -Wall 
-D_FILE_OFFSET_BITS=64 -fno-strict-aliasing  -D_LARGEFILE_SOURCE 
-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
CXXFLAGS: -g -O2 
-fdebug-prefix-map=/build/clamav-E1AVcn/clamav-0.100.0+dfsg=. 
-fstack-protector-strong -Wformat -Werror=format-security -Wall 
-D_FILE_OFFSET_BITS=64
LDFLAGS: -Wl,-z,relro -Wl,-z,now -Wl,--as-needed
Configure: '--build=x86_64-linux-gnu' '--prefix=/usr' 
'--includedir=/usr/include' '--mandir=/usr/share/man' 
'--infodir=/usr/share/info' '--sysconfdir=/etc' '--localstatedir=/var' 
'--disable-silent-rules' '--libdir=/usr/lib/x86_64-linux-gnu' 
'--libexecdir=/usr/lib/x86_64-linux-gnu' '--disable-maintainer-mode' 
'--disable-dependency-tracking' 'CFLAGS=-g -O2 
-fdebug-prefix-map=/build/clamav-E1AVcn/clamav-0.100.0+dfsg=. 
-fstack-protector-strong -Wformat -Werror=format-security -Wall 
-D_FILE_OFFSET_BITS=64' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 
'CXXFLAGS=-g -O2 
-fdebug-prefix-map=/build/clamav-E1AVcn/clamav-0.100.0+dfsg=. 
-fstack-protector-strong -Wformat -Werror=format-security -Wall 
-D_FILE_OFFSET_BITS=64' 'LDFLAGS=-Wl,-z,relro -Wl,-z,now 
-Wl,--as-needed' '--with-dbdir=/var/lib/clamav' 
'--sysconfdir=/etc/clamav' '--disable-clamav' '--disable-unrar' 
'--enable-milter' '--enable-dns-fix' '--with-libjson' 
'--with-system-libmspack' '--with-libcurl=/usr' '--with-gnu-ld' 
'-with-system-llvm=/usr/bin/llvm-config' '--with-llvm-linking=dynamic' 
'--with-systemdsystemunitdir=/lib/systemd/system' 
'build_alias=x86_64-linux-gnu'
sizeof(void*) = 8
Engine flevel: 91, dconf: 91

--- data dir ---
total 473292
-rw-r--r-- 1 clamav clamav  10312902 Jul 23 09:16 blurl.ndb
-rw-r--r-- 1 clamav clamav      1668 Jul 22 02:04 
bofhland_cracked_URL.ndb
-rw-r--r-- 1 clamav clamav       546 Jul 19 03:03 
bofhland_malware_URL.ndb
-rw-r--r-- 1 clamav clamav    106188 Oct 26  2017 
bofhland_malware_attach.hdb
-rw-r--r-- 1 clamav clamav      3252 Jul 19 03:03 
bofhland_phishing_URL.ndb
-rw-r--r-- 1 clamav clamav    950272 Jul 18 20:26 bytecode.cld
-rw-r--r-- 1 clamav clamav        82 Jul 13  2016 crdfam.clamav.hdb
-rw-r--r-- 1 clamav clamav 144830976 Jul 23 03:28 daily.cld
drwxr-xr-x 2 clamav clamav      4096 Jun  6  2008 daily.inc
-rw-r--r-- 1 clamav clamav        65 Jul 26  2013 doppelstern.hdb
-rw-r--r-- 1 clamav clamav   7114765 Jul 18 10:22 junk.ndb
-rw-r--r-- 1 clamav clamav   1700097 Jul 23 08:16 jurlbl.ndb
-rw-r--r-- 1 clamav clamav 307499008 Jun  8  2017 main.cld
drwxr-xr-x 2 clamav clamav      4096 Jun  6  2008 main.inc
-rw-r--r-- 1 clamav clamav      1144 Jul 23 10:38 mirrors.dat
-rw-r--r-- 1 clamav clamav   4040464 Jul 18 17:17 phish.ndb
-rw-r--r-- 1 clamav clamav   4612920 Jul 22 04:01 phishtank.ndb
-rw-r--r-- 1 clamav clamav    357273 Jul 22 06:01 porcupine.ndb
-rw-r--r-- 1 clamav clamav    510752 Jul 23 08:16 rogue.hdb
-rw-r--r-- 1 clamav clamav     11098 Oct 18  2016 sanesecurity.ftm
-rw-r--r-- 1 clamav clamav   1895934 Jul 17 16:18 scam.ndb
-rw-r--r-- 1 clamav clamav       454 Jul 19 11:14 sigwhitelist.ign2
-rw-r--r-- 1 clamav clamav      1391 Apr 28  2017 spamattach.hdb
-rw-r--r-- 1 clamav clamav     15758 Jul 20 10:15 spamimg.hdb
-rw-r--r-- 1 clamav clamav     14825 Jul 16 09:28 winnow.attachments.hdb
-rw-r--r-- 1 clamav clamav        66 Jul 21  2015 winnow_bad_cw.hdb
-rw-r--r-- 1 clamav clamav     16271 Feb 26 01:00 
winnow_extended_malware.hdb
-rw-r--r-- 1 clamav clamav     18189 Mar  5 01:00 winnow_malware.hdb
-rw-r--r-- 1 clamav clamav    506160 Jun 26 12:27 
winnow_malware_links.ndb

-- System Information:
Debian Release: 9.5
   APT prefers stable-updates
   APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-6-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=C 
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages clamav-daemon depends on:
ii  adduser                         3.115
ii  clamav-base                     0.100.0+dfsg-0+deb9u2
ii  clamav-freshclam [clamav-data]  0.100.0+dfsg-0+deb9u2
ii  debconf [debconf-2.0]           1.5.61
ii  dpkg                            1.18.25
ii  init-system-helpers             1.48
ii  libc6                           2.24-11+deb9u3
ii  libclamav7                      0.100.0+dfsg-0+deb9u2
ii  libncurses5                     6.0+20161126-1+deb9u2
ii  libssl1.1                       1.1.0f-3+deb9u2
ii  libsystemd0                     232-25+deb9u4
ii  libtinfo5                       6.0+20161126-1+deb9u2
ii  lsb-base                        9.20161125
ii  procps                          2:3.3.12-3+deb9u1
ii  ucf                             3.0036
ii  zlib1g                          1:1.2.8.dfsg-5

Versions of packages clamav-daemon recommends:
ii  clamdscan  0.100.0+dfsg-0+deb9u2

Versions of packages clamav-daemon suggests:
pn  apparmor     <none>
pn  clamav-docs  <none>
ii  daemon       0.6.4-1+b2

-- debconf information:
   clamav-daemon/LocalSocket: /var/run/clamav/clamd.ctl
   clamav-daemon/ScanMail: true
   clamav-daemon/StatsPEDisabled: true
   clamav-daemon/MaxDirectoryRecursion: 15
   clamav-daemon/LogRotate: true
   clamav-daemon/AllowAllMatchScan: true
   clamav-daemon/StreamMaxLength: 10
   clamav-daemon/TCPAddr: any
   clamav-daemon/TCPSocket: 3310
   clamav-daemon/MaxConnectionQueueLength: 15
   clamav-daemon/StatsEnabled: false
* clamav-daemon/BytecodeSecurity: TrustSigned
   clamav-daemon/SelfCheck: 3600
   clamav-daemon/User: clamav
   clamav-daemon/ScanSWF: true
   clamav-daemon/MaxEmbeddedPE: 10M
   clamav-daemon/LogSyslog: false
   clamav-daemon/MaxScriptNormalize: 5M
   clamav-daemon/Bytecode: true
   clamav-daemon/DisableCertCheck: false
   clamav-daemon/LogFile: /var/log/clamav/clamav.log
   clamav-daemon/AddGroups: vmail
   clamav-daemon/ReadTimeout: 180
   clamav-daemon/MaxHTMLNoTags: 2M
   clamav-daemon/ForceToDisk: false
   clamav-daemon/MaxZipTypeRcg: 1M
* clamav-daemon/MaxThreads: 10
   clamav-daemon/BytecodeTimeout: 60000
   clamav-daemon/FollowFileSymlinks: false
   clamav-daemon/StatsTimeout: 10
   clamav-daemon/ScanOnAccess: false
* clamav-daemon/debconf: true
   clamav-daemon/MaxHTMLNormalize: 10M
   clamav-daemon/LogTime: true
   clamav-daemon/StatsHostID: auto
   clamav-daemon/LocalSocketMode: 666
   clamav-daemon/FixStaleSocket: true
   clamav-daemon/ScanArchive: true
   clamav-daemon/TcpOrLocal: TCP
   clamav-daemon/LocalSocketGroup: clamav
   clamav-daemon/FollowDirectorySymlinks: false
   clamav-daemon/OnAccessMaxFileSize: 5M

-- 
Marc Dequènes



More information about the Pkg-clamav-devel mailing list