Coverity Scan: Linux

Project Name Linux
Lines of code analyzed 23,412,135
On Coverity Scan since Feb 24, 2006
Last build analyzed about 20 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: Version

Jan 20, 2025
Last Analyzed
23,412,135
Lines of Code Analyzed
0.99
Defect Density

Defect changes since previous build dated Jan 13, 2025

0
Newly detected
4
Eliminated

Defects by status for current build

69,175
Total defects
23,235
Outstanding
45,288
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 119,250 0.90
Block .*/block/.* No 100,965 1.64
Crypto .*/crypto/.* No 245,570 0.88
KVM /virt/kvm/.*|/arch/x86/kvm/.* No 69,274 1.15
Arch-x86 .*/arch/x86/.* No 198,594 0.89
Kernel .*/kernel/.* No 311,265 1.16
Lib .*/lib/.* No 692,849 0.45
MM .*/mm/.* No 116,386 1.92
Sound-line6 .*/sound/usb/line6/.* No 3,829 1.31
Sound .*/sound/.* No 1,187,179 1.22
Security-Apparmor .*/security/apparmor/.* No 14,149 0.57
Security-Integrity .*/security/integrity/.* No 9,005 0.33
Security-SMACK .*/security/smack/.* No 5,689 0.70
Security-SELinux .*/security/selinux/.* No 22,556 0.80
Security-Tomoyo .*/security/tomoyo/.* No 8,258 1.21
Security-Yama .*/security/yama/.* No 333 0.00
Security .*/security/.* No 19,153 0.89
FS-9P .*/fs/9p/.* No 4,178 0.72
FS-AFS .*/fs/afs/.* No 18,166 2.42
FS-BTRFS .*/fs/btrfs.* No 72,208 1.98
FS-CEPH .*/fs/ceph/.* No 26,329 2.20
FS-CIFS .*/fs/cifs/.* No 0 N/A
FS-EXTn .*/fs/ext.*/.* No 52,443 1.51
FS-GFS2 .*/fs/gfs2/.* No 23,454 3.28
FS-HFS .*/fs/hfs/.* No 4,549 0.88
FS-HFSPlus .*/fs/hfsplus/.* No 9,296 0.32
FS-JBD .*/fs/jbd.*/.* No 5,610 4.63
FS-JFS .*/fs/jfs/.* No 16,882 3.32
FS-JFFS2 .*/fs/jffs2/.* No 13,522 1.33
FS-NFS .*/fs/nfs/.* No 63,992 1.06
FS-NFSD .*/fs/nfsd/.* No 36,187 0.97
FS-NILFS2 .*/fs/nilfs2/.* No 16,454 0.97
FS-NTFS .*/fs/ntfs/.* No 0 N/A
FS-OCFS2 .*/fs/ocfs2/.* No 67,280 2.57
FS-PROC .*/fs/proc/.* No 12,844 1.95
FS-Reiserfs .*/fs/reiserfs/.* No 0 N/A
FS-UBIFS .*/fs/ubifs/.* No 24,636 1.79
FS-UDF .*/fs/udf/.* No 8,725 1.26
FS-UFS .*/fs/ufs/.* No 5,708 2.80
FS-XFS .*/fs/xfs/.* No 139,096 0.91
FS .*/fs/.* No 444,000 1.17
Drivers-ATA .*/drivers/ata/.* No 59,967 1.42
Drivers-ATM .*/drivers/atm/.* No 23,435 2.65
Drivers-Bluetooth .*/drivers/bluetooth/.* No 32,084 1.22
Drivers-char .*/drivers/char/.* No 54,611 1.81
GPU-GMA500 .*/drivers/gpu/drm/gma500/.* No 16,862 0.65
GPU-i915 .*/drivers/gpu/drm/i915/.* No 180,371 1.44
GPU-Nouveau .*/drivers/gpu/drm/nouveau/.* No 162,475 1.06
GPU-qxl .*/drivers/gpu/drm/qxl/.* No 4,902 2.04
GPU-Radeon .*/drivers/gpu/drm/radeon/.* No 157,604 6.02
Drivers-GPU .*/drivers/gpu/.* No 5,516,876 0.27
Drivers-HID .*/drivers/hid/.* No 94,349 2.85
Drivers-i2c .*/drivers/i2c/.* No 69,448 1.68
Drivers-HWMON .*/drivers/hwmon/.* No 154,632 1.04
Drivers-Infiniband .*/drivers/infiniband/.* No 339,694 1.54
Drivers-Input .*/drivers/input/.* No 150,825 4.20
Drivers-IDE .*/drivers/ide/.* No 0 N/A
Drivers-IIO .*/drivers/iio/.* No 283,095 1.58
Drivers-ISDN .*/drivers/isdn/.* No 31,746 0.95
Drivers-EDAC .*/drivers/edac/.* No 26,793 0.67
Drivers-Firewire .*/drivers/firewire/.* No 13,041 1.61
Drivers-MD .*/drivers/md/.* No 137,113 1.64
Drivers-MFD .*/drivers/mfd/.* No 88,434 0.84
Drivers-Media .*/drivers/media/.* No 1,117,628 0.87
Drivers-Message .*/drivers/message/.* No 24,736 1.82
Drivers-Platform .*/drivers/platform/.* No 132,840 1.57
Drivers-PCI .*/drivers/pci/.* No 89,430 1.72
Drivers-RTC .*/drivers/rtc/.* No 56,882 1.41
Drivers-TTY .*/drivers/tty/.* No 104,120 1.63
Ethernet-broadcom .*/drivers/net/ethernet/broadcom/.* No 156,498 0.72
Ethernet-DEC .*/drivers/net/ethernet/dec/.* No 10,058 0.80
Ethernet-Chelsio .*/drivers/net/ethernet/chelsio/.* No 80,701 0.81
Ethernet-Emulex .*/drivers/net/ethernet/emulex/.* No 13,057 0.92
Ethernet-Intel .*/drivers/net/ethernet/intel/.* No 256,377 0.63
Ethernet-Mellanox .*/drivers/net/ethernet/mellanox/.* No 232,127 0.50
Ethernet-Neterion .*/drivers/net/ethernet/neterion/.* No 7,749 1.03
Ethernet-QLogic .*/drivers/net/ethernet/qlogic/.* No 113,553 0.65
Ethernet-SFC /drivers/net/ethernet/sfc/.* No 97,575 1.25
Drivers-Ethernet .*/drivers/net/ethernet/.* No 779,640 1.01
Drivers-Misc .*/drivers/misc/.* No 76,509 2.40
Drivers-MTD .*/drivers/mtd/.* No 117,827 1.20
WIFI-Atheros .*/drivers/net/wireless/ath/.* No 335,727 0.92
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,555 0.76
Drivers-wireless .*/drivers/net/wireless/.* No 1,102,194 0.71
Drivers-Net .*/drivers/net/.* No 435,713 1.22
Drivers-MMC .*/drivers/mmc/.* No 85,366 1.58
Drivers-SPI .*/drivers/spi/.* No 80,149 1.40
Drivers-UWB .*/drivers/uwb/.*.* No 0 N/A
Drivers-Framebuffer .*/drivers/video/.* No 148,252 0.97
Drivers-Watchdog .*/drivers/watchdog/.* No 35,829 1.03
Drivers-Xen .*/drivers/xen/.* No 24,141 3.52
Staging-comedi .*/drivers/staging/comedi/.* No 0 N/A
Staging-iio .*/drivers/staging/iio/.* No 4,483 1.12
Staging-lustre .*/drivers/staging/lustre/.* No 0 N/A
Staging-media .*/drivers/staging/media/.* No 128,145 0.79
Staging-rtl8188eu .*/drivers/staging/rtl8188eu/.* No 0 N/A
Staging-rtl8192e .*/drivers/staging/rtl8192e/.* No 0 N/A
Staging-rtl8192u .*/drivers/staging/rtl8192u/.* No 0 N/A
Staging-rtl8712 .*/drivers/staging/rtl8712/.* No 0 N/A
Staging-vt6655 .*/drivers/staging/vt6655/.* No 0 N/A
Staging-rts5208 .*/drivers/staging/rts5208/.* No 0 N/A
Staging-unisys .*/drivers/staging/unisys/.* No 0 N/A
Staging-vt6656 .*/drivers/staging/vt6656/.* No 0 N/A
Drivers-Staging .*/drivers/staging/.* No 123,176 1.10
Drivers-USB .*/drivers/usb/.* No 384,076 1.58
SCSI-aic7xxx .*/drivers/scsi/aic7xxx/.* No 30,085 0.60
SCSI-be2iscsi .*/drivers/scsi/be2iscsi/.* No 10,772 1.58
SCSI-bfa .*/drivers/scsi/bfa/.* No 41,840 0.91
SCSI-bnx2fc .*/drivers/scsi/bnx2fc/.* No 8,144 0.86
SCSI-csiostor .*/drivers/scsi/csiostor/.* No 12,793 1.41
SCSI-isci .*/drivers/scsi/isci/.* No 13,222 1.36
SCSI-lpfc .*/drivers/scsi/lpfc/.* No 82,632 4.84
SCSI-megaraid .*/drivers/scsi/megaraid/.* No 18,323 3.11
SCSI-mpt2sas .*/drivers/scsi/mpt2sas/.* No 0 N/A
SCSI-mpt3sas .*/drivers/scsi/mpt3sas/.* No 30,674 2.61
SCSI-pm8001 .*/drivers/scsi/pm8001/.* No 13,571 1.25
SCSI-qla2xxx .*/drivers/scsi/qla2xxx/.* No 73,933 1.19
SCSI-qla4xxx .*/drivers/scsi/qla4xxx/.* No 21,778 2.85
Drivers-SCSI .*/drivers/scsi/.* No 331,709 1.57
Drivers-target .*/drivers/target/.* No 48,328 1.72
Drivers-NFC /drivers/nfc/.* No 19,613 1.33
Drivers .*/drivers/.* No 2,356,354 1.17
Net-802 .*/net/802.*/.* No 4,469 1.57
Net-Bluetooth .*/net/bluetooth/.* No 55,869 0.63
Net-bridge .*/net/bridge/.* No 29,083 0.72
Net-CAIF .*/net/caif/.* No 4,813 1.66
Net-Core .*/net/core/.* No 62,164 0.85
Net-DCCP .*/net/dccp/.* No 7,793 0.64
Net-DECNET .*/net/decnet/.* No 0 N/A
Net-ipv4 .*/net/ipv4/.* No 83,650 1.12
Net-ipv6 .*/net/ipv6/.* No 59,553 1.28
Net-IRDA .*/net/irda/.* No 0 N/A
Net-mac80211 .*/net/mac80211/.* No 63,089 0.86
Net-NFC .*/net/nfc/.* No 15,637 1.41
Net-SCTP .*/net/sctp/.* No 30,129 0.43
Net-SunRPC .*/net/sunrpc/.* No 35,991 1.44
Net-sched .*/net/sched/.* No 47,574 0.99
Net-Wireless .*/net/wireless/.* No 41,737 0.46
Net-XFRM .*/net/xfrm/.* No 15,981 1.13
Networking .*/net/.* No 460,766 1.36
Tools /tools/.* No 345,110 2.77
arm64 .*/arch/arm64/.* No 0 N/A
arm .*/arch/arm/.* No 0 N/A
Powerpc .*/arch/powerpc/.* No 0 N/A
Other .* No 761,047 0.19

CWE Top 25 defects

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