Coverity Scan: Linux

Project Name Linux
Lines of code analyzed 22,592,937
On Coverity Scan since Feb 24, 2006
Last build analyzed 2 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: 6.8.0-rc6

Feb 26, 2024
Last Analyzed
22,592,937
Lines of Code Analyzed
0.59
Defect Density

Defect changes since previous build dated Feb 19, 2024

5
Newly detected
15
Eliminated

Defects by status for current build

55,162
Total defects
13,297
Outstanding
41,213
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 117,910 0.59
Block .*/block/.* No 99,693 1.37
Crypto .*/crypto/.* No 228,487 0.77
KVM /virt/kvm/.*|/arch/x86/kvm/.* No 67,956 1.04
Arch-x86 .*/arch/x86/.* No 197,190 0.89
Kernel .*/kernel/.* No 299,355 1.23
Lib .*/lib/.* No 680,281 0.36
MM .*/mm/.* No 111,571 1.72
Sound-line6 .*/sound/usb/line6/.* No 3,895 0.77
Sound .*/sound/.* No 1,170,173 0.40
Security-Apparmor .*/security/apparmor/.* No 14,215 0.56
Security-Integrity .*/security/integrity/.* No 8,715 0.69
Security-SMACK .*/security/smack/.* No 5,643 0.35
Security-SELinux .*/security/selinux/.* No 22,312 0.49
Security-Tomoyo .*/security/tomoyo/.* No 8,255 0.97
Security-Yama .*/security/yama/.* No 334 0.00
Security .*/security/.* No 16,378 1.47
FS-9P .*/fs/9p/.* No 4,288 0.93
FS-AFS .*/fs/afs/.* No 18,047 2.33
FS-BTRFS .*/fs/btrfs.* No 106,675 1.86
FS-CEPH .*/fs/ceph/.* No 25,949 1.70
FS-CIFS .*/fs/cifs/.* No 0 N/A
FS-EXTn .*/fs/ext.*/.* No 52,219 1.13
FS-GFS2 .*/fs/gfs2/.* No 23,422 2.52
FS-HFS .*/fs/hfs/.* No 4,596 1.31
FS-HFSPlus .*/fs/hfsplus/.* No 9,354 0.64
FS-JBD .*/fs/jbd.*/.* No 5,618 4.27
FS-JFS .*/fs/jfs/.* No 16,847 2.97
FS-JFFS2 .*/fs/jffs2/.* No 13,555 1.62
FS-NFS .*/fs/nfs/.* No 62,766 0.84
FS-NFSD .*/fs/nfsd/.* No 34,299 0.96
FS-NILFS2 .*/fs/nilfs2/.* No 16,411 0.67
FS-NTFS .*/fs/ntfs/.* No 17,239 0.81
FS-OCFS2 .*/fs/ocfs2/.* No 67,236 1.84
FS-PROC .*/fs/proc/.* No 12,495 1.60
FS-Reiserfs .*/fs/reiserfs/.* No 21,576 1.16
FS-UBIFS .*/fs/ubifs/.* No 24,644 1.83
FS-UDF .*/fs/udf/.* No 8,595 1.16
FS-UFS .*/fs/ufs/.* No 5,799 2.41
FS-XFS .*/fs/xfs/.* No 112,125 0.80
FS .*/fs/.* No 444,188 1.12
Drivers-ATA .*/drivers/ata/.* No 61,529 0.49
Drivers-ATM .*/drivers/atm/.* No 23,605 0.64
Drivers-Bluetooth .*/drivers/bluetooth/.* No 29,287 0.07
Drivers-char .*/drivers/char/.* No 54,187 0.90
GPU-GMA500 .*/drivers/gpu/drm/gma500/.* No 16,994 0.94
GPU-i915 .*/drivers/gpu/drm/i915/.* No 271,553 1.53
GPU-Nouveau .*/drivers/gpu/drm/nouveau/.* No 164,683 0.88
GPU-qxl .*/drivers/gpu/drm/qxl/.* No 4,914 0.81
GPU-Radeon .*/drivers/gpu/drm/radeon/.* No 157,904 0.58
Drivers-GPU .*/drivers/gpu/.* No 4,968,398 0.19
Drivers-HID .*/drivers/hid/.* No 91,122 0.65
Drivers-i2c .*/drivers/i2c/.* No 68,653 0.23
Drivers-HWMON .*/drivers/hwmon/.* No 148,546 0.21
Drivers-Infiniband .*/drivers/infiniband/.* No 336,229 0.92
Drivers-Input .*/drivers/input/.* No 156,881 0.40
Drivers-IDE .*/drivers/ide/.* No 0 N/A
Drivers-IIO .*/drivers/iio/.* No 260,398 0.28
Drivers-ISDN .*/drivers/isdn/.* No 34,530 0.58
Drivers-EDAC .*/drivers/edac/.* No 27,170 0.52
Drivers-Firewire .*/drivers/firewire/.* No 11,401 1.93
Drivers-MD .*/drivers/md/.* No 104,676 1.52
Drivers-MFD .*/drivers/mfd/.* No 87,790 0.16
Drivers-Media .*/drivers/media/.* No 1,099,355 0.42
Drivers-Message .*/drivers/message/.* No 24,871 0.88
Drivers-Platform .*/drivers/platform/.* No 126,224 0.50
Drivers-PCI .*/drivers/pci/.* No 85,089 0.52
Drivers-RTC .*/drivers/rtc/.* No 57,396 0.31
Drivers-TTY .*/drivers/tty/.* No 103,748 0.89
Ethernet-broadcom .*/drivers/net/ethernet/broadcom/.* No 154,038 0.35
Ethernet-DEC .*/drivers/net/ethernet/dec/.* No 10,142 0.10
Ethernet-Chelsio .*/drivers/net/ethernet/chelsio/.* No 83,188 0.55
Ethernet-Emulex .*/drivers/net/ethernet/emulex/.* No 13,078 1.15
Ethernet-Intel .*/drivers/net/ethernet/intel/.* No 248,841 0.32
Ethernet-Mellanox .*/drivers/net/ethernet/mellanox/.* No 215,789 0.46
Ethernet-Neterion .*/drivers/net/ethernet/neterion/.* No 7,763 0.64
Ethernet-QLogic .*/drivers/net/ethernet/qlogic/.* No 113,622 0.58
Ethernet-SFC /drivers/net/ethernet/sfc/.* No 97,713 0.36
Drivers-Ethernet .*/drivers/net/ethernet/.* No 743,353 0.56
Drivers-Misc .*/drivers/misc/.* No 76,809 1.25
Drivers-MTD .*/drivers/mtd/.* No 119,231 0.77
WIFI-Atheros .*/drivers/net/wireless/ath/.* No 324,335 0.76
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,551 0.44
Drivers-wireless .*/drivers/net/wireless/.* No 1,052,593 0.56
Drivers-Net .*/drivers/net/.* No 419,832 0.76
Drivers-MMC .*/drivers/mmc/.* No 82,382 0.63
Drivers-SPI .*/drivers/spi/.* No 78,158 0.55
Drivers-UWB .*/drivers/uwb/.*.* No 0 N/A
Drivers-Framebuffer .*/drivers/video/.* No 176,900 0.54
Drivers-Watchdog .*/drivers/watchdog/.* No 36,346 0.36
Drivers-Xen .*/drivers/xen/.* No 24,095 2.86
Staging-comedi .*/drivers/staging/comedi/.* No 0 N/A
Staging-iio .*/drivers/staging/iio/.* No 4,627 0.43
Staging-lustre .*/drivers/staging/lustre/.* No 0 N/A
Staging-media .*/drivers/staging/media/.* No 136,842 0.39
Staging-rtl8188eu .*/drivers/staging/rtl8188eu/.* No 0 N/A
Staging-rtl8192e .*/drivers/staging/rtl8192e/.* No 19,586 0.92
Staging-rtl8192u .*/drivers/staging/rtl8192u/.* No 0 N/A
Staging-rtl8712 .*/drivers/staging/rtl8712/.* No 21,680 1.25
Staging-vt6655 .*/drivers/staging/vt6655/.* No 7,225 0.00
Staging-rts5208 .*/drivers/staging/rts5208/.* No 18,905 1.43
Staging-unisys .*/drivers/staging/unisys/.* No 0 N/A
Staging-vt6656 .*/drivers/staging/vt6656/.* No 4,053 1.73
Drivers-Staging .*/drivers/staging/.* No 130,818 0.81
Drivers-USB .*/drivers/usb/.* No 383,522 0.98
SCSI-aic7xxx .*/drivers/scsi/aic7xxx/.* No 30,132 0.53
SCSI-be2iscsi .*/drivers/scsi/be2iscsi/.* No 10,788 2.97
SCSI-bfa .*/drivers/scsi/bfa/.* No 42,424 0.78
SCSI-bnx2fc .*/drivers/scsi/bnx2fc/.* No 8,167 0.86
SCSI-csiostor .*/drivers/scsi/csiostor/.* No 12,809 1.33
SCSI-isci .*/drivers/scsi/isci/.* No 13,252 0.60
SCSI-lpfc .*/drivers/scsi/lpfc/.* No 82,802 2.25
SCSI-megaraid .*/drivers/scsi/megaraid/.* No 18,357 0.71
SCSI-mpt2sas .*/drivers/scsi/mpt2sas/.* No 0 N/A
SCSI-mpt3sas .*/drivers/scsi/mpt3sas/.* No 30,635 1.04
SCSI-pm8001 .*/drivers/scsi/pm8001/.* No 13,582 0.96
SCSI-qla2xxx .*/drivers/scsi/qla2xxx/.* No 73,820 0.92
SCSI-qla4xxx .*/drivers/scsi/qla4xxx/.* No 21,787 1.15
Drivers-SCSI .*/drivers/scsi/.* No 330,349 0.91
Drivers-target .*/drivers/target/.* No 48,499 1.65
Drivers-NFC /drivers/nfc/.* No 20,106 0.60
Drivers .*/drivers/.* No 2,205,459 0.38
Net-802 .*/net/802.*/.* No 4,591 0.22
Net-Bluetooth .*/net/bluetooth/.* No 59,428 0.57
Net-bridge .*/net/bridge/.* No 29,341 0.68
Net-CAIF .*/net/caif/.* No 4,891 1.64
Net-Core .*/net/core/.* No 59,083 0.68
Net-DCCP .*/net/dccp/.* No 7,855 1.27
Net-DECNET .*/net/decnet/.* No 0 N/A
Net-ipv4 .*/net/ipv4/.* No 83,000 1.29
Net-ipv6 .*/net/ipv6/.* No 59,640 1.06
Net-IRDA .*/net/irda/.* No 0 N/A
Net-mac80211 .*/net/mac80211/.* No 60,575 0.99
Net-NFC .*/net/nfc/.* No 15,676 0.64
Net-SCTP .*/net/sctp/.* No 30,125 0.66
Net-SunRPC .*/net/sunrpc/.* No 35,761 1.06
Net-sched .*/net/sched/.* No 48,103 1.21
Net-Wireless .*/net/wireless/.* No 42,200 0.38
Net-XFRM .*/net/xfrm/.* No 15,267 0.98
Networking .*/net/.* No 456,952 1.20
Tools /tools/.* No 308,065 2.54
arm64 .*/arch/arm64/.* No 0 N/A
arm .*/arch/arm/.* No 422 0.00
Powerpc .*/arch/powerpc/.* No 0 N/A
Other .* No 735,284 0.19

CWE Top 25 defects

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