Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp5170731pxu; Thu, 10 Dec 2020 15:03:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJx0FhLPVF6UOzzTwPHHs4lTBo5dbfcGDgGdm1gs/61tvC+90t06eOobEWQxYTeo++6L5WxT X-Received: by 2002:a17:906:6989:: with SMTP id i9mr5557042ejr.414.1607641438126; Thu, 10 Dec 2020 15:03:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607641438; cv=none; d=google.com; s=arc-20160816; b=ea8Avc0EwJHH+y5H4/+NcLztPux5ihoJovNQY30gDYjuiUzWJ2AQX8sViPOOAcDYRI 3g/a2mlZtR0Pr6+9tP8ETxAxLLyv2MhCW174v4T5WbvAu0NG9yO/6jWeazEn6/wbUiHU Xon7ZvUj6Y5ZbMhwSHBNDaqTTpCyF0aDximNMxCpw+045zkhTd2ByRNNcD2UIfCurxre dSEaonIWTo2wnfTdWd6AxhauyVA/eiJGy51r8Ft4T/ORev0K3aSxYFcYvek0f/NETuht 3i+RTwRMZcC2B5r1kFe/bk4fEv3VMXVV6PKK5PoAntefHLy0pgVXcmCNi97asXpb0CA3 2WyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=YR6gFCqJqXP84fA9UYeAxb46qRTVRaOH34o5hjUIaIM=; b=kyuRIFq1YKfNA3Oq+/Uspo1cyO6twRXdNym3Fj/a+Ug45mQSKCy35lStfiik2Zj98w lLg2dq4K/CWoB2YBC2rfLjUYjuPcVrQj/uswOMvnU8mJu/WQi/SwGW+Gzugse94c/hE2 uRhfK7jFpwhiMefDu/xWtJJm456uYPhyUbTVERKYPFAQtrzs6jZB12EPRy/Yjp2ECgU6 rMV8+nX30erSdQMi2mGc/utN/7Y4yBLfbUaD4dGE/JDsG3TKZKDDXZW9pNDxNUrSo6IA jNkNL/pR197NkzXnmVljV99UBJDY/GU1A9vgbTVZ0PRIxxtmlvPOYa161lrOdTUBr3ke s+xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ryM0D2Dm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t4si3717509edq.607.2020.12.10.15.03.18; Thu, 10 Dec 2020 15:03:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ryM0D2Dm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729817AbgLJHH0 (ORCPT + 99 others); Thu, 10 Dec 2020 02:07:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725812AbgLJHH0 (ORCPT ); Thu, 10 Dec 2020 02:07:26 -0500 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BDB00C0613CF; Wed, 9 Dec 2020 23:06:45 -0800 (PST) Received: by mail-wm1-x342.google.com with SMTP id g185so4150338wmf.3; Wed, 09 Dec 2020 23:06:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=YR6gFCqJqXP84fA9UYeAxb46qRTVRaOH34o5hjUIaIM=; b=ryM0D2Dm8X78sKekcsr8QeXnfQb75ahxH4eagUiR8vXfPb3RqQ7QRm7FkqE1TrOoAn sm0BaxGB67py0D1HIH9lkWlfqECqH9381UOWLXFxArZQlQg9ExOFUAumj/0eaKOIi4UX 3WFmGqqvjhyMNj8srxO8HhWXuBTCkPtvFsTGylKOhvyJ5p43GP8uNYSfx78FYFWGS6Qc 5NTX3tUDys4i65tBkh/TdrzmFJyQyYtR4tEJEg7R0J29wBm265cqQ7HZf2h3lZa6mMP7 PuED2KpxmyVN746sbXA5DWswC7wTldq/gFYQlCH96dXqzx+r48bXMV8pgilZYX0tE5Bb e1Rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=YR6gFCqJqXP84fA9UYeAxb46qRTVRaOH34o5hjUIaIM=; b=lwmDI+3iNqlOqBMUu1Mja5HUwmw1mj6Gel4LEGifBtbr6u/CfWvMkgfJvpmPaxk0jM WpZ8eSX7ptpFxP19kNERVljFy+t2HSBKAUNWuv6mibMqCm8DwhT7BekB0zyA1B15TRSb MPDN4XfZ1W6yJKmKvx+Y8W1Ms2KFuJth4O8NwgmmtdROrbcPccxfrHRZZyUneK4fH3+d j6F1QvkL4t3vLvoprovkocdjMH3OzR8jYkjkZWb16f+nHBvQIIOyzfthb6Bc8IkHAqJs tTLWCPf72JbvYQ91kGDYQRBkTKPzpm8zise8UK/y3K6S28exyHxyb3/BnvRhvpVr+9Ks MStw== X-Gm-Message-State: AOAM531pY65xIw9oO/4Ij+ZMzkqpS7C3M1MmRbW5GCGTBElvFlr8uHIU XjukIMfByI/dODg7twKyZXU= X-Received: by 2002:a7b:cd91:: with SMTP id y17mr6252191wmj.171.1607584004382; Wed, 09 Dec 2020 23:06:44 -0800 (PST) Received: from [10.11.11.4] ([178.254.237.20]) by smtp.gmail.com with ESMTPSA id c4sm8026442wrw.72.2020.12.09.23.06.42 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Dec 2020 23:06:43 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.40.0.2.31\)) Subject: Re: Urgent: BUG: PPP ioctl Transport endpoint is not connected From: Martin Zaharinov In-Reply-To: <20201209181033.GB21199@linux.home> Date: Thu, 10 Dec 2020 09:06:41 +0200 Cc: "linux-kernel@vger kernel. org" , Eric Dumazet , netdev@vger.kernel.org Content-Transfer-Encoding: quoted-printable Message-Id: <8AA74C35-A61A-4EA5-911E-41017C7A399E@gmail.com> References: <83C781EB-5D66-426E-A216-E1B846A3EC8A@gmail.com> <20201209164013.GA21199@linux.home> <1E49F9F8-0325-439E-B200-17C8CB6A3CBE@gmail.com> <20201209181033.GB21199@linux.home> To: Guillaume Nault X-Mailer: Apple Mail (2.3654.40.0.2.31) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On 9 Dec 2020, at 20:10, Guillaume Nault wrote: >=20 > On Wed, Dec 09, 2020 at 06:57:44PM +0200, Martin Zaharinov wrote: >>> On 9 Dec 2020, at 18:40, Guillaume Nault wrote: >>> On Wed, Dec 09, 2020 at 04:47:52PM +0200, Martin Zaharinov wrote: >>>> Hi All >>>>=20 >>>> I have problem with latest kernel release=20 >>>> And the problem is base on this late problem : >>>>=20 >>>>=20 >>>> = https://www.mail-archive.com/search?l=3Dnetdev@vger.kernel.org&q=3Dsubject= :%22Re%5C%3A+ppp%5C%2Fpppoe%2C+still+panic+4.15.3+in+ppp_push%22&o=3Dnewes= t&f=3D1 >>>>=20 >>>> I have same problem in kernel 5.6 > now I use kernel 5.9.13 and = have same problem. >>>>=20 >>>>=20 >>>> In kernel 5.9.13 now don=E2=80=99t have any crashes in dimes but in = one moment accel service stop with defunct and in log have many of this = line : >>>>=20 >>>>=20 >>>> error: vlan608: ioctl(PPPIOCCONNECT): Transport endpoint is not = connected >>>> error: vlan617: ioctl(PPPIOCCONNECT): Transport endpoint is not = connected >>>> error: vlan679: ioctl(PPPIOCCONNECT): Transport endpoint is not = connected >>>>=20 >>>> In one moment connected user bump double or triple and after that = service defunct and need wait to drop all session to start . >>>>=20 >>>> I talk with accel-ppp team and they said this is kernel related = problem and to back to kernel 4.14 there is not this problem. >>>>=20 >>>> Problem is come after kernel 4.15 > and not have solution to this = moment. >>>=20 >>> I'm sorry, I don't understand. >>> Do you mean that v4.14 worked fine (no crash, no ioctl() error)? >>> Did the problem start appearing in v4.15? Or did v4.15 work and the >>> problem appeared in v4.16? >>=20 >> In Telegram group I talk with Sergey and Dimka and told my the = problem is come after changes from 4.14 to 4.15=20 >> Sergey write this : "as I know, there was a similar issue in kernel = 4.15 so maybe it is still not fixed" >=20 > Ok, but what is your experience? Do you have a kernel version where > accel-ppp reports no ioctl() error and doesn't crash the kernel? >=20 > There wasn't a lot of changes between 4.14 and 4.15 for PPP. > The only PPP patch I can see that might have been risky is commit > 0171c4183559 ("ppp: unlock all_ppp_mutex before registering device"). May be or is other bug in ppp but how to debug or find fix=E2=80=A6 >=20 >> I don=E2=80=99t have options to test with this old kernel 4.14.xxx i = don=E2=80=99t have support for them. >>=20 >>=20 >>>=20 >>>> Please help to find the problem. >>>>=20 >>>> Last time in link I see is make changes in ppp_generic.c=20 >>>>=20 >>>> ppp_lock(ppp); >>>> spin_lock_bh(&pch->downl); >>>> if (!pch->chan) { >>>> /* Don't connect unregistered channels */ >>>> spin_unlock_bh(&pch->downl); >>>> ppp_unlock(ppp); >>>> ret =3D -ENOTCONN; >>>> goto outl; >>>> } >>>> spin_unlock_bh(&pch->downl); >>>>=20 >>>>=20 >>>> But this fix only to don=E2=80=99t display error and freeze system=20= >>>> The problem is stay and is to big. >>>=20 >>> Do you use accel-ppp's unit-cache option? Does the problem go away = if >>> you stop using it? >>>=20 >>=20 >> No I don=E2=80=99t use unit-cache , if I set unit-cache accel-ppp = defunct same but user Is connect and disconnet more fast. >>=20 >> The problem is same with unit and without .=20 >> Only after this patch I don=E2=80=99t see error in dimes but this is = not solution. >=20 > Soryy, what's "in dimes"? > Do you mean that reverting commit 77f840e3e5f0 ("ppp: prevent > unregistered channels from connecting to PPP units") fixes your = problem? May be no if revert system will display crash report and go to freeze . >=20 >> In network have customer what have power cut problem, when drop 600 = user and back Is normal but in this moment kernel is locking and start = to make this :=20 >> sessions: >> starting: 4235 >> active: 3882 >> finishing: 378 >> The problem is starting session is not real user normal user in this = server is ~4k customers . >=20 > What type of session is it? L2TP, PPPoE, PPTP? >=20 >> I use pppd_compat . >>=20 >> Any idea ? >>=20 >>>>=20 >>>> Please help to fix. >> Martin