From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steven Rostedt Subject: Re: [PATCH] NFC: llcp: fix nfc_llcp_send_ui_frame() lockup Date: Tue, 26 Jun 2018 10:17:12 -0400 Message-ID: <20180626101712.0fe57ba1@gandalf.local.home> References: <20180626044119.30118-1-sergey.senozhatsky@gmail.com> <20180626051221.GC31439@jagdpanzerIV> <8c410102-43ab-dfdb-0d71-2ee5951e1af8@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Sergey Senozhatsky , Dmitry Vyukov , Samuel Ortiz , "David S. Miller" , Petr Mladek , syzkaller-bugs , linux-wireless@vger.kernel.org, netdev , LKML , syzbot , Sergey Senozhatsky To: Eric Dumazet Return-path: In-Reply-To: <8c410102-43ab-dfdb-0d71-2ee5951e1af8@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Mon, 25 Jun 2018 23:44:22 -0700 Eric Dumazet wrote: > > The loop is still infinite, correct, but we have a preemption point now. > > Sure, net people can come with a much better solution, I'll be happy to > > scratch my patch. > > > > This can not be the right solution, think about current thread being real time, > cond_resched() might be a nop. Good point! Bah, as one of the RT maintainers, I should have noticed that too :-p I'm losing my touch. -- Steve > > We should probably not loop at all, or not use MSG_DONTWAIT. > > (And remove this useless "Could not allocate PDU" message) > > NFC maintainers should really take a look at this.