Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 580510 Details for
Bug 816642
Resource leak in mdadm found by Coverity
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
List of all defects in mdadm-3.2.3-7
mdadm-3.2.3-7.el6.err (text/plain), 57.72 KB, created by
Pavel Raiskup
on 2012-04-26 15:21:10 UTC
(
hide
)
Description:
List of all defects in mdadm-3.2.3-7
Filename:
MIME Type:
Creator:
Pavel Raiskup
Created:
2012-04-26 15:21:10 UTC
Size:
57.72 KB
patch
obsolete
> >Error: BUFFER_SIZE_WARNING: >/builddir/build/BUILD/mdadm-3.2.3/super-intel.c:6968: buffer_size_warning: Calling strncpy with a maximum size argument of 16 bytes on destination array "disk->serial" of size 16 bytes might leave the destination string unterminated. > >Error: BUFFER_SIZE_WARNING: >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:2016: buffer_size_warning: Calling strncpy with a maximum size argument of 16 bytes on destination array "ve->name" of size 16 bytes might leave the destination string unterminated. > >Error: BUFFER_SIZE_WARNING: >/builddir/build/BUILD/mdadm-3.2.3/super-intel.c:4658: buffer_size_warning: Calling strncpy with a maximum size argument of 16 bytes on destination array "dev->volume" of size 16 bytes might leave the destination string unterminated. > >Error: CHECKED_RETURN: >/builddir/build/BUILD/mdadm-3.2.3/super-intel.c:4952: example_assign: Assigning: "rv" = return value from "find_intel_hba_capability(fd, super, devname)". >/builddir/build/BUILD/mdadm-3.2.3/super-intel.c:4954: example_checked: "rv" has its value checked in "rv != 0". >/builddir/build/BUILD/mdadm-3.2.3/super-intel.c:4330: example_assign: Assigning: "rv" = return value from "find_intel_hba_capability(dfd, s, devname)". >/builddir/build/BUILD/mdadm-3.2.3/super-intel.c:4332: example_checked: "rv" has its value checked in "rv != 0". >/builddir/build/BUILD/mdadm-3.2.3/super-intel.c:5352: example_assign: Assigning: "rv" = return value from "find_intel_hba_capability(fd, super, (verbose ? dev : NULL))". >/builddir/build/BUILD/mdadm-3.2.3/super-intel.c:5353: example_checked: "rv" has its value checked in "rv != 0". >/builddir/build/BUILD/mdadm-3.2.3/super-intel.c:4424: example_assign: Assigning: "rv" = return value from "find_intel_hba_capability(fd, super, devname)". >/builddir/build/BUILD/mdadm-3.2.3/super-intel.c:4426: example_checked: "rv" has its value checked in "rv != 0". >/builddir/build/BUILD/mdadm-3.2.3/super-intel.c:3548: check_return: Calling function "find_intel_hba_capability" without checking return value (as is done elsewhere 4 out of 5 times). >/builddir/build/BUILD/mdadm-3.2.3/super-intel.c:3548: unchecked_value: No check of the return value of "find_intel_hba_capability(fd, super, devname)". > >Error: CHECKED_RETURN: >/builddir/build/BUILD/mdadm-3.2.3/Create.c:892: example_assign: Assigning: "rv" = return value from "add_disk(mdfd, st, &info, inf)". >/builddir/build/BUILD/mdadm-3.2.3/Create.c:894: example_checked: "rv" has its value checked in "rv". >/builddir/build/BUILD/mdadm-3.2.3/Incremental.c:309: example_checked: "add_disk(mdfd, st, &info, &dinfo)" has its value checked in "add_disk(mdfd, st, &info, &dinfo) != 0". >/builddir/build/BUILD/mdadm-3.2.3/Incremental.c:423: example_assign: Assigning: "err" = return value from "add_disk(mdfd, st, sra, &info2)". >/builddir/build/BUILD/mdadm-3.2.3/Incremental.c:424: example_checked: "err" has its value checked in "err < 0". >/builddir/build/BUILD/mdadm-3.2.3/Incremental.c:430: example_assign: Assigning: "err" = return value from "add_disk(mdfd, st, sra, &info2)". >/builddir/build/BUILD/mdadm-3.2.3/Incremental.c:432: example_checked: "err" has its value checked in "err < 0". >/builddir/build/BUILD/mdadm-3.2.3/Incremental.c:561: example_checked: "add_disk(mdfd, st, sra, dsk)" has its value checked in "add_disk(mdfd, st, sra, dsk) == 0". >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:2225: check_return: Calling function "add_disk" without checking return value (as is done elsewhere 5 out of 6 times). >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:2225: unchecked_value: No check of the return value of "add_disk(fd, st, info2, d)". > >Error: CHECKED_RETURN: >/builddir/build/BUILD/mdadm-3.2.3/Build.c:68: example_checked: "stat(dv->devname, &stb)" has its value checked in "stat(dv->devname, &stb)". >/builddir/build/BUILD/mdadm-3.2.3/Build.c:171: example_checked: "stat(dv->devname, &stb)" has its value checked in "stat(dv->devname, &stb)". >/builddir/build/BUILD/mdadm-3.2.3/Incremental.c:110: example_checked: "stat(devname, &stb)" has its value checked in "stat(devname, &stb) < 0". >/builddir/build/BUILD/mdadm-3.2.3/Manage.c:545: example_checked: "stat(add_dev, &stb)" has its value checked in "stat(add_dev, &stb) < 0". >/builddir/build/BUILD/mdadm-3.2.3/Manage.c:346: example_checked: "stat("/dev/.udev", &stb)" has its value checked in "stat("/dev/.udev", &stb) != 0". >/builddir/build/BUILD/mdadm-3.2.3/mdopen.c:346: check_return: Calling function "stat" without checking return value (as is done elsewhere 26 out of 27 times). >/builddir/build/BUILD/mdadm-3.2.3/mdopen.c:346: unchecked_value: No check of the return value of "stat(devname, &stb)". > >Error: CHECKED_RETURN: >/builddir/build/BUILD/mdadm-3.2.3/Build.c:181: example_assign: Assigning: "fd" = return value from "open(dv->devname, 128)". >/builddir/build/BUILD/mdadm-3.2.3/Build.c:182: example_checked: "fd" has its value checked in "fd < 0". >/builddir/build/BUILD/mdadm-3.2.3/Build.c:217: example_assign: Assigning: "bitmap_fd" = return value from "open(bitmap_file, 2)". >/builddir/build/BUILD/mdadm-3.2.3/Build.c:218: example_checked: "bitmap_fd" has its value checked in "bitmap_fd < 0". >/builddir/build/BUILD/mdadm-3.2.3/Build.c:239: example_assign: Assigning: "bitmap_fd" = return value from "open(bitmap_file, 2)". >/builddir/build/BUILD/mdadm-3.2.3/Build.c:240: example_checked: "bitmap_fd" has its value checked in "bitmap_fd < 0". >/builddir/build/BUILD/mdadm-3.2.3/Create.c:162: example_assign: Assigning: "fd" = return value from "open(devlist->devname, 0)". >/builddir/build/BUILD/mdadm-3.2.3/Create.c:163: example_checked: "fd" has its value checked in "fd >= 0". >/builddir/build/BUILD/mdadm-3.2.3/Create.c:305: example_assign: Assigning: "dfd" = return value from "open(dname, 0)". >/builddir/build/BUILD/mdadm-3.2.3/Create.c:306: example_checked: "dfd" has its value checked in "dfd < 0". >/builddir/build/BUILD/mdadm-3.2.3/Monitor.c:285: check_return: Calling function "open" without checking return value (as is done elsewhere 70 out of 78 times). >/builddir/build/BUILD/mdadm-3.2.3/Monitor.c:285: unchecked_value: No check of the return value of "open("/dev/null", 2)". > >Error: CHECKED_RETURN: >/builddir/build/BUILD/mdadm-3.2.3/Build.c:181: example_assign: Assigning: "fd" = return value from "open(dv->devname, 128)". >/builddir/build/BUILD/mdadm-3.2.3/Build.c:182: example_checked: "fd" has its value checked in "fd < 0". >/builddir/build/BUILD/mdadm-3.2.3/Build.c:217: example_assign: Assigning: "bitmap_fd" = return value from "open(bitmap_file, 2)". >/builddir/build/BUILD/mdadm-3.2.3/Build.c:218: example_checked: "bitmap_fd" has its value checked in "bitmap_fd < 0". >/builddir/build/BUILD/mdadm-3.2.3/Build.c:239: example_assign: Assigning: "bitmap_fd" = return value from "open(bitmap_file, 2)". >/builddir/build/BUILD/mdadm-3.2.3/Build.c:240: example_checked: "bitmap_fd" has its value checked in "bitmap_fd < 0". >/builddir/build/BUILD/mdadm-3.2.3/Create.c:162: example_assign: Assigning: "fd" = return value from "open(devlist->devname, 0)". >/builddir/build/BUILD/mdadm-3.2.3/Create.c:163: example_checked: "fd" has its value checked in "fd >= 0". >/builddir/build/BUILD/mdadm-3.2.3/Create.c:305: example_assign: Assigning: "dfd" = return value from "open(dname, 0)". >/builddir/build/BUILD/mdadm-3.2.3/Create.c:306: example_checked: "dfd" has its value checked in "dfd < 0". >/builddir/build/BUILD/mdadm-3.2.3/mdmon.c:514: check_return: Calling function "open" without checking return value (as is done elsewhere 70 out of 78 times). >/builddir/build/BUILD/mdadm-3.2.3/mdmon.c:514: unchecked_value: No check of the return value of "open("/dev/null", 2)". > >Error: FORWARD_NULL: >/builddir/build/BUILD/mdadm-3.2.3/sysfs.c:640: var_compare_op: Comparing "dname" to null implies that "dname" might be null. >/builddir/build/BUILD/mdadm-3.2.3/sysfs.c:642: var_deref_model: Passing null variable "dname" to function "strcpy", which dereferences it. (The dereference is assumed on the basis of the 'nonnull' parameter attribute.) > >Error: FORWARD_NULL: >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3629: var_compare_op: Comparing "backup_file" to null implies that "backup_file" might be null. >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3644: var_deref_model: Passing null variable "backup_file" to function "open", which dereferences it. (The dereference is assumed on the basis of the 'nonnull' parameter attribute.) > >Error: FORWARD_NULL: >/builddir/build/BUILD/mdadm-3.2.3/super-intel.c:2497: var_compare_op: Comparing "prev_map" to null implies that "prev_map" might be null. >/builddir/build/BUILD/mdadm-3.2.3/super-intel.c:2522: var_deref_op: Dereferencing null variable "prev_map". > >Error: FORWARD_NULL: >/builddir/build/BUILD/mdadm-3.2.3/Create.c:265: var_compare_op: Comparing "st" to null implies that "st" might be null. >/builddir/build/BUILD/mdadm-3.2.3/Create.c:456: var_deref_op: Dereferencing null variable "st". > >Error: FORWARD_NULL: >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3932: assign_zero: Assigning: "mdstat" = 0. >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:4070: var_deref_op: Dereferencing null variable "mdstat". > >Error: FORWARD_NULL: >/builddir/build/BUILD/mdadm-3.2.3/Query.c:97: var_compare_op: Comparing "mddev" to null implies that "mddev" might be null. >/builddir/build/BUILD/mdadm-3.2.3/Query.c:119: var_deref_model: Passing null variable "mddev" to function "put_md_name", which dereferences it. >/builddir/build/BUILD/mdadm-3.2.3/util.c:780: deref_parm_in_call: Function "__coverity_strncmp" dereferences parameter "name". > >Error: FORWARD_NULL: >/builddir/build/BUILD/mdadm-3.2.3/Detail.c:54: assign_zero: Assigning: "info" = 0. >/builddir/build/BUILD/mdadm-3.2.3/Detail.c:427: var_deref_op: Dereferencing null variable "info". > >Error: FORWARD_NULL: >/builddir/build/BUILD/mdadm-3.2.3/Detail.c:375: var_compare_op: Comparing "e" to null implies that "e" might be null. >/builddir/build/BUILD/mdadm-3.2.3/Detail.c:375: var_deref_op: Dereferencing null variable "e". > >Error: FORWARD_NULL: >/builddir/build/BUILD/mdadm-3.2.3/Detail.c:112: var_compare_op: Comparing "st" to null implies that "st" might be null. >/builddir/build/BUILD/mdadm-3.2.3/Detail.c:427: var_deref_op: Dereferencing null variable "st". > >Error: FORWARD_NULL: >/builddir/build/BUILD/mdadm-3.2.3/Detail.c:575: var_compare_op: Comparing "st" to null implies that "st" might be null. >/builddir/build/BUILD/mdadm-3.2.3/Detail.c:577: var_deref_op: Dereferencing null variable "st". > >Error: FORWARD_NULL: >/builddir/build/BUILD/mdadm-3.2.3/super1.c:1065: var_compare_op: Comparing "di" to null implies that "di" might be null. >/builddir/build/BUILD/mdadm-3.2.3/super1.c:1199: var_deref_op: Dereferencing null variable "di". > >Error: INFINITE_LOOP: >/builddir/build/BUILD/mdadm-3.2.3/Monitor.c:214: loop_top: Top of the loop. >/builddir/build/BUILD/mdadm-3.2.3/Monitor.c:245: loop_bottom: Bottom of the loop. >/builddir/build/BUILD/mdadm-3.2.3/Monitor.c:239: loop_condition: "oneshot == 0" must remain true for the loop to continue. >/builddir/build/BUILD/mdadm-3.2.3/Monitor.c:214: loop_condition: "finished == 0" must remain true for the loop to continue. > >Error: MISSING_BREAK: >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:1173: unterminated_case: This case (value 0) is not terminated by a 'break' statement. >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:1175: fallthrough: The above case falls through to this one. > >Error: MISSING_BREAK: >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:1146: unterminated_case: This case (value 4) is not terminated by a 'break' statement. >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:1148: fallthrough: The above case falls through to this one. > >Error: MISSING_BREAK: >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:1169: unterminated_case: This case (value 4) is not terminated by a 'break' statement. >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:1171: fallthrough: The above case falls through to this one. > >Error: MISSING_BREAK: >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:1228: unterminated_case: This case (value 5) is not terminated by a 'break' statement. >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:1230: fallthrough: The above case falls through to this one. > >Error: MISSING_BREAK: >/builddir/build/BUILD/mdadm-3.2.3/util.c:200: unterminated_case: This case (value 75) is not terminated by a 'break' statement. >/builddir/build/BUILD/mdadm-3.2.3/util.c:202: fallthrough: The above case falls through to this one. > >Error: MISSING_BREAK: >/builddir/build/BUILD/mdadm-3.2.3/mdadm.c:766: unterminated_case: This case (value 524592) is not terminated by a 'break' statement. >/builddir/build/BUILD/mdadm-3.2.3/mdadm.c:768: fallthrough: The above case falls through to this one. > >Error: NEGATIVE_RETURNS: >/builddir/build/BUILD/mdadm-3.2.3/super-intel.c:4312: var_tested_neg: Assigning: "dfd" = a negative value. >/builddir/build/BUILD/mdadm-3.2.3/super-intel.c:4355: negative_returns: "dfd" is passed to a parameter that cannot be negative. > >Error: NEGATIVE_RETURNS: >/builddir/build/BUILD/mdadm-3.2.3/super-intel.c:4324: negative_return_fn: Function "dev_open(nm, 2)" returns a negative number. >/builddir/build/BUILD/mdadm-3.2.3/util.c:819: return_negative_constant: Explicitly returning negative value "-1". >/builddir/build/BUILD/mdadm-3.2.3/super-intel.c:4324: var_assign: Assigning: signed variable "dfd" = "dev_open". >/builddir/build/BUILD/mdadm-3.2.3/super-intel.c:4355: negative_returns: "dfd" is passed to a parameter that cannot be negative. > >Error: NEGATIVE_RETURNS: >/builddir/build/BUILD/mdadm-3.2.3/monitor.c:417: negative_returns: "mdi->state_fd" is passed to a parameter that cannot be negative. >/builddir/build/BUILD/mdadm-3.2.3/monitor.c:36: neg_sink_parm_call: Passing "fd" to "write", which cannot accept a negative. >/builddir/build/BUILD/mdadm-3.2.3/monitor.c:432: var_tested_neg: Assigning: "mdi->state_fd" = a negative value. >/builddir/build/BUILD/mdadm-3.2.3/monitor.c:437: negative_returns: "mdi->state_fd" is passed to a parameter that cannot be negative. >/builddir/build/BUILD/mdadm-3.2.3/monitor.c:36: neg_sink_parm_call: Passing "fd" to "write", which cannot accept a negative. > >Error: NEGATIVE_RETURNS: >/builddir/build/BUILD/mdadm-3.2.3/super-intel.c:5096: var_tested_neg: Assigning: "d->fd" = a negative value. >/builddir/build/BUILD/mdadm-3.2.3/super-intel.c:5089: negative_returns: "d->fd" is passed to a parameter that cannot be negative. >/builddir/build/BUILD/mdadm-3.2.3/super-intel.c:7402: neg_sink_parm_call: Passing "fd" to "get_dev_size", which cannot accept a negative. >/builddir/build/BUILD/mdadm-3.2.3/util.c:1088: neg_sink_parm_call: Passing "fd" to "fstat", which cannot accept a negative. > >Error: NEGATIVE_RETURNS: >/builddir/build/BUILD/mdadm-3.2.3/monitor.c:576: negative_return_fn: Function "open_dev_excl(container->devnum)" returns a negative number. >/builddir/build/BUILD/mdadm-3.2.3/util.c:872: var_tested_neg: Variable "fd" is negative. >/builddir/build/BUILD/mdadm-3.2.3/util.c:879: return_negative_variable: Explicitly returning negative variable "fd". >/builddir/build/BUILD/mdadm-3.2.3/monitor.c:576: var_assign: Assigning: signed variable "fd" = "open_dev_excl". >/builddir/build/BUILD/mdadm-3.2.3/monitor.c:592: negative_returns: "fd" is passed to a parameter that cannot be negative. > >Error: NEGATIVE_RETURNS: >/builddir/build/BUILD/mdadm-3.2.3/monitor.c:578: negative_return_fn: Function "open_dev_flags(container->devnum, 128)" returns a negative number. >/builddir/build/BUILD/mdadm-3.2.3/util.c:855: negative_return: Calling "dev_open", which might return a negative value. >/builddir/build/BUILD/mdadm-3.2.3/util.c:819: return_negative_constant: Explicitly returning negative value "-1". >/builddir/build/BUILD/mdadm-3.2.3/util.c:855: return_negative_fn: Returning the return value of "dev_open", which might be negative. >/builddir/build/BUILD/mdadm-3.2.3/monitor.c:578: var_assign: Assigning: signed variable "fd" = "open_dev_flags". >/builddir/build/BUILD/mdadm-3.2.3/monitor.c:592: negative_returns: "fd" is passed to a parameter that cannot be negative. > >Error: NEGATIVE_RETURNS: >/builddir/build/BUILD/mdadm-3.2.3/super-intel.c:5190: var_tested_neg: Assigning: "d->fd" = a negative value. >/builddir/build/BUILD/mdadm-3.2.3/super-intel.c:5174: negative_returns: "d->fd" is passed to a parameter that cannot be negative. >/builddir/build/BUILD/mdadm-3.2.3/util.c:1088: neg_sink_parm_call: Passing "fd" to "fstat", which cannot accept a negative. > >Error: NEGATIVE_RETURNS: >/builddir/build/BUILD/mdadm-3.2.3/super-intel.c:5128: var_tested_neg: Variable "d->index" tests negative. >/builddir/build/BUILD/mdadm-3.2.3/super-intel.c:5136: negative_returns: Using variable "d->index" as an index to array "mpb->disk". > >Error: NEGATIVE_RETURNS: >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:1361: negative_return_fn: Function "find_phys(ddf, ddf->dlist->disk.refnum)" returns a negative number. >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:1292: return_negative_constant: Explicitly returning negative value "-1". >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:1361: var_assign: Assigning: signed variable "info->disk.raid_disk" = "find_phys". >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:1363: negative_returns: Using variable "info->disk.raid_disk" as an index to array "ddf->phys->entries". > >Error: OVERRUN_DYNAMIC: >/builddir/build/BUILD/mdadm-3.2.3/super-intel.c:965: buffer_alloc: Calling allocating function "malloc" which allocated 16 bytes dictated by parameter 1. >/builddir/build/BUILD/mdadm-3.2.3/super-intel.c:965: var_assign: Assigning: "rv" = "malloc(16UL * (memberships + 1))". >/builddir/build/BUILD/mdadm-3.2.3/super-intel.c:968: alias: Assigning: "e" = "rv". >/builddir/build/BUILD/mdadm-3.2.3/super-intel.c:975: overrun-local: Overrunning dynamic array "e" of size 0 bytes at position 0. >/builddir/build/BUILD/mdadm-3.2.3/super-intel.c:1002: overrun-local: Overrunning dynamic array "e" of size 0 bytes at position 0. > >Error: OVERRUN_STATIC: >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:483: overrun-buffer-arg: Overrunning static array "anchor->pad2" of size 3 bytes by passing it to a function which indexes it with argument "399UL" at byte position 398. > >Error: OVERRUN_STATIC: >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:483: overrun-buffer-arg: Overrunning static array "hdr->pad2" of size 3 bytes by passing it to a function which indexes it with argument "399UL" at byte position 398. > >Error: RESOURCE_LEAK: >/builddir/build/BUILD/mdadm-3.2.3/Manage.c:1044: open_fn: Calling opening function "open_dev_excl". >/builddir/build/BUILD/mdadm-3.2.3/util.c:871: open_fn: Returning handle opened by function "dev_open". >/builddir/build/BUILD/mdadm-3.2.3/util.c:846: open_fn: Returning handle opened by function "open". >/builddir/build/BUILD/mdadm-3.2.3/util.c:846: var_assign: Assigning: "fd" = "open(dev, flags)". >/builddir/build/BUILD/mdadm-3.2.3/util.c:847: return_handle: Returning opened handle "fd". >/builddir/build/BUILD/mdadm-3.2.3/util.c:871: var_assign: Assigning: "fd" = "dev_open(buf, flags | 0x80)". >/builddir/build/BUILD/mdadm-3.2.3/util.c:873: return_handle: Returning opened handle "fd". >/builddir/build/BUILD/mdadm-3.2.3/Manage.c:1044: var_assign: Assigning: "lfd" = handle returned from "open_dev_excl(dnum)". >/builddir/build/BUILD/mdadm-3.2.3/Manage.c:1124: leaked_handle: Handle variable "lfd" going out of scope leaks the handle. > >Error: RESOURCE_LEAK: >/builddir/build/BUILD/mdadm-3.2.3/managemon.c:283: open_fn: Calling opening function "dev_open". >/builddir/build/BUILD/mdadm-3.2.3/util.c:846: open_fn: Returning handle opened by function "open". >/builddir/build/BUILD/mdadm-3.2.3/util.c:846: var_assign: Assigning: "fd" = "open(dev, flags)". >/builddir/build/BUILD/mdadm-3.2.3/util.c:847: return_handle: Returning opened handle "fd". >/builddir/build/BUILD/mdadm-3.2.3/managemon.c:283: var_assign: Assigning: "dfd" = handle returned from "dev_open(nm, 2)". >/builddir/build/BUILD/mdadm-3.2.3/managemon.c:291: noescape: Variable "dfd" is not closed or saved in function "*st2->ss->load_super". >/builddir/build/BUILD/mdadm-3.2.3/managemon.c:301: leaked_handle: Handle variable "dfd" going out of scope leaks the handle. >/builddir/build/BUILD/mdadm-3.2.3/managemon.c:307: noescape: Variable "dfd" is not closed or saved in function "*st->ss->add_to_super". >/builddir/build/BUILD/mdadm-3.2.3/managemon.c:311: leaked_handle: Handle variable "dfd" going out of scope leaks the handle. > >Error: RESOURCE_LEAK: >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3644: open_fn: Calling opening function "open". >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3644: var_assign: Assigning: "fd" = handle returned from "open(backup_file, 0)". >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3670: noescape: Variable "fd" is not closed or saved in function "read". >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3673: leaked_handle: Handle variable "fd" going out of scope leaks the handle. >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3679: leaked_handle: Handle variable "fd" going out of scope leaks the handle. >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3684: leaked_handle: Handle variable "fd" going out of scope leaks the handle. >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3690: leaked_handle: Handle variable "fd" going out of scope leaks the handle. >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3695: leaked_handle: Handle variable "fd" going out of scope leaks the handle. >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3713: leaked_handle: Handle variable "fd" going out of scope leaks the handle. >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3719: leaked_handle: Handle variable "fd" going out of scope leaks the handle. >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3729: leaked_handle: Handle variable "fd" going out of scope leaks the handle. >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3739: leaked_handle: Handle variable "fd" going out of scope leaks the handle. >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3759: noescape: Variable "fd" is not closed or saved in function "lseek64". >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3765: leaked_handle: Handle variable "fd" going out of scope leaks the handle. >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3768: noescape: Variable "fd" is not closed or saved in function "lseek64". >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3768: noescape: Variable "fd" is not closed or saved in function "read". >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3792: noescape: Variable "fd" is not closed or saved in function "restore_stripes". >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3805: leaked_handle: Handle variable "fd" going out of scope leaks the handle. > >Error: RESOURCE_LEAK: >/builddir/build/BUILD/mdadm-3.2.3/super-intel.c:5634: alloc_fn: Calling allocation function "opendir". >/builddir/build/BUILD/mdadm-3.2.3/super-intel.c:5634: var_assign: Assigning: "dir" = storage returned from "opendir("/sys/dev/block")". >/builddir/build/BUILD/mdadm-3.2.3/super-intel.c:5635: noescape: Variable "dir" is not freed or pointed-to in function "readdir". >/builddir/build/BUILD/mdadm-3.2.3/super-intel.c:5687: leaked_storage: Variable "dir" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK: >/builddir/build/BUILD/mdadm-3.2.3/bitmap.c:222: open_fn: Calling opening function "open". >/builddir/build/BUILD/mdadm-3.2.3/bitmap.c:222: var_assign: Assigning: "fd" = handle returned from "open(filename, 0)". >/builddir/build/BUILD/mdadm-3.2.3/bitmap.c:229: noescape: Variable "fd" is not closed or saved in function "guess_super". >/builddir/build/BUILD/mdadm-3.2.3/bitmap.c:236: leaked_handle: Handle variable "fd" going out of scope leaks the handle. > >Error: RESOURCE_LEAK: >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:610: alloc_fn: Calling allocation function "load_section". >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:514: alloc_arg: "posix_memalign" allocates memory that is stored into "buf". >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:530: noescape: Variable "buf" is not freed or pointed-to in function "read". >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:535: return_alloc: Returning allocated memory "buf". >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:610: leaked_storage: Variable "load_section(fd, super, NULL, super->active->phys_section_offset, super->active->phys_section_length, 1)" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK: >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:616: alloc_fn: Calling allocation function "load_section". >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:514: alloc_arg: "posix_memalign" allocates memory that is stored into "buf". >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:530: noescape: Variable "buf" is not freed or pointed-to in function "read". >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:535: return_alloc: Returning allocated memory "buf". >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:616: leaked_storage: Variable "load_section(fd, super, NULL, super->active->virt_section_offset, super->active->virt_section_length, 1)" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK: >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:691: alloc_fn: Calling allocation function "load_section". >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:514: alloc_arg: "posix_memalign" allocates memory that is stored into "buf". >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:530: noescape: Variable "buf" is not freed or pointed-to in function "read". >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:535: return_alloc: Returning allocated memory "buf". >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:691: leaked_storage: Variable "load_section(fd, super, NULL, super->active->config_section_offset, super->active->config_section_length, 0)" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK: >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:478: open_fn: Calling opening function "open". >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:478: var_assign: Assigning: "bitmap_fd" = handle returned from "open(file, 2)". >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:484: noescape: Variable "bitmap_fd" is not closed or saved in function "ioctl". >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:484: noescape: Variable "bitmap_fd" is not freed or pointed-to in function "ioctl". >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:492: leaked_handle: Handle variable "bitmap_fd" going out of scope leaks the handle. >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:494: leaked_handle: Handle variable "bitmap_fd" going out of scope leaks the handle. > >Error: RESOURCE_LEAK: >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:1504: open_fn: Calling opening function "open_dev_excl". >/builddir/build/BUILD/mdadm-3.2.3/util.c:871: open_fn: Returning handle opened by function "dev_open". >/builddir/build/BUILD/mdadm-3.2.3/util.c:846: open_fn: Returning handle opened by function "open". >/builddir/build/BUILD/mdadm-3.2.3/util.c:846: var_assign: Assigning: "fd" = "open(dev, flags)". >/builddir/build/BUILD/mdadm-3.2.3/util.c:847: return_handle: Returning opened handle "fd". >/builddir/build/BUILD/mdadm-3.2.3/util.c:871: var_assign: Assigning: "fd" = "dev_open(buf, flags | 0x80)". >/builddir/build/BUILD/mdadm-3.2.3/util.c:873: return_handle: Returning opened handle "fd". >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:1504: var_assign: Assigning: "cfd" = handle returned from "open_dev_excl(st->container_dev)". >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:1521: noescape: Variable "cfd" is not closed or saved in function "*st->ss->load_container". >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:1527: leaked_handle: Handle variable "cfd" going out of scope leaks the handle. >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:1555: leaked_handle: Handle variable "cfd" going out of scope leaks the handle. >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:1577: leaked_handle: Handle variable "cfd" going out of scope leaks the handle. >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:1590: leaked_handle: Handle variable "cfd" going out of scope leaks the handle. >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:1596: leaked_handle: Handle variable "cfd" going out of scope leaks the handle. >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:1601: leaked_handle: Handle variable "cfd" going out of scope leaks the handle. >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:1973: leaked_handle: Handle variable "cfd" going out of scope leaks the handle. > >Error: RESOURCE_LEAK: >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:1508: open_fn: Calling opening function "open_dev_excl". >/builddir/build/BUILD/mdadm-3.2.3/util.c:871: open_fn: Returning handle opened by function "dev_open". >/builddir/build/BUILD/mdadm-3.2.3/util.c:846: open_fn: Returning handle opened by function "open". >/builddir/build/BUILD/mdadm-3.2.3/util.c:846: var_assign: Assigning: "fd" = "open(dev, flags)". >/builddir/build/BUILD/mdadm-3.2.3/util.c:847: return_handle: Returning opened handle "fd". >/builddir/build/BUILD/mdadm-3.2.3/util.c:871: var_assign: Assigning: "fd" = "dev_open(buf, flags | 0x80)". >/builddir/build/BUILD/mdadm-3.2.3/util.c:873: return_handle: Returning opened handle "fd". >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:1508: var_assign: Assigning: "cfd" = handle returned from "open_dev_excl(st->devnum)". >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:1509: var_assign: Assigning: "fd" = "cfd". >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:1521: noescape: Variable "cfd" is not closed or saved in function "*st->ss->load_container". >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:1527: leaked_handle: Handle variable "cfd" going out of scope leaks the handle. >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:1527: leaked_handle: Returning without closing handle "fd"leaks it. >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:1555: leaked_handle: Handle variable "cfd" going out of scope leaks the handle. >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:1555: leaked_handle: Returning without closing handle "fd"leaks it. >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:1577: leaked_handle: Handle variable "cfd" going out of scope leaks the handle. >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:1577: leaked_handle: Returning without closing handle "fd"leaks it. >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:1580: noescape: Variable "fd" is not closed or saved in function "sysfs_read". >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:1590: leaked_handle: Handle variable "cfd" going out of scope leaks the handle. >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:1590: leaked_handle: Returning without closing handle "fd"leaks it. > >Error: RESOURCE_LEAK: >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:243: open_fn: Calling opening function "dev_open". >/builddir/build/BUILD/mdadm-3.2.3/util.c:846: open_fn: Returning handle opened by function "open". >/builddir/build/BUILD/mdadm-3.2.3/util.c:846: var_assign: Assigning: "fd" = "open(dev, flags)". >/builddir/build/BUILD/mdadm-3.2.3/util.c:847: return_handle: Returning opened handle "fd". >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:243: var_assign: Assigning: "fd2" = handle returned from "dev_open(dv, 2)". >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:248: noescape: Variable "fd2" is not closed or saved in function "*st->ss->load_super". >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:251: leaked_handle: Handle variable "fd2" going out of scope leaks the handle. > >Error: RESOURCE_LEAK: >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:2922: open_fn: Calling opening function "dev_open". >/builddir/build/BUILD/mdadm-3.2.3/util.c:846: open_fn: Returning handle opened by function "open". >/builddir/build/BUILD/mdadm-3.2.3/util.c:846: var_assign: Assigning: "fd" = "open(dev, flags)". >/builddir/build/BUILD/mdadm-3.2.3/util.c:847: return_handle: Returning opened handle "fd". >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:2922: var_assign: Assigning: "dfd" = handle returned from "dev_open(nm, 2)". >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:2925: noescape: Variable "dfd" is not closed or saved in function "load_ddf_headers". >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:2929: leaked_handle: Handle variable "dfd" going out of scope leaks the handle. > >Error: RESOURCE_LEAK: >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:2884: alloc_arg: Calling allocation function "posix_memalign" on "super". >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:2886: noescape: Variable "super" is not freed or pointed-to in function "memset". >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:2894: leaked_storage: Variable "super" going out of scope leaks the storage it points to. >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:2895: noescape: Variable "super" is not freed or pointed-to in function "load_ddf_headers". >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:538:55: noescape: "load_ddf_headers" does not free or save its pointer parameter "super". >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:2908: leaked_storage: Variable "super" going out of scope leaks the storage it points to. >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:2913: leaked_storage: Variable "super" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK: >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:2876: alloc_fn: Calling allocation function "sysfs_read". >/builddir/build/BUILD/mdadm-3.2.3/sysfs.c:108: alloc_fn: Storage is returned from allocation function "malloc". >/builddir/build/BUILD/mdadm-3.2.3/sysfs.c:108: var_assign: Assigning: "sra" = "malloc(392UL)". >/builddir/build/BUILD/mdadm-3.2.3/sysfs.c:111: noescape: Variable "sra" is not freed or pointed-to in function "memset". >/builddir/build/BUILD/mdadm-3.2.3/sysfs.c:112: noescape: Variable "sra" is not freed or pointed-to in function "sysfs_init". >/builddir/build/BUILD/mdadm-3.2.3/sysfs.c:82:32: noescape: "sysfs_init" does not free or save its pointer parameter "mdi". >/builddir/build/BUILD/mdadm-3.2.3/sysfs.c:235: return_alloc: Returning allocated memory "sra". >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:2876: var_assign: Assigning: "sra" = storage returned from "sysfs_read(fd, 0, 9437249UL)". >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:2882: leaked_storage: Variable "sra" going out of scope leaks the storage it points to. >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:2885: leaked_storage: Variable "sra" going out of scope leaks the storage it points to. >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:2894: leaked_storage: Variable "sra" going out of scope leaks the storage it points to. >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:2908: leaked_storage: Variable "sra" going out of scope leaks the storage it points to. >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:2913: leaked_storage: Variable "sra" going out of scope leaks the storage it points to. >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:2924: leaked_storage: Variable "sra" going out of scope leaks the storage it points to. >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:2929: leaked_storage: Variable "sra" going out of scope leaks the storage it points to. >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:2939: leaked_storage: Variable "sra" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK: >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:2848: alloc_fn: Calling allocation function "get_extents". >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:1927: alloc_fn: Storage is returned from allocation function "malloc". >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:1927: var_assign: Assigning: "rv" = "malloc(16UL * (ddf->max_part + 2U))". >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:1944: noescape: Variable "rv" is not freed or pointed-to in function "qsort". >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:1948: return_alloc: Returning allocated memory "rv". >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:2848: var_assign: Assigning: "e" = storage returned from "get_extents(ddf, dl)". >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:2862: leaked_storage: Variable "e" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK: >/builddir/build/BUILD/mdadm-3.2.3/mdmon.c:516: open_fn: Calling opening function "dup". >/builddir/build/BUILD/mdadm-3.2.3/mdmon.c:516: var_assign: Assigning: "ignore" = handle returned from "dup(0)". >/builddir/build/BUILD/mdadm-3.2.3/mdmon.c:519: overwrite_var: Overwriting handle "ignore" in call "ignore = dup(0)" leaks the handle. > >Error: RESOURCE_LEAK: >/builddir/build/BUILD/mdadm-3.2.3/mdmon.c:364: open_fn: Calling opening function "open_dev". >/builddir/build/BUILD/mdadm-3.2.3/util.c:860: open_fn: Returning handle opened by function "open_dev_flags". >/builddir/build/BUILD/mdadm-3.2.3/util.c:855: open_fn: Returning handle opened by function "dev_open". >/builddir/build/BUILD/mdadm-3.2.3/util.c:846: open_fn: Returning handle opened by function "open". >/builddir/build/BUILD/mdadm-3.2.3/util.c:846: var_assign: Assigning: "fd" = "open(dev, flags)". >/builddir/build/BUILD/mdadm-3.2.3/util.c:847: return_handle: Returning opened handle "fd". >/builddir/build/BUILD/mdadm-3.2.3/util.c:855: return_handle_fn: Directly returning handle opened by "dev_open". >/builddir/build/BUILD/mdadm-3.2.3/util.c:860: return_handle_fn: Directly returning handle opened by "open_dev_flags". >/builddir/build/BUILD/mdadm-3.2.3/mdmon.c:364: var_assign: Assigning: "mdfd" = handle returned from "open_dev(devnum)". >/builddir/build/BUILD/mdadm-3.2.3/mdmon.c:370: noescape: Variable "mdfd" is not closed or saved in function "md_get_version". >/builddir/build/BUILD/mdadm-3.2.3/mdmon.c:373: leaked_handle: Handle variable "mdfd" going out of scope leaks the handle. >/builddir/build/BUILD/mdadm-3.2.3/mdmon.c:380: leaked_handle: Handle variable "mdfd" going out of scope leaks the handle. >/builddir/build/BUILD/mdadm-3.2.3/mdmon.c:386: leaked_handle: Handle variable "mdfd" going out of scope leaks the handle. >/builddir/build/BUILD/mdadm-3.2.3/mdmon.c:396: leaked_handle: Handle variable "mdfd" going out of scope leaks the handle. > >Error: RESOURCE_LEAK: >/builddir/build/BUILD/mdadm-3.2.3/Manage.c:272: open_fn: Calling opening function "open_dev_excl". >/builddir/build/BUILD/mdadm-3.2.3/util.c:871: open_fn: Returning handle opened by function "dev_open". >/builddir/build/BUILD/mdadm-3.2.3/util.c:846: open_fn: Returning handle opened by function "open". >/builddir/build/BUILD/mdadm-3.2.3/util.c:846: var_assign: Assigning: "fd" = "open(dev, flags)". >/builddir/build/BUILD/mdadm-3.2.3/util.c:847: return_handle: Returning opened handle "fd". >/builddir/build/BUILD/mdadm-3.2.3/util.c:871: var_assign: Assigning: "fd" = "dev_open(buf, flags | 0x80)". >/builddir/build/BUILD/mdadm-3.2.3/util.c:873: return_handle: Returning opened handle "fd". >/builddir/build/BUILD/mdadm-3.2.3/Manage.c:272: var_assign: Assigning: "fd" = handle returned from "open_dev_excl(devnum)". >/builddir/build/BUILD/mdadm-3.2.3/Manage.c:317: noescape: Variable "fd" is not closed or saved in function "ioctl". >/builddir/build/BUILD/mdadm-3.2.3/Manage.c:341: noescape: Variable "fd" is not closed or saved in function "ioctl". >/builddir/build/BUILD/mdadm-3.2.3/Manage.c:363: leaked_handle: Returning without closing handle "fd"leaks it. > >Error: RESOURCE_LEAK: >/builddir/build/BUILD/mdadm-3.2.3/Manage.c:232: open_fn: Calling opening function "open". >/builddir/build/BUILD/mdadm-3.2.3/Manage.c:232: var_assign: Assigning: "fd" = handle returned from "open(devname, 128)". >/builddir/build/BUILD/mdadm-3.2.3/Manage.c:233: noescape: Variable "fd" is not closed or saved in function "fd2devnum". >/builddir/build/BUILD/mdadm-3.2.3/Manage.c:244: noescape: Variable "fd" is not closed or saved in function "sysfs_read". >/builddir/build/BUILD/mdadm-3.2.3/Manage.c:317: noescape: Variable "fd" is not closed or saved in function "ioctl". >/builddir/build/BUILD/mdadm-3.2.3/Manage.c:341: noescape: Variable "fd" is not closed or saved in function "ioctl". >/builddir/build/BUILD/mdadm-3.2.3/Manage.c:363: leaked_handle: Returning without closing handle "fd"leaks it. > >Error: RESOURCE_LEAK: >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:2678: alloc_fn: Calling allocation function "sysfs_read". >/builddir/build/BUILD/mdadm-3.2.3/sysfs.c:108: alloc_fn: Storage is returned from allocation function "malloc". >/builddir/build/BUILD/mdadm-3.2.3/sysfs.c:108: var_assign: Assigning: "sra" = "malloc(392UL)". >/builddir/build/BUILD/mdadm-3.2.3/sysfs.c:111: noescape: Variable "sra" is not freed or pointed-to in function "memset". >/builddir/build/BUILD/mdadm-3.2.3/sysfs.c:112: noescape: Variable "sra" is not freed or pointed-to in function "sysfs_init". >/builddir/build/BUILD/mdadm-3.2.3/sysfs.c:82:32: noescape: "sysfs_init" does not free or save its pointer parameter "mdi". >/builddir/build/BUILD/mdadm-3.2.3/sysfs.c:235: return_alloc: Returning allocated memory "sra". >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:2678: var_assign: Assigning: "sra" = storage returned from "sysfs_read(fd, 0, 64UL)". >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:2694: leaked_storage: Variable "sra" going out of scope leaks the storage it points to. > >Error: RESOURCE_LEAK: >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:2703: open_fn: Calling opening function "open_container". >/builddir/build/BUILD/mdadm-3.2.3/util.c:1317: open_fn: Returning handle opened by function "dev_open". >/builddir/build/BUILD/mdadm-3.2.3/util.c:846: open_fn: Returning handle opened by function "open". >/builddir/build/BUILD/mdadm-3.2.3/util.c:846: var_assign: Assigning: "fd" = "open(dev, flags)". >/builddir/build/BUILD/mdadm-3.2.3/util.c:847: return_handle: Returning opened handle "fd". >/builddir/build/BUILD/mdadm-3.2.3/util.c:1317: var_assign: Assigning: "dfd" = "dev_open(buf, 0)". >/builddir/build/BUILD/mdadm-3.2.3/util.c:1320: return_handle: Returning opened handle "dfd". >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:2703: var_assign: Assigning: "cfd" = handle returned from "open_container(fd)". >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:2711: noescape: Variable "cfd" is not closed or saved in function "sysfs_read". >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:2730: leaked_handle: Handle variable "cfd" going out of scope leaks the handle. > >Error: RESOURCE_LEAK: >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:2711: alloc_fn: Calling allocation function "sysfs_read". >/builddir/build/BUILD/mdadm-3.2.3/sysfs.c:108: alloc_fn: Storage is returned from allocation function "malloc". >/builddir/build/BUILD/mdadm-3.2.3/sysfs.c:108: var_assign: Assigning: "sra" = "malloc(392UL)". >/builddir/build/BUILD/mdadm-3.2.3/sysfs.c:111: noescape: Variable "sra" is not freed or pointed-to in function "memset". >/builddir/build/BUILD/mdadm-3.2.3/sysfs.c:112: noescape: Variable "sra" is not freed or pointed-to in function "sysfs_init". >/builddir/build/BUILD/mdadm-3.2.3/sysfs.c:82:32: noescape: "sysfs_init" does not free or save its pointer parameter "mdi". >/builddir/build/BUILD/mdadm-3.2.3/sysfs.c:235: return_alloc: Returning allocated memory "sra". >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:2711: var_assign: Assigning: "sra" = storage returned from "sysfs_read(cfd, 0, 64UL)". >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:2723: leaked_storage: Variable "sra" going out of scope leaks the storage it points to. >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:2730: leaked_storage: Variable "sra" going out of scope leaks the storage it points to. >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:2732: leaked_storage: Variable "sra" going out of scope leaks the storage it points to. > >Error: REVERSE_INULL: >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:3212: deref_ptr: Directly dereferencing pointer "vc". >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:3217: check_after_deref: Dereferencing "vc" before a null check. > >Error: STRING_NULL: >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:551: string_null_argument: Function "read" does not terminate string "super->anchor". >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:573: string_null: Passing unterminated string "super->anchor.revision" to "fprintf". > >Error: STRING_OVERFLOW: >/builddir/build/BUILD/mdadm-3.2.3/sysfs.c:279: string_overflow: You might overrun the 20 byte destination string "dev->sys_name" by writing 256 bytes from "de->d_name". > >Error: STRING_OVERFLOW: >/builddir/build/BUILD/mdadm-3.2.3/sysfs.c:74: fixed_size_dest: You might overrun the 50 byte fixed-size string "fname" by copying "attr" without checking the length. >/builddir/build/BUILD/mdadm-3.2.3/sysfs.c:74: parameter_as_source: Note: This defect has an elevated risk because the source argument is a parameter of the current function. > >Error: STRING_OVERFLOW: >/builddir/build/BUILD/mdadm-3.2.3/sysfs.c:71: fixed_size_dest: You might overrun the 50 byte fixed-size string "fname" by copying "devname" without checking the length. >/builddir/build/BUILD/mdadm-3.2.3/sysfs.c:71: parameter_as_source: Note: This defect has an elevated risk because the source argument is a parameter of the current function. > >Error: STRING_OVERFLOW: >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:1300: fixed_size_dest: You might overrun the 40 byte fixed-size string "layout" by copying "ls" without checking the length. > >Error: STRING_OVERFLOW: >/builddir/build/BUILD/mdadm-3.2.3/mapfile.c:180: fixed_size_dest: You might overrun the 20 byte fixed-size string "me->metadata" by copying "metadata" without checking the length. >/builddir/build/BUILD/mdadm-3.2.3/mapfile.c:180: parameter_as_source: Note: This defect has an elevated risk because the source argument is a parameter of the current function. > >Error: STRING_OVERFLOW: >/builddir/build/BUILD/mdadm-3.2.3/mapfile.c:442: fixed_size_dest: You might overrun the 100 byte fixed-size string "namebuf" by copying "path" without checking the length. > >Error: STRING_OVERFLOW: >/builddir/build/BUILD/mdadm-3.2.3/managemon.c:658: fixed_size_dest: You might overrun the 20 byte fixed-size string "new->info.sys_name" by copying the return value of "devnum2devname" without checking the length. > >Error: STRING_OVERFLOW: >/builddir/build/BUILD/mdadm-3.2.3/mapfile.c:245: fixed_size_dest: You might overrun the 20 byte fixed-size string "mp->metadata" by copying "metadata" without checking the length. >/builddir/build/BUILD/mdadm-3.2.3/mapfile.c:245: parameter_as_source: Note: This defect has an elevated risk because the source argument is a parameter of the current function. > >Error: STRING_OVERFLOW: >/builddir/build/BUILD/mdadm-3.2.3/mdopen.c:316: fixed_size_dest: You might overrun the 400 byte fixed-size string "chosen" by copying "dev" without checking the length. >/builddir/build/BUILD/mdadm-3.2.3/mdopen.c:316: parameter_as_source: Note: This defect has an elevated risk because the source argument is a parameter of the current function. > >Error: STRING_OVERFLOW: >/builddir/build/BUILD/mdadm-3.2.3/Incremental.c:1436: fixed_size_dest: You might overrun the 1024 byte fixed-size string "chosen_name" by copying the return value of "devnum2devname" without checking the length. > >Error: STRING_OVERFLOW: >/builddir/build/BUILD/mdadm-3.2.3/Incremental.c:1434: fixed_size_dest: You might overrun the 1024 byte fixed-size string "chosen_name" by copying "mp->path" without checking the length. > >Error: STRING_OVERFLOW: >/builddir/build/BUILD/mdadm-3.2.3/Incremental.c:354: fixed_size_dest: You might overrun the 1024 byte fixed-size string "chosen_name" by copying the return value of "devnum2devname" without checking the length. > >Error: STRING_OVERFLOW: >/builddir/build/BUILD/mdadm-3.2.3/Incremental.c:352: fixed_size_dest: You might overrun the 1024 byte fixed-size string "chosen_name" by copying "mp->path" without checking the length. > >Error: STRING_OVERFLOW: >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:1860: fixed_size_dest: You might overrun the 40 byte fixed-size string "l" by copying the return value of "map_num" without checking the length. > >Error: STRING_OVERFLOW: >/builddir/build/BUILD/mdadm-3.2.3/super-ddf.c:3071: fixed_size_dest: You might overrun the 33 byte fixed-size string "dev->name" by copying "(*d).devname" without checking the length. > >Error: TAINTED_SCALAR: >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3329: tainted_data_argument: Calling function "read" taints argument "bsb2". >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3345: var_assign_var: Assigning: "len" = "bsb2.length * 512ULL". Both are now tainted. >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3347: lower_bounds: Checking lower bounds of unsigned scalar "len" by "abuflen < len". >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3350: var_assign_var: Assigning: "abuflen" = "len". Both are now tainted. >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3360: tainted_data: Passing tainted variable "len" to a tainted sink. > >Error: TAINTED_SCALAR: >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3329: tainted_data_argument: Calling function "read" taints argument "bsb2". >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3382: var_assign_var: Assigning: "len" = "bsb2.length2 * 512ULL". Both are now tainted. >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3384: lower_bounds: Checking lower bounds of unsigned scalar "len" by "abuflen < len". >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3387: var_assign_var: Assigning: "abuflen" = "len". Both are now tainted. >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3388: tainted_data: Passing tainted variable "abuflen" to a tainted sink. > >Error: TAINTED_SCALAR: >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3329: tainted_data_argument: Calling function "read" taints argument "bsb2". >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3331: tainted_data_transitive: Call to function "bsb_csum" with tainted argument "bsb2" returns tainted data. >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:530: var_assign_alias: Assigning: "csum" = "(csum << 3) + buf[0]". Both are now tainted. >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:531: return_tainted_data: Returning tainted variable "csum". >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3345: var_assign_var: Assigning: "len" = "bsb2.length * 512ULL". Both are now tainted. >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3347: lower_bounds: Checking lower bounds of unsigned scalar "len" by "abuflen < len". >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3350: var_assign_var: Assigning: "abuflen" = "len". Both are now tainted. >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3360: tainted_data: Passing tainted variable "len" to a tainted sink. > >Error: TAINTED_SCALAR: >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3329: tainted_data_argument: Calling function "read" taints argument "bsb2". >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3331: tainted_data_transitive: Call to function "bsb_csum" with tainted argument "bsb2" returns tainted data. >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:530: var_assign_alias: Assigning: "csum" = "(csum << 3) + buf[0]". Both are now tainted. >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:531: return_tainted_data: Returning tainted variable "csum". >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3382: var_assign_var: Assigning: "len" = "bsb2.length2 * 512ULL". Both are now tainted. >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3384: lower_bounds: Checking lower bounds of unsigned scalar "len" by "abuflen < len". >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3387: var_assign_var: Assigning: "abuflen" = "len". Both are now tainted. >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3388: tainted_data: Passing tainted variable "abuflen" to a tainted sink. > >Error: TAINTED_SCALAR: >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3329: tainted_data_argument: Calling function "read" taints argument "bsb2". >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3336: tainted_data_transitive: Call to function "bsb_csum" with tainted argument "bsb2" returns tainted data. >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:530: var_assign_alias: Assigning: "csum" = "(csum << 3) + buf[0]". Both are now tainted. >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:531: return_tainted_data: Returning tainted variable "csum". >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3345: var_assign_var: Assigning: "len" = "bsb2.length * 512ULL". Both are now tainted. >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3347: lower_bounds: Checking lower bounds of unsigned scalar "len" by "abuflen < len". >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3350: var_assign_var: Assigning: "abuflen" = "len". Both are now tainted. >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3360: tainted_data: Passing tainted variable "len" to a tainted sink. > >Error: TAINTED_SCALAR: >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3329: tainted_data_argument: Calling function "read" taints argument "bsb2". >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3336: tainted_data_transitive: Call to function "bsb_csum" with tainted argument "bsb2" returns tainted data. >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:530: var_assign_alias: Assigning: "csum" = "(csum << 3) + buf[0]". Both are now tainted. >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:531: return_tainted_data: Returning tainted variable "csum". >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3382: var_assign_var: Assigning: "len" = "bsb2.length2 * 512ULL". Both are now tainted. >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3384: lower_bounds: Checking lower bounds of unsigned scalar "len" by "abuflen < len". >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3387: var_assign_var: Assigning: "abuflen" = "len". Both are now tainted. >/builddir/build/BUILD/mdadm-3.2.3/Grow.c:3388: tainted_data: Passing tainted variable "abuflen" to a tainted sink. > >Error: TAINTED_SCALAR: >/builddir/build/BUILD/mdadm-3.2.3/super-intel.c:1627: tainted_data_argument: Calling function "load_sys" taints argument "buf". >/builddir/build/BUILD/mdadm-3.2.3/sysfs.c:36: tainted_data_argument: Calling function "read" taints parameter "*buf". >/builddir/build/BUILD/mdadm-3.2.3/super-intel.c:1628: tainted_data_transitive: Call to function "strncpy" with tainted argument "buf" transitively taints "vendor". >/builddir/build/BUILD/mdadm-3.2.3/super-intel.c:1630: var_assign_var: Assigning: "c" = "(char *)&vendor[63UL]". Both are now tainted. >/builddir/build/BUILD/mdadm-3.2.3/super-intel.c:1631: tainted_data: Using tainted variable "(int)*c" as an index to pointer "*__ctype_b_loc()". > >Error: TAINTED_SCALAR: >/builddir/build/BUILD/mdadm-3.2.3/super-intel.c:1636: tainted_data_argument: Calling function "load_sys" taints argument "buf". >/builddir/build/BUILD/mdadm-3.2.3/sysfs.c:36: tainted_data_argument: Calling function "read" taints parameter "*buf". >/builddir/build/BUILD/mdadm-3.2.3/super-intel.c:1637: tainted_data_transitive: Call to function "strncpy" with tainted argument "buf" transitively taints "model". >/builddir/build/BUILD/mdadm-3.2.3/super-intel.c:1639: var_assign_var: Assigning: "c" = "(char *)&model[63UL]". Both are now tainted. >/builddir/build/BUILD/mdadm-3.2.3/super-intel.c:1640: tainted_data: Using tainted variable "(int)*c" as an index to pointer "*__ctype_b_loc()". > >Error: TOCTOU: >/builddir/build/BUILD/mdadm-3.2.3/lib.c:211: fs_check_call: Calling function "lstat" to perform check on "dev". >/builddir/build/BUILD/mdadm-3.2.3/lib.c:214: toctou: Calling function "nftw" that uses "dev" after a check function. This can cause a time-of-check, time-of-use race condition. > >Error: TOCTOU: >/builddir/build/BUILD/mdadm-3.2.3/mdopen.c:74: fs_check_call: Calling function "stat" to perform check on "name". >/builddir/build/BUILD/mdadm-3.2.3/mdopen.c:79: toctou: Calling function "unlink" that uses "name" after a check function. This can cause a time-of-check, time-of-use race condition. >/builddir/build/BUILD/mdadm-3.2.3/mdopen.c:84: toctou: Calling function "mknod" that uses "name" after a check function. This can cause a time-of-check, time-of-use race condition. > >Error: TOCTOU: >/builddir/build/BUILD/mdadm-3.2.3/util.c:744: fs_check_call: Calling function "stat" to perform check on "devname". >/builddir/build/BUILD/mdadm-3.2.3/util.c:766: toctou: Calling function "mknod" that uses "devname" after a check function. This can cause a time-of-check, time-of-use race condition. > >Error: TOCTOU: >/builddir/build/BUILD/mdadm-3.2.3/util.c:757: fs_check_call: Calling function "stat" to perform check on "devname". >/builddir/build/BUILD/mdadm-3.2.3/util.c:766: toctou: Calling function "mknod" that uses "devname" after a check function. This can cause a time-of-check, time-of-use race condition. > >Error: TOCTOU: >/builddir/build/BUILD/mdadm-3.2.3/util.c:770: fs_check_call: Calling function "stat" to perform check on "devname". >/builddir/build/BUILD/mdadm-3.2.3/util.c:774: toctou: Calling function "unlink" that uses "devname" after a check function. This can cause a time-of-check, time-of-use race condition. > >Error: TOCTOU: >/builddir/build/BUILD/mdadm-3.2.3/mdopen.c:327: fs_check_call: Calling function "lstat" to perform check on "devname". >/builddir/build/BUILD/mdadm-3.2.3/mdopen.c:336: toctou: Calling function "mknod" that uses "devname" after a check function. This can cause a time-of-check, time-of-use race condition. >/builddir/build/BUILD/mdadm-3.2.3/mdopen.c:377: toctou: Calling function "symlink" that uses "devname" after a check function. This can cause a time-of-check, time-of-use race condition. > >Error: TOCTOU: >/builddir/build/BUILD/mdadm-3.2.3/bitmap.c:216: fs_check_call: Calling function "stat" to perform check on "filename". >/builddir/build/BUILD/mdadm-3.2.3/bitmap.c:222: toctou: Calling function "open" that uses "filename" after a check function. This can cause a time-of-check, time-of-use race condition. >/builddir/build/BUILD/mdadm-3.2.3/bitmap.c:243: toctou: Calling function "open" that uses "filename" after a check function. This can cause a time-of-check, time-of-use race condition. > >Error: TOCTOU: >/builddir/build/BUILD/mdadm-3.2.3/Manage.c:168: fs_check_call: Calling function "readlink" to perform check on "path2". >/builddir/build/BUILD/mdadm-3.2.3/Manage.c:171: toctou: Calling function "unlink" that uses "path2" after a check function. This can cause a time-of-check, time-of-use race condition. > >Error: TOCTOU: >/builddir/build/BUILD/mdadm-3.2.3/bitmap.c:359: fs_check_call: Calling function "access" to perform check on "filename". >/builddir/build/BUILD/mdadm-3.2.3/bitmap.c:364: toctou: Calling function "fopen" that uses "filename" after a check function. This can cause a time-of-check, time-of-use race condition. > >Error: TOCTOU: >/builddir/build/BUILD/mdadm-3.2.3/Build.c:171: fs_check_call: Calling function "stat" to perform check on "dv->devname". >/builddir/build/BUILD/mdadm-3.2.3/Build.c:181: toctou: Calling function "open" that uses "dv->devname" after a check function. This can cause a time-of-check, time-of-use race condition. > >Error: UNINIT: >/builddir/build/BUILD/mdadm-3.2.3/mdmon.c:355: var_decl: Declaring variable "act" without initializer. >/builddir/build/BUILD/mdadm-3.2.3/mdmon.c:456: uninit_use_in_call: Using uninitialized value "act.sa_mask": field "act.sa_mask".__val is uninitialized when calling "sigaction". > >Error: UNUSED_VALUE: >/builddir/build/BUILD/mdadm-3.2.3/super-intel.c:9014: returned_pointer: Pointer "map" returned by "get_imsm_map(dev, 0)" is never used. > >Error: USE_AFTER_FREE: >/builddir/build/BUILD/mdadm-3.2.3/util.c:1774: freed_arg: "sysfs_free" frees "*dp". >/builddir/build/BUILD/mdadm-3.2.3/sysfs.c:55: freed_arg: "free" frees parameter "sra". >/builddir/build/BUILD/mdadm-3.2.3/util.c:1749: alias: Assigning: "d" = "*dp". Now both point to the same storage. >/builddir/build/BUILD/mdadm-3.2.3/util.c:1750: deref_after_free: Dereferencing freed pointer "d". > >Error: USE_AFTER_FREE: >/builddir/build/BUILD/mdadm-3.2.3/super-intel.c:4203: freed_arg: "free_imsm" frees "super". >/builddir/build/BUILD/mdadm-3.2.3/super-intel.c:3732: freed_arg: "free" frees parameter "super". >/builddir/build/BUILD/mdadm-3.2.3/super-intel.c:4244: use_after_free: Using freed pointer "super".
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 816642
:
580509
| 580510