Task #133026 - added.err

back to task #133026
download
Error: GCC_ANALYZER_WARNING (CWE-457):
xen-4.21.1/xen/arch/x86/hvm/vmx/vvmx.c:1857:10: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘decode.<U61e0>.<U60a0>.len’
xen-4.21.1/xen/arch/x86/hvm/vmx/vvmx.c:1842:12: enter_function: entry to ‘nvmx_handle_vmptrst’
xen-4.21.1/xen/arch/x86/hvm/vmx/vvmx.c:1851:10: call_function: calling ‘decode_vmx_inst’ from ‘nvmx_handle_vmptrst’
xen-4.21.1/xen/arch/x86/hvm/vmx/vvmx.c:1851:10: return_function: returning to ‘nvmx_handle_vmptrst’ from ‘decode_vmx_inst’
xen-4.21.1/xen/arch/x86/hvm/vmx/vvmx.c:1852:8: branch_false: following ‘false’ branch (when ‘rc == 0’)...
xen-4.21.1/xen/arch/x86/hvm/vmx/vvmx.c:1855:11: branch_false: ...to here
xen-4.21.1/xen/arch/x86/hvm/vmx/vvmx.c:1857:10: danger: use of uninitialized value ‘decode.<U61e0>.<U60a0>.len’ here
# 1855|       gpa = nvcpu->nv_vvmcxaddr;
# 1856|   
# 1857|->     rc = hvm_copy_to_guest_linear(decode.mem, &gpa, decode.len, 0, &pfinfo);
# 1858|       if ( rc == HVMTRANS_bad_linear_to_gfn )
# 1859|           hvm_inject_page_fault(pfinfo.ec, pfinfo.linear);

Error: GCC_ANALYZER_WARNING (CWE-476):
xen-4.21.1/xen/common/domctl.c:215:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘d’
xen-4.21.1/xen/common/domctl.c:304:6: enter_function: entry to ‘do_domctl’
xen-4.21.1/xen/common/domctl.c:311:8: branch_false: following ‘false’ branch...
xen-4.21.1/xen/common/domctl.c:314:10: branch_false: ...to here
xen-4.21.1/xen/common/domctl.c:314:8: branch_false: following ‘false’ branch...
xen-4.21.1/xen/common/domctl.c:318:5: branch_false: ...to here
xen-4.21.1/xen/common/domctl.c:566:11: call_function: inlined call to ‘xsm_domctl’ from ‘do_domctl’
xen-4.21.1/xen/common/domctl.c:570:8: branch_true: following ‘true’ branch...
xen-4.21.1/xen/common/domctl.c:578:14: branch_true: ...to here
xen-4.21.1/xen/common/domctl.c:903:17: call_function: calling ‘vnuma_init’ from ‘do_domctl’
#  213|       nr_vnodes = uinfo->nr_vnodes;
#  214|   
#  215|->     if ( uinfo->nr_vcpus != d->max_vcpus || uinfo->pad != 0 )
#  216|           return ERR_PTR(ret);
#  217|   

Error: GCC_ANALYZER_WARNING (CWE-476):
xen-4.21.1/xen/common/domctl.c:589:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘d’
xen-4.21.1/xen/common/domctl.c:304:6: enter_function: entry to ‘do_domctl’
xen-4.21.1/xen/common/domctl.c:311:8: branch_false: following ‘false’ branch...
xen-4.21.1/xen/common/domctl.c:314:10: branch_false: ...to here
xen-4.21.1/xen/common/domctl.c:314:8: branch_false: following ‘false’ branch...
xen-4.21.1/xen/common/domctl.c:318:5: branch_false: ...to here
xen-4.21.1/xen/common/domctl.c:566:11: call_function: inlined call to ‘xsm_domctl’ from ‘do_domctl’
xen-4.21.1/xen/common/domctl.c:570:8: branch_true: following ‘true’ branch...
xen-4.21.1/xen/common/domctl.c:578:14: branch_true: ...to here
xen-4.21.1/xen/common/domctl.c:588:12: branch_false: following ‘false’ branch...
xen-4.21.1/xen/common/domctl.c:589:23: branch_false: ...to here
xen-4.21.1/xen/common/domctl.c:589:23: danger: dereference of NULL ‘d’
#  587|           ret = -EINVAL;
#  588|           if ( (d == current->domain) || /* no domain_pause() */
#  589|->              (vcpu >= d->max_vcpus) || ((v = d->vcpu[vcpu]) == NULL) )
#  590|               break;
#  591|   

Error: GCC_ANALYZER_WARNING (CWE-476):
xen-4.21.1/xen/common/domctl.c:685:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘d’
xen-4.21.1/xen/common/domctl.c:304:6: enter_function: entry to ‘do_domctl’
xen-4.21.1/xen/common/domctl.c:311:8: branch_false: following ‘false’ branch...
xen-4.21.1/xen/common/domctl.c:314:10: branch_false: ...to here
xen-4.21.1/xen/common/domctl.c:314:8: branch_false: following ‘false’ branch...
xen-4.21.1/xen/common/domctl.c:318:5: branch_false: ...to here
xen-4.21.1/xen/common/domctl.c:566:11: call_function: inlined call to ‘xsm_domctl’ from ‘do_domctl’
xen-4.21.1/xen/common/domctl.c:570:8: branch_true: following ‘true’ branch...
xen-4.21.1/xen/common/domctl.c:578:14: branch_true: ...to here
xen-4.21.1/xen/common/domctl.c:684:12: branch_false: following ‘false’ branch...
xen-4.21.1/xen/common/domctl.c:685:22: branch_false: ...to here
xen-4.21.1/xen/common/domctl.c:685:22: danger: dereference of NULL ‘d’
#  683|           ret = -EINVAL;
#  684|           if ( (d == current->domain) || /* no domain_pause() */
#  685|->              (max != d->max_vcpus) )   /* max_vcpus set up in createdomain */
#  686|               break;
#  687|   

Error: GCC_ANALYZER_WARNING (CWE-476):
xen-4.21.1/xen/common/domctl.c:768:40: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘d’
xen-4.21.1/xen/common/domctl.c:304:6: enter_function: entry to ‘do_domctl’
xen-4.21.1/xen/common/domctl.c:311:8: branch_false: following ‘false’ branch...
xen-4.21.1/xen/common/domctl.c:314:10: branch_false: ...to here
xen-4.21.1/xen/common/domctl.c:314:8: branch_false: following ‘false’ branch...
xen-4.21.1/xen/common/domctl.c:318:5: branch_false: ...to here
xen-4.21.1/xen/common/domctl.c:566:11: call_function: inlined call to ‘xsm_domctl’ from ‘do_domctl’
xen-4.21.1/xen/common/domctl.c:570:8: branch_true: following ‘true’ branch...
xen-4.21.1/xen/common/domctl.c:578:14: branch_true: ...to here
xen-4.21.1/xen/common/domctl.c:768:40: danger: dereference of NULL ‘d’
#  766|   
#  767|           ret = -EINVAL;
#  768|->         if ( op->u.vcpucontext.vcpu >= d->max_vcpus ||
#  769|                (v = d->vcpu[op->u.vcpucontext.vcpu]) == NULL ||
#  770|                v == current ) /* no vcpu_pause() */

Error: GCC_ANALYZER_WARNING (CWE-476):
xen-4.21.1/xen/common/domctl.c:817:40: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘d’
xen-4.21.1/xen/common/domctl.c:304:6: enter_function: entry to ‘do_domctl’
xen-4.21.1/xen/common/domctl.c:311:8: branch_false: following ‘false’ branch...
xen-4.21.1/xen/common/domctl.c:314:10: branch_false: ...to here
xen-4.21.1/xen/common/domctl.c:314:8: branch_false: following ‘false’ branch...
xen-4.21.1/xen/common/domctl.c:318:5: branch_false: ...to here
xen-4.21.1/xen/common/domctl.c:566:11: call_function: inlined call to ‘xsm_domctl’ from ‘do_domctl’
xen-4.21.1/xen/common/domctl.c:570:8: branch_true: following ‘true’ branch...
xen-4.21.1/xen/common/domctl.c:578:14: branch_true: ...to here
xen-4.21.1/xen/common/domctl.c:817:40: danger: dereference of NULL ‘d’
#  815|   
#  816|           ret = -EINVAL;
#  817|->         if ( op->u.getvcpuinfo.vcpu >= d->max_vcpus )
#  818|               break;
#  819|   

Error: GCC_ANALYZER_WARNING (CWE-476):
xen-4.21.1/xen/common/domctl.c:846:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘d’
xen-4.21.1/xen/common/domctl.c:304:6: enter_function: entry to ‘do_domctl’
xen-4.21.1/xen/common/domctl.c:311:8: branch_false: following ‘false’ branch...
xen-4.21.1/xen/common/domctl.c:314:10: branch_false: ...to here
xen-4.21.1/xen/common/domctl.c:314:8: branch_false: following ‘false’ branch...
xen-4.21.1/xen/common/domctl.c:318:5: branch_false: ...to here
xen-4.21.1/xen/common/domctl.c:566:11: call_function: inlined call to ‘xsm_domctl’ from ‘do_domctl’
xen-4.21.1/xen/common/domctl.c:570:8: branch_true: following ‘true’ branch...
xen-4.21.1/xen/common/domctl.c:578:14: branch_true: ...to here
xen-4.21.1/xen/common/domctl.c:846:9: danger: dereference of NULL ‘d’
#  844|            * the meantime, while tot > max, all new allocations are disallowed.
#  845|            */
#  846|->         d->max_pages = min(new_max, (uint64_t)(typeof(d->max_pages))-1);
#  847|           nrspin_unlock(&d->page_alloc_lock);
#  848|           break;

Error: GCC_ANALYZER_WARNING (CWE-476):
xen-4.21.1/xen/common/domctl.c:852:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘d’
xen-4.21.1/xen/common/domctl.c:304:6: enter_function: entry to ‘do_domctl’
xen-4.21.1/xen/common/domctl.c:311:8: branch_false: following ‘false’ branch...
xen-4.21.1/xen/common/domctl.c:314:10: branch_false: ...to here
xen-4.21.1/xen/common/domctl.c:314:8: branch_false: following ‘false’ branch...
xen-4.21.1/xen/common/domctl.c:318:5: branch_false: ...to here
xen-4.21.1/xen/common/domctl.c:566:11: call_function: inlined call to ‘xsm_domctl’ from ‘do_domctl’
xen-4.21.1/xen/common/domctl.c:570:8: branch_true: following ‘true’ branch...
xen-4.21.1/xen/common/domctl.c:578:14: branch_true: ...to here
xen-4.21.1/xen/common/domctl.c:852:9: danger: dereference of NULL ‘d’
#  850|   
#  851|       case XEN_DOMCTL_setdomainhandle:
#  852|->         memcpy(d->handle, op->u.setdomainhandle.handle,
#  853|                  sizeof(xen_domain_handle_t));
#  854|           break;

Error: GCC_ANALYZER_WARNING (CWE-476):
xen-4.21.1/xen/common/domctl.c:862:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘d’
xen-4.21.1/xen/common/domctl.c:304:6: enter_function: entry to ‘do_domctl’
xen-4.21.1/xen/common/domctl.c:311:8: branch_false: following ‘false’ branch...
xen-4.21.1/xen/common/domctl.c:314:10: branch_false: ...to here
xen-4.21.1/xen/common/domctl.c:314:8: branch_false: following ‘false’ branch...
xen-4.21.1/xen/common/domctl.c:318:5: branch_false: ...to here
xen-4.21.1/xen/common/domctl.c:566:11: call_function: inlined call to ‘xsm_domctl’ from ‘do_domctl’
xen-4.21.1/xen/common/domctl.c:570:8: branch_true: following ‘true’ branch...
xen-4.21.1/xen/common/domctl.c:578:14: branch_true: ...to here
xen-4.21.1/xen/common/domctl.c:857:14: call_function: inlined call to ‘get_cpu_info’ from ‘do_domctl’
xen-4.21.1/xen/common/domctl.c:857:12: branch_false: following ‘false’ branch...
xen-4.21.1/xen/common/domctl.c:861:13: branch_false: ...to here
xen-4.21.1/xen/common/domctl.c:862:13: danger: dereference of NULL ‘d’
#  860|           {
#  861|               domain_pause(d);
#  862|->             d->debugger_attached = !!op->u.setdebugging.enable;
#  863|               domain_unpause(d); /* causes guest to latch new status */
#  864|           }

Error: GCC_ANALYZER_WARNING (CWE-476):
xen-4.21.1/xen/common/domctl.c:872:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘d’
xen-4.21.1/xen/common/domctl.c:304:6: enter_function: entry to ‘do_domctl’
xen-4.21.1/xen/common/domctl.c:311:8: branch_false: following ‘false’ branch...
xen-4.21.1/xen/common/domctl.c:314:10: branch_false: ...to here
xen-4.21.1/xen/common/domctl.c:314:8: branch_false: following ‘false’ branch...
xen-4.21.1/xen/common/domctl.c:318:5: branch_false: ...to here
xen-4.21.1/xen/common/domctl.c:566:11: call_function: inlined call to ‘xsm_domctl’ from ‘do_domctl’
xen-4.21.1/xen/common/domctl.c:570:8: branch_true: following ‘true’ branch...
xen-4.21.1/xen/common/domctl.c:578:14: branch_true: ...to here
xen-4.21.1/xen/common/domctl.c:872:9: danger: dereference of NULL ‘d’
#  870|   
#  871|       case XEN_DOMCTL_subscribe:
#  872|->         d->suspend_evtchn = op->u.subscribe.port;
#  873|           break;
#  874|