From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2] Fix `eventfd_link' module leakages and races Date: Mon, 23 Mar 2015 12:15:30 +0100 Message-ID: <2544479.OZtlEpgWBm@xps13> References: <1426524059-30886-1-git-send-email-pboldin+dpdk@mirantis.com> <1426684571-14782-1-git-send-email-pboldin@mirantis.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev-VfR2kkLFssw@public.gmane.org To: Pavel Boldin Return-path: In-Reply-To: <1426684571-14782-1-git-send-email-pboldin-nYU0QVwCCFFWk0Htik3J/w@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" Hi Pavel, You forgot the Signed-off-by line. Huawei, Changchun, any comment on this patch? 2015-03-18 15:16, Pavel Boldin: > The `eventfd_link' module provides an API to "steal" fd from another > process had been written with a bug that leaks `struct file' because > of the extra reference counter increment and missing `fput' call. > > The other bug is using another process' `task_struct' without incrementing > a reference counter. As there are 2 bugs, you should provide 2 patches. > Fix these bugs and refactor the module. Why refactoring along with the bug fixes? You'd have more chances to have your fixes integrated in 2.0 without refactoring. Thanks