All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-next:master 7918/13392] drivers/soc/microchip/mpfs-sys-controller.c:73:1-6: WARNING: invalid free of devm_ allocated data
@ 2022-03-17 18:48 kernel test robot
  2022-03-17 21:17   ` conor dooley
  0 siblings, 1 reply; 17+ messages in thread
From: kernel test robot @ 2022-03-17 18:48 UTC (permalink / raw)
  To: Conor Dooley; +Cc: kbuild-all, Linux Memory Management List, Nicolas Ferre

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   97add482e9033a9386baa8824fbea34d0cbfe663
commit: d0054a470c33902f5ae88835ed8a8ecc3cf8faa4 [7918/13392] soc: add microchip polarfire soc system controller
config: ia64-randconfig-c004-20220317 (https://download.01.org/0day-ci/archive/20220318/202203180259.lgIylRZV-lkp@intel.com/config)
compiler: ia64-linux-gcc (GCC) 11.2.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>


cocci warnings: (new ones prefixed by >>)
>> drivers/soc/microchip/mpfs-sys-controller.c:73:1-6: WARNING: invalid free of devm_ allocated data

vim +73 drivers/soc/microchip/mpfs-sys-controller.c

    66	
    67	static void mpfs_sys_controller_delete(struct kref *kref)
    68	{
    69		struct mpfs_sys_controller *sys_controller = container_of(kref, struct mpfs_sys_controller,
    70						       consumers);
    71	
    72		mbox_free_channel(sys_controller->chan);
  > 73		kfree(sys_controller);
    74	}
    75	

---
0-DAY CI Kernel Test Service
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [linux-next:master 7918/13392] drivers/soc/microchip/mpfs-sys-controller.c:73:1-6: WARNING: invalid free of devm_ allocated data
  2022-03-17 18:48 [linux-next:master 7918/13392] drivers/soc/microchip/mpfs-sys-controller.c:73:1-6: WARNING: invalid free of devm_ allocated data kernel test robot
@ 2022-03-17 21:17   ` conor dooley
  0 siblings, 0 replies; 17+ messages in thread
From: conor dooley @ 2022-03-17 21:17 UTC (permalink / raw)
  To: lkp; +Cc: conor.dooley, kbuild-all, linux-mm, nicolas.ferre

> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> head:   97add482e9033a9386baa8824fbea34d0cbfe663
> commit: d0054a470c33902f5ae88835ed8a8ecc3cf8faa4 [7918/13392] soc: add microchip polarfire soc system controller
> config: ia64-randconfig-c004-20220317 (https://download.01.org/0day-ci/archive/20220318/202203180259.lgIylRZV-lkp@intel.com/config)
> compiler: ia64-linux-gcc (GCC) 11.2.0
> 
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@intel.com>
> 
> 
> cocci warnings: (new ones prefixed by >>)
> >> drivers/soc/microchip/mpfs-sys-controller.c:73:1-6: WARNING: invalid free of devm_ allocated data

Silly mistake, should've changed this when the alloc was converted to
devm_.

@Nicolas, rest of this week is public holiday, but I'll try to
send a fix before the weekend. Should it go to you or to Arnd?

> 
> vim +73 drivers/soc/microchip/mpfs-sys-controller.c
> 
>     66	
>     67	static void mpfs_sys_controller_delete(struct kref *kref)
>     68	{
>     69		struct mpfs_sys_controller *sys_controller = container_of(kref, struct mpfs_sys_controller,
>     70						       consumers);
>     71	
>     72		mbox_free_channel(sys_controller->chan);
>   > 73		kfree(sys_controller);
>     74	}
>     75	
> 
> ---
> 0-DAY CI Kernel Test Service
> https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [linux-next:master 7918/13392] drivers/soc/microchip/mpfs-sys-controller.c:73:1-6: WARNING: invalid free of devm_ allocated data
@ 2022-03-17 21:17   ` conor dooley
  0 siblings, 0 replies; 17+ messages in thread
From: conor dooley @ 2022-03-17 21:17 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 1439 bytes --]

> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> head:   97add482e9033a9386baa8824fbea34d0cbfe663
> commit: d0054a470c33902f5ae88835ed8a8ecc3cf8faa4 [7918/13392] soc: add microchip polarfire soc system controller
> config: ia64-randconfig-c004-20220317 (https://download.01.org/0day-ci/archive/20220318/202203180259.lgIylRZV-lkp(a)intel.com/config)
> compiler: ia64-linux-gcc (GCC) 11.2.0
> 
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@intel.com>
> 
> 
> cocci warnings: (new ones prefixed by >>)
> >> drivers/soc/microchip/mpfs-sys-controller.c:73:1-6: WARNING: invalid free of devm_ allocated data

Silly mistake, should've changed this when the alloc was converted to
devm_.

@Nicolas, rest of this week is public holiday, but I'll try to
send a fix before the weekend. Should it go to you or to Arnd?

> 
> vim +73 drivers/soc/microchip/mpfs-sys-controller.c
> 
>     66	
>     67	static void mpfs_sys_controller_delete(struct kref *kref)
>     68	{
>     69		struct mpfs_sys_controller *sys_controller = container_of(kref, struct mpfs_sys_controller,
>     70						       consumers);
>     71	
>     72		mbox_free_channel(sys_controller->chan);
>   > 73		kfree(sys_controller);
>     74	}
>     75	
> 
> ---
> 0-DAY CI Kernel Test Service
> https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [linux-next:master 7918/13392] drivers/soc/microchip/mpfs-sys-controller.c:73:1-6: WARNING: invalid free of devm_ allocated data
  2022-03-17 21:17   ` conor dooley
@ 2022-03-18  9:42     ` Nicolas Ferre
  -1 siblings, 0 replies; 17+ messages in thread
From: Nicolas Ferre @ 2022-03-18  9:42 UTC (permalink / raw)
  To: conor dooley, lkp; +Cc: conor.dooley, kbuild-all, linux-mm

Conor, Arnd,

On 17/03/2022 at 22:17, conor dooley wrote:
>> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
>> head:   97add482e9033a9386baa8824fbea34d0cbfe663
>> commit: d0054a470c33902f5ae88835ed8a8ecc3cf8faa4 [7918/13392] soc: add microchip polarfire soc system controller
>> config: ia64-randconfig-c004-20220317 (https://download.01.org/0day-ci/archive/20220318/202203180259.lgIylRZV-lkp@intel.com/config)
>> compiler: ia64-linux-gcc (GCC) 11.2.0
>>
>> If you fix the issue, kindly add following tag as appropriate
>> Reported-by: kernel test robot <lkp@intel.com>
>>
>>
>> cocci warnings: (new ones prefixed by >>)
>>>> drivers/soc/microchip/mpfs-sys-controller.c:73:1-6: WARNING: invalid free of devm_ allocated data
> 
> Silly mistake, should've changed this when the alloc was converted to
> devm_.
> 
> @Nicolas, rest of this week is public holiday, but I'll try to
> send a fix before the weekend. Should it go to you or to Arnd?

I cannot queue in my branches because otherwise it will conflict with 
the patch already taken by Arnd as an individual patch [1]:
"soc: microchip: make mpfs_sys_controller_put static"

What I propose is that we deal with this during the stabilization phase 
as a "fix" after 5.18-rc1 is released (in 2 weeks).

Is there a drawback to this approach in the sense that it can trigger 
other test robots?

This way, we won't have to disturb Arnd as I believe that his branches 
are all ready to be sent to Linus after this week-end. Additional 
benefit, you don't have to change your plans and enjoy St Patrick 
week-end ;-).

Best regards,
   Nicolas

[1]: 
https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git/commit/?h=for-next&id=17588e867e694e8a03234628145f7c4d738288e2


>> vim +73 drivers/soc/microchip/mpfs-sys-controller.c
>>
>>      66
>>      67        static void mpfs_sys_controller_delete(struct kref *kref)
>>      68        {
>>      69                struct mpfs_sys_controller *sys_controller = container_of(kref, struct mpfs_sys_controller,
>>      70                                                       consumers);
>>      71
>>      72                mbox_free_channel(sys_controller->chan);
>>    > 73                kfree(sys_controller);
>>      74        }
>>      75
>>
>> ---
>> 0-DAY CI Kernel Test Service
>> https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org


-- 
Nicolas Ferre


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [linux-next:master 7918/13392] drivers/soc/microchip/mpfs-sys-controller.c:73:1-6: WARNING: invalid free of devm_ allocated data
@ 2022-03-18  9:42     ` Nicolas Ferre
  0 siblings, 0 replies; 17+ messages in thread
From: Nicolas Ferre @ 2022-03-18  9:42 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2469 bytes --]

Conor, Arnd,

On 17/03/2022 at 22:17, conor dooley wrote:
>> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
>> head:   97add482e9033a9386baa8824fbea34d0cbfe663
>> commit: d0054a470c33902f5ae88835ed8a8ecc3cf8faa4 [7918/13392] soc: add microchip polarfire soc system controller
>> config: ia64-randconfig-c004-20220317 (https://download.01.org/0day-ci/archive/20220318/202203180259.lgIylRZV-lkp(a)intel.com/config)
>> compiler: ia64-linux-gcc (GCC) 11.2.0
>>
>> If you fix the issue, kindly add following tag as appropriate
>> Reported-by: kernel test robot <lkp@intel.com>
>>
>>
>> cocci warnings: (new ones prefixed by >>)
>>>> drivers/soc/microchip/mpfs-sys-controller.c:73:1-6: WARNING: invalid free of devm_ allocated data
> 
> Silly mistake, should've changed this when the alloc was converted to
> devm_.
> 
> @Nicolas, rest of this week is public holiday, but I'll try to
> send a fix before the weekend. Should it go to you or to Arnd?

I cannot queue in my branches because otherwise it will conflict with 
the patch already taken by Arnd as an individual patch [1]:
"soc: microchip: make mpfs_sys_controller_put static"

What I propose is that we deal with this during the stabilization phase 
as a "fix" after 5.18-rc1 is released (in 2 weeks).

Is there a drawback to this approach in the sense that it can trigger 
other test robots?

This way, we won't have to disturb Arnd as I believe that his branches 
are all ready to be sent to Linus after this week-end. Additional 
benefit, you don't have to change your plans and enjoy St Patrick 
week-end ;-).

Best regards,
   Nicolas

[1]: 
https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git/commit/?h=for-next&id=17588e867e694e8a03234628145f7c4d738288e2


>> vim +73 drivers/soc/microchip/mpfs-sys-controller.c
>>
>>      66
>>      67        static void mpfs_sys_controller_delete(struct kref *kref)
>>      68        {
>>      69                struct mpfs_sys_controller *sys_controller = container_of(kref, struct mpfs_sys_controller,
>>      70                                                       consumers);
>>      71
>>      72                mbox_free_channel(sys_controller->chan);
>>    > 73                kfree(sys_controller);
>>      74        }
>>      75
>>
>> ---
>> 0-DAY CI Kernel Test Service
>> https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org


-- 
Nicolas Ferre

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [linux-next:master 7918/13392] drivers/soc/microchip/mpfs-sys-controller.c:73:1-6: WARNING: invalid free of devm_ allocated data
  2022-03-17 21:17   ` conor dooley
@ 2022-03-18  9:43     ` Nicolas Ferre
  -1 siblings, 0 replies; 17+ messages in thread
From: Nicolas Ferre @ 2022-03-18  9:43 UTC (permalink / raw)
  To: conor.dooley, lkp, Arnd Bergmann; +Cc: kbuild-all, linux-mm, conor dooley

(+ Arnd)

Conor, Arnd,

On 17/03/2022 at 22:17, conor dooley wrote:
>> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
>> head:   97add482e9033a9386baa8824fbea34d0cbfe663
>> commit: d0054a470c33902f5ae88835ed8a8ecc3cf8faa4 [7918/13392] soc: add microchip polarfire soc system controller
>> config: ia64-randconfig-c004-20220317 (https://download.01.org/0day-ci/archive/20220318/202203180259.lgIylRZV-lkp@intel.com/config)
>> compiler: ia64-linux-gcc (GCC) 11.2.0
>>
>> If you fix the issue, kindly add following tag as appropriate
>> Reported-by: kernel test robot <lkp@intel.com>
>>
>>
>> cocci warnings: (new ones prefixed by >>)
>>>> drivers/soc/microchip/mpfs-sys-controller.c:73:1-6: WARNING: invalid free of devm_ allocated data
> 
> Silly mistake, should've changed this when the alloc was converted to
> devm_.
> 
> @Nicolas, rest of this week is public holiday, but I'll try to
> send a fix before the weekend. Should it go to you or to Arnd?

I cannot queue in my branches because otherwise it will conflict with 
the patch already taken by Arnd as an individual patch [1]:
"soc: microchip: make mpfs_sys_controller_put static"

What I propose is that we deal with this during the stabilization phase 
as a "fix" after 5.18-rc1 is released (in 2 weeks).

Is there a drawback to this approach in the sense that it can trigger 
other test robots?

This way, we won't have to disturb Arnd as I believe that his branches 
are all ready to be sent to Linus after this week-end. Additional 
benefit, you don't have to change your plans and enjoy St Patrick 
week-end ;-).

Best regards,
    Nicolas

[1]: 
https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git/commit/?h=for-next&id=17588e867e694e8a03234628145f7c4d738288e2


>> vim +73 drivers/soc/microchip/mpfs-sys-controller.c
>>
>>      66
>>      67        static void mpfs_sys_controller_delete(struct kref *kref)
>>      68        {
>>      69                struct mpfs_sys_controller *sys_controller = container_of(kref, struct mpfs_sys_controller,
>>      70                                                       consumers);
>>      71
>>      72                mbox_free_channel(sys_controller->chan);
>>    > 73                kfree(sys_controller);
>>      74        }
>>      75
>>
>> ---
>> 0-DAY CI Kernel Test Service
>> https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org


-- 
Nicolas Ferre


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [linux-next:master 7918/13392] drivers/soc/microchip/mpfs-sys-controller.c:73:1-6: WARNING: invalid free of devm_ allocated data
@ 2022-03-18  9:43     ` Nicolas Ferre
  0 siblings, 0 replies; 17+ messages in thread
From: Nicolas Ferre @ 2022-03-18  9:43 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2482 bytes --]

(+ Arnd)

Conor, Arnd,

On 17/03/2022 at 22:17, conor dooley wrote:
>> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
>> head:   97add482e9033a9386baa8824fbea34d0cbfe663
>> commit: d0054a470c33902f5ae88835ed8a8ecc3cf8faa4 [7918/13392] soc: add microchip polarfire soc system controller
>> config: ia64-randconfig-c004-20220317 (https://download.01.org/0day-ci/archive/20220318/202203180259.lgIylRZV-lkp(a)intel.com/config)
>> compiler: ia64-linux-gcc (GCC) 11.2.0
>>
>> If you fix the issue, kindly add following tag as appropriate
>> Reported-by: kernel test robot <lkp@intel.com>
>>
>>
>> cocci warnings: (new ones prefixed by >>)
>>>> drivers/soc/microchip/mpfs-sys-controller.c:73:1-6: WARNING: invalid free of devm_ allocated data
> 
> Silly mistake, should've changed this when the alloc was converted to
> devm_.
> 
> @Nicolas, rest of this week is public holiday, but I'll try to
> send a fix before the weekend. Should it go to you or to Arnd?

I cannot queue in my branches because otherwise it will conflict with 
the patch already taken by Arnd as an individual patch [1]:
"soc: microchip: make mpfs_sys_controller_put static"

What I propose is that we deal with this during the stabilization phase 
as a "fix" after 5.18-rc1 is released (in 2 weeks).

Is there a drawback to this approach in the sense that it can trigger 
other test robots?

This way, we won't have to disturb Arnd as I believe that his branches 
are all ready to be sent to Linus after this week-end. Additional 
benefit, you don't have to change your plans and enjoy St Patrick 
week-end ;-).

Best regards,
    Nicolas

[1]: 
https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git/commit/?h=for-next&id=17588e867e694e8a03234628145f7c4d738288e2


>> vim +73 drivers/soc/microchip/mpfs-sys-controller.c
>>
>>      66
>>      67        static void mpfs_sys_controller_delete(struct kref *kref)
>>      68        {
>>      69                struct mpfs_sys_controller *sys_controller = container_of(kref, struct mpfs_sys_controller,
>>      70                                                       consumers);
>>      71
>>      72                mbox_free_channel(sys_controller->chan);
>>    > 73                kfree(sys_controller);
>>      74        }
>>      75
>>
>> ---
>> 0-DAY CI Kernel Test Service
>> https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org


-- 
Nicolas Ferre

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [linux-next:master 7918/13392] drivers/soc/microchip/mpfs-sys-controller.c:73:1-6: WARNING: invalid free of devm_ allocated data
  2022-03-18  9:43     ` Nicolas Ferre
@ 2022-03-18 10:35       ` Conor Dooley
  -1 siblings, 0 replies; 17+ messages in thread
From: Conor Dooley @ 2022-03-18 10:35 UTC (permalink / raw)
  To: Nicolas Ferre, conor.dooley, lkp, Arnd Bergmann; +Cc: kbuild-all, linux-mm



On 18/03/2022 09:43, Nicolas Ferre wrote:
> (+ Arnd)
> 
> Conor, Arnd,
> 
> On 17/03/2022 at 22:17, conor dooley wrote:
>>> tree:   
>>> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 
>>> master
>>> head:   97add482e9033a9386baa8824fbea34d0cbfe663
>>> commit: d0054a470c33902f5ae88835ed8a8ecc3cf8faa4 [7918/13392] soc: 
>>> add microchip polarfire soc system controller
>>> config: ia64-randconfig-c004-20220317 
>>> (https://download.01.org/0day-ci/archive/20220318/202203180259.lgIylRZV-lkp@intel.com/config) 
>>>
>>> compiler: ia64-linux-gcc (GCC) 11.2.0
>>>
>>> If you fix the issue, kindly add following tag as appropriate
>>> Reported-by: kernel test robot <lkp@intel.com>
>>>
>>>
>>> cocci warnings: (new ones prefixed by >>)
>>>>> drivers/soc/microchip/mpfs-sys-controller.c:73:1-6: WARNING: 
>>>>> invalid free of devm_ allocated data
>>
>> Silly mistake, should've changed this when the alloc was converted to
>> devm_.
>>
>> @Nicolas, rest of this week is public holiday, but I'll try to
>> send a fix before the weekend. Should it go to you or to Arnd?
> 
> I cannot queue in my branches because otherwise it will conflict with 
> the patch already taken by Arnd as an individual patch [1]:
> "soc: microchip: make mpfs_sys_controller_put static"
> 
> What I propose is that we deal with this during the stabilization phase 
> as a "fix" after 5.18-rc1 is released (in 2 weeks).

If that fine by you (plural) then that's fine by me too :)

> 
> Is there a drawback to this approach in the sense that it can trigger 
> other test robots?
> 
> This way, we won't have to disturb Arnd as I believe that his branches 
> are all ready to be sent to Linus after this week-end. Additional 
> benefit, you don't have to change your plans and enjoy St Patrick 
> week-end ;-).
> 
> Best regards,
>     Nicolas
> 
> [1]: 
> https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git/commit/?h=for-next&id=17588e867e694e8a03234628145f7c4d738288e2 
> 
> 
> 
>>> vim +73 drivers/soc/microchip/mpfs-sys-controller.c
>>>
>>>      66
>>>      67        static void mpfs_sys_controller_delete(struct kref *kref)
>>>      68        {
>>>      69                struct mpfs_sys_controller *sys_controller = 
>>> container_of(kref, struct mpfs_sys_controller,
>>>      70                                                       
>>> consumers);
>>>      71
>>>      72                mbox_free_channel(sys_controller->chan);
>>>    > 73                kfree(sys_controller);
>>>      74        }
>>>      75
>>>
>>> ---
>>> 0-DAY CI Kernel Test Service
>>> https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
> 
> 


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [linux-next:master 7918/13392] drivers/soc/microchip/mpfs-sys-controller.c:73:1-6: WARNING: invalid free of devm_ allocated data
@ 2022-03-18 10:35       ` Conor Dooley
  0 siblings, 0 replies; 17+ messages in thread
From: Conor Dooley @ 2022-03-18 10:35 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2828 bytes --]



On 18/03/2022 09:43, Nicolas Ferre wrote:
> (+ Arnd)
> 
> Conor, Arnd,
> 
> On 17/03/2022 at 22:17, conor dooley wrote:
>>> tree:   
>>> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 
>>> master
>>> head:   97add482e9033a9386baa8824fbea34d0cbfe663
>>> commit: d0054a470c33902f5ae88835ed8a8ecc3cf8faa4 [7918/13392] soc: 
>>> add microchip polarfire soc system controller
>>> config: ia64-randconfig-c004-20220317 
>>> (https://download.01.org/0day-ci/archive/20220318/202203180259.lgIylRZV-lkp(a)intel.com/config) 
>>>
>>> compiler: ia64-linux-gcc (GCC) 11.2.0
>>>
>>> If you fix the issue, kindly add following tag as appropriate
>>> Reported-by: kernel test robot <lkp@intel.com>
>>>
>>>
>>> cocci warnings: (new ones prefixed by >>)
>>>>> drivers/soc/microchip/mpfs-sys-controller.c:73:1-6: WARNING: 
>>>>> invalid free of devm_ allocated data
>>
>> Silly mistake, should've changed this when the alloc was converted to
>> devm_.
>>
>> @Nicolas, rest of this week is public holiday, but I'll try to
>> send a fix before the weekend. Should it go to you or to Arnd?
> 
> I cannot queue in my branches because otherwise it will conflict with 
> the patch already taken by Arnd as an individual patch [1]:
> "soc: microchip: make mpfs_sys_controller_put static"
> 
> What I propose is that we deal with this during the stabilization phase 
> as a "fix" after 5.18-rc1 is released (in 2 weeks).

If that fine by you (plural) then that's fine by me too :)

> 
> Is there a drawback to this approach in the sense that it can trigger 
> other test robots?
> 
> This way, we won't have to disturb Arnd as I believe that his branches 
> are all ready to be sent to Linus after this week-end. Additional 
> benefit, you don't have to change your plans and enjoy St Patrick 
> week-end ;-).
> 
> Best regards,
>     Nicolas
> 
> [1]: 
> https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git/commit/?h=for-next&id=17588e867e694e8a03234628145f7c4d738288e2 
> 
> 
> 
>>> vim +73 drivers/soc/microchip/mpfs-sys-controller.c
>>>
>>>      66
>>>      67        static void mpfs_sys_controller_delete(struct kref *kref)
>>>      68        {
>>>      69                struct mpfs_sys_controller *sys_controller = 
>>> container_of(kref, struct mpfs_sys_controller,
>>>      70                                                       
>>> consumers);
>>>      71
>>>      72                mbox_free_channel(sys_controller->chan);
>>>    > 73                kfree(sys_controller);
>>>      74        }
>>>      75
>>>
>>> ---
>>> 0-DAY CI Kernel Test Service
>>> https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
> 
> 

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [linux-next:master 7918/13392] drivers/soc/microchip/mpfs-sys-controller.c:73:1-6: WARNING: invalid free of devm_ allocated data
  2022-03-18  9:43     ` Nicolas Ferre
@ 2022-03-18 11:02       ` Arnd Bergmann
  -1 siblings, 0 replies; 17+ messages in thread
From: Arnd Bergmann @ 2022-03-18 11:02 UTC (permalink / raw)
  To: Nicolas Ferre
  Cc: Conor Dooley, kbuild test robot, Arnd Bergmann, kbuild-all,
	Linux-MM, conor dooley

On Fri, Mar 18, 2022 at 10:43 AM Nicolas Ferre
<nicolas.ferre@microchip.com> wrote:

> Is there a drawback to this approach in the sense that it can trigger
> other test robots?
>
> This way, we won't have to disturb Arnd as I believe that his branches
> are all ready to be sent to Linus after this week-end. Additional
> benefit, you don't have to change your plans and enjoy St Patrick
> week-end ;-).

I don't mind taking last minute fixes for buggy patches that I have queued
up, that seems better than sending the wrong code first and fixing it up
later. I would fix it myself, but I don't immediately see what the
correct fix it.
Do we just remove the kfree(), or does that conflict with the lifetime rules
in case we unbind the driver before the put() callback is called?

       Arnd


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [linux-next:master 7918/13392] drivers/soc/microchip/mpfs-sys-controller.c:73:1-6: WARNING: invalid free of devm_ allocated data
@ 2022-03-18 11:02       ` Arnd Bergmann
  0 siblings, 0 replies; 17+ messages in thread
From: Arnd Bergmann @ 2022-03-18 11:02 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 810 bytes --]

On Fri, Mar 18, 2022 at 10:43 AM Nicolas Ferre
<nicolas.ferre@microchip.com> wrote:

> Is there a drawback to this approach in the sense that it can trigger
> other test robots?
>
> This way, we won't have to disturb Arnd as I believe that his branches
> are all ready to be sent to Linus after this week-end. Additional
> benefit, you don't have to change your plans and enjoy St Patrick
> week-end ;-).

I don't mind taking last minute fixes for buggy patches that I have queued
up, that seems better than sending the wrong code first and fixing it up
later. I would fix it myself, but I don't immediately see what the
correct fix it.
Do we just remove the kfree(), or does that conflict with the lifetime rules
in case we unbind the driver before the put() callback is called?

       Arnd

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [linux-next:master 7918/13392] drivers/soc/microchip/mpfs-sys-controller.c:73:1-6: WARNING: invalid free of devm_ allocated data
  2022-03-18 11:02       ` Arnd Bergmann
@ 2022-03-18 11:59         ` Conor Dooley
  -1 siblings, 0 replies; 17+ messages in thread
From: Conor Dooley @ 2022-03-18 11:59 UTC (permalink / raw)
  To: Arnd Bergmann, Nicolas Ferre
  Cc: Conor Dooley, kbuild test robot, kbuild-all, Linux-MM


On 18/03/2022 11:02, Arnd Bergmann wrote:
> On Fri, Mar 18, 2022 at 10:43 AM Nicolas Ferre
> <nicolas.ferre@microchip.com> wrote:
> 
>> Is there a drawback to this approach in the sense that it can trigger
>> other test robots?
>>
>> This way, we won't have to disturb Arnd as I believe that his branches
>> are all ready to be sent to Linus after this week-end. Additional
>> benefit, you don't have to change your plans and enjoy St Patrick
>> week-end ;-).
> 
> I don't mind taking last minute fixes for buggy patches that I have queued
> up, that seems better than sending the wrong code first and fixing it up
> later. I would fix it myself, but I don't immediately see what the
> correct fix it.
> Do we just remove the kfree(), or does that conflict with the lifetime rules
> in case we unbind the driver before the put() callback is called?

I was just going to remove the kfree, but I don't think that's right.
I'll switch it back to using kzalloc & leave the kfree. I'll send a 
patch later today.

Thanks,
Conor.


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [linux-next:master 7918/13392] drivers/soc/microchip/mpfs-sys-controller.c:73:1-6: WARNING: invalid free of devm_ allocated data
@ 2022-03-18 11:59         ` Conor Dooley
  0 siblings, 0 replies; 17+ messages in thread
From: Conor Dooley @ 2022-03-18 11:59 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 1049 bytes --]


On 18/03/2022 11:02, Arnd Bergmann wrote:
> On Fri, Mar 18, 2022 at 10:43 AM Nicolas Ferre
> <nicolas.ferre@microchip.com> wrote:
> 
>> Is there a drawback to this approach in the sense that it can trigger
>> other test robots?
>>
>> This way, we won't have to disturb Arnd as I believe that his branches
>> are all ready to be sent to Linus after this week-end. Additional
>> benefit, you don't have to change your plans and enjoy St Patrick
>> week-end ;-).
> 
> I don't mind taking last minute fixes for buggy patches that I have queued
> up, that seems better than sending the wrong code first and fixing it up
> later. I would fix it myself, but I don't immediately see what the
> correct fix it.
> Do we just remove the kfree(), or does that conflict with the lifetime rules
> in case we unbind the driver before the put() callback is called?

I was just going to remove the kfree, but I don't think that's right.
I'll switch it back to using kzalloc & leave the kfree. I'll send a 
patch later today.

Thanks,
Conor.

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [linux-next:master 7918/13392] drivers/soc/microchip/mpfs-sys-controller.c:73:1-6: WARNING: invalid free of devm_ allocated data
  2022-03-18 11:02       ` Arnd Bergmann
@ 2022-03-18 12:50         ` Nicolas Ferre
  -1 siblings, 0 replies; 17+ messages in thread
From: Nicolas Ferre @ 2022-03-18 12:50 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: Conor Dooley, kbuild test robot, kbuild-all, Linux-MM, conor dooley

On 18/03/2022 at 12:02, Arnd Bergmann wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
> 
> On Fri, Mar 18, 2022 at 10:43 AM Nicolas Ferre
> <nicolas.ferre@microchip.com> wrote:
> 
>> Is there a drawback to this approach in the sense that it can trigger
>> other test robots?
>>
>> This way, we won't have to disturb Arnd as I believe that his branches
>> are all ready to be sent to Linus after this week-end. Additional
>> benefit, you don't have to change your plans and enjoy St Patrick
>> week-end ;-).
> 
> I don't mind taking last minute fixes for buggy patches that I have queued
> up, that seems better than sending the wrong code first and fixing it up
> later.

Fair enough.

> I would fix it myself, but I don't immediately see what the
> correct fix it.
> Do we just remove the kfree(), or does that conflict with the lifetime rules
> in case we unbind the driver before the put() callback is called?

Thanks Arnd! Best regards,
   Nicolas


-- 
Nicolas Ferre


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [linux-next:master 7918/13392] drivers/soc/microchip/mpfs-sys-controller.c:73:1-6: WARNING: invalid free of devm_ allocated data
@ 2022-03-18 12:50         ` Nicolas Ferre
  0 siblings, 0 replies; 17+ messages in thread
From: Nicolas Ferre @ 2022-03-18 12:50 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 1053 bytes --]

On 18/03/2022 at 12:02, Arnd Bergmann wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
> 
> On Fri, Mar 18, 2022 at 10:43 AM Nicolas Ferre
> <nicolas.ferre@microchip.com> wrote:
> 
>> Is there a drawback to this approach in the sense that it can trigger
>> other test robots?
>>
>> This way, we won't have to disturb Arnd as I believe that his branches
>> are all ready to be sent to Linus after this week-end. Additional
>> benefit, you don't have to change your plans and enjoy St Patrick
>> week-end ;-).
> 
> I don't mind taking last minute fixes for buggy patches that I have queued
> up, that seems better than sending the wrong code first and fixing it up
> later.

Fair enough.

> I would fix it myself, but I don't immediately see what the
> correct fix it.
> Do we just remove the kfree(), or does that conflict with the lifetime rules
> in case we unbind the driver before the put() callback is called?

Thanks Arnd! Best regards,
   Nicolas


-- 
Nicolas Ferre

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [linux-next:master 7918/13392] drivers/soc/microchip/mpfs-sys-controller.c:73:1-6: WARNING: invalid free of devm_ allocated data
  2022-03-18 11:59         ` Conor Dooley
@ 2022-03-21  8:12           ` Conor.Dooley
  -1 siblings, 0 replies; 17+ messages in thread
From: Conor.Dooley @ 2022-03-21  8:12 UTC (permalink / raw)
  To: arnd, Nicolas.Ferre; +Cc: lkp, kbuild-all, linux-mm

On 18/03/2022 11:59, Conor Dooley wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
> 
> On 18/03/2022 11:02, Arnd Bergmann wrote:
>> On Fri, Mar 18, 2022 at 10:43 AM Nicolas Ferre
>> <nicolas.ferre@microchip.com> wrote:
>>
>>> Is there a drawback to this approach in the sense that it can trigger
>>> other test robots?
>>>
>>> This way, we won't have to disturb Arnd as I believe that his branches
>>> are all ready to be sent to Linus after this week-end. Additional
>>> benefit, you don't have to change your plans and enjoy St Patrick
>>> week-end ;-).
>>
>> I don't mind taking last minute fixes for buggy patches that I have queued
>> up, that seems better than sending the wrong code first and fixing it up
>> later. I would fix it myself, but I don't immediately see what the
>> correct fix it.
>> Do we just remove the kfree(), or does that conflict with the lifetime rules
>> in case we unbind the driver before the put() callback is called?
> 
> I was just going to remove the kfree, but I don't think that's right.
> I'll switch it back to using kzalloc & leave the kfree. I'll send a
> patch later today.

Just to follow up, I sent a fix on Friday:
https://lore.kernel.org/linux-riscv/20220318172107.1599399-1-mail@conchuod.ie/


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [linux-next:master 7918/13392] drivers/soc/microchip/mpfs-sys-controller.c:73:1-6: WARNING: invalid free of devm_ allocated data
@ 2022-03-21  8:12           ` Conor.Dooley
  0 siblings, 0 replies; 17+ messages in thread
From: Conor.Dooley @ 2022-03-21  8:12 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 1324 bytes --]

On 18/03/2022 11:59, Conor Dooley wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
> 
> On 18/03/2022 11:02, Arnd Bergmann wrote:
>> On Fri, Mar 18, 2022 at 10:43 AM Nicolas Ferre
>> <nicolas.ferre@microchip.com> wrote:
>>
>>> Is there a drawback to this approach in the sense that it can trigger
>>> other test robots?
>>>
>>> This way, we won't have to disturb Arnd as I believe that his branches
>>> are all ready to be sent to Linus after this week-end. Additional
>>> benefit, you don't have to change your plans and enjoy St Patrick
>>> week-end ;-).
>>
>> I don't mind taking last minute fixes for buggy patches that I have queued
>> up, that seems better than sending the wrong code first and fixing it up
>> later. I would fix it myself, but I don't immediately see what the
>> correct fix it.
>> Do we just remove the kfree(), or does that conflict with the lifetime rules
>> in case we unbind the driver before the put() callback is called?
> 
> I was just going to remove the kfree, but I don't think that's right.
> I'll switch it back to using kzalloc & leave the kfree. I'll send a
> patch later today.

Just to follow up, I sent a fix on Friday:
https://lore.kernel.org/linux-riscv/20220318172107.1599399-1-mail(a)conchuod.ie/


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2022-03-21  8:12 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-17 18:48 [linux-next:master 7918/13392] drivers/soc/microchip/mpfs-sys-controller.c:73:1-6: WARNING: invalid free of devm_ allocated data kernel test robot
2022-03-17 21:17 ` conor dooley
2022-03-17 21:17   ` conor dooley
2022-03-18  9:42   ` Nicolas Ferre
2022-03-18  9:42     ` Nicolas Ferre
2022-03-18  9:43   ` Nicolas Ferre
2022-03-18  9:43     ` Nicolas Ferre
2022-03-18 10:35     ` Conor Dooley
2022-03-18 10:35       ` Conor Dooley
2022-03-18 11:02     ` Arnd Bergmann
2022-03-18 11:02       ` Arnd Bergmann
2022-03-18 11:59       ` Conor Dooley
2022-03-18 11:59         ` Conor Dooley
2022-03-21  8:12         ` Conor.Dooley
2022-03-21  8:12           ` Conor.Dooley
2022-03-18 12:50       ` Nicolas Ferre
2022-03-18 12:50         ` Nicolas Ferre

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.