<div><div><div>Thanks for pointing this out.<br />I rebased v2 onto the current master branch and adjusted the file path after the Intel telemetry code was moved, but I forgot to include the revision history in the patch.<br />I will add it in v3.</div></div></div><div> </div><div>----------------</div><div>Кому: Aleksandrova Alyona (aga@itb.spb.ru);</div><div>Копия: Rajneesh Bhardwaj (irenic.rajneesh@gmail.com), David E . Box (david.e.box@linux.intel.com), Hans de Goede (hansg@kernel.org), Darren Hart (dvhart@linux.intel.com), platform-driver-x86@vger.kernel.org, LKML (linux-kernel@vger.kernel.org), lvc-project@linuxtesting.org;</div><div>Тема: [PATCH v2] platform/x86: intel_telemetry: initialize default trace verbosity;</div><div>15.09.2026, 15:26, "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>:</div><blockquote><p>On Tue, 15 Sep 2026, Aleksandrova Alyona wrote:<br /> </p><blockquote> telemetry_def_get_trace_verbosity() returns success without initializing<br /> the output verbosity value.<br /> <br /> The default telemetry operations are installed when the core driver is<br /> initialized and again by telemetry_clear_pltdata() when the platform<br /> driver is removed. The telemetry debugfs files can remain available after<br /> the platform driver removal.<br /> <br /> A subsequent read of pss_trace_verbosity or ioss_trace_verbosity calls<br /> telemetry_get_trace_verbosity(), which may use the default callback and<br /> return success without setting verbosity. The uninitialized value is then<br /> passed to seq_printf().<br /> <br /> Validate the output pointer and initialize the default verbosity to zero<br /> so callers never use an uninitialized value after a successful call.<br /> <br /> Found by Linux Verification Center (linuxtesting.org) with SVACE.<br /> <br /> Fixes: 378f956e3f93 ("platform/x86: Add Intel Telemetry Core Driver")<br /> Signed-off-by: Aleksandrova Alyona <<a href="mailto:aga@itb.spb.ru" rel="noopener noreferrer">aga@itb.spb.ru</a>><br /> ---</blockquote><p><br />You're missing the information on what is changed in v2?!<br /> </p><blockquote>  drivers/platform/x86/intel/telemetry/core.c | 4 ++++<br />  1 file changed, 4 insertions(+)<br /> <br /> diff --git a/drivers/platform/x86/intel/telemetry/core.c b/drivers/platform/x86/intel/telemetry/core.c<br /> index f312864b8d07a..62299524a07b2 100644<br /> --- a/drivers/platform/x86/intel/telemetry/core.c<br /> +++ b/drivers/platform/x86/intel/telemetry/core.c<br /> @@ -24,6 +24,10 @@ static struct telemetry_core_config telm_core_conf;<br />  static int telemetry_def_get_trace_verbosity(enum telemetry_unit telem_unit,<br />                                               u32 *verbosity)<br />  {<!-- --><br /> + if (!verbosity)<br /> + return -EINVAL;<br /> +<br /> + *verbosity = 0;<br />          return 0;<br />  }<br />  <br /> </blockquote><p> </p>--<br /> i.</blockquote><div> </div><div> </div><div>-- </div><div>С Уважением,<br /> </div><div><img src="http://www.itb.spb.ru/img/podp.png" style="float:left" />Александрова Алена Геннадьевна</div><div>Программист</div><div>ООО «Инновационные Технологии в Бизнесе»</div><div>тел. +7 (812) 335-01-45 </div><div>моб. +7 (981)973-25-86 </div><div>e-mail: <a href="mailto:aga@itb.spb.ru" rel="noopener noreferrer">aga@itb.spb.ru</a></div><div>Мы в соц. сетях:</div><div><a href="https://g.page/itbspb" rel="noopener noreferrer"><img src="https://www.itb.spb.ru/bitrix/templates/itb/img/social/google.png" /></a><a href="https://vk.com/itb_spb" rel="noopener noreferrer"><img src="https://www.itb.spb.ru/bitrix/templates/itb/img/social/vkontakte.png" /></a><a href="https://yandex.ru/profile/14089663908?lr=2" rel="noopener noreferrer"><img src="https://www.itb.spb.ru/bitrix/templates/itb/img/social/yandex.png" /></a><a href="https://t.me/ttl_news" rel="noopener noreferrer"><img src="http://www.itb.spb.ru/bitrix/templates/itb/img/social/telegram.png" /></a><a href="https://rutube.ru/u/itb/" rel="noopener noreferrer"><img src="https://www.itb.spb.ru/bitrix/templates/itb/img/social/rutube.png" /></a></div><div> </div><div><img src="https://www.itb.spb.ru/img/2023_year_min_old_2.png" /></div><div> </div>