Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp927749lqp; Thu, 23 May 2024 04:32:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXN6dWF1fXjnw9g4LAp8BJotRWKqrt9BKmJTo57yt4bCmHC8bJo47E798YJdHuiL+ARyhEqobB6ahSCSXP4WK+oM5c/sy8xENxVYgwekg== X-Google-Smtp-Source: AGHT+IFRmeqeAEA/cLG2iQGT+wR6rzG9p6OLDyZvA6qfgpItauXL+CE63qmP38m7V7XvJvEDErjI X-Received: by 2002:a05:6a20:7354:b0:1af:cb65:1407 with SMTP id adf61e73a8af0-1b1f87f7a74mr5866646637.6.1716463967666; Thu, 23 May 2024 04:32:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716463967; cv=pass; d=google.com; s=arc-20160816; b=BS4IiUHMla36tiG6HhWFQzW/54fhUo7Olf1JsXlMWs/W+N1GhAAZ45TBlokGb7a5MS pfzC58tVVBWw4miOLVJ/75PUbxeczCWZjOd12u7FbfPTyKWDek5mNzCZq+RO/op4t+Da Lw5V5QumWjc8gdP5OaYVfnNrXeQGAcOvOy19SPye3LR4KfZd6DI3fxnTRmFz80ZykO5F DNWLZJ5xQ0aV9gMmx8TYyrC0mcEhIdnx83lq72zHQriOjPNmttUhFe1NeBdvcRhb060K LeYqxWCxRJYlR+HtGBz3LC2eG0FSj8+/zvqjXSlbPKOo2AHLhIeHK9MFBYu8bYISWvRt aemw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=dT2dMNOz6+wQTN1eQXTGoJ51EFsMwKm6pwunshbT8IQ=; fh=QMEtUNhd3SxfDPB5Ivmdhg5EVOIO6bpF4VrSgn4/pqg=; b=guvvlwJ8E5n2z4rYFf9EdYOXcQaSR8U2PclnfbgLJlakD950fJ0eyfimyG664YbhF5 9nzBCuMp6lFz+xczBslIiKZAYMYBc1FZXuoNPu1XKWxR2a1UTwmDrFZ8v8ySAeRgRgFv Urs+Rzs1IbdYGUaX5gVX9TzVLNHK3r2MJlxjAFX+cnAlZnwrnCebFA7SFuw8qr4qYtpt 3TlsQNWFCasIpF3EHWG0v3VawNhNdYit0frFl5R15krUajmfiQhm3GYa7CSj0qushUeu Cw0vlEltbEuRVWeUj0adN0evfZ3A60gok5PYLnsJrsqRlNy/XkF1a8F0wyGZcWJl/CNc 0urg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=sina.com); spf=pass (google.com: domain of linux-kernel+bounces-187398-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187398-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-65d26faca70si9196863a12.253.2024.05.23.04.32.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 04:32:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-187398-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sina.com); spf=pass (google.com: domain of linux-kernel+bounces-187398-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187398-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 02900B20ED7 for ; Thu, 23 May 2024 11:31:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 86BC8144D26; Thu, 23 May 2024 11:31:23 +0000 (UTC) Received: from mail115-76.sinamail.sina.com.cn (mail115-76.sinamail.sina.com.cn [218.30.115.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 95B4A13D293 for ; Thu, 23 May 2024 11:31:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=218.30.115.76 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716463883; cv=none; b=e94SrVmgBHFiUeKLQwiztPNvwnyW+ME0SrUGy8VmAQMT/wsjugz2qLoFqlsU4zf8hucURjvKyjfixQROBFAREiHYmrC1ZQab7LRiWigvqEhOFIhQ1o9yRjODogttTWFvj156bns7GZPslgb4hq0KgXFLJkFzDp/bzfrAfkutmL4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716463883; c=relaxed/simple; bh=nmX2kYBeqtVLSelimdPXKQDwxlk8oBAMzgJXaoBP15A=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Xk1TovyKW505FkuX8Y9gDbXJuXaxnhVlTkLhCc4DX7YxXq7ox7OK5zq5yW3lXy1IBbUYaEWaMFwh0suTn2J0WlUYhp8rQ5foZUUUiuqI35eye6StVSM6spcDz605hSamjgGo0C+r6niaLPD2sL8qKSWE1uXl8WI90GPTo7VY7L8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sina.com; spf=pass smtp.mailfrom=sina.com; arc=none smtp.client-ip=218.30.115.76 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sina.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sina.com X-SMAIL-HELO: localhost.localdomain Received: from unknown (HELO localhost.localdomain)([113.88.48.155]) by sina.com (10.75.12.45) with ESMTP id 664F28F900002574; Thu, 23 May 2024 19:31:10 +0800 (CST) X-Sender: hdanton@sina.com X-Auth-ID: hdanton@sina.com Authentication-Results: sina.com; spf=none smtp.mailfrom=hdanton@sina.com; dkim=none header.i=none; dmarc=none action=none header.from=hdanton@sina.com X-SMAIL-MID: 91507531457636 X-SMAIL-UIID: D166617DAB7D4799AB52F0DDBD3CB121-20240523-193110-1 From: Hillf Danton To: syzbot Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] [serial?] possible deadlock in uart_write (2) Date: Thu, 23 May 2024 19:30:57 +0800 Message-Id: <20240523113057.2386-1-hdanton@sina.com> In-Reply-To: <000000000000be49b106191916f0@google.com> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit On Wed, 22 May 2024 23:23:26 -0700 > syzbot has found a reproducer for the following issue on: > > HEAD commit: de7e71ef8bed mm: simplify and improve print_vma_addr() out.. > git tree: upstream > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=140480ec980000 #syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git de7e71ef8bed --- x/drivers/tty/serial/serial_core.c +++ y/drivers/tty/serial/serial_core.c @@ -622,8 +622,9 @@ static ssize_t uart_write(struct tty_str return -EL3HLT; port = uart_port_lock(state, flags); - if (WARN_ON_ONCE(!state->port.xmit_buf)) { + if (!state->port.xmit_buf) { uart_port_unlock(port, flags); + WARN_ON_ONCE(1); return 0; } --