Coverity Scan: Linux

Project Name Linux
Lines of code analyzed 13,796,266
On Coverity Scan since Feb 24, 2006
Last build analyzed 5 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.18.0-rc1

Jun 19, 2018
Last Analyzed
13,796,266
Lines of Code Analyzed
0.46
Defect Density

Defect changes since previous build dated Jun 04, 2018

360
Newly detected
379
Eliminated

Defects by status for current build

38,098
Total defects
6,397
Outstanding
30,579
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 104,948 0.45
Block .*/block/.* No 112,163 0.80
Crypto .*/crypto/.* No 140,675 0.68
KVM /virt/kvm/.*|/arch/x86/kvm/.* No 45,980 1.11
Arch-x86 .*/arch/x86/.* No 176,483 0.46
Kernel .*/kernel/.* No 202,922 0.75
Lib .*/lib/.* No 253,617 0.45
MM .*/mm/.* No 77,714 0.69
Sound-line6 .*/sound/usb/line6/.* No 3,817 0.79
Sound .*/sound/.* No 768,278 0.27
Security-Apparmor .*/security/apparmor/.* No 11,857 0.67
Security-Integrity .*/security/integrity/.* No 5,296 1.51
Security-SMACK .*/security/smack/.* No 5,365 1.30
Security-SELinux .*/security/selinux/.* No 21,277 0.47
Security-Tomoyo .*/security/tomoyo/.* No 8,219 1.70
Security-Yama .*/security/yama/.* No 328 3.05
Security .*/security/.* No 11,254 0.27
FS-9P .*/fs/9p/.* No 4,602 0.65
FS-AFS .*/fs/afs/.* No 12,473 1.36
FS-BTRFS .*/fs/btrfs.* No 95,948 0.58
FS-CEPH .*/fs/ceph/.* No 18,441 0.87
FS-CIFS .*/fs/cifs/.* No 47,726 1.42
FS-EXTn .*/fs/ext.*/.* No 43,582 0.73
FS-GFS2 .*/fs/gfs2/.* No 21,296 0.66
FS-HFS .*/fs/hfs/.* No 4,518 0.66
FS-HFSPlus .*/fs/hfsplus/.* No 9,390 0.53
FS-JBD .*/fs/jbd.*/.* No 5,142 0.97
FS-JFS .*/fs/jfs/.* No 17,677 0.68
FS-JFFS2 .*/fs/jffs2/.* No 13,482 0.67
FS-NFS .*/fs/nfs/.* No 54,373 0.22
FS-NFSD .*/fs/nfsd/.* No 26,923 0.63
FS-NILFS2 .*/fs/nilfs2/.* No 16,213 0.49
FS-NTFS .*/fs/ntfs/.* No 17,243 0.87
FS-OCFS2 .*/fs/ocfs2/.* No 67,235 0.64
FS-PROC .*/fs/proc/.* No 10,904 0.46
FS-Reiserfs .*/fs/reiserfs/.* No 21,514 0.46
FS-UBIFS .*/fs/ubifs/.* No 22,884 0.13
FS-UDF .*/fs/udf/.* No 8,757 0.34
FS-UFS .*/fs/ufs/.* No 5,778 0.87
FS-XFS .*/fs/xfs/.* No 92,441 0.41
FS .*/fs/.* No 250,329 0.52
Drivers-ATA .*/drivers/ata/.* No 50,594 0.30
Drivers-ATM .*/drivers/atm/.* No 31,397 0.45
Drivers-Bluetooth .*/drivers/bluetooth/.* No 17,051 0.23
Drivers-char .*/drivers/char/.* No 50,328 0.54
GPU-GMA500 .*/drivers/gpu/drm/gma500/.* No 22,023 0.64
GPU-i915 .*/drivers/gpu/drm/i915/.* No 149,253 0.72
GPU-Nouveau .*/drivers/gpu/drm/nouveau/.* No 136,053 0.84
GPU-qxl .*/drivers/gpu/drm/qxl/.* No 5,587 1.25
GPU-Radeon .*/drivers/gpu/drm/radeon/.* No 160,208 0.42
Drivers-GPU .*/drivers/gpu/.* No 1,372,866 0.16
Drivers-HID .*/drivers/hid/.* No 62,874 0.11
Drivers-i2c .*/drivers/i2c/.* No 38,361 0.23
Drivers-HWMON .*/drivers/hwmon/.* No 107,455 0.07
Drivers-Infiniband .*/drivers/infiniband/.* No 303,885 0.61
Drivers-Input .*/drivers/input/.* No 128,561 0.25
Drivers-IDE .*/drivers/ide/.* No 21,550 0.56
Drivers-IIO .*/drivers/iio/.* No 141,861 0.25
Drivers-ISDN .*/drivers/isdn/.* No 142,251 0.53
Drivers-EDAC .*/drivers/edac/.* No 23,355 0.51
Drivers-Firewire .*/drivers/firewire/.* No 11,007 0.18
Drivers-MD .*/drivers/md/.* No 91,667 0.63
Drivers-MFD .*/drivers/mfd/.* No 64,076 0.12
Drivers-Media .*/drivers/media/.* No 911,628 0.34
Drivers-Message .*/drivers/message/.* No 24,751 0.85
Drivers-Platform .*/drivers/platform/.* No 54,808 0.64
Drivers-PCI .*/drivers/pci/.* No 51,360 0.64
Drivers-RTC .*/drivers/rtc/.* No 47,668 0.36
Drivers-TTY .*/drivers/tty/.* No 94,777 0.26
Ethernet-broadcom .*/drivers/net/ethernet/broadcom/.* No 130,184 0.17
Ethernet-DEC .*/drivers/net/ethernet/dec/.* No 14,823 0.40
Ethernet-Chelsio .*/drivers/net/ethernet/chelsio/.* No 69,032 0.38
Ethernet-Emulex .*/drivers/net/ethernet/emulex/.* No 13,086 0.08
Ethernet-Intel .*/drivers/net/ethernet/intel/.* No 167,890 0.19
Ethernet-Mellanox .*/drivers/net/ethernet/mellanox/.* No 108,884 0.41
Ethernet-Neterion .*/drivers/net/ethernet/neterion/.* No 23,853 0.92
Ethernet-QLogic .*/drivers/net/ethernet/qlogic/.* No 114,597 0.63
Ethernet-SFC /drivers/net/ethernet/sfc/.* No 51,611 0.25
Drivers-Ethernet .*/drivers/net/ethernet/.* No 413,372 0.43
Drivers-Misc .*/drivers/misc/.* No 72,537 0.83
Drivers-MTD .*/drivers/mtd/.* No 78,867 0.48
WIFI-Atheros .*/drivers/net/wireless/ath/.* No 198,852 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,529 0.38
Drivers-wireless .*/drivers/net/wireless/.* No 614,280 0.57
Drivers-Net .*/drivers/net/.* No 240,115 0.55
Drivers-MMC .*/drivers/mmc/.* No 54,701 0.40
Drivers-SPI .*/drivers/spi/.* No 42,563 0.63
Drivers-UWB .*/drivers/uwb/.*.* No 7,842 1.53
Drivers-Framebuffer .*/drivers/video/.* No 174,472 0.41
Drivers-Watchdog .*/drivers/watchdog/.* No 29,404 0.41
Drivers-Xen .*/drivers/xen/.* No 21,416 1.49
Staging-comedi .*/drivers/staging/comedi/.* No 70,580 0.11
Staging-iio .*/drivers/staging/iio/.* No 10,827 0.28
Staging-lustre .*/drivers/staging/lustre/.* No 0 N/A
Staging-media .*/drivers/staging/media/.* No 34,003 0.76
Staging-rtl8188eu .*/drivers/staging/rtl8188eu/.* No 38,685 0.80
Staging-rtl8192e .*/drivers/staging/rtl8192e/.* No 24,451 0.41
Staging-rtl8192u .*/drivers/staging/rtl8192u/.* No 23,485 0.68
Staging-rtl8712 .*/drivers/staging/rtl8712/.* No 22,954 1.00
Staging-vt6655 .*/drivers/staging/vt6655/.* No 8,203 0.12
Staging-rts5208 .*/drivers/staging/rts5208/.* No 20,917 0.76
Staging-unisys .*/drivers/staging/unisys/.* No 3,011 0.00
Staging-vt6656 .*/drivers/staging/vt6656/.* No 5,499 0.73
Drivers-Staging .*/drivers/staging/.* No 310,007 0.48
Drivers-USB .*/drivers/usb/.* No 317,890 0.36
SCSI-aic7xxx .*/drivers/scsi/aic7xxx/.* No 30,035 0.50
SCSI-be2iscsi .*/drivers/scsi/be2iscsi/.* No 10,807 0.93
SCSI-bfa .*/drivers/scsi/bfa/.* No 42,522 0.68
SCSI-bnx2fc .*/drivers/scsi/bnx2fc/.* No 8,120 1.23
SCSI-csiostor .*/drivers/scsi/csiostor/.* No 12,663 0.87
SCSI-isci .*/drivers/scsi/isci/.* No 13,291 0.75
SCSI-lpfc .*/drivers/scsi/lpfc/.* No 71,789 0.53
SCSI-megaraid .*/drivers/scsi/megaraid/.* No 16,730 0.66
SCSI-mpt2sas .*/drivers/scsi/mpt2sas/.* No 0 N/A
SCSI-mpt3sas .*/drivers/scsi/mpt3sas/.* No 26,573 0.68
SCSI-pm8001 .*/drivers/scsi/pm8001/.* No 13,609 0.73
SCSI-qla2xxx .*/drivers/scsi/qla2xxx/.* No 63,135 0.86
SCSI-qla4xxx .*/drivers/scsi/qla4xxx/.* No 21,830 0.64
Drivers-SCSI .*/drivers/scsi/.* No 289,906 0.58
Drivers-target .*/drivers/target/.* No 45,795 0.74
Drivers-NFC /drivers/nfc/.* No 19,102 0.58
Drivers .*/drivers/.* No 736,123 0.45
Net-802 .*/net/802.*/.* No 4,206 0.71
Net-Bluetooth .*/net/bluetooth/.* No 43,621 0.34
Net-bridge .*/net/bridge/.* No 17,730 0.62
Net-CAIF .*/net/caif/.* No 5,089 1.97
Net-Core .*/net/core/.* No 43,630 0.37
Net-DCCP .*/net/dccp/.* No 7,716 0.78
Net-DECNET .*/net/decnet/.* No 7,932 0.63
Net-ipv4 .*/net/ipv4/.* No 70,815 0.58
Net-ipv6 .*/net/ipv6/.* No 54,725 0.31
Net-IRDA .*/net/irda/.* No 0 N/A
Net-mac80211 .*/net/mac80211/.* No 47,456 0.51
Net-NFC .*/net/nfc/.* No 15,234 0.85
Net-SCTP .*/net/sctp/.* No 28,075 0.64
Net-SunRPC .*/net/sunrpc/.* No 31,584 0.28
Net-sched .*/net/sched/.* No 34,585 0.38
Net-Wireless .*/net/wireless/.* No 32,248 0.25
Net-XFRM .*/net/xfrm/.* No 10,253 0.68
Networking .*/net/.* No 328,541 0.54
Tools /tools/.* No 222,956 2.62
Other .* No 743,580 0.13

CWE Top 25 defects

ID CWE-Name Number of Defects
120 Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') 61
190 Integer Overflow or Wraparound 109
676 Use of Potentially Dangerous Function 4
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