From owner-freebsd-net@freebsd.org Mon Oct 15 01:51:47 2018 Return-Path: Delivered-To: freebsd-net@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 E956010CB88A; Mon, 15 Oct 2018 01:51:46 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) (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 6C0ED7EAAC; Mon, 15 Oct 2018 01:51:46 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by mail-pl1-x632.google.com with SMTP id p25-v6so8462932pli.11; Sun, 14 Oct 2018 18:51:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:message-id:date:cc:to; bh=5mRrCiiJSMPQUCAXix1PARcyxftB59Zur53bmjtKCfw=; b=LvK4HFwaA1NnQ2x1kiecYEJUsCbd2nm7efMBS8kxhulMZcn1MPcntZ8F/hjhfcpcH9 r9fZBpq3KUTDt9UUnvRTC/30VWsl/SlQEzHz3Sw4aEidEBIVoGcM4hgeZqnFNVgOu4Ar 7QHYqjBNRyDv0sJ6TUQWdvmGYJX3/FmG5vfrRb2GJp4ZeThWvJVD1uQBf3V1DAJ/fw6H JHTNUhLAA5+U+0o6RufgENlt7Fg889WfZA9FU0KgP45daUz5npvbzY1mgbSBG5TbD5ag h4jNK8tl79oVJG3X66UXAavTULnsw6mDbztrks6cbXQ7qiySxtPCmG331nhjlvB7s4Wv N+5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:message-id:date:cc:to; bh=5mRrCiiJSMPQUCAXix1PARcyxftB59Zur53bmjtKCfw=; b=ZMPSZwH+ES6AdyBkUKh3BObfHibU1o7yQasQBRzIosHZKZEY80Tj6avMuXsh4N2SWP 8OtCjVCtov4Vofk+nUouShp6KGHVN1aNSLFA4njJxjQDXwDbro19rx/1+xvcHCQb0OE6 uQvWv3a7HL71GigPCiswOGHXXxWfq0o0Oi2YnCcidnGrpOFgiACWP7ZCUX9G9JTJwCFP 4PnDkPC+eb1Rt+TktaLyMln/4W40EygQ5M3xk38IEN6+UztNpbPX3AoaDcVvm6WfYiTa NvKikCJ8mKudjXR7eUk3VLPQM8wQl8fvMJz+eCnIfAI7UxY4YH0hvQwxF6/pdVmsGebc agHg== X-Gm-Message-State: ABuFfohKCcCcMsXlLSHDEBHYUWhyyRp+EDUeNOwHDnhDIQbjmhycLg/v DvM2X5rA81hLEZs4Pk88gwOBXU0I X-Google-Smtp-Source: ACcGV62M8KEsJa8z3XNOlWNtd04Zz7u22oZLH6Dz4BLi985WnrKu4pAtFxcKJeNWjG/suuChiTrRrg== X-Received: by 2002:a17:902:bc42:: with SMTP id t2-v6mr8575434plz.168.1539568304943; Sun, 14 Oct 2018 18:51:44 -0700 (PDT) Received: from [192.168.20.7] (c-73-19-52-228.hsd1.wa.comcast.net. [73.19.52.228]) by smtp.gmail.com with ESMTPSA id 126-v6sm11050791pfd.16.2018.10.14.18.51.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 14 Oct 2018 18:51:43 -0700 (PDT) From: "Enji Cooper (yaneurabeya)" Content-Type: multipart/signed; boundary="Apple-Mail=_9AD4530D-CCA5-40CA-9DCF-25C58AA14C0D"; protocol="application/pgp-signature"; micalg=pgp-sha256 Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Relatively deterministic panic with sendfile(2) when running tests in the sxlock code Message-Id: Date: Sun, 14 Oct 2018 18:51:42 -0700 Cc: Gleb Smirnoff , Jonathan Looney To: FreeBSD Current , freebsd-net X-Mailer: Apple Mail (2.3445.9.1) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Oct 2018 01:51:47 -0000 --Apple-Mail=_9AD4530D-CCA5-40CA-9DCF-25C58AA14C0D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi, I=E2=80=99m seeing a semi-deterministic panic on 12.0-ALPHA9 = related to sendfile(2) when running sendfile_test on the host: = https://pastebin.com/raw/6Y7xg0ki; it looks like it=E2=80=99s crashing = in the sxlock code when calling sblock on a sockbuf. Are there any = commands in gdb you would like me to run to display lock state? Repro: mkdir /path/to/git/checkout cd /path/to/git/checkout git clone https://github.com/ngie-eign/freebsd/tree/sendfile_tests . git checkout sendfile_tests (cd lib/libc/tests/sys/; make obj; make; sudo make install) kyua test -k /usr/tests/lib/libc/sys/Kyuafile sendfile_test Thank you! -Enji --Apple-Mail=_9AD4530D-CCA5-40CA-9DCF-25C58AA14C0D Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE5bk3FaGcY5rvqmb79YOpJmkwhhUFAlvD8q4ACgkQ9YOpJmkw hhWizxAAkAb7xxZfzu3kf8j+uDsb1+gZMjyhJ/vmHBCE96fHZOFP5D0yj8IOqkYl eW5LcXOciBzW8j4L/NQorhMF7nvGhcXnKnTUNOgQi5ILfn9CHVdJd1veWMhjVdre l8QixiD2Itq4bZN1cYJBd2goNInRxhYQHxKJcQrgg3W/PE7R8c/Nr3DkfmgAO+Qk 5eHjfRJI4EayR/eoQl8fdVWtZHQfR4OEPc53X8JyFfkkTHxnivl9eX1Gdh6uN5x6 L9mhrHkJ9DyEeJl8wlmvutlbA7UE7ZfKPc2fHwZ9NwuMmhu21YtBumRwQ5kP4k9z OazZMJAo8bDgLkVgtS8KCx0b/IWLYpX0CDnzNklKbWLCuXPiK3XR5K0AKrqFQxj4 ZOUKYFlLibxbq6dyUX3HWXbbHY1dotNodVHjY9nmV1R4FDMwGgQkW7IuIqJ2eKwd iSBYu4X85dRs40aD1z431WXipc9q2SqwApy9DRjrOFe6ArRwJAL2KwPPdWcDCLEb Sj+GybNGaDTYxJoeFOC2hJz252kwJ6qgrmVHKDl4P+VqFX9OLRTLblkVeJ/NfE+Z yVU9isB95+2hDH8wEUGVT9QykZsMndcw2RfYVvV4pKG5iwOWtE8UIfOTX5KyhsBX EfYuh5gwungUoN8G5jUoZAHxSBUDRRf+BS+k9jTa577h9+ChFrU= =QagA -----END PGP SIGNATURE----- --Apple-Mail=_9AD4530D-CCA5-40CA-9DCF-25C58AA14C0D--