From owner-freebsd-current@freebsd.org Sat Aug 11 07:44:25 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2F88510615C5 for ; Sat, 11 Aug 2018 07:44:25 +0000 (UTC) (envelope-from bogorodskiy@gmail.com) Received: from mail-ed1-x541.google.com (mail-ed1-x541.google.com [IPv6:2a00:1450:4864:20::541]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9F16B7026F; Sat, 11 Aug 2018 07:44:24 +0000 (UTC) (envelope-from bogorodskiy@gmail.com) Received: by mail-ed1-x541.google.com with SMTP id o8-v6so5820334edt.13; Sat, 11 Aug 2018 00:44:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=1bHVcYCGEIMOGZBC36HM15L0LRDmGtBbBqqmV3SjuAE=; b=fBwQnpLPfEdyhAYGkWBYifnGjuWE8fc2bZG/tVoZ8Ws5rmZ3Gz5DxVVgamXBc4bxnu uZAelxJ8r1S8qPAdal+qpCisuIKRrMZBeKLs+V+0/i62PyX6ykqOsdgVYEo6FNm+osak nvANp82rsRqGl7nUoU8A85jhF3JBk9tz14mvGU66iCnsLgS0H8pNoIlDT8OKwnSSPS6C sDYauX6DvBYZ5JuXWSVIy9tL0KpRRw/mot0f1OImv76eYm7VIHvVF8M/6BN8Kb+LOCJn t1fuztnm5HxaIRvlFtmiVmo88CXjWJa1bBQY9tfwwpfXf7B5z7ZaK0rkJCfhvUfghYjo LkGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=1bHVcYCGEIMOGZBC36HM15L0LRDmGtBbBqqmV3SjuAE=; b=Yd7sLwFlBBQlLwsoNltZhosr1BG9InofLIpF6QjjNibQvP8no/eJRjNJGOJCpn71hO u8JS57b1EEgAwxjnYjAnMqHJ8sNh9rEt+t3EeGf7TP+b+xB1I2BMRaj+lv8J+z2zZcGN tA+mLNXC+DmXEUavdjwARclX3A5FIBnht5mbc9Apihji3N1qxyrN5AxJ21ZbEGy+Rmaj iFdNqUaYR/7Nk08OXLp2/40NM5/8kl3dMs+fsW4GF1aVAwccQ4OkzKYgp8x64EQIW3Ov zUV35uBFZsmyHN25stosfmr2/MbYY0a4PS/VEH77B5vOs4nKddCZblmhVtTpK5MowHhQ noNQ== X-Gm-Message-State: AOUpUlFGoLxUGQPvNXFxwp/usQq3dmxjahON+Ju10x/mX4S6R9UBQnC9 T/CikQJOQX4GezmbkeBZdviaWWJg X-Google-Smtp-Source: AA+uWPzbkD6DeHnAKrMgWoubJk+k6yKTG5E1H/3L0Up6fxHDvuoDn6qa/owDCuJdaNIfEgVxxvNY8A== X-Received: by 2002:a50:b178:: with SMTP id l53-v6mr12188657edd.306.1533973463512; Sat, 11 Aug 2018 00:44:23 -0700 (PDT) Received: from kloomba ([213.147.215.215]) by smtp.gmail.com with ESMTPSA id t44-v6sm8609304edb.79.2018.08.11.00.44.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 11 Aug 2018 00:44:22 -0700 (PDT) Sender: Roman Bogorodskiy Date: Sat, 11 Aug 2018 11:44:09 +0400 From: Roman Bogorodskiy To: Hans Petter Selasky Cc: Matthew Macy , freebsd-current@freebsd.org Subject: Re: panic after ifioctl/if_clone_destroy Message-ID: <20180811074407.GA6299@kloomba> References: <20180805153556.GA1957@kloomba> <8acc8f27-29f2-d4c1-7473-f7053b14e7ad@selasky.org> <911d520a-4eb5-02b4-a119-3663a7537e6a@selasky.org> <24743f03-8af2-4106-653d-3bfd13d910c9@selasky.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5vNYLRcllDrimb99" Content-Disposition: inline In-Reply-To: <24743f03-8af2-4106-653d-3bfd13d910c9@selasky.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Aug 2018 07:44:25 -0000 --5vNYLRcllDrimb99 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hans Petter Selasky wrote: > On 08/06/18 21:43, Matthew Macy wrote: > > The struct thread is typesafe. The problem is that the link is no longer > > typesafe now that it=E2=80=99s not part of the thread. Thanks for point= ing this > > out. I=E2=80=99ll commit a fix later today. > >=20 >=20 > Is there a patch yet? >=20 > --HPS >=20 This was committed in: https://svnweb.freebsd.org/changeset/base/337525 However, I've just updated to r337595, and it still panics. Not sure if that's related to the original issue though: (kgdb) #0 doadump (textdump=3D0) at pcpu.h:230 #1 0xffffffff8043ddfb in db_dump (dummy=3D, dummy2=3D, dummy3=3D, dummy4=3D) at /usr/src/sys/ddb/db_command.c:574 #2 0xffffffff8043dbc9 in db_command (cmd_table=3D) at /usr/src/sys/ddb/db_command.c:481 #3 0xffffffff8043d944 in db_command_loop () at /usr/src/sys/ddb/db_command.c:534 #4 0xffffffff80440b6f in db_trap (type=3D, code=3D) at /usr/src/sys/ddb/db_main.c:252 #5 0xffffffff80bdef83 in kdb_trap (type=3D9, code=3D0, tf=3D) at /usr/src/sys/kern/subr_kdb.c:693 #6 0xffffffff8107aee1 in trap_fatal (frame=3D0xfffffe00760dc8a0, eva=3D0) at /usr/src/sys/amd64/amd64/trap.c:906 #7 0xffffffff8107a3bd in trap (frame=3D0xfffffe00760dc8a0) at counter.h:87 #8 0xffffffff81054d05 in calltrap () at /usr/src/sys/amd64/amd64/exception.S:232 #9 0xffffffff80ded513 in inp_gcmoptions (ctx=3D0xfffff80003079f20) at epoch_private.h:188 #10 0xffffffff80bd9cba in epoch_call_task (arg=3D) at /usr/src/sys/kern/subr_epoch.c:507 #11 0xffffffff80bdd0a9 in gtaskqueue_run_locked (queue=3D0xfffff800035be900) at /usr/src/sys/kern/subr_gtaskqueue.c:332 #12 0xffffffff80bdce28 in gtaskqueue_thread_loop (arg=3D) at /usr/src/sys/kern/subr_gtaskqueue.c:507 #13 0xffffffff80b530c4 in fork_exit ( callout=3D0xffffffff80bdcda0 ,=20 arg=3D0xfffffe00061a4038, frame=3D0xfffffe00760dcac0) at /usr/src/sys/kern/kern_fork.c:1057 #14 0xffffffff81055cde in fork_trampoline () at /usr/src/sys/amd64/amd64/exception.S:990 #15 0x0000000000000000 in ?? () Current language: auto; currently minimal (kgdb)=20 Full core.txt is here: https://people.freebsd.org/~novel/misc/core.20180811= =2Etxt Roman Bogorodskiy --5vNYLRcllDrimb99 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJbbpPHAAoJEMltX/4IwiJqm6oH/0SKon8ibkXCXg0vASu+TUN5 cGv6ZtcYupBYU1OxTMT+eYqx5WMPwFdu4XkXmc/lLzhjsAZXM0Lj3zyemluECie7 JbflfboWuMncvMzC4suarKXSaDUc1RTVK4VYMHlM999YqIOZ6zbvLr07LIKwqQ0a aKr7YOD4waFt3xjCKWgNpfeeVZhEmUV6eOMRneKx4LKMH7Oy5KnqYkUz+yI5rgkC 1yY4w7o8Cc6zJ1VdrEOpOq8AEIjqoaQJmlstRk6FzaDH+SvQ2IBm/aZfNf0+Yech nwWcIIkxfXPoKbGGvz93/JE7VymQ8CSEjKl3pXsKKOgpMkxilv3J0H6PlXHus60= =gvwE -----END PGP SIGNATURE----- --5vNYLRcllDrimb99--