Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1808945imm; Thu, 12 Jul 2018 08:09:39 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfUFeKZ+pa6klcbSKZe0KWzwtrE28ZX5I3SSHmMo7b7ZaMyd21PGaVzjb+s2+0CuiXntwAD X-Received: by 2002:a63:5d58:: with SMTP id o24-v6mr2492966pgm.349.1531408179726; Thu, 12 Jul 2018 08:09:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531408179; cv=none; d=google.com; s=arc-20160816; b=de2xbBV5VkMFyaM49VSnGQKs9OO0B2s6NTCFilMynF7exuqUW7D/80BfAMYabG1+gF Szf4O/LawKf0ejnbPyiYTAPvigHWf6UGzVPkQ/MhcUVRhK7m1WTBp63Zl8Dn6Yn9RWwF Id8lGPYDKxuas0mXPMieblCp2ahS2CNQBV/iVKXhFWWPCjXFoj6UPw2LSdaNZowmodCg JZ0x05C962e+ktQRFppFXEyhyz5qunWJksKeqVasr1RGpkIzXmzZ9z8U9IOtrlFcLb2w kDnDHdAV7p7CjILf3FnsMFMF8oH4pnGI3W1p+XOfCt67nVW7IZ9r97K0BUbbniRWoyAH pkWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=t05ji+T8+r7zlNZm5ihRJ1Vkm1svMZCyDSvXn/7tgXs=; b=acklMEiVjRku4xxfjvSdU18FSNlJ0YcELmkOO0TTgWqi+RPh/DTKfEIsVQFOKf1qea 4nrsuexMhCgU9kOz7co8dmyIX/Db9TsAKvMXC8hD61Y2vAW7W98Cc0fFhBKrgCScQEOf PgHwadK2QpH7PzGcCMmjscv+Xz5NF4Qxf5/bd/TMan80RY9PNfIRFSRJPEmqtpJx1mpr xuLczT2T1IDYfXf8TNCRNxAXUpzXUtGKT3my3+I3L+NYcNY6yfIoAcuKTa2+PRe2KI/F wv66y4rRzbE3Nas4rZqo7dUpL0ECIadCmS1H5ENCZTH5gM0fK2QI+B+Y/n2vcyL4olTQ THHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tycho-ws.20150623.gappssmtp.com header.s=20150623 header.b=W84RQa+K; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y6-v6si19996468pgy.224.2018.07.12.08.09.23; Thu, 12 Jul 2018 08:09:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@tycho-ws.20150623.gappssmtp.com header.s=20150623 header.b=W84RQa+K; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732664AbeGLPSX (ORCPT + 99 others); Thu, 12 Jul 2018 11:18:23 -0400 Received: from mail-qk0-f196.google.com ([209.85.220.196]:44523 "EHLO mail-qk0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732373AbeGLPSX (ORCPT ); Thu, 12 Jul 2018 11:18:23 -0400 Received: by mail-qk0-f196.google.com with SMTP id v17-v6so13119842qkb.11 for ; Thu, 12 Jul 2018 08:08:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tycho-ws.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=t05ji+T8+r7zlNZm5ihRJ1Vkm1svMZCyDSvXn/7tgXs=; b=W84RQa+KZqVvZRtq5dMnJ2mNjPHekdv2rP7XBheQ3NISiR3xKdB7T1zV7uigI0zq3L 8C/uUvr0H4+EE9npDesxadR99UEoy5bISKYSLnJGMoFXikux9HjXty7KjCrzE14N0uax 6tQFFLYTIlebDWO3qbTdUifvyH++euAgWlIlHgsQ8rVsKN37cNjWXD85n5FqPaGA3kfF gKh7IaFCpm84aZYxHX5YKin8xsnfi781fbRDnw1pee8Hf2O042egDzEgYSZpSGlW0GdR 1zgNInJr08FFNG8OUNxbfqqDkRU4dfB2S3YFf4xIsWVfa8HMbFTMTEH9R3stxanLSIU7 jfCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=t05ji+T8+r7zlNZm5ihRJ1Vkm1svMZCyDSvXn/7tgXs=; b=hlV9ZuUz/hxhLC/j0foccSFCK4tmB+X2B/L2dUAS3/i3Or7Oh19dGiYtfcqgwrZUCe x/2X9Hiqd/voYsJmuVYVhAUfOanP8RBJRZqd7v3tSABQfvjl0JgfDseP4OQlFjAPZyMk NRKqcJAuEyXge+QFsc6ujdYjxGSZuaCbxXBZyYNhQGXCJzGmOW0P1uDfSJ1womZdP3Hw Pof5Xs06LTXbG3kGFgVdBasitVf/WcDQhYf2/6HzQfbJUF5+0V3tbrwwW3diItHkkZB/ JpUBDoJssat3zA5rI5NfnZwfeK3VBXPsk+C5mT4Kvro0oqeMvXiBNSdKUKS+6y3do+fe 4k5Q== X-Gm-Message-State: AOUpUlE5Lm5gSMEOjD3ugUywv7mbFsCrhTqOTWvOximOEHNXGEOTbcCL wla+ATR6yLJ3oqKcv2LPoXT9wg== X-Received: by 2002:a37:83c6:: with SMTP id f189-v6mr2062590qkd.47.1531408105221; Thu, 12 Jul 2018 08:08:25 -0700 (PDT) Received: from cisco.cisco.com ([173.38.117.87]) by smtp.gmail.com with ESMTPSA id d202-v6sm3279687qkb.38.2018.07.12.08.08.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 12 Jul 2018 08:08:24 -0700 (PDT) Date: Thu, 12 Jul 2018 09:08:22 -0600 From: Tycho Andersen To: Greg Kroah-Hartman Cc: Jiri Slaby , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, "Serge E . Hallyn" Subject: Re: [PATCH v4] uart: fix race between uart_put_char() and uart_shutdown() Message-ID: <20180712150822.GC13192@cisco.cisco.com> References: <20180706212220.GC3583@cisco.lan> <20180711160744.32074-1-tycho@tycho.ws> <20180712150438.GF22502@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180712150438.GF22502@kroah.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 12, 2018 at 05:04:38PM +0200, Greg Kroah-Hartman wrote: > On Wed, Jul 11, 2018 at 10:07:44AM -0600, Tycho Andersen wrote: > > + if (uport) > > + spin_lock_irqsave(&uport->lock, flags); > > That's the same thing as just calling uart_port_lock(), why aren't you > doing that? Because the compiler can't seem to "see" through the macros/ref calls, and I get the warning I mentioned here if I use them: https://lkml.org/lkml/2018/7/6/840 Tycho