Coverity Scan: Linux

Project Name Linux
Lines of code analyzed 11,922,526
On Coverity Scan since Feb 24, 2006
Last build analyzed 4 days ago
   
Language C/C++
Repository URL http://git.kernel.org/
Homepage URL N/A
License N/A

Want to view defects or help fix defects?

 Add me to project

Analysis Metrics

Version: 4.11.0-rc8

Apr 24, 2017
Last Analyzed
11,922,526
Lines of Code Analyzed
0.49
Defect Density

Defect changes since previous build dated Apr 17, 2017

1
Newly detected
2
Eliminated

Defects by status for current build

36,317
Total defects
5,840
Outstanding
29,055
Fixed
See how defect density for 'Linux' compares with defect density for other open source projects.  Learn more

Note: Defect density is measured by the number of defects per 1,000 lines of code.


Analysis Metrics per Components

Component Name Pattern Ignore Line of Code Defect density
ACPI .*/acpi/.* No 97,913 0.55
Block .*/block/.* No 111,101 0.70
Crypto .*/crypto/.* No 107,738 0.74
KVM /virt/kvm/.*|/arch/x86/kvm/.* No 42,946 0.93
Arch-x86 .*/arch/x86/.* No 162,507 0.50
Kernel .*/kernel/.* No 178,395 0.75
Lib .*/lib/.* No 235,564 0.42
MM .*/mm/.* No 72,399 0.68
Sound-line6 .*/sound/usb/line6/.* No 3,754 1.07
Sound .*/sound/.* No 678,153 0.27
Security-Apparmor .*/security/apparmor/.* No 6,134 0.49
Security-Integrity .*/security/integrity/.* No 4,843 0.83
Security-SMACK .*/security/smack/.* No 5,324 1.69
Security-SELinux .*/security/selinux/.* No 19,687 0.46
Security-Tomoyo .*/security/tomoyo/.* No 8,237 1.70
Security-Yama .*/security/yama/.* No 332 3.01
Security .*/security/.* No 10,634 0.38
FS-9P .*/fs/9p/.* No 4,584 0.65
FS-AFS .*/fs/afs/.* No 9,940 0.70
FS-BTRFS .*/fs/btrfs.* No 92,297 1.07
FS-CEPH .*/fs/ceph/.* No 17,360 0.81
FS-CIFS .*/fs/cifs/.* No 43,263 0.62
FS-EXTn .*/fs/ext.*/.* No 41,755 0.57
FS-GFS2 .*/fs/gfs2/.* No 20,543 0.63
FS-HFS .*/fs/hfs/.* No 4,523 0.66
FS-HFSPlus .*/fs/hfsplus/.* No 9,387 0.53
FS-JBD .*/fs/jbd.*/.* No 5,106 0.98
FS-JFS .*/fs/jfs/.* No 17,685 0.68
FS-JFFS2 .*/fs/jffs2/.* No 13,504 0.59
FS-NFS .*/fs/nfs/.* No 54,298 0.26
FS-NFSD .*/fs/nfsd/.* No 26,612 0.60
FS-NILFS2 .*/fs/nilfs2/.* No 16,219 0.49
FS-NTFS .*/fs/ntfs/.* No 17,246 0.87
FS-OCFS2 .*/fs/ocfs2/.* No 66,878 0.63
FS-PROC .*/fs/proc/.* No 10,392 0.19
FS-Reiserfs .*/fs/reiserfs/.* No 21,489 0.47
FS-UBIFS .*/fs/ubifs/.* No 22,873 0.09
FS-UDF .*/fs/udf/.* No 8,804 0.23
FS-UFS .*/fs/ufs/.* No 5,699 0.70
FS-XFS .*/fs/xfs/.* No 81,143 0.33
FS .*/fs/.* No 245,829 0.53
Drivers-ATA .*/drivers/ata/.* No 49,191 0.26
Drivers-ATM .*/drivers/atm/.* No 31,345 0.48
Drivers-Bluetooth .*/drivers/bluetooth/.* No 16,342 0.06
Drivers-char .*/drivers/char/.* No 47,613 0.57
GPU-GMA500 .*/drivers/gpu/drm/gma500/.* No 22,107 0.90
GPU-i915 .*/drivers/gpu/drm/i915/.* No 118,063 0.63
GPU-Nouveau .*/drivers/gpu/drm/nouveau/.* No 121,477 0.27
GPU-qxl .*/drivers/gpu/drm/qxl/.* No 5,711 1.05
GPU-Radeon .*/drivers/gpu/drm/radeon/.* No 162,402 0.44
Drivers-GPU .*/drivers/gpu/.* No 649,491 0.23
Drivers-HID .*/drivers/hid/.* No 58,313 0.17
Drivers-i2c .*/drivers/i2c/.* No 33,248 0.18
Drivers-HWMON .*/drivers/hwmon/.* No 101,784 0.02
Drivers-Infiniband .*/drivers/infiniband/.* No 267,447 0.59
Drivers-Input .*/drivers/input/.* No 119,358 0.25
Drivers-IDE .*/drivers/ide/.* No 21,622 0.51
Drivers-IIO .*/drivers/iio/.* No 116,293 0.31
Drivers-ISDN .*/drivers/isdn/.* No 142,389 0.54
Drivers-EDAC .*/drivers/edac/.* No 22,797 0.75
Drivers-Firewire .*/drivers/firewire/.* No 10,992 0.18
Drivers-MD .*/drivers/md/.* No 79,473 0.65
Drivers-MFD .*/drivers/mfd/.* No 62,591 0.10
Drivers-Media .*/drivers/media/.* No 787,877 0.39
Drivers-Message .*/drivers/message/.* No 24,766 0.73
Drivers-Platform .*/drivers/platform/.* No 48,827 0.68
Drivers-PCI .*/drivers/pci/.* No 32,411 0.46
Drivers-RTC .*/drivers/rtc/.* No 43,800 0.46
Drivers-TTY .*/drivers/tty/.* No 90,550 0.22
Ethernet-broadcom .*/drivers/net/ethernet/broadcom/.* No 124,317 0.19
Ethernet-DEC .*/drivers/net/ethernet/dec/.* No 14,814 0.34
Ethernet-Chelsio .*/drivers/net/ethernet/chelsio/.* No 59,243 0.32
Ethernet-Emulex .*/drivers/net/ethernet/emulex/.* No 12,999 0.15
Ethernet-Intel .*/drivers/net/ethernet/intel/.* No 146,070 0.27
Ethernet-Mellanox .*/drivers/net/ethernet/mellanox/.* No 82,136 0.41
Ethernet-Neterion .*/drivers/net/ethernet/neterion/.* No 23,912 0.96
Ethernet-QLogic .*/drivers/net/ethernet/qlogic/.* No 100,948 0.69
Ethernet-SFC /drivers/net/ethernet/sfc/.* No 48,564 0.23
Drivers-Ethernet .*/drivers/net/ethernet/.* No 330,542 0.47
Drivers-Misc .*/drivers/misc/.* No 68,750 0.86
Drivers-MTD .*/drivers/mtd/.* No 69,602 0.36
WIFI-Atheros .*/drivers/net/wireless/ath/.* No 184,799 0.25
WIFI-b43 .*/drivers/net/wireless/b43/.* No 0 N/A
WIFI-b43legacy .*/drivers/net/wireless/b43legacy/.* No 0 N/A
WIFI-brcm80211 .*/drivers/net/wireless/brcm80211/.* No 0 N/A
WIFI-cw1200 .*/drivers/net/wireless/cw1200/.* No 0 N/A
WIFI-ipw2x00 .*/drivers/net/wireless/ipw2x00/.* No 0 N/A
WIFI-iwlegacy .*/drivers/net/wireless/iwlegacy/.* No 0 N/A
WIFI-iwlwifi .*/drivers/net/wireless/iwlwifi/.* No 0 N/A
WIFI-mwifiex .*/drivers/net/wireless/mwifiex/.* No 0 N/A
WIFI-rt2x00 .*/drivers/net/wireless/rt2x00/.* No 0 N/A
WIFI-rtl818x .*/drivers/net/wireless/rtl818x/.* No 0 N/A
WIFI-rtl8821 .*/drivers/net/wireless/rtlwifi/rtl8821ae/.* No 0 N/A
WIFI-rtlwifi .*/drivers/net/wireless/rtlwifi/.* No 0 N/A
WIFI-TI .*/drivers/net/wireless/ti/.* No 31,431 0.48
Drivers-wireless .*/drivers/net/wireless/.* No 585,337 0.57
Drivers-Net .*/drivers/net/.* No 225,979 0.52
Drivers-MMC .*/drivers/mmc/.* No 43,660 0.41
Drivers-SPI .*/drivers/spi/.* No 39,139 0.66
Drivers-UWB .*/drivers/uwb/.*.* No 7,834 1.66
Drivers-Framebuffer .*/drivers/video/.* No 145,262 0.42
Drivers-Watchdog .*/drivers/watchdog/.* No 28,493 0.39
Drivers-Xen .*/drivers/xen/.* No 18,865 1.59
Staging-comedi .*/drivers/staging/comedi/.* No 70,008 0.11
Staging-iio .*/drivers/staging/iio/.* No 17,168 0.29
Staging-lustre .*/drivers/staging/lustre/.* No 125,828 0.94
Staging-media .*/drivers/staging/media/.* No 5,857 0.68
Staging-rtl8188eu .*/drivers/staging/rtl8188eu/.* No 39,059 0.84
Staging-rtl8192e .*/drivers/staging/rtl8192e/.* No 24,934 0.36
Staging-rtl8192u .*/drivers/staging/rtl8192u/.* No 23,644 0.63
Staging-rtl8712 .*/drivers/staging/rtl8712/.* No 22,975 0.96
Staging-vt6655 .*/drivers/staging/vt6655/.* No 8,154 0.49
Staging-rts5208 .*/drivers/staging/rts5208/.* No 20,932 0.91
Staging-unisys .*/drivers/staging/unisys/.* No 6,522 0.00
Staging-vt6656 .*/drivers/staging/vt6656/.* No 5,492 0.73
Drivers-Staging .*/drivers/staging/.* No 121,874 0.65
Drivers-USB .*/drivers/usb/.* No 298,762 0.39
SCSI-aic7xxx .*/drivers/scsi/aic7xxx/.* No 30,800 0.52
SCSI-be2iscsi .*/drivers/scsi/be2iscsi/.* No 10,840 1.75
SCSI-bfa .*/drivers/scsi/bfa/.* No 42,664 0.59
SCSI-bnx2fc .*/drivers/scsi/bnx2fc/.* No 8,103 0.74
SCSI-csiostor .*/drivers/scsi/csiostor/.* No 12,358 0.81
SCSI-isci .*/drivers/scsi/isci/.* No 13,293 0.83
SCSI-lpfc .*/drivers/scsi/lpfc/.* No 68,885 0.49
SCSI-megaraid .*/drivers/scsi/megaraid/.* No 16,255 0.62
SCSI-mpt2sas .*/drivers/scsi/mpt2sas/.* No 0 N/A
SCSI-mpt3sas .*/drivers/scsi/mpt3sas/.* No 23,605 0.64
SCSI-pm8001 .*/drivers/scsi/pm8001/.* No 13,415 0.67
SCSI-qla2xxx .*/drivers/scsi/qla2xxx/.* No 58,384 0.89
SCSI-qla4xxx .*/drivers/scsi/qla4xxx/.* No 21,802 0.60
Drivers-SCSI .*/drivers/scsi/.* No 283,722 0.66
Drivers-target .*/drivers/target/.* No 44,438 0.68
Drivers-NFC /drivers/nfc/.* No 19,740 0.71
Drivers .*/drivers/.* No 590,700 0.42
Net-802 .*/net/802.*/.* No 4,150 0.72
Net-Bluetooth .*/net/bluetooth/.* No 44,080 0.43
Net-bridge .*/net/bridge/.* No 16,956 0.65
Net-CAIF .*/net/caif/.* No 5,067 1.78
Net-Core .*/net/core/.* No 36,850 0.22
Net-DCCP .*/net/dccp/.* No 7,724 0.65
Net-DECNET .*/net/decnet/.* No 7,968 0.63
Net-ipv4 .*/net/ipv4/.* No 68,696 0.49
Net-ipv6 .*/net/ipv6/.* No 50,460 0.34
Net-IRDA .*/net/irda/.* No 20,073 0.75
Net-mac80211 .*/net/mac80211/.* No 46,646 0.60
Net-NFC .*/net/nfc/.* No 15,216 0.59
Net-SCTP .*/net/sctp/.* No 25,085 0.68
Net-SunRPC .*/net/sunrpc/.* No 31,254 0.32
Net-sched .*/net/sched/.* No 31,144 0.42
Net-Wireless .*/net/wireless/.* No 30,084 0.27
Net-XFRM .*/net/xfrm/.* No 9,571 0.73
Networking .*/net/.* No 311,125 0.49
Tools /tools/.* No 196,262 2.88
Other .* No 630,034 0.14

CWE Top 25 defects

ID CWE-Name Number of Defects
120 Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') 52
190 Integer Overflow or Wraparound 43
676 Use of Potentially Dangerous Function 5
Loading...

Loading...

Loading...

Loading...

Loading...

About Coverity Scan Static Analysis

Find and fix defects in your C/C++, Java, JavaScript or C# open source project for free.

Coverity Scan tests every line of code and potential execution path. The root cause of each defect is clearly explained, making it easy to fix bugs.

Would you like to view the project defects, or help improve its quality by fixing defects?

 Add me to project