[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4e58750f-5a0a-4758-5c0c-ab1c3e93d84d@intel.com>
Date: Thu, 28 Apr 2022 19:37:52 +0800
From: "Chen, Rong A" <rong.a.chen@...el.com>
To: Jiri Pirko <jiri@...nulli.us>, Jakub Kicinski <kuba@...nel.org>
Cc: kernel test robot <lkp@...el.com>,
Andrew Morton <akpm@...ux-foundation.org>,
netdev@...r.kernel.org, Ido Schimmel <idosch@...sch.org>
Subject: Re: [linux-next:master] BUILD REGRESSION
e7d6987e09a328d4a949701db40ef63fbb970670
On 4/27/2022 2:45 PM, Jiri Pirko wrote:
> Tue, Apr 26, 2022 at 07:35:37PM CEST, kuba@...nel.org wrote:
>> On Tue, 26 Apr 2022 16:59:07 +0200 Jiri Pirko wrote:
>>>>> is this one on your radar?
>>>>
>>>> Will send a fix for this, thanks.
>>>
>>> Can't find the line. I don't see
>>> e7d6987e09a328d4a949701db40ef63fbb970670 in linux-next :/
>>
>> Eh, no idea which tree it came from, but FWIW I do have that one in my
>> local tree. So here it is:
>>
>> 844 devlink_linecard = devlink_linecard_create(priv_to_devlink(mlxsw_core),
>> 845 slot_index, &mlxsw_linecard_ops,
>> 846 linecard);
>> 847 if (IS_ERR(devlink_linecard)) {
>> 848 err = PTR_ERR(devlink_linecard);
>> 849 goto err_devlink_linecard_create;
>> 850 }
>> 851 linecard->devlink_linecard = devlink_linecard;
>> 852 INIT_DELAYED_WORK(&linecard->status_event_to_dw,
>> 853 &mlxsw_linecard_status_event_to_work);
>>
>> Unless I'm missing something looks like a false positive :S
>
> Yeah, that is where I ended up as well, came into conclusion I have to
> be looking at a different code.
>
Hi all,
This warning (core_linecards.c:851:8: warning: Use of memory after it is
freed [clang-analyzer-unix.Malloc])
can be reproduced by the below steps:
1. git checkout b217127e5e4ee0ecfce7c5f84cfe082238123bda
2. mkdir build_dir (and save the attached config file to
build_dir/.config)
3. COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross
ARCH=riscv O=build_dir olddefconfig prepare
4. COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross
ARCH=riscv O=build_dir M=drivers/net/ethernet/mellanox/mlxsw clang-analyzer
Best Regards,
Rong Chen
View attachment "config" of type "text/plain" (191093 bytes)
Powered by blists - more mailing lists