Page MenuHomeFreeBSD

hyperv: stor: Fix the NULL pointer dereference
ClosedPublic

Authored by honzhan_microsoft.com on Jan 28 2016, 1:49 AM.
Tags
None
Referenced Files
F172571913: D5097.diff
Sat, Sep 19, 8:46 AM
F172566256: D5097.id13029.diff
Sat, Sep 19, 7:47 AM
Unknown Object (File)
Sun, Sep 13, 8:56 AM
Unknown Object (File)
Tue, Sep 8, 10:18 AM
Unknown Object (File)
Sun, Sep 6, 12:03 AM
Unknown Object (File)
Sat, Sep 5, 3:49 PM
Unknown Object (File)
Sat, Sep 5, 9:50 AM
Unknown Object (File)
Fri, Sep 4, 5:39 PM

Details

Summary

There are potential NULL pointer dereference issues.

Submitted by: Hongjiang Zhang <honzhan microsoft com>

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 2298
Build 2307: arc lint + arc unit

Event Timeline

honzhan_microsoft.com retitled this revision from to hyperv: stor: Fix the NULL pointer dereference.
honzhan_microsoft.com updated this object.
adrian edited edge metadata.
This revision is now accepted and ready to land.Jan 28 2016, 1:54 AM
sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
1529

Could we just move the LIST_REMOVE after the NULL check?

sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
1529

Yes, that is ok. But I prefer to do checking with the LIST macros.

sepherosa_gmail.com edited edge metadata.

Looks fine to me

sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
1529

Well, fine, its your call.

This revision was automatically updated to reflect the committed changes.