Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Oct 2020 16:20:48 +0800
From:      "=?utf-8?B?TUdZ?=" <mgyxl0320@qq.com>
To:        "=?utf-8?B?ZnJlZWJzZC1idWdz?=" <freebsd-bugs@freebsd.org>
Subject:   "NULL Pointer Derefrence" in subr_bus.c
Message-ID:  <tencent_510AA77EF5A0EE0B205F5996044504034D09@qq.com>

index | next in thread | raw e-mail

Hello,

&nbsp;

There is a “NULL Pointer Dereference” risk to report:

Abstract:

sys/kern/subr_bus.c:1013 Access to filed ‘flags’ results in a derefernce of a null pointer (loaded from field ‘parent’).

Code segment:

In function “devclass_find_internal”,

1013&nbsp; dc-&gt;parent = devclass_find_internal(parentname, NULL, TRUE);

1014&nbsp; dc-&gt;parent-&gt;flags |= DC_HAS_CHILDREN;

Triggering conditions:

Once line 1013 failed in finding the ‘parent’, in line 1014(-&gt;flags) where a null point dereference occurred.
help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?tencent_510AA77EF5A0EE0B205F5996044504034D09>