Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 6DD5E3A9D95 for ; Thu, 5 Feb 2026 11:40:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770291621; cv=none; b=SW3+lZKPcjj0/aHpetvWIOEkLk2JU2XUn9brn9ouVC3UGhxtbW7hX3v7oGCWJmkRncXiX41rENppXCxby3KfstWEbB1/APHYRQ6bon4D5slfqj5KQTi5DOLo8kWKbi5AayI4wKCjJFRh3feopA6xFxzaJuT2aRcQRY2uMsO0+ns= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770291621; c=relaxed/simple; bh=ujJgyhJ1/5gHWxnQNQrbJV/1ev2WHtN0QVoaYNb7Kns=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=ToOWjKGhBywaZ1VsKHfRcT/6nXDxz41D4QHblL798hZaz4KwKCMGKM78i8uNOwm8dYAr0SR4W29zAWRvSUNY2fO2qy0oRduMrn7ubtuRACXoPTuRFrK33/sHV/IuOVKh2cOf/FhfQsUyK7tkxAsfMDWpYvsKLDQ6BPEpDqAjnMI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=dyIsmjyP; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b=aRfThvEV; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="dyIsmjyP"; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b="aRfThvEV" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1770291620; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8ZGp7wmUh7VtEk8sjLqUKtMDtexQxxk82Pts+Tqc7Jo=; b=dyIsmjyPX6/eQ+JPVEiEkJjPmjbsEdXZIdcMVXySp+jFnfazW7QwcwAbMA23zk5VRkK17G W/ioVDzVk4NrZPFM034WHv+tyS3LhAj7FgFfh+ISK9cA/twlWhR6oMnlD0zYwsHNBtwcJt 61qFc6TWq7CJDjdvl/m0Z9SXf7fGVKU= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-352-TQ9YQoZZPg2qtnHEmS4ACQ-1; Thu, 05 Feb 2026 06:40:19 -0500 X-MC-Unique: TQ9YQoZZPg2qtnHEmS4ACQ-1 X-Mimecast-MFC-AGG-ID: TQ9YQoZZPg2qtnHEmS4ACQ_1770291618 Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-47edf8ba319so13482465e9.2 for ; Thu, 05 Feb 2026 03:40:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1770291618; x=1770896418; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=8ZGp7wmUh7VtEk8sjLqUKtMDtexQxxk82Pts+Tqc7Jo=; b=aRfThvEV1EULdDt6pZfbG+SnBRnFT9ve0nUeKkVvKBToiqKlCu3eFinoTQLGeYga3X gkCbdafH6i2/QWqdg1ARg+lDynY3cG7giaHeUjbBivKWMXbvkn8DdxNE2Ct4KHTRMEgl tw8aGzKG0o1tZhQ/o5H8Vi92/uJ9NKdzi3Qzp2z/JDJoKdWolg5ZPoBqwBtvnAuklq1J AlQxPMg4Z2UsKIqlwi0iQKFfcgwiTHYlT06A61DN4afelkgaZMBRNW/dweBcraYXIDYn xbuDliB8AqtIMTskdj4X/JFv55z0SkeECce4Me7p//WbhAg4dnzMSq7O2SCpyfH2PIOW Q2ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770291618; x=1770896418; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=8ZGp7wmUh7VtEk8sjLqUKtMDtexQxxk82Pts+Tqc7Jo=; b=g8r7E2PAoNJnxvl5RStFmU8d318K6wg1KxcxzSJRCNjV+/xgE4fH8e1TXBbU07G/4F NHHLC4pdmM+dyh0/Yqtk910onajkgWuW62xqhFsrzgIraYcphEtOokejb6hTetUw0MpT wKCQbryk3vfskm2HSM04Z47o1g3+MAV1S78ML6nV4/WcXNl3QR2V015SdDvyVMdOdjFH U8A2HngssTOqmxQjqLvbGgNnMXBKaiil0+heiIEDOk5mmIcBH1ZfJBMKRh/YW/Y/35uP zsG6wzG6gFxidNNI8uBPWaU76/BXXcWg7ax5/JTVmIpVEMFEEP/tRKnVPyOuGdhs+gSm rtpQ== X-Forwarded-Encrypted: i=1; AJvYcCVR6VbROHo7/oybS+7EZcF6NHeJ4xaDuVO5NyY9JhG1/yyWRHs969kMc4ZsywUEZ/5OojwxuuKrHsU=@vger.kernel.org X-Gm-Message-State: AOJu0YxaVvXXcp8mUNjXaK6YMoS8qhHF9AtqSqFhpd9v+zMyTMWfSsNn 0QODP97YCs1Lw8G/sQizj/0mI8tvj/5HRwH5JyliFtVHEtkU5ItjZyzzdlR+MGfI7tsHh+3syCQ RzJckvPcG96aQA262XAf1yCNLhGrerg7DXkwnBi32Pp2B4zo+bB8lZrc5AyGDiA== X-Gm-Gg: AZuq6aK1Dg1iE7u4KUV6l27ZaON5DqqGV0Yg0UtUWFqRAwOJmwo1NsoRz7bn71lqOZ0 gtPfs7JObHfIC3XjGq9nRoVKfrZUgygQLBpOSWennLyyA8QuLoxUfEryUl+GyFFBV1beXEUQKRY aF0EMlEmTHT8LkimRhg/1zfgVb4P0V9yXKqOIkY11FlRxCJ4za0dHRwyQQ6oSgnXsyIXcuXt64h dN5Yt88fbRc8pC62xEHgur7iiAorLboQqG07/P7iu1qA8bi2SO7BKXwClsE2Q3n+7lxIRuVERAN xsfFyye+w45lJR9xXHFbQTlk6NNmFsFNiWtuxm0E0uumPYBKIZ/Y6/UcfDM254OIN1RlZYdF3lH PBQYZqklTTiRh X-Received: by 2002:a05:600c:4fd0:b0:47a:9560:ec28 with SMTP id 5b1f17b1804b1-4830e93060bmr87310735e9.13.1770291617993; Thu, 05 Feb 2026 03:40:17 -0800 (PST) X-Received: by 2002:a05:600c:4fd0:b0:47a:9560:ec28 with SMTP id 5b1f17b1804b1-4830e93060bmr87310245e9.13.1770291617532; Thu, 05 Feb 2026 03:40:17 -0800 (PST) Received: from [192.168.88.32] ([216.128.11.114]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4830fe62fe7sm64825025e9.4.2026.02.05.03.40.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 05 Feb 2026 03:40:17 -0800 (PST) Message-ID: Date: Thu, 5 Feb 2026 12:40:15 +0100 Precedence: bulk X-Mailing-List: linux-ppp@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next v2] ppp: remove ppp->closing check To: Qingfang Deng , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , linux-ppp@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20260202092116.266568-1-dqfext@gmail.com> Content-Language: en-US From: Paolo Abeni In-Reply-To: <20260202092116.266568-1-dqfext@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 2/2/26 10:21 AM, Qingfang Deng wrote: > The ppp->closing flag is used to test if an interface is closing down. > However, when .ndo_uninit() is called (where ppp->closing is set to 1), > dev_close() has already brought down the interface, and > synchronize_net() guarantees that no pending TX/RX in the network path > can take place. Thus, the check in the network path is unnecessary. > > For file operations - ppp_read(), ppp_write(), and ppp_poll(), can > normally still send or receive skbs. ppp_read() and ppp_poll() are safe > because ppp_dev_uninit() sets pf->dead before waking them up, causing > both to exit cleanly. Please report the accurate call sequence that would lead to such syscall complete cleanly. Also what if ndo_uninit() happens just after the user-space has been woken-up? > ppp_write() does not check pf->dead, but > ppp_push() verifies that ppp->channels list is not empty before sending. > > Remove the ppp->closing check. This still feel risky to me and it's not clear which would be the goal/gain. It this change performance oriented? If so please included actual figures. Thanks, Paolo