From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sergey Senozhatsky Subject: Re: [PATCH] NFC: llcp: fix nfc_llcp_send_ui_frame() lockup Date: Tue, 26 Jun 2018 14:12:21 +0900 Message-ID: <20180626051221.GC31439@jagdpanzerIV> References: <20180626044119.30118-1-sergey.senozhatsky@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Sergey Senozhatsky , Samuel Ortiz , "David S. Miller" , Steven Rostedt , Petr Mladek , syzkaller-bugs , linux-wireless@vger.kernel.org, netdev , LKML , syzbot , Sergey Senozhatsky To: Dmitry Vyukov Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On (06/26/18 07:07), Dmitry Vyukov wrote: [..] > > #include > > @@ -755,7 +756,8 @@ int nfc_llcp_send_ui_frame(struct nfc_llcp_sock *sock, u8 ssap, u8 dsap, > > pdu = nfc_alloc_send_skb(sock->dev, &sock->sk, MSG_DONTWAIT, > > frag_len + LLCP_HEADER_SIZE, &err); > > if (pdu == NULL) { > > - pr_err("Could not allocate PDU\n"); > > + pr_err_ratelimited("Could not allocate PDU\n"); > > + cond_resched(); > > continue; > > } > > > But this thread is still in an infinite (unkillable?) loop? If yes, we > are waiting for the next syzbot report ;) 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. -ss