Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751759AbdHAAZp (ORCPT ); Mon, 31 Jul 2017 20:25:45 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:48302 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751697AbdHAAZo (ORCPT ); Mon, 31 Jul 2017 20:25:44 -0400 Date: Mon, 31 Jul 2017 17:22:28 -0700 (PDT) Message-Id: <20170731.172228.890883127209209563.davem@davemloft.net> To: avolkov@ispras.ru Cc: isdn@linux-pingi.de, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, ldv-project@linuxtesting.org, khoroshilov@ispras.ru Subject: Re: [PATCH] hysdn: fix to a race condition in put_log_buffer From: David Miller In-Reply-To: References: <8178d591-2b1a-334d-fdd1-4c6b98abad72@ispras.ru> <2f35ddaf-88d9-e848-f83b-3001b36b2883@linux-pingi.de> X-Mailer: Mew version 6.7 on Emacs 25.2 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Mon, 31 Jul 2017 17:25:43 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 636 Lines: 18 From: Anton Volkov Date: Fri, 28 Jul 2017 17:53:51 +0300 > The synchronization type that was used earlier to guard the loop that > deletes unused log buffers may have lead to a situation that prevents > any thread from going through the loop. > > The patch deletes previously used synchronization mechanism and moves > the loop under the spin_lock so the similar cases won't be feasible in > the future. > > Found by by Linux Driver Verification project (linuxtesting.org). > > Signed-off-by: Anton Volkov This patch doesn't apply at all. It's probably been corrupted by your email client.