Re: [PATCH net] can: raw: fix receiver memory leak

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06.07.23 14:48, Ziyang Xuan (William) wrote:

(..)

       }
      out:
       release_sock(sk);
+    rtnl_unlock();

Would it also fix the issue when just adding the rtnl_locks to raw_bind() and raw_release() as suggested by you?

This patch just add rtnl_lock in raw_bind() and raw_release(). raw_setsockopt() has rtnl_lock before this. raw_notify()
is under rtnl_lock. My patch has been tested and solved the issue before send. I don't know if it answered your doubts.

My question was whether adding rtnl_locks to raw_bind() and raw_release() would be enough to fix the issue.

Without introducing the additional ro->dev element!?

Best regards,
Oliver



[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux