Re: [PATCH net-next] bnx2x: initialize ethtool info->fw_version before use

From: David Miller
Date: Mon Nov 18 2019 - 20:58:23 EST


From: Jonathan Toppins <jtoppins@xxxxxxxxxx>
Date: Mon, 18 Nov 2019 12:07:53 -0500

> probe begin { printf("net-info version 01.01\n")}
>
> function memset(msg:long) %{
> memset((char*)STAP_ARG_msg,-1,196);
> %}
>
> probe module("bnx2x").function("bnx2x_get_drvinfo")
> {
> printf("In function\n");
> memset(register("rsi"));

This makes no sense.

This function is called with the buffer cleared to zero.

You're scrambling something to simulate a "bug", but that will never
be scrambled in reality.