Coverity Scan: Linux

Project Name Linux
Lines of code analyzed 14,347,227
On Coverity Scan since Feb 24, 2006
Last build analyzed about 4 hours 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: 5.10.0-rc6

Nov 30, 2020
Last Analyzed
14,347,227
Lines of Code Analyzed
0.39
Defect Density

Defect changes since previous build dated Nov 23, 2020

5
Newly detected
14
Eliminated

Defects by status for current build

42,128
Total defects
5,567
Outstanding
35,864
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 109,226 0.45
Block .*/block/.* No 44,815 0.60
Crypto .*/crypto/.* No 180,989 0.62
KVM /virt/kvm/.*|/arch/x86/kvm/.* No 54,839 0.78
Arch-x86 .*/arch/x86/.* No 185,583 0.43
Kernel .*/kernel/.* No 231,231 0.64
Lib .*/lib/.* No 579,923 0.33
MM .*/mm/.* No 83,296 0.73
Sound-line6 .*/sound/usb/line6/.* No 3,837 0.78
Sound .*/sound/.* No 915,194 0.22
Security-Apparmor .*/security/apparmor/.* No 12,951 0.69
Security-Integrity .*/security/integrity/.* No 7,073 0.71
Security-SMACK .*/security/smack/.* No 5,470 0.55
Security-SELinux .*/security/selinux/.* No 22,424 0.58
Security-Tomoyo .*/security/tomoyo/.* No 8,268 0.36
Security-Yama .*/security/yama/.* No 334 0.00
Security .*/security/.* No 13,086 0.46
FS-9P .*/fs/9p/.* No 4,648 0.86
FS-AFS .*/fs/afs/.* No 23 0.00
FS-BTRFS .*/fs/btrfs.* No 99,680 0.52
FS-CEPH .*/fs/ceph/.* No 21,933 0.68
FS-CIFS .*/fs/cifs/.* No 56,536 1.43
FS-EXTn .*/fs/ext.*/.* No 49,282 0.61
FS-GFS2 .*/fs/gfs2/.* No 22,631 0.62
FS-HFS .*/fs/hfs/.* No 4,551 0.66
FS-HFSPlus .*/fs/hfsplus/.* No 9,337 0.54
FS-JBD .*/fs/jbd.*/.* No 5,544 1.08
FS-JFS .*/fs/jfs/.* No 17,671 0.91
FS-JFFS2 .*/fs/jffs2/.* No 13,455 0.82
FS-NFS .*/fs/nfs/.* No 60,090 0.35
FS-NFSD .*/fs/nfsd/.* No 30,898 0.52
FS-NILFS2 .*/fs/nilfs2/.* No 16,195 0.49
FS-NTFS .*/fs/ntfs/.* No 17,247 0.87
FS-OCFS2 .*/fs/ocfs2/.* No 67,073 0.69
FS-PROC .*/fs/proc/.* No 11,725 0.34
FS-Reiserfs .*/fs/reiserfs/.* No 21,503 0.56
FS-UBIFS .*/fs/ubifs/.* No 24,338 0.41
FS-UDF .*/fs/udf/.* No 8,785 0.34
FS-UFS .*/fs/ufs/.* No 5,783 1.21
FS-XFS .*/fs/xfs/.* No 94,777 0.23
FS .*/fs/.* No 294,715 0.64
Drivers-ATA .*/drivers/ata/.* No 2,905 0.00
Drivers-ATM .*/drivers/atm/.* No 31,239 0.38
Drivers-Bluetooth .*/drivers/bluetooth/.* No 21,447 0.42
Drivers-char .*/drivers/char/.* No 52,674 0.49
GPU-GMA500 .*/drivers/gpu/drm/gma500/.* No 60 0.00
GPU-i915 .*/drivers/gpu/drm/i915/.* No 24,527 0.24
GPU-Nouveau .*/drivers/gpu/drm/nouveau/.* No 116,338 0.86
GPU-qxl .*/drivers/gpu/drm/qxl/.* No 25 0.00
GPU-Radeon .*/drivers/gpu/drm/radeon/.* No 2,399 0.00
Drivers-GPU .*/drivers/gpu/.* No 990,466 0.09
Drivers-HID .*/drivers/hid/.* No 72,130 0.17
Drivers-i2c .*/drivers/i2c/.* No 60,031 0.15
Drivers-HWMON .*/drivers/hwmon/.* No 121,697 0.12
Drivers-Infiniband .*/drivers/infiniband/.* No 308,219 0.52
Drivers-Input .*/drivers/input/.* No 137,935 0.30
Drivers-IDE .*/drivers/ide/.* No 1,068 0.00
Drivers-IIO .*/drivers/iio/.* No 190,005 0.18
Drivers-ISDN .*/drivers/isdn/.* No 34,452 0.29
Drivers-EDAC .*/drivers/edac/.* No 24,558 0.41
Drivers-Firewire .*/drivers/firewire/.* No 9,843 0.41
Drivers-MD .*/drivers/md/.* No 89,321 0.44
Drivers-MFD .*/drivers/mfd/.* No 82,512 0.13
Drivers-Media .*/drivers/media/.* No 957,461 0.30
Drivers-Message .*/drivers/message/.* No 7,379 0.14
Drivers-Platform .*/drivers/platform/.* No 70,888 0.54
Drivers-PCI .*/drivers/pci/.* No 65,625 0.46
Drivers-RTC .*/drivers/rtc/.* No 52,531 0.08
Drivers-TTY .*/drivers/tty/.* No 105,356 0.23
Ethernet-broadcom .*/drivers/net/ethernet/broadcom/.* No 142,070 0.21
Ethernet-DEC .*/drivers/net/ethernet/dec/.* No 14,710 0.34
Ethernet-Chelsio .*/drivers/net/ethernet/chelsio/.* No 83,010 0.48
Ethernet-Emulex .*/drivers/net/ethernet/emulex/.* No 13,071 0.15
Ethernet-Intel .*/drivers/net/ethernet/intel/.* No 198,224 0.20
Ethernet-Mellanox .*/drivers/net/ethernet/mellanox/.* No 162,408 0.31
Ethernet-Neterion .*/drivers/net/ethernet/neterion/.* No 23,762 0.84
Ethernet-QLogic .*/drivers/net/ethernet/qlogic/.* No 108,021 0.42
Ethernet-SFC /drivers/net/ethernet/sfc/.* No 56,913 0.18
Drivers-Ethernet .*/drivers/net/ethernet/.* No 548,249 0.35
Drivers-Misc .*/drivers/misc/.* No 153,061 0.42
Drivers-MTD .*/drivers/mtd/.* No 108,288 0.74
WIFI-Atheros .*/drivers/net/wireless/ath/.* No 263,278 0.21
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,592 0.57
Drivers-wireless .*/drivers/net/wireless/.* No 759,924 0.39
Drivers-Net .*/drivers/net/.* No 313,814 0.41
Drivers-MMC .*/drivers/mmc/.* No 73,047 0.31
Drivers-SPI .*/drivers/spi/.* No 60,628 0.45
Drivers-UWB .*/drivers/uwb/.*.* No 0 N/A
Drivers-Framebuffer .*/drivers/video/.* No 183,323 0.40
Drivers-Watchdog .*/drivers/watchdog/.* No 31,990 0.34
Drivers-Xen .*/drivers/xen/.* No 21,074 1.38
Staging-comedi .*/drivers/staging/comedi/.* No 99,665 0.17
Staging-iio .*/drivers/staging/iio/.* No 8,613 0.46
Staging-lustre .*/drivers/staging/lustre/.* No 0 N/A
Staging-media .*/drivers/staging/media/.* No 157,534 0.26
Staging-rtl8188eu .*/drivers/staging/rtl8188eu/.* No 36,418 0.60
Staging-rtl8192e .*/drivers/staging/rtl8192e/.* No 24,267 0.54
Staging-rtl8192u .*/drivers/staging/rtl8192u/.* No 21,590 0.46
Staging-rtl8712 .*/drivers/staging/rtl8712/.* No 22,113 1.04
Staging-vt6655 .*/drivers/staging/vt6655/.* No 8,014 0.12
Staging-rts5208 .*/drivers/staging/rts5208/.* No 26 0.00
Staging-unisys .*/drivers/staging/unisys/.* No 2,261 0.00
Staging-vt6656 .*/drivers/staging/vt6656/.* No 4,564 0.00
Drivers-Staging .*/drivers/staging/.* No 177,550 0.35
Drivers-USB .*/drivers/usb/.* No 325,644 0.33
SCSI-aic7xxx .*/drivers/scsi/aic7xxx/.* No 371 0.00
SCSI-be2iscsi .*/drivers/scsi/be2iscsi/.* No 29 0.00
SCSI-bfa .*/drivers/scsi/bfa/.* No 29 0.00
SCSI-bnx2fc .*/drivers/scsi/bnx2fc/.* No 178 0.00
SCSI-csiostor .*/drivers/scsi/csiostor/.* No 142 0.00
SCSI-isci .*/drivers/scsi/isci/.* No 631 0.00
SCSI-lpfc .*/drivers/scsi/lpfc/.* No 72 0.00
SCSI-megaraid .*/drivers/scsi/megaraid/.* No 1,341 0.75
SCSI-mpt2sas .*/drivers/scsi/mpt2sas/.* No 0 N/A
SCSI-mpt3sas .*/drivers/scsi/mpt3sas/.* No 74 0.00
SCSI-pm8001 .*/drivers/scsi/pm8001/.* No 68 0.00
SCSI-qla2xxx .*/drivers/scsi/qla2xxx/.* No 73 0.00
SCSI-qla4xxx .*/drivers/scsi/qla4xxx/.* No 29 0.00
Drivers-SCSI .*/drivers/scsi/.* No 11,697 0.17
Drivers-target .*/drivers/target/.* No 31,933 0.56
Drivers-NFC /drivers/nfc/.* No 19,546 0.41
Drivers .*/drivers/.* No 1,207,042 0.30
Net-802 .*/net/802.*/.* No 4,270 0.47
Net-Bluetooth .*/net/bluetooth/.* No 48,733 0.31
Net-bridge .*/net/bridge/.* No 22,944 0.52
Net-CAIF .*/net/caif/.* No 4,972 1.61
Net-Core .*/net/core/.* No 58,859 0.22
Net-DCCP .*/net/dccp/.* No 7,707 0.91
Net-DECNET .*/net/decnet/.* No 7,933 0.88
Net-ipv4 .*/net/ipv4/.* No 76,678 0.52
Net-ipv6 .*/net/ipv6/.* No 56,006 0.43
Net-IRDA .*/net/irda/.* No 0 N/A
Net-mac80211 .*/net/mac80211/.* No 52,828 0.28
Net-NFC .*/net/nfc/.* No 15,315 0.59
Net-SCTP .*/net/sctp/.* No 28,939 0.55
Net-SunRPC .*/net/sunrpc/.* No 31,367 0.51
Net-sched .*/net/sched/.* No 48,207 0.39
Net-Wireless .*/net/wireless/.* No 36,559 0.14
Net-XFRM .*/net/xfrm/.* No 14,104 0.57
Networking .*/net/.* No 388,749 0.49
Tools /tools/.* No 282,725 2.28
arm64 .*/arch/arm64/.* No 0 N/A
arm .*/arch/arm/.* No 428 0.00
Powerpc .*/arch/powerpc/.* No 0 N/A
Other .* No 599,379 0.13

CWE Top 25 defects

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