From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 48E95C43144 for ; Tue, 26 Jun 2018 14:17:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0FB6826C13 for ; Tue, 26 Jun 2018 14:17:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0FB6826C13 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=goodmis.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965924AbeFZORR (ORCPT ); Tue, 26 Jun 2018 10:17:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:36318 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965216AbeFZORP (ORCPT ); Tue, 26 Jun 2018 10:17:15 -0400 Received: from gandalf.local.home (cpe-66-24-56-78.stny.res.rr.com [66.24.56.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0C99026C0F; Tue, 26 Jun 2018 14:17:13 +0000 (UTC) Date: Tue, 26 Jun 2018 10:17:12 -0400 From: Steven Rostedt To: Eric Dumazet Cc: Sergey Senozhatsky , Dmitry Vyukov , Samuel Ortiz , "David S. Miller" , Petr Mladek , syzkaller-bugs , linux-wireless@vger.kernel.org, netdev , LKML , syzbot , Sergey Senozhatsky Subject: Re: [PATCH] NFC: llcp: fix nfc_llcp_send_ui_frame() lockup Message-ID: <20180626101712.0fe57ba1@gandalf.local.home> In-Reply-To: <8c410102-43ab-dfdb-0d71-2ee5951e1af8@gmail.com> References: <20180626044119.30118-1-sergey.senozhatsky@gmail.com> <20180626051221.GC31439@jagdpanzerIV> <8c410102-43ab-dfdb-0d71-2ee5951e1af8@gmail.com> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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.