[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <871qt86711.fsf@oldenburg.str.redhat.com>
Date: Mon, 22 Aug 2022 10:01:46 +0200
From: Florian Weimer <fweimer@...hat.com>
To: Menglong Dong <menglong8.dong@...il.com>
Cc: Segher Boessenkool <segher@...nel.crashing.org>,
Nick Desaulniers <ndesaulniers@...gle.com>, kuba@...nel.org,
miguel.ojeda.sandonis@...il.com, ojeda@...nel.org,
davem@...emloft.net, edumazet@...gle.com, pabeni@...hat.com,
asml.silence@...il.com, imagedong@...cent.com,
luiz.von.dentz@...el.com, vasily.averin@...ux.dev,
jk@...econstruct.com.au, linux-kernel@...r.kernel.org,
netdev@...r.kernel.org, kernel test robot <lkp@...el.com>,
linux-toolchains <linux-toolchains@...r.kernel.org>
Subject: Re: [PATCH net-next v4] net: skb: prevent the split of
kfree_skb_reason() by gcc
* Menglong Dong:
> /*
> * Used by functions that use '__builtin_return_address'. These function
> * don't want to be splited or made inline, which can make
> * the '__builtin_return_address' got unexpected address.
> */
> #define __fix_address noinline __noclone
You need something on the function *declaration* as well, to inhibit
sibcalls.
Thanks,
Florian
Powered by blists - more mailing lists