From owner-freebsd-current@freebsd.org Sun Sep 1 13:07:43 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 05C7BD99A1 for ; Sun, 1 Sep 2019 13:07:43 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 46LtmZ6P3qz4Hgb for ; Sun, 1 Sep 2019 13:07:42 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: by mailman.nyi.freebsd.org (Postfix) id DB665D999F; Sun, 1 Sep 2019 13:07:42 +0000 (UTC) Delivered-To: current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DB187D999E; Sun, 1 Sep 2019 13:07:42 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46LtmZ5T0Vz4HgZ; Sun, 1 Sep 2019 13:07:42 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from marvin.madpilot.net (host193-122-dynamic.17-87-r.retail.telecomitalia.it [87.17.122.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: madpilot/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4C1EC1BB7D; Sun, 1 Sep 2019 13:07:42 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) To: current@freebsd.org Cc: fs@FreeBSD.org From: Guido Falsi Subject: panic: No vop_need_inactive Message-ID: <6d695bc6-37e3-e068-6620-dcd5616b2a5c@FreeBSD.org> Date: Sun, 1 Sep 2019 15:07:39 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.1.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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: Sun, 01 Sep 2019 13:07:43 -0000 Hi, I'm experiencing a recurring panic I can trigger repeatably. The machine is: FreeBSD 13.0-CURRENT r351604 amd64 The panic looks ZFS related. This machine performs mainly poudriere builds. I also use portshaker to manage the ports tree. Portshaker works by downloading ports trees and overlays in zfses, then snapshots them, clones them placing the clones in the poudriere namespace, then modifies the ports there applying the required overlays. This happens to me any time I run poudriere and after the build I run portshaker to update the ports trees, when it tries to remove the snapshot of the freebsd base tree (which AFAIK is the base for the clone where poudriere works). I'm going to try to create a more clear and detailed use case, removing from the equation complex programs like poudriere and portshaker. Here is the panic message: VNASSERT failed 0xfffff800abfcbd20: tag zfs, type VDIR usecount 0, writecount 0, refcount 1 mountedhere 0 flags (VI_ACTIVE) VI_LOCKed lock type zfs: UNLOCKED name = portshaker-2019-09-01:11:04:20 parent_id = 2 id = 269 panic: No vop_need_inactive(0xfffff800abfcbd20, 0xfffffe00ba39b3f0) cpuid = 2 time = 1567342436 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe00ba39b310 vpanic() at vpanic+0x19d/frame 0xfffffe00ba39b360 panic() at panic+0x43/frame 0xfffffe00ba39b3c0 VOP_NEED_INACTIVE_APV() at VOP_NEED_INACTIVE_APV+0x8f/frame 0xfffffe00ba39b3e0 vputx() at vputx+0x1ae/frame 0xfffffe00ba39b440 vfs_mount_destroy() at vfs_mount_destroy+0x14f/frame 0xfffffe00ba39b470 dounmount() at dounmount+0x7e8/frame 0xfffffe00ba39b4d0 zfs_unmount_snap() at zfs_unmount_snap+0xbb/frame 0xfffffe00ba39b4f0 zfs_ioc_destroy_snaps() at zfs_ioc_destroy_snaps+0xb3/frame 0xfffffe00ba39b540 zfsdev_ioctl() at zfsdev_ioctl+0x54c/frame 0xfffffe00ba39b5e0 devfs_ioctl() at devfs_ioctl+0xc9/frame 0xfffffe00ba39b630 vn_ioctl() at vn_ioctl+0x13d/frame 0xfffffe00ba39b740 devfs_ioctl_f() at devfs_ioctl_f+0x1f/frame 0xfffffe00ba39b760 kern_ioctl() at kern_ioctl+0x1e4/frame 0xfffffe00ba39b7c0 sys_ioctl() at sys_ioctl+0x15d/frame 0xfffffe00ba39b890 amd64_syscall() at amd64_syscall+0x284/frame 0xfffffe00ba39b9b0 fast_syscall_common() at fast_syscall_common+0x101/frame 0xfffffe00ba39b9b0 --- syscall (54, FreeBSD ELF64, sys_ioctl), rip = 0x80049f2da, rsp = 0x7fffffffc948, rbp = 0x7fffffffc9c0 --- KDB: enter: panic Anyone can help? -- Guido Falsi From owner-freebsd-current@freebsd.org Sun Sep 1 13:19:29 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 55728DA032 for ; Sun, 1 Sep 2019 13:19:29 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 46Lv286bthz4JNv for ; Sun, 1 Sep 2019 13:19:28 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: by mailman.nyi.freebsd.org (Postfix) id E0DAEDA030; Sun, 1 Sep 2019 13:19:28 +0000 (UTC) Delivered-To: current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E0859DA02F; Sun, 1 Sep 2019 13:19:28 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: from mail-oi1-x22c.google.com (mail-oi1-x22c.google.com [IPv6:2607:f8b0:4864:20::22c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46Lv285KGgz4JNr; Sun, 1 Sep 2019 13:19:28 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: by mail-oi1-x22c.google.com with SMTP id b80so1790822oii.7; Sun, 01 Sep 2019 06:19:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ZzrL5hYZvv/o8oq9cvthFD/d8W+vKeBP5vtcWT2Gmmk=; b=SfxV4hsp+1e0opY9bEiahAiGr+52KzUqDYdRsL7gGWO4orI3QolA3TTq10yqHN9ZJ8 6BsDb+JU6Y2Zw2V7+ElN6pJn/lVSh9SVP2xbvcxy/ParWZIxjby3Sc99jRUPDPQF05dE KTQPRhNjC+SJgdRkwkpedIFn9JqhHfNLTPZigk1kPO1p/9FaCxKdadk4BhIBKqYsLbW4 wxtgtPx/c5M3LyVlQ939uHdY2ANHvML3qKmKcmDFqaBtl+WqJLOQYw/hTh4Cz9DFzvbI e/mWVDQyJcjxdFjm66k3wUP/s2dsGE+llL4YOcMTH8ec8oDMIK+cpcQuHCtZ0uXBuPE3 DX7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ZzrL5hYZvv/o8oq9cvthFD/d8W+vKeBP5vtcWT2Gmmk=; b=Vjd3cNE2du0CSDPLv56M1umjiqkMhP4yeHLwtBtkeN/eMAHoum14w/6+OR686QmM8G +Gzl2wFxrlL1htOLRNFayJznVYjuAAY3UfiO6UPYd8MqbJdRnYNIyuj6yAFyKulHewRW GgdVcwd3p1t5HltO1LmJJIfSkO4Oo9w68Xn/f9t8FSGrU2ikiFhoDEbiIrCH9/oRuEko xWo5ztT+GK5cKH6JqhSvKw/03g4eOOSTt9YUHWWi7m4zr+kdkvnhabyg58euDvEEeHzn SK271OEKUcZDzS3zh02Vsmr+p0su3eI5yiHLufSquj5UoOSxEb3OYoyR+3Ovr2Gr1fjJ xH0w== X-Gm-Message-State: APjAAAV17UuihrymlCx3rNmjSaozhETxgVLdZZKolkkRXZ2IJW5WhB+f IaA0PBFfsoBLMB76Z7qReabixzRBtd6OUu+qkVa+4Q== X-Google-Smtp-Source: APXvYqx0fbi9BDO7o981kj/COQCaVeO4FkHz/aNzZwZ2Zagw4423W6lj6utgjnXd8222YRtN/60Qs9p4KG+VgEm62yM= X-Received: by 2002:a05:6808:7c1:: with SMTP id f1mr16475597oij.77.1567343966626; Sun, 01 Sep 2019 06:19:26 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4a:458d:0:0:0:0:0 with HTTP; Sun, 1 Sep 2019 06:19:25 -0700 (PDT) In-Reply-To: <6d695bc6-37e3-e068-6620-dcd5616b2a5c@FreeBSD.org> References: <6d695bc6-37e3-e068-6620-dcd5616b2a5c@FreeBSD.org> From: Mateusz Guzik Date: Sun, 1 Sep 2019 15:19:25 +0200 Message-ID: Subject: Re: panic: No vop_need_inactive To: Guido Falsi Cc: current@freebsd.org, fs@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 46Lv285KGgz4JNr X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-6.98 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[]; NEURAL_HAM_SHORT(-0.99)[-0.985,0] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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: Sun, 01 Sep 2019 13:19:29 -0000 This is fixed in https://svnweb.freebsd.org/base?view=revision&revision=351642 On 9/1/19, Guido Falsi wrote: > Hi, > > I'm experiencing a recurring panic I can trigger repeatably. > > The machine is: > > FreeBSD 13.0-CURRENT r351604 amd64 > > The panic looks ZFS related. This machine performs mainly poudriere > builds. I also use portshaker to manage the ports tree. > > Portshaker works by downloading ports trees and overlays in zfses, then > snapshots them, clones them placing the clones in the poudriere > namespace, then modifies the ports there applying the required overlays. > > This happens to me any time I run poudriere and after the build I run > portshaker to update the ports trees, when it tries to remove the > snapshot of the freebsd base tree (which AFAIK is the base for the clone > where poudriere works). > > I'm going to try to create a more clear and detailed use case, removing > from the equation complex programs like poudriere and portshaker. > > > Here is the panic message: > > VNASSERT failed > 0xfffff800abfcbd20: tag zfs, type VDIR > usecount 0, writecount 0, refcount 1 mountedhere 0 > flags (VI_ACTIVE) > VI_LOCKed lock type zfs: UNLOCKED > name = portshaker-2019-09-01:11:04:20 > parent_id = 2 > id = 269 > panic: No vop_need_inactive(0xfffff800abfcbd20, 0xfffffe00ba39b3f0) > cpuid = 2 > time = 1567342436 > KDB: stack backtrace: > db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame > 0xfffffe00ba39b310 > vpanic() at vpanic+0x19d/frame 0xfffffe00ba39b360 > panic() at panic+0x43/frame 0xfffffe00ba39b3c0 > VOP_NEED_INACTIVE_APV() at VOP_NEED_INACTIVE_APV+0x8f/frame > 0xfffffe00ba39b3e0 > vputx() at vputx+0x1ae/frame 0xfffffe00ba39b440 > vfs_mount_destroy() at vfs_mount_destroy+0x14f/frame 0xfffffe00ba39b470 > dounmount() at dounmount+0x7e8/frame 0xfffffe00ba39b4d0 > zfs_unmount_snap() at zfs_unmount_snap+0xbb/frame 0xfffffe00ba39b4f0 > zfs_ioc_destroy_snaps() at zfs_ioc_destroy_snaps+0xb3/frame > 0xfffffe00ba39b540 > zfsdev_ioctl() at zfsdev_ioctl+0x54c/frame 0xfffffe00ba39b5e0 > devfs_ioctl() at devfs_ioctl+0xc9/frame 0xfffffe00ba39b630 > vn_ioctl() at vn_ioctl+0x13d/frame 0xfffffe00ba39b740 > devfs_ioctl_f() at devfs_ioctl_f+0x1f/frame 0xfffffe00ba39b760 > kern_ioctl() at kern_ioctl+0x1e4/frame 0xfffffe00ba39b7c0 > sys_ioctl() at sys_ioctl+0x15d/frame 0xfffffe00ba39b890 > amd64_syscall() at amd64_syscall+0x284/frame 0xfffffe00ba39b9b0 > fast_syscall_common() at fast_syscall_common+0x101/frame 0xfffffe00ba39b9b0 > --- syscall (54, FreeBSD ELF64, sys_ioctl), rip = 0x80049f2da, rsp = > 0x7fffffffc948, rbp = 0x7fffffffc9c0 --- > KDB: enter: panic > > > Anyone can help? > > > -- > Guido Falsi > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > -- Mateusz Guzik From owner-freebsd-current@freebsd.org Sun Sep 1 13:30:49 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 92E6CDA427 for ; Sun, 1 Sep 2019 13:30:49 +0000 (UTC) (envelope-from contact@evilham.com) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 46LvHF1jL9z4K2r for ; Sun, 1 Sep 2019 13:30:49 +0000 (UTC) (envelope-from contact@evilham.com) Received: by mailman.nyi.freebsd.org (Postfix) id 387F6DA424; Sun, 1 Sep 2019 13:30:49 +0000 (UTC) Delivered-To: current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3835EDA423; Sun, 1 Sep 2019 13:30:49 +0000 (UTC) (envelope-from contact@evilham.com) Received: from yggdrasil.evilham.com (yggdrasil.evilham.com [IPv6:2a02:2770::216:3eff:fee1:cf9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46LvH91n0rz4K2g; Sun, 1 Sep 2019 13:30:44 +0000 (UTC) (envelope-from contact@evilham.com) Received: from yggdrasil.evilham.com (unknown [IPv6:2a0a:e5c1:121:1::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by yggdrasil.evilham.com (Postfix) with ESMTPSA id 46Lv8t2Cjpz3wpY; Sun, 1 Sep 2019 15:25:18 +0200 (CEST) From: Evilham To: Guido Falsi Cc: current@freebsd.org, fs@FreeBSD.org Subject: Re: panic: No vop_need_inactive References: <6d695bc6-37e3-e068-6620-dcd5616b2a5c@FreeBSD.org> In-reply-to: <6d695bc6-37e3-e068-6620-dcd5616b2a5c@FreeBSD.org> Date: Sun, 01 Sep 2019 15:25:14 +0200 Message-ID: <889667e1-9610-46c0-bd23-3e034f835d7f@yggdrasil.evilham.com> MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-Rspamd-Queue-Id: 46LvH91n0rz4K2g X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=pass (policy=none) header.from=evilham.com; spf=pass (mx1.freebsd.org: domain of contact@evilham.com designates 2a02:2770::216:3eff:fee1:cf9 as permitted sender) smtp.mailfrom=contact@evilham.com X-Spamd-Result: default: False [-5.43 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(-1.66)[ipnet: 2a02:2770::/32(-4.69), asn: 196752(-3.64), country: NL(0.01)]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_DN_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.96)[-0.965,0]; DMARC_POLICY_ALLOW(-0.50)[evilham.com,none]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:196752, ipnet:2a02:2770::/32, country:NL]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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: Sun, 01 Sep 2019 13:30:49 -0000 On dg., set. 01 2019, Guido Falsi wrote: > Hi, > > I'm experiencing a recurring panic I can trigger repeatably. > > The machine is: > > FreeBSD 13.0-CURRENT r351604 amd64 > > The panic looks ZFS related. This machine performs mainly > poudriere > builds. I also use portshaker to manage the ports tree. > > Portshaker works by downloading ports trees and overlays in > zfses, then > snapshots them, clones them placing the clones in the poudriere > namespace, then modifies the ports there applying the required > overlays. > > This happens to me any time I run poudriere and after the build > I run > portshaker to update the ports trees, when it tries to remove > the > snapshot of the freebsd base tree (which AFAIK is the base for > the clone > where poudriere works). > > I'm going to try to create a more clear and detailed use case, > removing > from the equation complex programs like poudriere and > portshaker. > Interesting! I was going to send a similar email a few hours ago to the current ML but decided to debug some more before that. I use poudriere to manage my ports tree with svn, I do use ZFS. I can trigger the panic by running poudriere bulk on e.g. finance/gnucash. Some more info that may be related: - This worked fine on a build from the 2nd week of August, after r350551 (a fix for AMD Ryzen laptops). - Since that build had an issue with bhyve (as mentioned on this list a few days ago), I upgraded last week which started triggering this issue with poudriere - It still happens with: # uname -v FreeBSD 13.0-CURRENT r351654+209e505321db-c262365(master) GENERIC Which is posterior to r351642 that was mentioned by Mateusz. > Here is the panic message: > > VNASSERT failed > 0xfffff800abfcbd20: tag zfs, type VDIR > usecount 0, writecount 0, refcount 1 mountedhere 0 > flags (VI_ACTIVE) > VI_LOCKed lock type zfs: UNLOCKED > name = portshaker-2019-09-01:11:04:20 > parent_id = 2 > id = 269 > panic: No vop_need_inactive(0xfffff800abfcbd20, > 0xfffffe00ba39b3f0) > cpuid = 2 > time = 1567342436 > KDB: stack backtrace: > db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame > 0xfffffe00ba39b310 > vpanic() at vpanic+0x19d/frame 0xfffffe00ba39b360 > panic() at panic+0x43/frame 0xfffffe00ba39b3c0 > VOP_NEED_INACTIVE_APV() at VOP_NEED_INACTIVE_APV+0x8f/frame > 0xfffffe00ba39b3e0 > vputx() at vputx+0x1ae/frame 0xfffffe00ba39b440 > vfs_mount_destroy() at vfs_mount_destroy+0x14f/frame > 0xfffffe00ba39b470 > dounmount() at dounmount+0x7e8/frame 0xfffffe00ba39b4d0 > zfs_unmount_snap() at zfs_unmount_snap+0xbb/frame > 0xfffffe00ba39b4f0 > zfs_ioc_destroy_snaps() at zfs_ioc_destroy_snaps+0xb3/frame > 0xfffffe00ba39b540 > zfsdev_ioctl() at zfsdev_ioctl+0x54c/frame 0xfffffe00ba39b5e0 > devfs_ioctl() at devfs_ioctl+0xc9/frame 0xfffffe00ba39b630 > vn_ioctl() at vn_ioctl+0x13d/frame 0xfffffe00ba39b740 > devfs_ioctl_f() at devfs_ioctl_f+0x1f/frame 0xfffffe00ba39b760 > kern_ioctl() at kern_ioctl+0x1e4/frame 0xfffffe00ba39b7c0 > sys_ioctl() at sys_ioctl+0x15d/frame 0xfffffe00ba39b890 > amd64_syscall() at amd64_syscall+0x284/frame 0xfffffe00ba39b9b0 > fast_syscall_common() at fast_syscall_common+0x101/frame > 0xfffffe00ba39b9b0 > --- syscall (54, FreeBSD ELF64, sys_ioctl), rip = 0x80049f2da, > rsp = > 0x7fffffffc948, rbp = 0x7fffffffc9c0 --- > KDB: enter: panic > FWIW: I am not 100% sure I it's the same panic, I am missing a cable ATM to get a full dump, but I do think they sound very similar. -- Evilham From owner-freebsd-current@freebsd.org Sun Sep 1 13:50:17 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D3DF0DAB98 for ; Sun, 1 Sep 2019 13:50:17 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 46Lvjj5CZpz4L65 for ; Sun, 1 Sep 2019 13:50:17 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: by mailman.nyi.freebsd.org (Postfix) id B0CC3DAB92; Sun, 1 Sep 2019 13:50:17 +0000 (UTC) Delivered-To: current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id AF6B3DAB91; Sun, 1 Sep 2019 13:50:17 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46Lvjj2yvzz4L63; Sun, 1 Sep 2019 13:50:17 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from marvin.madpilot.net (host193-122-dynamic.17-87-r.retail.telecomitalia.it [87.17.122.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: madpilot/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id D35F51C046; Sun, 1 Sep 2019 13:50:16 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Subject: Re: panic: No vop_need_inactive To: Evilham Cc: current@freebsd.org, fs@FreeBSD.org References: <6d695bc6-37e3-e068-6620-dcd5616b2a5c@FreeBSD.org> <889667e1-9610-46c0-bd23-3e034f835d7f@yggdrasil.evilham.com> From: Guido Falsi Message-ID: <67cc0491-2b4a-f166-7319-c6dce0bfee9d@FreeBSD.org> Date: Sun, 1 Sep 2019 15:50:15 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.1.0 MIME-Version: 1.0 In-Reply-To: <889667e1-9610-46c0-bd23-3e034f835d7f@yggdrasil.evilham.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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: Sun, 01 Sep 2019 13:50:17 -0000 On 01/09/19 15:25, Evilham wrote: > > FWIW: I am not 100% sure I it's the same panic, I am missing a cable ATM > to get a full dump, but I do think they sound very similar. I'm not using serial communications to get dumps, not necessary anymore. You can have the kernel debugger output this information to disk (in /var/crash) using the "textdump dump" command. You can also usse the capture buffer in ddb to perform other operations and have the screen output saved in a buffer. This is all documented in ddb(4) and textdump(4) (regarding the crash it has been reported as fixed in a later commit) -- Guido Falsi From owner-freebsd-current@freebsd.org Sun Sep 1 13:51:22 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8BCE5DAD0D for ; Sun, 1 Sep 2019 13:51:22 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 46Lvky3669z4LKt for ; Sun, 1 Sep 2019 13:51:22 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: by mailman.nyi.freebsd.org (Postfix) id 6A79BDAD0B; Sun, 1 Sep 2019 13:51:22 +0000 (UTC) Delivered-To: current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6A313DAD0A; Sun, 1 Sep 2019 13:51:22 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46Lvky27Rhz4LKr; Sun, 1 Sep 2019 13:51:22 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from marvin.madpilot.net (host193-122-dynamic.17-87-r.retail.telecomitalia.it [87.17.122.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: madpilot/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id BC9871C047; Sun, 1 Sep 2019 13:51:21 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Subject: Re: panic: No vop_need_inactive To: Mateusz Guzik Cc: current@freebsd.org, fs@freebsd.org References: <6d695bc6-37e3-e068-6620-dcd5616b2a5c@FreeBSD.org> From: Guido Falsi Message-ID: Date: Sun, 1 Sep 2019 15:51:20 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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: Sun, 01 Sep 2019 13:51:22 -0000 On 01/09/19 15:19, Mateusz Guzik wrote: > This is fixed in https://svnweb.freebsd.org/base?view=revision&revision=351642 Thanks! I missed that one! -- Guido Falsi From owner-freebsd-current@freebsd.org Sun Sep 1 18:41:07 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 77B7BE173B for ; Sun, 1 Sep 2019 18:41:07 +0000 (UTC) (envelope-from contact@evilham.com) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 46M29H1ZB3z4dVV for ; Sun, 1 Sep 2019 18:41:07 +0000 (UTC) (envelope-from contact@evilham.com) Received: by mailman.nyi.freebsd.org (Postfix) id 35BF9E1739; Sun, 1 Sep 2019 18:41:07 +0000 (UTC) Delivered-To: current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3570FE1738; Sun, 1 Sep 2019 18:41:07 +0000 (UTC) (envelope-from contact@evilham.com) Received: from yggdrasil.evilham.com (yggdrasil.evilham.com [46.19.33.155]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46M29G1YC8z4dVS; Sun, 1 Sep 2019 18:41:05 +0000 (UTC) (envelope-from contact@evilham.com) Received: from yggdrasil.evilham.com (unknown [IPv6:2a0a:e5c1:121:1::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by yggdrasil.evilham.com (Postfix) with ESMTPSA id 46M29C53Mlz3x6X; Sun, 1 Sep 2019 20:41:03 +0200 (CEST) From: Evilham To: Guido Falsi Cc: current@freebsd.org, fs@FreeBSD.org Subject: Re: panic: No vop_need_inactive References: <6d695bc6-37e3-e068-6620-dcd5616b2a5c@FreeBSD.org> <889667e1-9610-46c0-bd23-3e034f835d7f@yggdrasil.evilham.com> In-reply-to: <889667e1-9610-46c0-bd23-3e034f835d7f@yggdrasil.evilham.com> Date: Sun, 01 Sep 2019 20:41:00 +0200 Message-ID: <51a6c6b2-5680-4431-bfc4-b351eaa07880@yggdrasil.evilham.com> MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-Rspamd-Queue-Id: 46M29G1YC8z4dVS X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=pass (policy=none) header.from=evilham.com; spf=pass (mx1.freebsd.org: domain of contact@evilham.com designates 46.19.33.155 as permitted sender) smtp.mailfrom=contact@evilham.com X-Spamd-Result: default: False [-4.41 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(-0.73)[asn: 196752(-3.66), country: NL(0.01)]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_DN_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.88)[-0.878,0]; DMARC_POLICY_ALLOW(-0.50)[evilham.com,none]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:196752, ipnet:46.19.32.0/21, country:NL]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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: Sun, 01 Sep 2019 18:41:07 -0000 On dg., set. 01 2019, Evilham wrote: > On dg., set. 01 2019, Guido Falsi wrote: > >> Hi, >> >> I'm experiencing a recurring panic I can trigger repeatably. >> > > I was going to send a similar email a few hours ago to the > current > ML but decided to debug some more before that. > > FWIW: I am not 100% sure I it's the same panic, I am missing a > cable ATM to get a full dump, but I do think they sound very > similar. Awkward, my panic is gone after some fiddling around. I hope yours is indeed also gone after upgrading. -- Evilham From owner-freebsd-current@freebsd.org Sun Sep 1 19:14:54 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 00E55E2462 for ; Sun, 1 Sep 2019 19:14:54 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 46M2wF62V9z3CfR for ; Sun, 1 Sep 2019 19:14:53 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: by mailman.nyi.freebsd.org (Postfix) id CF125E2460; Sun, 1 Sep 2019 19:14:53 +0000 (UTC) Delivered-To: current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id CEBE8E245F; Sun, 1 Sep 2019 19:14:53 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46M2wF54M8z3CfQ; Sun, 1 Sep 2019 19:14:53 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Received: from tommy.madpilot.net (host193-122-dynamic.17-87-r.retail.telecomitalia.it [87.17.122.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: madpilot/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 271A81E752; Sun, 1 Sep 2019 19:14:53 +0000 (UTC) (envelope-from madpilot@FreeBSD.org) Subject: Re: panic: No vop_need_inactive To: Evilham Cc: current@freebsd.org, fs@FreeBSD.org References: <6d695bc6-37e3-e068-6620-dcd5616b2a5c@FreeBSD.org> <889667e1-9610-46c0-bd23-3e034f835d7f@yggdrasil.evilham.com> <51a6c6b2-5680-4431-bfc4-b351eaa07880@yggdrasil.evilham.com> From: Guido Falsi Autocrypt: addr=madpilot@FreeBSD.org; prefer-encrypt=mutual; keydata= mQENBE+G+l0BCADi/WBQ0aRJfnE7LBPsM0G3m/m3Yx7OPu4iYFvS84xawmRHtCNjWIntsxuX fptkmEo3Rsw816WUrek8dxoUAYdHd+EcpBcnnDzfDH5LW/TZ4gbrFezrHPdRp7wdxi23GN80 qPwHEwXuF0X4Wy5V0OO8B6VT/nA0ADYnBDhXS52HGIJ/GCUjgqJn+phDTdCFLvrSFdmgx4Wl c0W5Z1p5cmDF9l8L/hc959AeyNf7I9dXnjekGM9gVv7UDUYzCifR3U8T0fnfdMmS8NeI9NC+ wuREpRO4lKOkTnj9TtQJRiptlhcHQiAlG1cFqs7EQo57Tqq6cxD1FycZJLuC32bGbgalABEB AAG0Ikd1aWRvIEZhbHNpIDxtYWRwaWxvdEBGcmVlQlNELm9yZz6JATYEEwEIACACGwMCHgEC F4AFAlLvzwUFCwkIBwMFFQoJCAsEFgIDAQAKCRAa5oYOVsvSk6EzCAC4ovSo6XF4x0spuKmp RzVuZ5ywqCJAfRIrJHpW8HjSPkcUYwmXVOE3zjul9j2C2eHPPGobEDN5FqovAtzb7HdYGGcU aUdhDApUMMRVkzflwb23C/CI1RBcZxjC0noajSKgbIHx4+Afg6CFMgpngq+NJwEaaVrKlYzq G+KcfeVKAdwlWHJOgQJIEylUtwtBqXx/iJDrGwKO5A6a1uSEZrZfuwjSh8cBqoUfIwLZUIFE HBjHa8pUkp8mWx7JaZ19vBF6pDpPVZSoLSg8stWd1DPesn/qySYgtSGSY6hpWABVF98HRsBG +VXlHtqCaB0j0cGCDhCpHQUI10oGGc8k4zcvuQINBFMQe0EBEAChYaw3HqD3SvyBw0pqI+kk GIrLzO1XYXJXkuxPQ6BAFbe8jG3+h22zFU02OnJL8E1kLLMsCwVzVasYHOFiyY831IYHn/lh O+TN/lhWJTlUCxmWP8xFYJmta2mJzhzQDs3hyw5hF422T+rxgHg8gWxn0D6RO6hmGe7m3k91 8EDvj5JXAq7zj49mT3AMRjUtsVVPy8zjagqyaizCUiHAnbG4kj+BuT5wxR7TKJGk2OjhK/Dh EHzgHq4XB1Gv8+1LvGLZmqih/kBpBP1hIGkakok579CTkw/g8XoWqr6Cjz2fvtjaQmTBwdou gP8Yn5kMBIiIxF7XLngUc5DVEJMYamcktd0q4aHC/cnbWlTwc2WrQBI1AwxCZgDC1RbOOan8 oTIjWqRyaNp9zFvxOaJqgrxJA3Vl/3p9z+witk3pnmg4ITLIJDSmsf89MDaOVGQpDjzs9MaT YlIpTlW5Lns2WTYOue+NanntpX14UCGmeusk+4aYXPzf89zyALS3s3uLtVUdhFwLmdrFgHZS gjU5STLGlP8e9AVddVnf8qZ1czOvHX3UCCAI9YjBQA/5VxpRFJil4OTr9lUA5U57UKGpwmKw IPvArbT8468nYC2Rat4a7UJn3NLHucr9Vh0uvfgbFDhtPUb72sFA2cVI1tfZMnjfUx2jUYKM N5ErgK1Kes0piQARAQABiQEfBBgBCAAJBQJTEHtBAhsMAAoJEBrmhg5Wy9KTDecIAOGwpF/6 sBFQtOk6HkegtqbrZklkDIKQ2qq7+uR7m6PkBpoNj+HsE2EEOIOqGFktN6h8alVVoSs+xY36 1fnR/Kmwi30oCHL3QYWu2shmVa7IrjCyhm8N+n3JpGT6Ugznx3D9Fx/GfrvQlo9MVJE8QJWf +4uoGElKRtiVjbXZhP1/FVRMl7rAi8MtCtASOtAP+HUUyF9wuECqyd2W1F3oM+9Mp4x3/pUD GfSGSgEqETLkuRaMz0Iemm75sGRD3X+SPa4lBJc7x66ifAcdLdz7o3aLYfsjR6Zwca7TvC5E Ha0OfD9EsHGiF9909lPaRvG4buWFUfPBUPDkNHBLDwaQ53K5AQ0ET4b6XQEIALHepqzqtRkm cJc0bHDUGvVtlgf904+DjeDy9nvQfoXPZU/58tswd2oF7ucG7F088MYCaUE+4TR5AknJFvfI dx0YxX4WTzQoCJ7lBrI3DclYLkIfv+O3JIaYdLO1PugeMjbiIqkGZOJqPFoAjY9WCIoVZhlh LIAzsDGmo2w2GdK9f9xpCpWIzl3lLk/1oKLq60keaGSVTQP5OF9h+zNyVK9QUnN9i+wSbfDO wJ7bpepNeydC/BppLy701LUEzvqfg2EDJ2tp4A9z2wL0EXGxBp5IPQAa3RBdFqeBsfoBhlrM hSpR7z3TLYFgMtybEvq0GqRui6Ft8lCacKRKQPOinQcAEQEAAYkBHwQoAQgACQUCUxB9DQId AQAKCRAa5oYOVsvSkzGXCADErInRheCqYxnCs4ZDStLBKXr3HpUOg84E+5HF7qui0OmDq26H 9vyj4Bonvf06BWXyVx/MxORnn6pCrx2W2LLFopRb5CPdBfZ9d/JBttOTQf9s5WkG++P7/WTF yV3IqZyMfk9rTjAgYByVONSDCZgfjX0beQOgg8rSXYVsaqabBKOY48v+7STNTZ+OxvO7QFfK lTVLc20us3Z2xweFtgScAjm21b/HqS94bvy+Xn1do9rUm1U5sryvwpWDAanbVKN7j1++Rhfy rmAwjj9QUwOc85s6eDzFXfoJh3DIAmSmOpb3BLXYuRSyNMHtpHGPH3z7zNnejDYRbBi2lSPe SdKKiQEfBBgBAgAJBQJPhvpdAhsMAAoJEBrmhg5Wy9KTNfEH/R0zTYbvDdCEirZkfJYD4Sbr vPazhGvCihGra+H0O4C/oZmDhKmf8hy3D0LxsWwJS0exdEoXirwBJOAdWhcBlCz6NEs7jtHf 1rVTBGxmveSU5v+pn4spljJVn/FInw9TAys8z0ezptMm3qDzPEv0UE26FFNVi6cHeJoPaVSZ StMa+eRjkhzX+Ju0vj9ZL5d8YJhI9eM1TKvciQTVhZbECuXIon4e7BaX7sVnRFW7YCHcacyJ ii10iwNLzq6CgL8RUxgawat78VenlJmisneR221no5mn2NbmuXXJ3sPZcaVii3apAtu1bdAp Lvi7U2N99uVfgQoZ3MDXCSUuyDJgc+s= Message-ID: Date: Sun, 1 Sep 2019 21:14:50 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.1.0 MIME-Version: 1.0 In-Reply-To: <51a6c6b2-5680-4431-bfc4-b351eaa07880@yggdrasil.evilham.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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: Sun, 01 Sep 2019 19:14:54 -0000 On 01/09/19 20:41, Evilham wrote: > On dg., set. 01 2019, Evilham wrote: > >> On dg., set. 01 2019, Guido Falsi wrote: >> >>> Hi, >>> >>> I'm experiencing a recurring panic I can trigger repeatably. >>> >> >> I was going to send a similar email a few hours ago to the current >> ML but decided to debug some more before that. >> >> FWIW: I am not 100% sure I it's the same panic, I am missing a >> cable ATM to get a full dump, but I do think they sound very >> similar. > > Awkward, my panic is gone after some fiddling around. > I hope yours is indeed also gone after upgrading. Yes, the upgrade worked, at least that's what I have seen in the few tests I made since. -- Guido Falsi From owner-freebsd-current@freebsd.org Sun Sep 1 21:17:44 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 87830E6884 for ; Sun, 1 Sep 2019 21:17:44 +0000 (UTC) (envelope-from rcv-YnNkLmxpc3RzQGg4c3BhbS5vcmcAQDE1NjczNDM3Mzc=@vfemail.net) Received: from nl101-3.vfemail.net (nl101-3.vfemail.net [149.210.219.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46M5dz4Scxz3N2m for ; Sun, 1 Sep 2019 21:17:43 +0000 (UTC) (envelope-from rcv-YnNkLmxpc3RzQGg4c3BhbS5vcmcAQDE1NjczNDM3Mzc=@vfemail.net) Received: (qmail 66669 invoked from network); 1 Sep 2019 13:15:37 -0000 Received: by simscan 1.4.0 ppid: 66648, pid: 66666, t: 0.1071s scanners:none Received: from unknown (HELO dmZlbWFpbC5uZXRAMTU2NzM0MzczNw==) (YnNkLmxpc3RzQGg4c3BhbS5vcmdAMTU2NzM0MzczNw==@MTkyLjE2OC4xLjE5MkAxNTY3MzQzNzM3) by nl101.vfemail.net with ESMTPA; 1 Sep 2019 13:15:37 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Sun, 01 Sep 2019 14:17:42 -0700 From: Chris To: FreeBSD CURRENT Subject: Is the LSI/AVAGO/Broadcom 9280-16i4e supported? Message-ID: X-Sender: bsd.lists@h8spam.org User-Agent: Roundcube Webmail/1.2.3 X-Rspamd-Queue-Id: 46M5dz4Scxz3N2m X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of rcv-YnNkLmxpc3RzQGg4c3BhbS5vcmcAQDE1NjczNDM3Mzc=@vfemail.net designates 149.210.219.33 as permitted sender) smtp.mailfrom=rcv-YnNkLmxpc3RzQGg4c3BhbS5vcmcAQDE1NjczNDM3Mzc=@vfemail.net X-Spamd-Result: default: False [-3.39 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:149.210.219.33/32]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; SUBJECT_ENDS_QUESTION(1.00)[]; DMARC_NA(0.00)[h8spam.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_TLS_LAST(0.00)[]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-0.96)[-0.964,0]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; IP_SCORE(-1.42)[ipnet: 149.210.128.0/17(-4.90), asn: 20857(-2.23), country: NL(0.01)]; FORGED_SENDER(0.30)[bsd.lists@h8spam.org,rcv-YnNkLmxpc3RzQGg4c3BhbS5vcmcAQDE1NjczNDM3Mzc=@vfemail.net]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[vfemail.net]; ASN(0.00)[asn:20857, ipnet:149.210.128.0/17, country:NL]; R_DKIM_NA(0.00)[]; FROM_NEQ_ENVFROM(0.00)[bsd.lists@h8spam.org,rcv-YnNkLmxpc3RzQGg4c3BhbS5vcmcAQDE1NjczNDM3Mzc=@vfemail.net]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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: Sun, 01 Sep 2019 21:17:44 -0000 Hello all, I recently picked up an LSI/AVAGO/Broadcom 9280-16i4e card with the intent of flashing it to IT mode (pass through). So as to use it in one of my (FreeBSD) servers. However; looking through the Hardware (support) section of the release notes for 12; the closest I found was the 9260. Does anyone have any experience with the 9280-16i4e on FreeBSD? Does it work? Well? If not, anytime soon? Thank you very much. Chris From owner-freebsd-current@freebsd.org Tue Sep 3 14:07:21 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 18132DD90D; Tue, 3 Sep 2019 14:07:21 +0000 (UTC) (envelope-from yuripv@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46N80S5qPGz4QW9; Tue, 3 Sep 2019 14:07:20 +0000 (UTC) (envelope-from yuripv@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1452) id 7CA061B4B7; Tue, 3 Sep 2019 14:06:36 +0000 (UTC) X-Original-To: yuripv@localmail.freebsd.org Delivered-To: yuripv@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id 6CE10C5CD; Mon, 22 Apr 2019 11:25:33 +0000 (UTC) (envelope-from owner-src-committers@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 338ED865A5; Mon, 22 Apr 2019 11:25:33 +0000 (UTC) (envelope-from owner-src-committers@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 538) id 14B47C5CC; Mon, 22 Apr 2019 11:25:33 +0000 (UTC) Delivered-To: src-committers@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id CB3E0C5CA for ; Mon, 22 Apr 2019 11:25:30 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3235C865A1; Mon, 22 Apr 2019 11:25:30 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by mail-pl1-x641.google.com with SMTP id w24so5702510plp.2; Mon, 22 Apr 2019 04:25:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=fHIktrEk9er+LLxwC69feHZT3nvs1eOw25g/mbv/KIk=; b=t2oAAcVA/cnpts16FQ0puPFRLWGgWkzw6ohirY/CEmhch5ZIDL5k/HzOnrjMJnM2qE zgsqwIOJ5fERRltuYm8ngaymO5RQx84SVVwOBTTsJyFNt/rEFPN2Out7ozXINKBJggSb RVU22R7PlFTTnQljqBB1JO2ZKgA6rFoHKv+8rVq53WnKel7Cd5hEv7llF67ZoFoP6b7i /qdZFMYcWcp0I5Co249QUptL1p+0MDyVaTAVpWky0WzPBnB21omdzC5R/XYHIcGuMAZ8 oZWhnUpnnaUXXO4kevp9tosOgU8uFu1lvnUcBvXrNH7s8ihnQvSy3iTEcjgDmBTx6Ai8 H2qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=fHIktrEk9er+LLxwC69feHZT3nvs1eOw25g/mbv/KIk=; b=SU1qZhYWVq8ObbA1nx32cp/shmWpfUw4Lx4XBIFGG5gYRZOk2hQNeNsKFk+4aJo57X SWOSGK5YF31uP1h1nOiBxUb/+lWm3mBAHQ/a2/Uc2Xo8x0snBxHYchGNqbxuTjR5kBk1 gZBtpIQ8ILKfHRZwLRliKWW7KhJFnm4hPnGDEKinPwTIMnUR7kGXt84qMPJIrVfTOs5L JKTw6tgs6bZi4JoTw23n5jiJFUoJE77GcKUCGXLfmH62gkmdx03FrogvH05Q2qYZYuCv 5vkWtXk6im1/iaCTlmEtE6J41z+R0663M1W+475nDTqa7QT8G5ukjr/RMubTeXFQ3j8s VB6A== X-Gm-Message-State: APjAAAXVJqkBzI2ywePAm70/Z0Nkwp8p01cqPeAwZgFURFcvGJv3rpSs DvI51+mPmLD6q21xcGxkrngX0zhNQLw= X-Google-Smtp-Source: APXvYqze44MOEAzDMojKvzphAeIW+xmiPYCvmv2OFpTDzhjb3HjmEwRlhXA6hZMMrm+rFyXMeHIH5A== X-Received: by 2002:a17:902:42:: with SMTP id 60mr19754000pla.79.1555932328982; Mon, 22 Apr 2019 04:25:28 -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 v12sm16904988pfe.148.2019.04.22.04.25.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Apr 2019 04:25:28 -0700 (PDT) From: Enji Cooper Message-Id: <8EAC0CFE-E22F-478F-813F-A07E68C0518D@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.8\)) Subject: Panic with r346530 [Re: svn commit: r346530 - in head/sys: netinet netinet6] In-Reply-To: Cc: src-committers , svn-src-all , svn-src-head , FreeBSD CURRENT To: Hans Petter Selasky References: <201904220727.x3M7ROpR009729@repo.freebsd.org> <2F3D6B17-AF4F-4B0F-B20E-5EF41DE851F9@gmail.com> <87917500-0381-79d8-a34b-819848abed32@selasky.org> X-Mailer: Apple Mail (2.3445.104.8) Precedence: bulk X-Loop: FreeBSD.org Sender: owner-src-committers@freebsd.org X-Rspamd-Queue-Id: 338ED865A5 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.94 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.94)[-0.941,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0] Status: O Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Tue, 03 Sep 2019 14:07:21 -0000 X-Original-Date: Mon, 22 Apr 2019 04:25:27 -0700 X-List-Received-Date: Tue, 03 Sep 2019 14:07:21 -0000 Hi Hans, > On Apr 22, 2019, at 1:32 AM, Hans Petter Selasky = wrote: >=20 > On 4/22/19 10:10 AM, Hans Petter Selasky wrote: >> On 4/22/19 9:52 AM, Enji Cooper wrote: >>>=20 >>>> On Apr 22, 2019, at 12:27 AM, Hans Petter Selasky = wrote: >>>>=20 >>>> Author: hselasky >>>> Date: Mon Apr 22 07:27:24 2019 >>>> New Revision: 346530 >>>> URL: https://svnweb.freebsd.org/changeset/base/346530 >>>>=20 >>>> Log: >>>> Fix panic in network stack due to memory use after free in = relation to >>>> fragmented packets. >>>>=20 >>>> When sending IPv4 and IPv6 fragmented packets and a fragment is = lost, >>>> the mbuf making up the fragment will remain in the temporary = hashed >>>> fragment list for a while. If the network interface departs = before the >>>> so-called slow timeout clears the packet, the fragment causes a = panic >>>> when the timeout kicks in due to accessing a freed network = interface >>>> structure. >>>>=20 >>>> Make sure that when a network device is departing, all hashed = IPv4 and >>>> IPv6 fragments belonging to it, get freed. >>>>=20 >>>> Backtrace: >>>> panic() >>>> icmp6_reflect() >>>>=20 >>>> hlim =3D ND_IFINFO(m->m_pkthdr.rcvif)->chlim; >>>> ^^^^ rcvif->if_afdata[AF_INET6] is NULL. >>>>=20 >>>> icmp6_error() >>>> frag6_freef() >>>> frag6_slowtimo() >>>> pfslowtimo() >>>> softclock_call_cc() >>>> softclock() >>>> ithread_loop() >>>>=20 >>>> Differential Revision: https://reviews.freebsd.org/D19622 >>>> Reviewed by: bz (network), adrian >>>> MFC after: 1 week >>>> Sponsored by: Mellanox Technologies >=20 > Should be fixed by >=20 > r346535 >=20 > Else I'll revert. ... The code compiles, but unfortunately panics when running the test suite. = =46rom https://ci.freebsd.org/job/FreeBSD-head-amd64-test/10926/console: 03:05:01 1st 0xffffffff820967f0 allprison (allprison) @ = /usr/src/sys/kern/kern_jail.c:966 03:05:01 2nd 0xffffffff820c47f0 vnet_sysinit_sxlock = (vnet_sysinit_sxlock) @ /usr/src/sys/net/vnet.c:575 03:05:01 stack backtrace: 03:05:01 #0 0xffffffff80c477f3 at witness_debugger+0x73 03:05:01 #1 0xffffffff80c4753d at witness_checkorder+0xa7d 03:05:01 #2 0xffffffff80be9088 at _sx_slock_int+0x68 03:05:01 #3 0xffffffff80d0ef97 at vnet_alloc+0x117 03:05:01 #4 0xffffffff80ba4111 at kern_jail_set+0x1bb1 03:05:01 #5 0xffffffff80ba5b70 at sys_jail_set+0x40 03:05:01 #6 0xffffffff810b2e16 at amd64_syscall+0x276 03:05:01 #7 0xffffffff8108b44d at fast_syscall_common+0x101 03:05:01 panic: mtx_lock() of destroyed mutex @ = /usr/src/sys/netinet/ip_reass.c:628 03:05:01 cpuid =3D 1 03:05:01 time =3D 1555927501 03:05:01 KDB: stack backtrace: 03:05:01 db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame = 0xfffffe0030eec630 03:05:01 vpanic() at vpanic+0x19d/frame 0xfffffe0030eec680 03:05:01 panic() at panic+0x43/frame 0xfffffe0030eec6e0 03:05:02 __mtx_lock_flags() at __mtx_lock_flags+0x12e/frame = 0xfffffe0030eec730 03:05:02 ipreass_cleanup() at ipreass_cleanup+0x86/frame = 0xfffffe0030eec770 03:05:02 if_detach_internal() at if_detach_internal+0x786/frame = 0xfffffe0030eec7f0 03:05:02 if_detach() at if_detach+0x3d/frame 0xfffffe0030eec810 03:05:02 lo_clone_destroy() at lo_clone_destroy+0x16/frame = 0xfffffe0030eec830 03:05:02 if_clone_destroyif() at if_clone_destroyif+0x21f/frame = 0xfffffe0030eec880 03:05:02 if_clone_detach() at if_clone_detach+0xb8/frame = 0xfffffe0030eec8b0 03:05:02 vnet_loif_uninit() at vnet_loif_uninit+0x26/frame = 0xfffffe0030eec8d0 03:05:02 vnet_destroy() at vnet_destroy+0x124/frame 0xfffffe0030eec900 03:05:02 prison_deref() at prison_deref+0x29d/frame 0xfffffe0030eec940 03:05:02 sys_jail_remove() at sys_jail_remove+0x28f/frame = 0xfffffe0030eec990 03:05:02 amd64_syscall() at amd64_syscall+0x276/frame 0xfffffe0030eecab0 03:05:02 fast_syscall_common() at fast_syscall_common+0x101/frame = 0xfffffe0030eecab0 03:05:02 --- syscall (508, FreeBSD ELF64, sys_jail_remove), rip =3D = 0x80031e12a, rsp =3D 0x7fffffffe998, rbp =3D 0x7fffffffea20 --- 03:05:02 KDB: enter: panic 03:05:02 [ thread pid 13109 tid 100150 ] 03:05:02 Stopped at kdb_enter+0x3b: movq $0,kdb_why 03:05:02 db:0:kdb.enter.panic> show pcpu 03:05:02 cpuid =3D 1 03:05:02 dynamic pcpu =3D 0xfffffe0080191800 03:05:02 curthread =3D 0xfffff80005c1f000: pid 13109 tid 100150 = "jail" 03:05:02 curpcb =3D 0xfffffe0030eecb80 03:05:02 fpcurthread =3D 0xfffff80005c1f000: pid 13109 "jail" 03:05:02 idlethread =3D 0xfffff800032765a0: tid 100004 "idle: cpu1" 03:05:02 curpmap =3D 0xfffff8013d837130 03:05:02 tssp =3D 0xffffffff821cd388 03:05:02 commontssp =3D 0xffffffff821cd388 03:05:02 rsp0 =3D 0xfffffe0030eecb80 03:05:02 gs32p =3D 0xffffffff821d3fc0 03:05:02 ldt =3D 0xffffffff821d4000 03:05:02 tss =3D 0xffffffff821d3ff0 03:05:02 tlb gen =3D 314416 03:05:02 curvnet =3D 0xfffff80139320200 03:05:02 spin locks held: 03:05:02 db:0:kdb.enter.panic> alltrace Either the sys/netinet/ or sys/netipsec/ tests triggered the = panic. Not sure which right now. Cheers, -Enji= From owner-freebsd-current@freebsd.org Tue Sep 3 14:07:24 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 97B64DDA36; Tue, 3 Sep 2019 14:07:24 +0000 (UTC) (envelope-from yuripv@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46N80W2yD9z4QYF; Tue, 3 Sep 2019 14:07:23 +0000 (UTC) (envelope-from yuripv@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1452) id C4B5A1B55D; Tue, 3 Sep 2019 14:06:37 +0000 (UTC) X-Original-To: yuripv@localmail.freebsd.org Delivered-To: yuripv@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [96.47.72.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id 6F673156B0; Mon, 22 Apr 2019 19:30:57 +0000 (UTC) (envelope-from owner-src-committers@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2945872FEC; Mon, 22 Apr 2019 19:30:57 +0000 (UTC) (envelope-from owner-src-committers@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 538) id 14AED156AE; Mon, 22 Apr 2019 19:30:57 +0000 (UTC) Delivered-To: src-committers@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id 35427156AB; Mon, 22 Apr 2019 19:30:54 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E4AE072FDF; Mon, 22 Apr 2019 19:30:53 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [176.74.212.121]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 879BA26046D; Mon, 22 Apr 2019 21:30:51 +0200 (CEST) Subject: Re: Panic with r346530 [Re: svn commit: r346530 - in head/sys: netinet netinet6] To: Kristof Provost , Enji Cooper Cc: src-committers , svn-src-all , svn-src-head , FreeBSD CURRENT References: <201904220727.x3M7ROpR009729@repo.freebsd.org> <2F3D6B17-AF4F-4B0F-B20E-5EF41DE851F9@gmail.com> <87917500-0381-79d8-a34b-819848abed32@selasky.org> <8EAC0CFE-E22F-478F-813F-A07E68C0518D@gmail.com> <1342BBD2-EE0F-4457-8752-659EA7F01725@FreeBSD.org> From: Hans Petter Selasky Message-ID: <89bdecf9-970e-f571-a94d-b4ceaea18368@selasky.org> User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <1342BBD2-EE0F-4457-8752-659EA7F01725@FreeBSD.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk X-Loop: FreeBSD.org Sender: owner-src-committers@freebsd.org X-Rspamd-Queue-Id: 2945872FEC X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.97 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.97)[-0.973,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0] Status: O X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Tue, 03 Sep 2019 14:07:24 -0000 X-Original-Date: Mon, 22 Apr 2019 21:30:24 +0200 X-List-Received-Date: Tue, 03 Sep 2019 14:07:24 -0000 On 4/22/19 3:28 PM, Kristof Provost wrote: > On 22 Apr 2019, at 12:25, Enji Cooper wrote: >> Either the sys/netinet/ or sys/netipsec/ tests triggered the panic. >> Not sure which right now. >> > That looks to be happening during a vnet jail teardown, so it’s likely > the sys/netipsec or sys/netpfil/pf tests. > > I’ve done a quick test with the pf tests, and they provoke this panic: > >     panic: mtx_lock() of destroyed mutex @ > /usr/src/sys/netinet/ip_reass.c:628 >     cpuid = 0 >     time = 1555939645 >     KDB: stack backtrace: >     db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame > 0xfffffe0091d68530 >     vpanic() at vpanic+0x19d/frame 0xfffffe0091d68580 >     panic() at panic+0x43/frame 0xfffffe0091d685e0 >     __mtx_lock_flags() at __mtx_lock_flags+0x12e/frame 0xfffffe0091d68630 >     ipreass_cleanup() at ipreass_cleanup+0x86/frame 0xfffffe0091d68670 >     if_detach_internal() at if_detach_internal+0x786/frame > 0xfffffe0091d686f0 >     if_detach() at if_detach+0x3d/frame 0xfffffe0091d68710 >     lo_clone_destroy() at lo_clone_destroy+0x16/frame 0xfffffe0091d68730 >     if_clone_destroyif() at if_clone_destroyif+0x21f/frame > 0xfffffe0091d68780 >     if_clone_detach() at if_clone_detach+0xb8/frame 0xfffffe0091d687b0 >     vnet_loif_uninit() at vnet_loif_uninit+0x26/frame 0xfffffe0091d687d0 >     vnet_destroy() at vnet_destroy+0x124/frame 0xfffffe0091d68800 >     prison_deref() at prison_deref+0x29d/frame 0xfffffe0091d68840 >     sys_jail_remove() at sys_jail_remove+0x28f/frame 0xfffffe0091d68890 >     amd64_syscall() at amd64_syscall+0x276/frame 0xfffffe0091d689b0 >     fast_syscall_common() at fast_syscall_common+0x101/frame > 0xfffffe0091d689b0 >     --- syscall (508, FreeBSD ELF64, sys_jail_remove), rip = > 0x80031e12a, rsp = 0x7fffffffe848, rbp = 0x7fffffffe8d0 --- >     KDB: enter: panic >     [ thread pid 1223 tid 100501 ] >     Stopped at      kdb_enter+0x3b: movq    $0,kdb_why >     db> > > To reproduce: > >     kldload pfsync >     cd /usr/tests/sys/netpfil/pf >     sudo kyua test > I'll revert r346530 until further testing has taken place. Thank you! --HPS From owner-freebsd-current@freebsd.org Tue Sep 3 14:07:21 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3032ADD913; Tue, 3 Sep 2019 14:07:21 +0000 (UTC) (envelope-from yuripv@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46N80S5h3Pz4QW6; Tue, 3 Sep 2019 14:07:20 +0000 (UTC) (envelope-from yuripv@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1452) id 8B1051B4BF; Tue, 3 Sep 2019 14:06:36 +0000 (UTC) X-Original-To: yuripv@localmail.freebsd.org Delivered-To: yuripv@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id 35E3FDE01; Mon, 22 Apr 2019 13:28:41 +0000 (UTC) (envelope-from owner-src-committers@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 41CBC8A7BE; Mon, 22 Apr 2019 13:28:40 +0000 (UTC) (envelope-from owner-src-committers@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 538) id 1585EDDB7; Mon, 22 Apr 2019 13:28:40 +0000 (UTC) Delivered-To: src-committers@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [96.47.72.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id 353A8DDB2 for ; Mon, 22 Apr 2019 13:28:37 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 026EF8A7B3; Mon, 22 Apr 2019 13:28:37 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from venus.codepro.be (venus.codepro.be [5.9.86.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.codepro.be", Issuer "Let's Encrypt Authority X3" (verified OK)) (Authenticated sender: kp) by smtp.freebsd.org (Postfix) with ESMTPSA id 98E81FAD7; Mon, 22 Apr 2019 13:28:36 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from [137.50.17.195] (unknown [IPv6:2001:630:42:110:d1ea:c255:f4:4af0]) (Authenticated sender: kp) by venus.codepro.be (Postfix) with ESMTPSA id B112331010; Mon, 22 Apr 2019 15:28:34 +0200 (CEST) From: "Kristof Provost" To: "Enji Cooper" Cc: "Hans Petter Selasky" , src-committers , svn-src-all , svn-src-head , "FreeBSD CURRENT" Subject: Re: Panic with r346530 [Re: svn commit: r346530 - in head/sys: netinet netinet6] X-Mailer: MailMate (2.0BETAr6135) Message-ID: <1342BBD2-EE0F-4457-8752-659EA7F01725@FreeBSD.org> In-Reply-To: <8EAC0CFE-E22F-478F-813F-A07E68C0518D@gmail.com> References: <201904220727.x3M7ROpR009729@repo.freebsd.org> <2F3D6B17-AF4F-4B0F-B20E-5EF41DE851F9@gmail.com> <87917500-0381-79d8-a34b-819848abed32@selasky.org> <8EAC0CFE-E22F-478F-813F-A07E68C0518D@gmail.com> MIME-Version: 1.0 Precedence: bulk X-Loop: FreeBSD.org Sender: owner-src-committers@freebsd.org X-Rspamd-Queue-Id: 41CBC8A7BE X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.94 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.94)[-0.943,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0] Status: O Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Tue, 03 Sep 2019 14:07:21 -0000 X-Original-Date: Mon, 22 Apr 2019 14:28:31 +0100 X-List-Received-Date: Tue, 03 Sep 2019 14:07:21 -0000 On 22 Apr 2019, at 12:25, Enji Cooper wrote: > Either the sys/netinet/ or sys/netipsec/ tests triggered the panic. > Not sure which right now. > That looks to be happening during a vnet jail teardown, so it’s likely the sys/netipsec or sys/netpfil/pf tests. I’ve done a quick test with the pf tests, and they provoke this panic: panic: mtx_lock() of destroyed mutex @ /usr/src/sys/netinet/ip_reass.c:628 cpuid = 0 time = 1555939645 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0091d68530 vpanic() at vpanic+0x19d/frame 0xfffffe0091d68580 panic() at panic+0x43/frame 0xfffffe0091d685e0 __mtx_lock_flags() at __mtx_lock_flags+0x12e/frame 0xfffffe0091d68630 ipreass_cleanup() at ipreass_cleanup+0x86/frame 0xfffffe0091d68670 if_detach_internal() at if_detach_internal+0x786/frame 0xfffffe0091d686f0 if_detach() at if_detach+0x3d/frame 0xfffffe0091d68710 lo_clone_destroy() at lo_clone_destroy+0x16/frame 0xfffffe0091d68730 if_clone_destroyif() at if_clone_destroyif+0x21f/frame 0xfffffe0091d68780 if_clone_detach() at if_clone_detach+0xb8/frame 0xfffffe0091d687b0 vnet_loif_uninit() at vnet_loif_uninit+0x26/frame 0xfffffe0091d687d0 vnet_destroy() at vnet_destroy+0x124/frame 0xfffffe0091d68800 prison_deref() at prison_deref+0x29d/frame 0xfffffe0091d68840 sys_jail_remove() at sys_jail_remove+0x28f/frame 0xfffffe0091d68890 amd64_syscall() at amd64_syscall+0x276/frame 0xfffffe0091d689b0 fast_syscall_common() at fast_syscall_common+0x101/frame 0xfffffe0091d689b0 --- syscall (508, FreeBSD ELF64, sys_jail_remove), rip = 0x80031e12a, rsp = 0x7fffffffe848, rbp = 0x7fffffffe8d0 --- KDB: enter: panic [ thread pid 1223 tid 100501 ] Stopped at kdb_enter+0x3b: movq $0,kdb_why db> To reproduce: kldload pfsync cd /usr/tests/sys/netpfil/pf sudo kyua test Regards, Kristof From owner-freebsd-current@freebsd.org Tue Sep 3 18:29:31 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 53A5BE7E0B for ; Tue, 3 Sep 2019 18:29:31 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46NFpz1ZfXz41nV; Tue, 3 Sep 2019 18:29:31 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from freefall.freebsd.org (static-71-168-218-4.cmdnnj.fios.verizon.net [71.168.218.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: jkim/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 0F75DBB4C; Tue, 3 Sep 2019 18:29:31 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Subject: Re: Is the LSI/AVAGO/Broadcom 9280-16i4e supported? To: Chris , FreeBSD CURRENT References: From: Jung-uk Kim Autocrypt: addr=jkim@FreeBSD.org; prefer-encrypt=mutual; keydata= mQENBFJBztUBCAChqNyGqmFuNo0U7MBzsD+q/G6Cv0l7LGVrOAsgh34M8wIWhD+tztDWMVfn AhxNDd0ceCj2bYOe67sTQxAScEcbt2FfvPOLp9MEXb9qohZj172Gwkk7dnhOhZZKhVGVZKM4 NcsuBDUzgf4f3Vdzj4wg6WlqplnTZo8lPE4hZWvZHoFIyunPTJWenybeV1xnxK7JkUdSvQR0 fA59RfTTECMwTrSEfYGUnxIDBraxJ7Ecs/0hGQ7sljIj8WBvlRDU5fU1xfF35aw56T8POQRq F4E6RVJW3YGuTpSwgtGZOTfygcLRhAiq3dFC3JNLaTVTpM8PjOinJyt9AU6RoITGOKwDABEB AAG0Hkp1bmctdWsgS2ltIDxqa2ltQEZyZWVCU0Qub3JnPokBPQQTAQoAJwUCUkHO1QIbAwUJ E0/POwULCQgHAwUVCgkICwUWAgMBAAIeAQIXgAAKCRB8n5Ym/NvxRqyzB/wL7QtsIpeGfGIA ZPMtgXMucM3NWzomyQMln2j2efUkDKthzh9jBxgF53TjOr7imwIt0PT2k1bqctPrq5IRqnu9 mGroqaCLE3LG2/E3jEaao4k9PO6efwlioyivUo5NrqIQOQ4k3EAXw7d2y0Dk1VpTgdMrnUAB hj7lGlLqS4ydcrf24DdbCRGdEQwqd9DBeBgbWynxAJMgbZBhYVEyIHuQKkJ8qY0ibIPXXuF0 KYDeH0qUHtWV2K3srNyPtymUkBQD84Pl1GWRYx05XdUHDmnX0JV3lg0BfYJZgZv0ehPQrMfY Fd9abTkf9FHQYz1JtsC8wUuRgqElRd6+YAGf8Tt9uQENBFJBztUBCADLtSrP44El2VoJmH14 OFrlOgxzZnbn+Y/Gf1k12mJBiR+A+pBeRLD50p7AiTrjHRxO3cHcl9Dh0uf1VSbXgp8Or0ye iP/86fZPd4k5HXNmDTLL0HecPE08SCqGZ0W8vllQrokB1QxxRUB+fFMPJyMCjDAZ7P9fFTOS dTw1bJSTtOD8Sx8MpZUa9ti06bXFlVYDlaqSdgk181SSx+ZbSKkQR8CIMARlHwiLsa3Z9q9O EJr20HPyxe0AlTvwvFndH61hg7ds63eRvglwRnNON28VXO/lvKXq7Br/CiiyhFdKfINIx2Z5 htYq22tgGTW7mBURbIKoECFBTX9Lv6BXz6w9ABEBAAGJASUEGAEKAA8FAlJBztUCGwwFCRNP zzsACgkQfJ+WJvzb8UZcJQf+IsTCxUEqY7W/pT84sMg5/QD3s6ufTRncvq14fEOxCNq1Rf4Q 9P+tOFa8GZfKDGB2BFGIrW7uT5mlmKdK1vO6ZIA930y5kUsnCmBUEBJkE2ciSQk01aB/1o62 Q3Gk/F6BwtNY9OXiqF7AcAo+K/BMIaqb26QKeh+IIgK1NN9dQiq3ByTbl4zpGZa6MmsnnRTu mzGKt2nkz7vBzH6+hZp1OzGZikgjjhYWVFoJo1dvf/rv4obs0ZJEqFPQs/1Qa1dbkKBv6odB XJpPH0ssOluTY24d1XxTiKTwmWvHeQkOKRAIfD7VTtF4TesoZYkf7hsh3e3VwXhptSLFnEOi WwYofg== Message-ID: <57fc069e-c2d1-8157-85ae-bd968d93ef60@FreeBSD.org> Date: Tue, 3 Sep 2019 14:29:23 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="hUvfnvqwRap7Log7OTrLww4NLShkoC8HI" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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: Tue, 03 Sep 2019 18:29:31 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --hUvfnvqwRap7Log7OTrLww4NLShkoC8HI Content-Type: multipart/mixed; boundary="H6LCHcHnnM4012WglDPPL1hRnHLayj4Qs" --H6LCHcHnnM4012WglDPPL1hRnHLayj4Qs Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 19. 9. 1., Chris wrote: > Hello all, > I recently picked up an LSI/AVAGO/Broadcom 9280-16i4e card with > the intent of flashing it to IT mode (pass through). So as to > use it in one of my (FreeBSD) servers. > However; looking through the Hardware (support) section of the > release notes for 12; the closest I found was the 9260. > Does anyone have any experience with the 9280-16i4e on FreeBSD? > Does it work? Well? If not, anytime soon? I have one of these. % uname -rs FreeBSD 13.0-CURRENT % mfiutil show adapter mfi0 Adapter: Product Name: LSI MegaRAID SAS 9280-16i4e Serial Number: XXXXXXXXXX Firmware: 12.15.0-0239 RAID Levels: JBOD, RAID0, RAID1, RAID5, RAID6, RAID10, RAID50 Battery Backup: present NVRAM: 32K Onboard Memory: 512M Minimum Stripe: 8K Maximum Stripe: 1M % mfiutil show volumes mfi0 Volumes: Id Size Level Stripe State Cache Name mfid0 ( 36T) RAID-6 64K OPTIMAL Disabled FYI, it's been working fine for 7 years. Jung-uk Kim --H6LCHcHnnM4012WglDPPL1hRnHLayj4Qs-- --hUvfnvqwRap7Log7OTrLww4NLShkoC8HI Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEl1bqgKaRyqfWXu/CfJ+WJvzb8UYFAl1usQoACgkQfJ+WJvzb 8UZ/6wf+KXC3hJDwsmhs+HvGVFdm4qLKOkf2aOGQZRtFLLH5xntv6XCBzqN11sQe ad3oG1WPT7x+CiBbkh7PU2tqcKwaYByUr9ZNkC1pDXP4NsrLa4g1UZI4OcBzouDg 6ptxgZ6B+cqJhq9uFc2x/5EPaI2sP2c34bI2gNQyZgznaS54ql5hNEVQZWeWF0AE pbjdh1ss9Ho+Z4OXF8gzpE48J5mK/yr56OEK5f4G5PBNoV+37riiSYLh+vsNgrS/ pLHkzr/TDQaPf9zLxvhBtvSrA0A7nXEZ1u+q/fFlselYZyyOMw8iTHC+qOPvAJIx 2dnC3MLL1adk1QAHUxGTTr8jEt6n8A== =blDz -----END PGP SIGNATURE----- --hUvfnvqwRap7Log7OTrLww4NLShkoC8HI-- From owner-freebsd-current@freebsd.org Tue Sep 3 19:28:31 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DE948D3E19; Tue, 3 Sep 2019 19:28:31 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46NH735ZK5z4CZC; Tue, 3 Sep 2019 19:28:31 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "Let's Encrypt Authority X3" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id 86FF4C24E; Tue, 3 Sep 2019 19:28:31 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from coleburn.home.andric.com (coleburn.home.andric.com [192.168.0.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 2A88A5313D; Tue, 3 Sep 2019 21:28:30 +0200 (CEST) From: Dimitry Andric Message-Id: Content-Type: multipart/signed; boundary="Apple-Mail=_DFDA7815-BF9B-403A-9CBA-F31F24F7EAAA"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: amd64 head -r351153 self-built but via devel/llvm90: 'objcopy: elf_update() failed: Layout constraint violation' for gptboot.bin Date: Tue, 3 Sep 2019 21:28:23 +0200 In-Reply-To: <82D7BB4B-14B5-4F6D-A19D-942F4598520E@yahoo.com> Cc: FreeBSD Toolchain , freebsd-current@freebsd.org, freebsd-amd64@freebsd.org To: Mark Millard References: <82D7BB4B-14B5-4F6D-A19D-942F4598520E@yahoo.com> X-Mailer: Apple Mail (2.3445.104.11) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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: Tue, 03 Sep 2019 19:28:31 -0000 --Apple-Mail=_DFDA7815-BF9B-403A-9CBA-F31F24F7EAAA Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On 17 Aug 2019, at 05:33, Mark Millard wrote: > > I upgraded to head -r351153 and then attempted a buildworld > buildkernel via devel/llvm90 (rc2 via ports head -r509054), > but that (from scratch) build attempt got: > > --- gptboot.bin --- > objcopy: elf_update() failed: Layout constraint violation > *** [gptboot.bin] Error code 1 > make[5]: *** gptboot.bin removed It turns out this is an lld issue with the -N option, introduced with https://reviews.llvm.org/rLLD360593: https://bugs.llvm.org/show_bug.cgi?id=43212 Before, -N did not do that much, but that change can cause section offsets which do not match the stated section alignment. Hence, objcopy complains. -Dimitry --Apple-Mail=_DFDA7815-BF9B-403A-9CBA-F31F24F7EAAA 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----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCXW6+1wAKCRCwXqMKLiCW oy+qAKCzp0cZKbF+RX81pMaRxU/HBAfC0QCeNzOvc1cxEhcBEh2jgkenkxRT+fo= =l/IB -----END PGP SIGNATURE----- --Apple-Mail=_DFDA7815-BF9B-403A-9CBA-F31F24F7EAAA-- From owner-freebsd-current@freebsd.org Wed Sep 4 07:49:34 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id AAAEBE8573 for ; Wed, 4 Sep 2019 07:49:34 +0000 (UTC) (envelope-from rcv-YnNkLmxpc3RzQGg4c3BhbS5vcmcAQDE1Njc1NDU2NTY=@vfemail.net) Received: from nl101-3.vfemail.net (nl101-3.vfemail.net [149.210.219.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46NbZ545vXz3x8j for ; Wed, 4 Sep 2019 07:49:33 +0000 (UTC) (envelope-from rcv-YnNkLmxpc3RzQGg4c3BhbS5vcmcAQDE1Njc1NDU2NTY=@vfemail.net) Received: (qmail 53063 invoked from network); 3 Sep 2019 21:20:57 -0000 Received: by simscan 1.4.0 ppid: 53053, pid: 53061, t: 0.0064s scanners:none Received: from unknown (HELO dmZlbWFpbC5uZXRAMTU2NzU0NTY1Ng==) (YnNkLmxpc3RzQGg4c3BhbS5vcmdAMTU2NzU0NTY1Ng==@MTkyLjE2OC4xLjE5MkAxNTY3NTQ1NjU2) by nl101.vfemail.net with ESMTPA; 3 Sep 2019 21:20:56 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 04 Sep 2019 00:49:26 -0700 From: Chris To: FreeBSD CURRENT Subject: Re: Is the LSI/AVAGO/Broadcom 9280-16i4e supported? In-Reply-To: <57fc069e-c2d1-8157-85ae-bd968d93ef60@FreeBSD.org> References: <57fc069e-c2d1-8157-85ae-bd968d93ef60@FreeBSD.org> Message-ID: X-Sender: bsd.lists@h8spam.org User-Agent: Roundcube Webmail/1.2.3 X-Rspamd-Queue-Id: 46NbZ545vXz3x8j X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of rcv-YnNkLmxpc3RzQGg4c3BhbS5vcmcAQDE1Njc1NDU2NTY=@vfemail.net designates 149.210.219.33 as permitted sender) smtp.mailfrom=rcv-YnNkLmxpc3RzQGg4c3BhbS5vcmcAQDE1Njc1NDU2NTY=@vfemail.net X-Spamd-Result: default: False [-3.38 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:149.210.219.33/32]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; SUBJECT_ENDS_QUESTION(1.00)[]; DMARC_NA(0.00)[h8spam.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_TLS_LAST(0.00)[]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-0.97)[-0.966,0]; NEURAL_HAM_MEDIUM(-0.99)[-0.995,0]; IP_SCORE(-1.42)[ipnet: 149.210.128.0/17(-4.89), asn: 20857(-2.21), country: NL(0.01)]; FORGED_SENDER(0.30)[bsd.lists@h8spam.org,rcv-YnNkLmxpc3RzQGg4c3BhbS5vcmcAQDE1Njc1NDU2NTY=@vfemail.net]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[vfemail.net]; ASN(0.00)[asn:20857, ipnet:149.210.128.0/17, country:NL]; R_DKIM_NA(0.00)[]; FROM_NEQ_ENVFROM(0.00)[bsd.lists@h8spam.org,rcv-YnNkLmxpc3RzQGg4c3BhbS5vcmcAQDE1Njc1NDU2NTY=@vfemail.net]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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: Wed, 04 Sep 2019 07:49:34 -0000 Just a huge thank you to you, and everyone else for all the information. Greatly appreciated! On 2019-09-03 11:29, Jung-uk Kim wrote: > On 19. 9. 1., Chris wrote: >> Hello all, >> I recently picked up an LSI/AVAGO/Broadcom 9280-16i4e card with >> the intent of flashing it to IT mode (pass through). So as to >> use it in one of my (FreeBSD) servers. >> However; looking through the Hardware (support) section of the >> release notes for 12; the closest I found was the 9260. >> Does anyone have any experience with the 9280-16i4e on FreeBSD? >> Does it work? Well? If not, anytime soon? > > I have one of these. > > % uname -rs > FreeBSD 13.0-CURRENT > % mfiutil show adapter > mfi0 Adapter: > Product Name: LSI MegaRAID SAS 9280-16i4e > Serial Number: XXXXXXXXXX > Firmware: 12.15.0-0239 > RAID Levels: JBOD, RAID0, RAID1, RAID5, RAID6, RAID10, RAID50 > Battery Backup: present > NVRAM: 32K > Onboard Memory: 512M > Minimum Stripe: 8K > Maximum Stripe: 1M > % mfiutil show volumes > mfi0 Volumes: > Id Size Level Stripe State Cache Name > mfid0 ( 36T) RAID-6 64K OPTIMAL Disabled > > FYI, it's been working fine for 7 years. > > Jung-uk Kim From owner-freebsd-current@freebsd.org Wed Sep 4 11:59:15 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 83B59EF0F1 for ; Wed, 4 Sep 2019 11:59:15 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 46Nj6C13Dgz4Bsb for ; Wed, 4 Sep 2019 11:59:15 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: by mailman.nyi.freebsd.org (Postfix) id 240A5EF0F0; Wed, 4 Sep 2019 11:59:15 +0000 (UTC) Delivered-To: current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 23C74EF0EF for ; Wed, 4 Sep 2019 11:59:15 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46Nj692QQRz4BsZ for ; Wed, 4 Sep 2019 11:59:12 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (v-critter.freebsd.dk [192.168.55.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by phk.freebsd.dk (Postfix) with ESMTPS id 1CBE11AF112 for ; Wed, 4 Sep 2019 11:59:05 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.15.2/8.15.2) with ESMTPS id x84Bx4Dh003845 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Wed, 4 Sep 2019 11:59:04 GMT (envelope-from phk@critter.freebsd.dk) Received: (from phk@localhost) by critter.freebsd.dk (8.15.2/8.15.2/Submit) id x84Bx4IX003844; Wed, 4 Sep 2019 11:59:04 GMT (envelope-from phk) To: current@freebsd.org Subject: Weird goings on with make::empty() From: Poul-Henning Kamp MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3842.1567598344.1@critter.freebsd.dk> Content-Transfer-Encoding: quoted-printable Date: Wed, 04 Sep 2019 11:59:04 +0000 Message-ID: <3843.1567598344@critter.freebsd.dk> X-Rspamd-Queue-Id: 46Nj692QQRz4BsZ X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of phk@critter.freebsd.dk designates 130.225.244.222 as permitted sender) smtp.mailfrom=phk@critter.freebsd.dk X-Spamd-Result: default: False [-2.16 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.82)[-0.825,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[current@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-0.996,0]; RCVD_COUNT_THREE(0.00)[3]; DMARC_NA(0.00)[freebsd.dk]; NEURAL_HAM_SHORT(-0.40)[-0.403,0]; IP_SCORE(0.06)[ip: (0.08), ipnet: 130.225.0.0/16(0.11), asn: 1835(0.12), country: EU(-0.00)]; FORGED_SENDER(0.30)[phk@phk.freebsd.dk,phk@critter.freebsd.dk]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:1835, ipnet:130.225.0.0/16, country:EU]; FROM_NEQ_ENVFROM(0.00)[phk@phk.freebsd.dk,phk@critter.freebsd.dk]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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: Wed, 04 Sep 2019 11:59:15 -0000 On: Repository Root: svn+ssh://repo.freebsd.org/base Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f Revision: 351809 I built a kernel, but drm-current-kmod did not get compiled from the new world order in /usr/local/sys/modules Debugging I ended up doing this to src/sys/conf/kern.post.mk: Index: sys/conf/kern.post.mk =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sys/conf/kern.post.mk (revision 351809) +++ sys/conf/kern.post.mk (working copy) @@ -77,12 +77,14 @@ ${target:S/^reinstall$/install/:S/^clobber$/cleandir/} .endif .for module in ${LOCAL_MODULES} -.if !empty(module) + true "XXX A $(module) 2 ${LOCALBASE} 3 ${LOCAL_MODULES} 4 ${MODULES_WIT= H_WORLD}" +#.if !empty(module) + true "XXX B $(module) 2 ${LOCALBASE} 3 ${LOCAL_MODULES} 4 ${MODULES_WIT= H_WORLD}" @${ECHODIR} "=3D=3D=3D> ${module} (${target:S/^reinstall$/install/:S/^cl= obber$/cleandir/})" @cd ${LOCAL_MODULES_DIR}/${module}; ${MKMODULESENV} ${MAKE} \ DIRPRFX=3D"${module}/" \ ${target:S/^reinstall$/install/:S/^clobber$/cleandir/} -.endif +#.endif .endfor .endif .endfor This gives me the expected output from buildkernel: true "XXX A drm-current-kmod 2 /usr/local 3 drm-current-kmod 4 " true "XXX B drm-current-kmod 2 /usr/local 3 drm-current-kmod 4 " If I leave in the ".if !empty(module)" line in, I only get: true "XXX A drm-current-kmod 2 /usr/local 3 drm-current-kmod 4 " suggestions welcome... -- = Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence= . From owner-freebsd-current@freebsd.org Wed Sep 4 14:27:13 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E6823F32F6 for ; Wed, 4 Sep 2019 14:27:13 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 46NmNx4hhgz4Myw for ; Wed, 4 Sep 2019 14:27:13 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by mailman.nyi.freebsd.org (Postfix) id A113BF32F5; Wed, 4 Sep 2019 14:27:13 +0000 (UTC) Delivered-To: current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A0D62F32F4 for ; Wed, 4 Sep 2019 14:27:13 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-pl1-x641.google.com (mail-pl1-x641.google.com [IPv6:2607:f8b0:4864:20::641]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46NmNw6GnLz4Myv; Wed, 4 Sep 2019 14:27:12 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by mail-pl1-x641.google.com with SMTP id gn20so9651286plb.2; Wed, 04 Sep 2019 07:27:12 -0700 (PDT) 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=/EDxag+jeJ5/ns2XqTafhZMw5aSBm3V7Jxikrpu3UDo=; b=FA5Uq8qc0BHJyPEITRGwb4/lakBBleZeAFHTGUFAJ3OUcONcxgb+TgggQctEB2il/+ Jcdf8AZVDBrDMRtyghYad1RRefaLt3LcODTzQdlP+BOt9e4Fi+p1zkGj4/CY5/yAD9FD r3oWedvw5/EA2gim2cFnxsjIF087RcUdOptF5PYx6cGhjn3eH1j4yYbE3gc3kdxgB6c/ XvGUNAD8cMSeBcWOwu3j/0zxtfzW/fg1vmLFLSEdEMZxuaga40k184aoA88BVGs+wEeh TBdVu87MmqIfYRef+iumEYSgJ3mfLISEtqZkIIFxPBq6x3w7Ah6kkrGJpvUG8Qnt+Qe9 fmFA== 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=/EDxag+jeJ5/ns2XqTafhZMw5aSBm3V7Jxikrpu3UDo=; b=UeUf3Tt9Pzkjnf+Norv78uHztfPykb5sSAFyYjCIS8PR8nhgYIeQHtSRL/65mavxhl 2nvPhMy9tg+SDcUrwQ2s177okGAJnJjrJOziZrs39lzWim7ZiV8KbLkJfoqlYnDwrZLB yuVyuz7++kSuHT5opp588T+glBaUN0E+qvSaRiyD4oFMJ0wkKPpgKLDIYA6o1Qlsu0xQ 52WpJayu6whKXXw57oKYN9az62PRqGetk/gobtbTETO158HwYwRYy7LYJ4n1wjyVXn36 2T0aVabLereQvVhINQvsQFpO/8JKAyxfhal9n2SbHFVtGCW9Al3fGNrJuJWZYZFYw6jO ec3A== X-Gm-Message-State: APjAAAUl7ZypRU8Qyuy42N3j/yerYT3kmBfn9HHjzOv3XM+13hkIemPB gaIfmdt7ILk+HkYGiQmbO16wNv7/KQY= X-Google-Smtp-Source: APXvYqw88w61RwkUm50ElcQkCnxc+fB8nIy9gStlNALnXrH5cR/wBA7CcjDl6ED3ptIVfeA5vf+x9w== X-Received: by 2002:a17:902:9349:: with SMTP id g9mr40337162plp.262.1567607230830; Wed, 04 Sep 2019 07:27:10 -0700 (PDT) Received: from ?IPv6:2607:fb90:b21e:2263:4cd7:25c7:1dea:406e? ([2607:fb90:b21e:2263:4cd7:25c7:1dea:406e]) by smtp.gmail.com with ESMTPSA id q8sm2807397pjd.28.2019.09.04.07.27.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Sep 2019 07:27:10 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (1.0) Subject: Re: Weird goings on with make::empty() From: Enji Cooper X-Mailer: iPhone Mail (16G102) In-Reply-To: <3843.1567598344@critter.freebsd.dk> Date: Wed, 4 Sep 2019 07:27:09 -0700 Cc: current@freebsd.org, kevans@FreeBSD.org Content-Transfer-Encoding: quoted-printable Message-Id: <969A062A-A52A-49E3-B4E3-CC9377B08C80@gmail.com> References: <3843.1567598344@critter.freebsd.dk> To: Poul-Henning Kamp X-Rspamd-Queue-Id: 46NmNw6GnLz4Myv X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=FA5Uq8qc; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of yaneurabeya@gmail.com designates 2607:f8b0:4864:20::641 as permitted sender) smtp.mailfrom=yaneurabeya@gmail.com X-Spamd-Result: default: False [-3.48 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MV_CASE(0.50)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.99)[-0.986,0]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.00)[ip: (-0.48), ipnet: 2607:f8b0::/32(-2.76), asn: 15169(-2.28), country: US(-0.05)]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[1.4.6.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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: Wed, 04 Sep 2019 14:27:14 -0000 > On Sep 4, 2019, at 04:59, Poul-Henning Kamp wrote: >=20 > On: >=20 > Repository Root: svn+ssh://repo.freebsd.org/base > Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f > Revision: 351809 >=20 > I built a kernel, but drm-current-kmod did not get compiled > from the new world order in /usr/local/sys/modules >=20 > Debugging I ended up doing this to src/sys/conf/kern.post.mk: >=20 > Index: sys/conf/kern.post.mk > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- sys/conf/kern.post.mk (revision 351809) > +++ sys/conf/kern.post.mk (working copy) > @@ -77,12 +77,14 @@ > ${target:S/^reinstall$/install/:S/^clobber$/cleandir/} > .endif > .for module in ${LOCAL_MODULES} > -.if !empty(module) > + true "XXX A $(module) 2 ${LOCALBASE} 3 ${LOCAL_MODULES} 4 ${MODULE= S_WITH_WORLD}" > +#.if !empty(module) > + true "XXX B $(module) 2 ${LOCALBASE} 3 ${LOCAL_MODULES} 4 ${MODULE= S_WITH_WORLD}" > @${ECHODIR} "=3D=3D=3D> ${module} (${target:S/^reinstall$/install/:= S/^clobber$/cleandir/})" > @cd ${LOCAL_MODULES_DIR}/${module}; ${MKMODULESENV} ${MAKE} \ > DIRPRFX=3D"${module}/" \ > ${target:S/^reinstall$/install/:S/^clobber$/cleandir/} > -.endif > +#.endif > .endfor > .endif > .endfor >=20 > This gives me the expected output from buildkernel: >=20 > true "XXX A drm-current-kmod 2 /usr/local 3 drm-current-kmod 4 " > true "XXX B drm-current-kmod 2 /usr/local 3 drm-current-kmod 4 " >=20 > If I leave in the ".if !empty(module)" line in, I only get: >=20 > true "XXX A drm-current-kmod 2 /usr/local 3 drm-current-kmod 4 " >=20 > suggestions welcome... (CCing Kyle) This behavior change is probably caused by r351799. I personally think the code before Kyle=E2=80=99s change and after it was bu= ggy. It=E2=80=99s not word splitting LOCAL_MODULES before iterating over it.= Cheers, -Enji= From owner-freebsd-current@freebsd.org Wed Sep 4 14:33:21 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D05E5F36E2 for ; Wed, 4 Sep 2019 14:33:21 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 46NmX1594Vz4Ndr for ; Wed, 4 Sep 2019 14:33:21 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id B1269F36E1; Wed, 4 Sep 2019 14:33:21 +0000 (UTC) Delivered-To: current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B0EDFF36E0 for ; Wed, 4 Sep 2019 14:33:21 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46NmX14GMCz4Ndq; Wed, 4 Sep 2019 14:33:21 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from mail-qt1-f178.google.com (mail-qt1-f178.google.com [209.85.160.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) (Authenticated sender: kevans) by smtp.freebsd.org (Postfix) with ESMTPSA id 6837614A07; Wed, 4 Sep 2019 14:33:21 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: by mail-qt1-f178.google.com with SMTP id u40so16009081qth.11; Wed, 04 Sep 2019 07:33:21 -0700 (PDT) X-Gm-Message-State: APjAAAWIxAJjqbICGKZgOOckNWfC6l0ciKaON5UJl4WVDjfTtKMm2zQ5 WZFdngL7jvD37LVaT/K4WDRMEsbTfvNW42flCHk= X-Google-Smtp-Source: APXvYqzO2chaL8jQES47zXdXe79nOtjYCb8rzK1ipgWPnGvYa9OU4/nJRC5uG42niV++cj/TxVEPJe0o4LYaBv5Ygjk= X-Received: by 2002:ac8:74d5:: with SMTP id j21mr39011767qtr.60.1567607600947; Wed, 04 Sep 2019 07:33:20 -0700 (PDT) MIME-Version: 1.0 References: <3843.1567598344@critter.freebsd.dk> <969A062A-A52A-49E3-B4E3-CC9377B08C80@gmail.com> In-Reply-To: <969A062A-A52A-49E3-B4E3-CC9377B08C80@gmail.com> From: Kyle Evans Date: Wed, 4 Sep 2019 09:33:08 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Weird goings on with make::empty() To: Enji Cooper Cc: Poul-Henning Kamp , current , Kyle Evans Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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: Wed, 04 Sep 2019 14:33:21 -0000 On Wed, Sep 4, 2019 at 9:27 AM Enji Cooper wrote: > > > > On Sep 4, 2019, at 04:59, Poul-Henning Kamp wrote: > > > > On: > > > > Repository Root: svn+ssh://repo.freebsd.org/base > > Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f > > Revision: 351809 > > > > I built a kernel, but drm-current-kmod did not get compiled > > from the new world order in /usr/local/sys/modules > > > > Debugging I ended up doing this to src/sys/conf/kern.post.mk: > > > > Index: sys/conf/kern.post.mk > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > --- sys/conf/kern.post.mk (revision 351809) > > +++ sys/conf/kern.post.mk (working copy) > > @@ -77,12 +77,14 @@ > > ${target:S/^reinstall$/install/:S/^clobber$/cleandir/} > > .endif > > .for module in ${LOCAL_MODULES} > > -.if !empty(module) > > + true "XXX A $(module) 2 ${LOCALBASE} 3 ${LOCAL_MODULES} 4 ${MOD= ULES_WITH_WORLD}" > > +#.if !empty(module) > > + true "XXX B $(module) 2 ${LOCALBASE} 3 ${LOCAL_MODULES} 4 ${MOD= ULES_WITH_WORLD}" > > @${ECHODIR} "=3D=3D=3D> ${module} (${target:S/^reinstall$/instal= l/:S/^clobber$/cleandir/})" > > @cd ${LOCAL_MODULES_DIR}/${module}; ${MKMODULESENV} ${MAKE} \ > > DIRPRFX=3D"${module}/" \ > > ${target:S/^reinstall$/install/:S/^clobber$/cleandir/} > > -.endif > > +#.endif > > .endfor > > .endif > > .endfor > > > > This gives me the expected output from buildkernel: > > > > true "XXX A drm-current-kmod 2 /usr/local 3 drm-current-kmod 4 " > > true "XXX B drm-current-kmod 2 /usr/local 3 drm-current-kmod 4 " > > > > If I leave in the ".if !empty(module)" line in, I only get: > > > > true "XXX A drm-current-kmod 2 /usr/local 3 drm-current-kmod 4 " > > > > suggestions welcome... > > (CCing Kyle) > > This behavior change is probably caused by r351799. > > I personally think the code before Kyle=E2=80=99s change and after it was= buggy. It=E2=80=99s not word splitting LOCAL_MODULES before iterating over= it. > I've backed out r351799 since it breaks usage of LOCAL_MODULES (though I really don't understand how empty works, apparently, and that makes me sad)... please advise on a correct path forward, because it's not clear to me. Thanks, Kyle Evans From owner-freebsd-current@freebsd.org Wed Sep 4 14:47:06 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A14B8F3E84 for ; Wed, 4 Sep 2019 14:47:06 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 46Nmqt28phz4PfV for ; Wed, 4 Sep 2019 14:47:06 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mailman.nyi.freebsd.org (Postfix) id 49F10F3E83; Wed, 4 Sep 2019 14:47:06 +0000 (UTC) Delivered-To: current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 49B36F3E82 for ; Wed, 4 Sep 2019 14:47:06 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46Nmqt0z3kz4PfT; Wed, 4 Sep 2019 14:47:05 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-wr1-x444.google.com with SMTP id y8so21566710wrn.10; Wed, 04 Sep 2019 07:47:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; bh=KrSfoD9x8citdH9v32eQhdiF+nUokk2cYQsUgp5ZdXU=; b=k5XfYGiZ9Ri5kqrN2m98yAPpdTkSKg+sjb8qrKQ4yr6OdLlLPtGtujsyD/FwEn5dAp EygWmp06paDjM2rt37nVrzCQHBJqSbSUw5fJcNfyGt3IAdjoH4SZaehHh2hesYbSsGiE DNxeVbEW93XLlAOZLI8zJghyJ0UvQOWyBTl2QZcjr5Y3jJ+7Dm5xBqxHTEon89S8wBPu PC2+2OEhkUeWFK4/X32fSnMaRn00k6jdTR0hVDcBxf5uQjCnAw/Bf4QXf1SwGy/KYcRy 12/YlUcSeiH2AIgKp/B5Opv8TN5jqfdMEiYV3DKRyrvC0TUnHNISFl455FhHHKSetNk4 eZrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:reply-to:mime-version:content-transfer-encoding; bh=KrSfoD9x8citdH9v32eQhdiF+nUokk2cYQsUgp5ZdXU=; b=Xmu0PHjr+Xi3nyfG+mtlO0XsuKDnpcYa/amdEiVO0zgZ5XZHUFH4o93GZrt7Z2BqD0 VNc1tIIN+O57i5AGSZF50eMBGOhUMVJ2EGeDc5ix9I2TJZrpDXW5DegI/rAmukq8H+ck ZJilbdKAOsopCaCke+Bh9WjgqB7RkbTDLdp3wJtmQHZtALV57tPux/zIIxRoeI/zpEaH r6ld4ECimhPDZsgiIgFwcWHcmfgmdpGdH8XosGVPW6hqka2iOwPZErZQITz/y4t5Wit7 0tUOYBR9UZhMzik24cWdVCeePOnV6u/1to5kFDo+5qFy4k3GUcqevqE24A0tpg6SPFAt Ub0g== X-Gm-Message-State: APjAAAVu6D9nn7Q0W9IrtKhjpOSvkyJ5uetsvnWdgSW5GaOngmfADAui FDDtwmznPe9ws/btC8eh11lC1/DE X-Google-Smtp-Source: APXvYqwOhrUOLdK8FitYFImfSa/lJizbVSlaLuLeAQBj7m1B0zM75BRGopS8wI1asSvT0C+K2fY6vA== X-Received: by 2002:adf:fac1:: with SMTP id a1mr51224483wrs.56.1567608424401; Wed, 04 Sep 2019 07:47:04 -0700 (PDT) Received: from ernst.home (p5B0234B9.dip0.t-ipconnect.de. [91.2.52.185]) by smtp.gmail.com with ESMTPSA id a192sm4357780wma.1.2019.09.04.07.47.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Sep 2019 07:47:03 -0700 (PDT) Date: Wed, 4 Sep 2019 16:47:01 +0200 From: Gary Jennejohn To: Kyle Evans Cc: Enji Cooper , Poul-Henning Kamp , current Subject: Re: Weird goings on with make::empty() Message-ID: <20190904164701.7b4ab5bf@ernst.home> In-Reply-To: References: <3843.1567598344@critter.freebsd.dk> <969A062A-A52A-49E3-B4E3-CC9377B08C80@gmail.com> Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 46Nmqt0z3kz4PfT X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-6.98 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; NEURAL_HAM_SHORT(-0.98)[-0.979,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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: Wed, 04 Sep 2019 14:47:06 -0000 On Wed, 4 Sep 2019 09:33:08 -0500 Kyle Evans wrote: > On Wed, Sep 4, 2019 at 9:27 AM Enji Cooper wrote: > > > > > > > On Sep 4, 2019, at 04:59, Poul-Henning Kamp wrote: > > > > > > On: > > > > > > Repository Root: svn+ssh://repo.freebsd.org/base > > > Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f > > > Revision: 351809 > > > > > > I built a kernel, but drm-current-kmod did not get compiled > > > from the new world order in /usr/local/sys/modules > > > > > > Debugging I ended up doing this to src/sys/conf/kern.post.mk: > > > > > > Index: sys/conf/kern.post.mk > > > =================================================================== > > > --- sys/conf/kern.post.mk (revision 351809) > > > +++ sys/conf/kern.post.mk (working copy) > > > @@ -77,12 +77,14 @@ > > > ${target:S/^reinstall$/install/:S/^clobber$/cleandir/} > > > .endif > > > .for module in ${LOCAL_MODULES} > > > -.if !empty(module) > > > + true "XXX A $(module) 2 ${LOCALBASE} 3 ${LOCAL_MODULES} 4 ${MODULES_WITH_WORLD}" > > > +#.if !empty(module) > > > + true "XXX B $(module) 2 ${LOCALBASE} 3 ${LOCAL_MODULES} 4 ${MODULES_WITH_WORLD}" > > > @${ECHODIR} "===> ${module} (${target:S/^reinstall$/install/:S/^clobber$/cleandir/})" > > > @cd ${LOCAL_MODULES_DIR}/${module}; ${MKMODULESENV} ${MAKE} \ > > > DIRPRFX="${module}/" \ > > > ${target:S/^reinstall$/install/:S/^clobber$/cleandir/} > > > -.endif > > > +#.endif > > > .endfor > > > .endif > > > .endfor > > > > > > This gives me the expected output from buildkernel: > > > > > > true "XXX A drm-current-kmod 2 /usr/local 3 drm-current-kmod 4 " > > > true "XXX B drm-current-kmod 2 /usr/local 3 drm-current-kmod 4 " > > > > > > If I leave in the ".if !empty(module)" line in, I only get: > > > > > > true "XXX A drm-current-kmod 2 /usr/local 3 drm-current-kmod 4 " > > > > > > suggestions welcome... > > > > (CCing Kyle) > > > > This behavior change is probably caused by r351799. > > > > I personally think the code before Kyle___s change and after it was buggy. It___s not word splitting LOCAL_MODULES before iterating over it. > > > > I've backed out r351799 since it breaks usage of LOCAL_MODULES (though > I really don't understand how empty works, apparently, and that makes > me sad)... please advise on a correct path forward, because it's not > clear to me. > In Kyle's defence my testing of his patch was only with LOCAL_MODULES= and LOCAL_MODULES="" in /etc/src.conf. I don't have any ports modules to be compiled with the kernel. -- Gary Jennejohn From owner-freebsd-current@freebsd.org Wed Sep 4 14:58:50 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id CA146F4345 for ; Wed, 4 Sep 2019 14:58:50 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 46Nn5Q3zByz4QRg for ; Wed, 4 Sep 2019 14:58:50 +0000 (UTC) (envelope-from ian@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 88522F4344; Wed, 4 Sep 2019 14:58:50 +0000 (UTC) Delivered-To: current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 88180F4343 for ; Wed, 4 Sep 2019 14:58:50 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound3d.ore.mailhop.org (outbound3d.ore.mailhop.org [54.186.57.195]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46Nn5Q13fQz4QRc for ; Wed, 4 Sep 2019 14:58:49 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1567609128; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=FScqB3Rk/c5ifa4X5jUiGQSdOHs/Q7eS+o1HkP6WXuQgj3BmfxcP55oHTgcLMKQHjQ/tnCoxItFaG U55EC4POBQac1O5E2gJky50SClwEDDCDu1ZJMvZtYe/wOlCaBesJOg7JzEmeczJv4xrQs7G1eT0vUA YIFxOr5vmnAQZFIccqTYBsabElGr9tQh2iqSNnxkuEFxVgvLWSofPHN+3dwzkICqEIcoiAjKWtul8S dQatNgrNU8YEeY9yb1FRbV/fUKyHVT70RxZ1fT1/+5SAkemnd7BjddhCtiOWyf9j5VWIDbpd6OceFb zDViv8vcfVt4jY5jH3XqdnmPRJ1gL8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:cc:to:from:subject:message-id:dkim-signature:from; bh=TDvisCKmgxwqnZZ2CUDmoWyyvBk1azrZOlHYWW4K5sY=; b=l/AKjMZnTJMaIddbj+ZIIN5RhhJuqrhwGFDbnH+YkD7HDlpM2csk8TtTXb+FUqqJtqSBBij8rEyul kpdQ3xXAoXgYibbAGBEVPLlH/H5X9/FGtBiqqHgr+hieeqcsLoA3Ub65+KMugHoLqrWVwJcIG0AM8Y AV+arKfaJ9KYu/TpTNbeMZUenxKFqcxsTLI6X4R1UD8ik+ZRMEEP6xJqvujl2w4sb3oh4MKRtNitaD DP7Y9K90jWn0hEvQX7fwqyYZtM2nqaxkxmN4M1iR3TGJLjPXN27JagxJJbdWmBrMzAn3cG4BhCs/2r YgMcDUt+/hnuECzBAlzrWytPbOzg1Vw== ARC-Authentication-Results: i=1; outbound3.ore.mailhop.org; spf=softfail smtp.mailfrom=freebsd.org smtp.remote-ip=67.177.211.60; dmarc=none header.from=freebsd.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:cc:to:from:subject:message-id:from; bh=TDvisCKmgxwqnZZ2CUDmoWyyvBk1azrZOlHYWW4K5sY=; b=R++vvjwahgcQAygyDCnob4uWWwzFfoLhg/EteGiKmHtmhQSfrdJD9pPy+EzyPP/6iZ6oQxGeyo3AI m4WQHOvfsaHggY3+JYouxyBIUF0lmOGs3d6a1Pn55JzAJGWLXODfNgcpG1R5tXLDWBKcbLRScIJOsQ pACR/lrzU0jaS7BCXn86ISm/gsWTbsMh+7mfZwZb69dkI18VmrmDQyyUHR4A237UM9Pc43hUxNUA8k FxXG/CAD1CXW7c5eqKVMjihqLDdAYcmMHNmM14bnQ7PiMpayRuFRNMoZdGAEbxLOZBdds5uHdSoS7Q aV90IvPuZH7O0jsQPL7rDIAFoZp0uAA== X-MHO-RoutePath: aGlwcGll X-MHO-User: 7ec17528-cf24-11e9-b67c-cdd75d6ce7a8 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 67.177.211.60 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [67.177.211.60]) by outbound3.ore.mailhop.org (Halon) with ESMTPSA id 7ec17528-cf24-11e9-b67c-cdd75d6ce7a8; Wed, 04 Sep 2019 14:58:47 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id x84Ewj1B042006; Wed, 4 Sep 2019 08:58:45 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <5ab957620b5e28f1d9de14df12f9fdf60d00fc35.camel@freebsd.org> Subject: Re: Weird goings on with make::empty() From: Ian Lepore To: Kyle Evans , Enji Cooper Cc: Poul-Henning Kamp , current Date: Wed, 04 Sep 2019 08:58:45 -0600 In-Reply-To: References: <3843.1567598344@critter.freebsd.dk> <969A062A-A52A-49E3-B4E3-CC9377B08C80@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 46Nn5Q13fQz4QRc X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-2.98 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.98)[-0.982,0]; ASN(0.00)[asn:16509, ipnet:54.186.0.0/15, country:US] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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: Wed, 04 Sep 2019 14:58:50 -0000 On Wed, 2019-09-04 at 09:33 -0500, Kyle Evans wrote: > On Wed, Sep 4, 2019 at 9:27 AM Enji Cooper > wrote: > > > > > > > On Sep 4, 2019, at 04:59, Poul-Henning Kamp > > > wrote: > > > > > > On: > > > > > > Repository Root: svn+ssh://repo.freebsd.org/base > > > Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f > > > Revision: 351809 > > > > > > I built a kernel, but drm-current-kmod did not get compiled > > > from the new world order in /usr/local/sys/modules > > > > > > Debugging I ended up doing this to src/sys/conf/kern.post.mk: > > > > > > Index: sys/conf/kern.post.mk > > > ============================================================== > > > ===== > > > --- sys/conf/kern.post.mk (revision 351809) > > > +++ sys/conf/kern.post.mk (working copy) > > > @@ -77,12 +77,14 @@ > > > ${target:S/^reinstall$/install/:S/^clobber$/cleandir/} > > > .endif > > > .for module in ${LOCAL_MODULES} > > > -.if !empty(module) > > > + true "XXX A $(module) 2 ${LOCALBASE} 3 ${LOCAL_MODULES} 4 > > > ${MODULES_WITH_WORLD}" > > > +#.if !empty(module) > > > + true "XXX B $(module) 2 ${LOCALBASE} 3 ${LOCAL_MODULES} 4 > > > ${MODULES_WITH_WORLD}" > > > @${ECHODIR} "===> ${module} > > > (${target:S/^reinstall$/install/:S/^clobber$/cleandir/})" > > > @cd ${LOCAL_MODULES_DIR}/${module}; ${MKMODULESENV} > > > ${MAKE} \ > > > DIRPRFX="${module}/" \ > > > ${target:S/^reinstall$/install/:S/^clobber$/cleandir/} > > > -.endif > > > +#.endif > > > .endfor > > > .endif > > > .endfor > > > > > > This gives me the expected output from buildkernel: > > > > > > true "XXX A drm-current-kmod 2 /usr/local 3 drm-current-kmod 4 > > > " > > > true "XXX B drm-current-kmod 2 /usr/local 3 drm-current-kmod 4 > > > " > > > > > > If I leave in the ".if !empty(module)" line in, I only get: > > > > > > true "XXX A drm-current-kmod 2 /usr/local 3 drm-current-kmod 4 > > > " > > > > > > suggestions welcome... > > > > (CCing Kyle) > > > > This behavior change is probably caused by r351799. > > > > I personally think the code before Kyle’s change and after it was > > buggy. It’s not word splitting LOCAL_MODULES before iterating over > > it. > > > > I've backed out r351799 since it breaks usage of LOCAL_MODULES > (though > I really don't understand how empty works, apparently, and that makes > me sad)... please advise on a correct path forward, because it's not > clear to me. > > Thanks, > > Kyle Evans > I'm not positive, but I suspect this has to do with when variables are expanded. In particular, the loop variable for a .for is expanded on each loop iteration, but doesn't yet exist during parsing. I suspect that the .if is evaluated earlier, during parsing. For example, this makefile: all: .for x in a "" b .if empty(x) @echo empty .endif @echo ${x} .endfor @echo done gives this output: revolution > make -f /tmp/Makefile empty a empty empty b done The way I interpret that is that empty(x) is true during parsing, so the for loop is generated to contain "@echo empty" and "@echo ${x}", then the for loop actually runs and prints both "empty" and the value of ${x} on each iteration. -- Ian From owner-freebsd-current@freebsd.org Wed Sep 4 16:31:31 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7BF72F662F for ; Wed, 4 Sep 2019 16:31:31 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 46Nq8M1P49z4WlB for ; Wed, 4 Sep 2019 16:31:31 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by mailman.nyi.freebsd.org (Postfix) id 2CB9BF662B; Wed, 4 Sep 2019 16:31:31 +0000 (UTC) Delivered-To: current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2C7D0F662A for ; Wed, 4 Sep 2019 16:31:31 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46Nq8K4x1Gz4Wl6; Wed, 4 Sep 2019 16:31:29 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by mail-pg1-x534.google.com with SMTP id l21so11523989pgm.3; Wed, 04 Sep 2019 09:31:29 -0700 (PDT) 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=PwNZHvP1DCdDH3RXVqmQSCJQI8/Zpl3H0TPXBhwqt1Q=; b=jNohgwYWypbXT8dABSBuYdu7Xzt1K4O1ohLHqWjxJZg7ey8Ze/p5BWVvX3H38+pGnt 7xAH3FRwPe3rJ/1jBagRyvZ5LITwjWr8dxc+uph49W9Z+5osA2QcTSTSUpKS06ps1Hf3 XuRfttRsNL03zDhrvlSdAfZN/zF3boL8bOFJB2xF8mZqIgjHH2pdoxZO5cVIceCiwiw3 3fZjzoWa9MUOXcsByVTFuxEEfhP692zF5rKB8hwbYevvtMLqREF/hTkLjRovhvnrnJmg OnP2N6wKjuCGVohUA20gGm/bfQjxW7g1ceI6/ha9RryUMYozpO2ZUjmOwarBZliO2Ciq AqzQ== 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=PwNZHvP1DCdDH3RXVqmQSCJQI8/Zpl3H0TPXBhwqt1Q=; b=PGx+zNzYV5qCEGdpNTyXVJFWHDoslOlO7HscJPsIcokkrbpwi78YNVE6x6XbMsCKGv gj2YQi9IqHRuI16leJe8PVTJ7eV4U2ACbBUzb2XHN9P49GEguN3stNtK6dNjCdnrEJFp dqS/3MRl//y9dPvxQCyvE3UF+jLhsbQhvWf/BLIfS3ykyKlHwdVb8IUVqlaC++LuNAZh FLxI/I22J1bf6eKukaQrf/t85nV1X0RkmT5Dyy/i9s0C3Jhwj/3BvC2REQr8NuKNqEjW SZfKesnJmbHL7XThok7MFmRFj3WJoZ9Fpo7OchDFeMq68Z3xjzNP+OY90Xwd6u++qiaN AcjQ== X-Gm-Message-State: APjAAAWdljXRmVJBUUhAx+iRe2RwjQKlswMVBOCXOi8yJ6x4HdD7hsD8 LM3b3m6zAC0iiL+sHmScfN2Q3BmQAd0= X-Google-Smtp-Source: APXvYqyGFMJWITNelQfl2wLTlXM/cL5jH0ewJWcE5kke7T0fUxbhI3biKSkKJylV3je3BksjV1hXjA== X-Received: by 2002:aa7:869a:: with SMTP id d26mr1875465pfo.2.1567614687862; Wed, 04 Sep 2019 09:31:27 -0700 (PDT) Received: from ?IPv6:2607:fb90:b21e:2263:4cd7:25c7:1dea:406e? ([2607:fb90:b21e:2263:4cd7:25c7:1dea:406e]) by smtp.gmail.com with ESMTPSA id a13sm21880191pfn.104.2019.09.04.09.31.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Sep 2019 09:31:26 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (1.0) Subject: Re: Weird goings on with make::empty() From: Enji Cooper X-Mailer: iPhone Mail (16G102) In-Reply-To: <5ab957620b5e28f1d9de14df12f9fdf60d00fc35.camel@freebsd.org> Date: Wed, 4 Sep 2019 09:31:25 -0700 Cc: Kyle Evans , Poul-Henning Kamp , current Content-Transfer-Encoding: quoted-printable Message-Id: <26F4833D-81C6-42B6-B6CD-DF62714FAAD8@gmail.com> References: <3843.1567598344@critter.freebsd.dk> <969A062A-A52A-49E3-B4E3-CC9377B08C80@gmail.com> <5ab957620b5e28f1d9de14df12f9fdf60d00fc35.camel@freebsd.org> To: Ian Lepore X-Rspamd-Queue-Id: 46Nq8K4x1Gz4Wl6 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=jNohgwYW; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of yaneurabeya@gmail.com designates 2607:f8b0:4864:20::534 as permitted sender) smtp.mailfrom=yaneurabeya@gmail.com X-Spamd-Result: default: False [-3.49 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MV_CASE(0.50)[]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.99)[-0.989,0]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.00)[ip: (-9.32), ipnet: 2607:f8b0::/32(-2.76), asn: 15169(-2.28), country: US(-0.05)]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[4.3.5.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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: Wed, 04 Sep 2019 16:31:31 -0000 > On Sep 4, 2019, at 07:58, Ian Lepore wrote: >=20 >> On Wed, 2019-09-04 at 09:33 -0500, Kyle Evans wrote: >> On Wed, Sep 4, 2019 at 9:27 AM Enji Cooper >> wrote: >>>=20 >>>=20 >>>> On Sep 4, 2019, at 04:59, Poul-Henning Kamp >>>> wrote: >>>>=20 >>>> On: >>>>=20 >>>> Repository Root: svn+ssh://repo.freebsd.org/base >>>> Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f >>>> Revision: 351809 >>>>=20 >>>> I built a kernel, but drm-current-kmod did not get compiled >>>> from the new world order in /usr/local/sys/modules >>>>=20 >>>> Debugging I ended up doing this to src/sys/conf/kern.post.mk: >>>>=20 >>>> Index: sys/conf/kern.post.mk >>>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >>>> =3D=3D=3D=3D=3D >>>> --- sys/conf/kern.post.mk (revision 351809) >>>> +++ sys/conf/kern.post.mk (working copy) >>>> @@ -77,12 +77,14 @@ >>>> ${target:S/^reinstall$/install/:S/^clobber$/cleandir/} >>>> .endif >>>> .for module in ${LOCAL_MODULES} >>>> -.if !empty(module) >>>> + true "XXX A $(module) 2 ${LOCALBASE} 3 ${LOCAL_MODULES} 4 >>>> ${MODULES_WITH_WORLD}" >>>> +#.if !empty(module) >>>> + true "XXX B $(module) 2 ${LOCALBASE} 3 ${LOCAL_MODULES} 4 >>>> ${MODULES_WITH_WORLD}" >>>> @${ECHODIR} "=3D=3D=3D> ${module} >>>> (${target:S/^reinstall$/install/:S/^clobber$/cleandir/})" >>>> @cd ${LOCAL_MODULES_DIR}/${module}; ${MKMODULESENV} >>>> ${MAKE} \ >>>> DIRPRFX=3D"${module}/" \ >>>> ${target:S/^reinstall$/install/:S/^clobber$/cleandir/} >>>> -.endif >>>> +#.endif >>>> .endfor >>>> .endif >>>> .endfor >>>>=20 >>>> This gives me the expected output from buildkernel: >>>>=20 >>>> true "XXX A drm-current-kmod 2 /usr/local 3 drm-current-kmod 4 >>>> " >>>> true "XXX B drm-current-kmod 2 /usr/local 3 drm-current-kmod 4 >>>> " >>>>=20 >>>> If I leave in the ".if !empty(module)" line in, I only get: >>>>=20 >>>> true "XXX A drm-current-kmod 2 /usr/local 3 drm-current-kmod 4 >>>> " >>>>=20 >>>> suggestions welcome... >>>=20 >>> (CCing Kyle) >>>=20 >>> This behavior change is probably caused by r351799. >>>=20 >>> I personally think the code before Kyle=E2=80=99s change and after it wa= s >>> buggy. It=E2=80=99s not word splitting LOCAL_MODULES before iterating ov= er >>> it. >>>=20 >>=20 >> I've backed out r351799 since it breaks usage of LOCAL_MODULES >> (though >> I really don't understand how empty works, apparently, and that makes >> me sad)... please advise on a correct path forward, because it's not >> clear to me. >>=20 >> Thanks, >>=20 >> Kyle Evans >>=20 >=20 > I'm not positive, but I suspect this has to do with when variables are > expanded. In particular, the loop variable for a .for is expanded on > each loop iteration, but doesn't yet exist during parsing. I suspect > that the .if is evaluated earlier, during parsing. For example, this > makefile: >=20 > all: > .for x in a "" b > .if empty(x) > @echo empty > .endif > @echo ${x} > .endfor > @echo done >=20 > gives this output: >=20 > revolution > make -f /tmp/Makefile=20 > empty > a > empty >=20 > empty > b > done >=20 > The way I interpret that is that empty(x) is true during parsing, so > the for loop is generated to contain "@echo empty" and "@echo ${x}", > then the for loop actually runs and prints both "empty" and the value > of ${x} on each iteration. Correct. Word splitting is the key. I=E2=80=99ll take a stab at this later o= n today. Thanks, -Enji= From owner-freebsd-current@freebsd.org Wed Sep 4 20:53:39 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9B318CDB38 for ; Wed, 4 Sep 2019 20:53:39 +0000 (UTC) (envelope-from johalun@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46Nwyq3dt3z3Nq5; Wed, 4 Sep 2019 20:53:39 +0000 (UTC) (envelope-from johalun@FreeBSD.org) Received: from [192.168.0.83] (ip24-251-216-143.ph.ph.cox.net [24.251.216.143]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: johalun) by smtp.freebsd.org (Postfix) with ESMTPSA id 1E49F176B5; Wed, 4 Sep 2019 20:53:39 +0000 (UTC) (envelope-from johalun@FreeBSD.org) To: FreeBSD Current Cc: mjg@freebsd.org From: Johannes Lundberg Subject: pseudofs broken(?) with r351741 Message-ID: <44c90dd5-e17f-a9fb-b1a5-0378e478451e@FreeBSD.org> Date: Wed, 4 Sep 2019 13:53:37 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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: Wed, 04 Sep 2019 20:53:39 -0000 Hey I noticed that linuxkpi's debugfs which is based on pfs stopped show any content in mounted folders. r351740 works as expected, r351741 does not. Just as if there are no files. Does this change require any patches to users of pfs to work or is pfs broken? commit 378285257117261aba3d181fff97da9d56d5f566 (HEAD) Author: mjg Date:   Tue Sep 3 05:54:51 2019     pseudofs: fix a LOR pfs_node vs pidhash (sleepable after non-sleepable)         Sponsored by:   The FreeBSD Foundation Notes:     svn path=/head/; revision=351741 From owner-freebsd-current@freebsd.org Wed Sep 4 20:55:11 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 07D4ACDCA2 for ; Wed, 4 Sep 2019 20:55:11 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: from mail-ot1-x32e.google.com (mail-ot1-x32e.google.com [IPv6:2607:f8b0:4864:20::32e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46Nx0Z6RZ0z3Nyc; Wed, 4 Sep 2019 20:55:10 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: by mail-ot1-x32e.google.com with SMTP id 67so10618294oto.3; Wed, 04 Sep 2019 13:55:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=saIopGNe9zdfXsYEDwMGXaAeHm8OxNZBcY6i/yLzwd8=; b=Jjv8qUWwbAN45E7wdI9DvtRQms8wRIp18v62rOQb9D27d+fkHKBdiQxseEESOdkN8P lnw0OR9NC+E69pTImFmUHf9K3/iatEn0PCHZc0Y4R4zRQERsH74oVDArjOzPlQWqg3DR x5UmMAm0UZsCJBfG3q6l9cpRYcNeb193rJC77qOk/OCL8eJ/bB93gFhP0FisHvMMCmQP k+P/Mw3AJAqJWYcq+XkfPcufvnq0dJmZ09eTpfX4VMezenXrTT94FibiuKJJF1xN2FGm ryQyW5R8yg3lRlkS22PCQj163iF/ht9pkLaRiBrPAhHt13hgUkvXFbS5i883Dg6jzN+1 5s9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=saIopGNe9zdfXsYEDwMGXaAeHm8OxNZBcY6i/yLzwd8=; b=E5jFDGxw4wnUPjNJal6PhPIBH1AYEmZjf/mCAOlzB4NGbmtseGQyqZ+1CMFYbUrEJO oGhcS1CpZ9QFx2HqYU8bPRXpS0keUSsVv8qS6EhUPiZ4bRRLkAGIeYaYD4fvI0Nram5m UP5MRIK1D4MV/yUZYnRJcZcUXfTWpbnIaY5yeOFEy+zsS9TlEzn7mV+XuAlvOhf79mb8 ihrtgyrbJwZ8b0yAUi6yQ59lzoRqcoWy0DSYFtIF+vlasypqr3VzqN/ueGbxqpu+nDr/ O+DfS8gQmIuLiQ6fvgeXl9rg1kzNobQ6Ntba9RYCSrchl7q4UVPLOOaIOYnNWltn9RbV VMtQ== X-Gm-Message-State: APjAAAVD8o69s7LXi41kVkQmTyZdZz/owDQWq5w33JqqgfhfYCGTbZmw ZjDGofBf1Y1MzeLn7MDyeC7bTlUiGzAwDXkAymCuOg== X-Google-Smtp-Source: APXvYqyebxJ+GVsRJ2Y3vyVe/FCiSw/7ZF74E9WahnGpcowLob3PR8TUKkefLZORr6LyFNAPw0USyv/zZjtAYnuCiqs= X-Received: by 2002:a9d:744b:: with SMTP id p11mr32905751otk.201.1567630509340; Wed, 04 Sep 2019 13:55:09 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4a:458d:0:0:0:0:0 with HTTP; Wed, 4 Sep 2019 13:55:08 -0700 (PDT) In-Reply-To: <44c90dd5-e17f-a9fb-b1a5-0378e478451e@FreeBSD.org> References: <44c90dd5-e17f-a9fb-b1a5-0378e478451e@FreeBSD.org> From: Mateusz Guzik Date: Wed, 4 Sep 2019 22:55:08 +0200 Message-ID: Subject: Re: pseudofs broken(?) with r351741 To: Johannes Lundberg Cc: FreeBSD Current Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 46Nx0Z6RZ0z3Nyc X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-6.99 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[]; NEURAL_HAM_SHORT(-0.99)[-0.988,0] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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: Wed, 04 Sep 2019 20:55:11 -0000 have you tried with https://svnweb.freebsd.org/changeset/base/351815 ? On 9/4/19, Johannes Lundberg wrote: > Hey > > I noticed that linuxkpi's debugfs which is based on pfs stopped show any > content in mounted folders. > > r351740 works as expected, r351741 does not. Just as if there are no file= s. > > Does this change require any patches to users of pfs to work or is pfs > broken? > > > commit 378285257117261aba3d181fff97da9d56d5f566 (HEAD) > > Author: mjg > Date:=C2=A0=C2=A0 Tue Sep 3 05:54:51 2019 > > =C2=A0=C2=A0=C2=A0 pseudofs: fix a LOR pfs_node vs pidhash (sleepable aft= er non-sleepable) > > =C2=A0=C2=A0=C2=A0 Sponsored by:=C2=A0=C2=A0 The FreeBSD Foundation > > Notes: > =C2=A0=C2=A0=C2=A0 svn path=3D/head/; revision=3D351741 > > > > --=20 Mateusz Guzik From owner-freebsd-current@freebsd.org Wed Sep 4 21:44:11 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0A325CEB20 for ; Wed, 4 Sep 2019 21:44:11 +0000 (UTC) (envelope-from johalun@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46Ny5668t6z3R3n; Wed, 4 Sep 2019 21:44:10 +0000 (UTC) (envelope-from johalun@FreeBSD.org) Received: from [192.168.0.83] (ip24-251-216-143.ph.ph.cox.net [24.251.216.143]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: johalun) by smtp.freebsd.org (Postfix) with ESMTPSA id 76AA017CA5; Wed, 4 Sep 2019 21:44:10 +0000 (UTC) (envelope-from johalun@FreeBSD.org) Subject: Re: pseudofs broken(?) with r351741 To: Mateusz Guzik Cc: FreeBSD Current References: <44c90dd5-e17f-a9fb-b1a5-0378e478451e@FreeBSD.org> From: Johannes Lundberg X-Tagtoolbar-Keys: D20190904144409371 Message-ID: Date: Wed, 4 Sep 2019 14:44:09 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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: Wed, 04 Sep 2019 21:44:11 -0000 On 9/4/19 1:55 PM, Mateusz Guzik wrote: > have you tried with https://svnweb.freebsd.org/changeset/base/351815 ? That fixes it. Thanks! > > On 9/4/19, Johannes Lundberg wrote: >> Hey >> >> I noticed that linuxkpi's debugfs which is based on pfs stopped show any >> content in mounted folders. >> >> r351740 works as expected, r351741 does not. Just as if there are no files. >> >> Does this change require any patches to users of pfs to work or is pfs >> broken? >> >> >> commit 378285257117261aba3d181fff97da9d56d5f566 (HEAD) >> >> Author: mjg >> Date:   Tue Sep 3 05:54:51 2019 >> >>     pseudofs: fix a LOR pfs_node vs pidhash (sleepable after non-sleepable) >> >>     Sponsored by:   The FreeBSD Foundation >> >> Notes: >>     svn path=/head/; revision=351741 >> >> >> >> > From owner-freebsd-current@freebsd.org Thu Sep 5 06:13:00 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 84295DA67F for ; Thu, 5 Sep 2019 06:13:00 +0000 (UTC) (envelope-from zakharov.vv@gmail.com) Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46P9NC4lncz4JBs for ; Thu, 5 Sep 2019 06:12:59 +0000 (UTC) (envelope-from zakharov.vv@gmail.com) Received: by mail-lj1-x242.google.com with SMTP id e17so1057110ljf.13 for ; Wed, 04 Sep 2019 23:12:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=8czn0++yko89rci3Ny1E9AkanucoAs2AeQhO3YgkNRE=; b=ZXZCEF16BziOlToC6KCwqoY5UOmVrZhLG5J0OO9laySSDPx3m2OM2SddxkpvPdTvVk PJV1E9lA7PXQsyftrXUHg8+PptiEhLQjMCekKMHN+PWzJXYj30Ee/iJOeOW9fjDx07t1 AOnQG7p5xNDg+U1cf2tQ5hphGlFw8zyb7TbQwsPUk5lwcyaO7QHrBdf2AYO1dOwoV2qn ceW/KGgq+UwR7nV5WksHDxBTckakS83wElJiuGxEbKNGlQHurHATdkAzQ9Z+UQAdq+gb PrERa/Jw0wMm9ss2aeSAdQVxByqBan3VXB/P0+F8vSWNhUzGYCVR3VnnCJFXidzYa4TB NMsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=8czn0++yko89rci3Ny1E9AkanucoAs2AeQhO3YgkNRE=; b=PFK9vw+8DiFHpQmZe7VZeSufDO+oFtiG5yXkz756/zaUHo5qCU6Ljem4cgw+VHUDvC vMV2ejZWJy12h1ErgM1PNNjWCmZ1DBUwmvaKWUrN1iKYsxdOh03b4xL06wYYCj8RZie/ FXG9agQDs7SIVmVHmGIw34Yu0ljI2fYNOiPngMp6/W14QOQTXEfiVCF10fe85dDOMrvN 8Ug4FjDJ9HsImk9dLUQ7Y/IS3V5Wj2OYA09+gYUBuxmMPqCpsf0SXgmkUH24NEipc+ey Rf1a1GQRMdc7TYHwBKe/r9aMGm0mcz78iI5gjQW9SbaVPcsr2UfBeZ8D59eeNOgL2XW4 IK+A== X-Gm-Message-State: APjAAAW4YWWM3dhd4f37rxfCSz1/AQI2ZYnhT0qnaHgeOxJckEdUHpvQ 92X3z4qnYARp6TOEgPdwruCp0QiVzEQ= X-Google-Smtp-Source: APXvYqysODB8aSKg1tCyODS+x6reOfhIJ8WMiPHOgR4f6RTjrJvWI+a8szV7oW6RUucCUIUY6LVlRA== X-Received: by 2002:a05:651c:1135:: with SMTP id e21mr835858ljo.83.1567663977134; Wed, 04 Sep 2019 23:12:57 -0700 (PDT) Received: from localhost (109-252-76-192.nat.spd-mgts.ru. [109.252.76.192]) by smtp.gmail.com with ESMTPSA id h25sm255046lfj.81.2019.09.04.23.12.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Sep 2019 23:12:56 -0700 (PDT) Date: Thu, 5 Sep 2019 09:12:51 +0300 From: Vladimir Zakharov To: freebsd-current@freebsd.org Subject: ntpd segfaults on start Message-ID: <20190905061251.rrip6635ebbfimsv@vzakharov> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="lpjeugckslqkz764" Content-Disposition: inline X-Operating-System: FreeBSD 13.0-CURRENT amd64 User-Agent: NeoMutt/20180716 X-Rspamd-Queue-Id: 46P9NC4lncz4JBs X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=ZXZCEF16; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of zakharovvv@gmail.com designates 2a00:1450:4864:20::242 as permitted sender) smtp.mailfrom=zakharovvv@gmail.com X-Spamd-Result: default: False [-5.58 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.98)[-0.984,0]; SIGNED_PGP(-2.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[192.76.252.109.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(0.00)[ip: (3.13), ipnet: 2a00:1450::/32(-2.98), asn: 15169(-2.28), country: US(-0.05)]; RCVD_IN_DNSWL_NONE(0.00)[2.4.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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: Thu, 05 Sep 2019 06:13:00 -0000 --lpjeugckslqkz764 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Hello! Accidentally it turned out that the ntpd does not start on boot. Logs show that it core dumps: 2019-09-05T08:38:43.588563+03:00 vzakharov ntpd 34934 - - ntpd 4.2.8p12-a (1): Starting 2019-09-05T08:38:43.588717+03:00 vzakharov kernel - - - Security policy loaded: MAC/ntpd (mac_ntpd) 2019-09-05T08:38:43.718356+03:00 vzakharov kernel - - - pid 35074 (ntpd), jid 0, uid 123: exited on signal 11 Not sure how long does it happen. ktrace and gdb points to `setrlimit` call. Clean rebuild has no effect. Does anyone have any idea what the problem could be? root@vzakharov:~ # uname -a FreeBSD vzakharov 13.0-CURRENT FreeBSD 13.0-CURRENT r351834 GENERIC-NODEBUG amd64 root@vzakharov:~ # ktrace -i sudo -u ntpd `which ntpd` root@vzakharov:~ # kdump | tail -n 20 29735 ntpd CALL dup2(0,0x2) 29735 ntpd RET dup2 2 29735 ntpd CALL socket(PF_LOCAL,0x10000002,0) 29735 ntpd RET socket 3 29735 ntpd CALL connect(0x3,0x7fffff924f98,0x6a) 29735 ntpd STRU struct sockaddr { AF_LOCAL, /var/run/logpriv } 29735 ntpd NAMI "/var/run/logpriv" 29735 ntpd RET connect -1 errno 13 Permission denied 29735 ntpd CALL connect(0x3,0x7fffff924f98,0x6a) 29735 ntpd STRU struct sockaddr { AF_LOCAL, /var/run/log } 29735 ntpd NAMI "/var/run/log" 29735 ntpd RET connect 0 29735 ntpd CALL setsid 29735 ntpd RET setsid 29735/0x7427 29735 ntpd CALL getrlimit(RLIMIT_STACK,0x7fffff9250a0) 29735 ntpd RET getrlimit 0 29735 ntpd CALL setrlimit(RLIMIT_STACK,0x7fffff9250a0) 29735 ntpd RET setrlimit 0 29735 ntpd PSIG SIGSEGV SIG_DFL code=SEGV_ACCERR 29735 ntpd NAMI "ntpd.core" root@vzakharov:~ # ntpd root@vzakharov:~ # gdb -c ntpd.core `which ntpd` GNU gdb (GDB) 8.3 [GDB v8.3 for FreeBSD] [...] Reading symbols from /usr/sbin/ntpd... Reading symbols from /usr/lib/debug//usr/sbin/ntpd.debug... [New LWP 100946] Core was generated by `ntpd'. Program terminated with signal SIGSEGV, Segmentation fault. #0 setrlimit () at setrlimit.S:4 4 RSYSCALL(setrlimit) (gdb) bt #0 setrlimit () at setrlimit.S:4 Backtrace stopped: Cannot access memory at address 0x7fffff3ce7c8 (gdb) quit # cat /etc/src.conf WITHOUT_ACCT= WITHOUT_AMD= WITHOUT_APM= WITHOUT_ATM= WITHOUT_AUTHPF= WITHOUT_BLACKLIST= WITHOUT_BLUETOOTH= WITHOUT_BOOTPARAMD= WITHOUT_BOOTPD= WITHOUT_BSNMP= WITHOUT_CCD= WITHOUT_CROSS_COMPILER= WITHOUT_CUSE= WITHOUT_CXGBETOOL= # WITHOUT_DEBUG_FILES= WITHOUT_EE= WITHOUT_FDT= WITHOUT_FINGER= WITHOUT_FLOPPY= WITHOUT_FREEBSD_UPDATE= WITHOUT_FTP= WITHOUT_GDB= WITHOUT_GNU_DIFF= WITHOUT_GNU_GREP= WITHOUT_GNU_GREP_COMPAT= WITHOUT_GPIO= WITHOUT_HAST= WITHOUT_HTML= WITHOUT_HYPERV= WITHOUT_IPFILTER= WITHOUT_ISCSI= WITHOUT_KVM= WITHOUT_LEGACY_CONSOLE= WITHOUT_LIB32= WITHOUT_LLVM_TARGET_ALL= WITHOUT_LPR= WITHOUT_MLX5TOOL= WITHOUT_NDIS= WITHOUT_NVME= WITHOUT_PC_SYSINSTALL= WITHOUT_PF= WITHOUT_PMC= WITHOUT_PPP= WITHOUT_QUOTAS= WITHOUT_RADIUS_SUPPORT= WITHOUT_RBOOTD= WITHOUT_SHAREDOCS= WITHOUT_TALK= WITHOUT_TELNET= WITHOUT_TESTS= WITHOUT_TFTP= WITHOUT_TIMED= WITH_BSD_GREP= WITH_CCACHE_BUILD= # WITH_CLANG_EXTRAS= # WITH_CTF= # WITH_RATELIMIT= WITH_SORT_THREADS= WITH_SVN= BOOTSTRAP_ALL_TOOLS= -- Regards, | "In theory there is no difference between theory Vladimir Zakharov | and practice. In practice there is."- Yogi Berra --lpjeugckslqkz764 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEGigXAiE0PbwWpysjipH2KCLzK4cFAl1wp2MACgkQipH2KCLz K4fuYwgAsfbRsJoLm64d2TDx1k1wbWhlsBVoEg2hp3/vlDga4kdwF0bt9dyVLEfd AiSx/dM2E2kzso2RAv5pybPskY4JCq7Up0R0ZPniHrh7Eq798UVtgEdxUz2Usx8G g4g3gvPCXtAZ6sN4l4i7Zj9TqVXeNjSR84d0F+7f5vs0G2FgVTffDAvkF+ba+YdR 58JBf7sllLtpTCclUIP6C/lhGWKN4uBpn8mUkPav4QG8vqwNMbbZRDIOXAB4dwhp 25nuxrsUA3jRE8i95Y/Na8indm1TFqnEKpdH+cPpVmkNCUDGVcHkgShF1preGhkN 10aAh42e1foU/gArfeA1b+n8eeOSiQ== =sxCs -----END PGP SIGNATURE----- --lpjeugckslqkz764-- From owner-freebsd-current@freebsd.org Thu Sep 5 06:34:00 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A2918DB09E for ; Thu, 5 Sep 2019 06:34:00 +0000 (UTC) (envelope-from zakharov.vv@gmail.com) Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46P9rR39cZz4KCV for ; Thu, 5 Sep 2019 06:33:58 +0000 (UTC) (envelope-from zakharov.vv@gmail.com) Received: by mail-lj1-x243.google.com with SMTP id a4so1142834ljk.8 for ; Wed, 04 Sep 2019 23:33:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=x92WgMaOHn8fzLtU56YZZbAJQEZdJxjIFctMZqYhEHw=; b=VdwOQOFZlRtQQukOmP8WIt5c7qBACIAa3lSajXNLU7mTUiJtLYihcmugOoZX+nUBpD pEvA67HA7tVKbqbLcwLCmQRITtRJWZkDOXOhNDLNciwNPgPL8OivKp29s/B6WpxdvzqL ySNKh1XVZ61N28x3Cav4QZTMGNCVPn8PPXy8G0VfeFE5I8mXCVCi0AMTnXkVAAKpoRWI 4qwgl5VXsOLEYtPmR7TJjKG5gVlbCs1A+IvQUWhih7xIDsRgDmZL2Dp3ukavrOeNUlIo AfU2YHS53oJgta9E8JyPUzZCwgxeuh5c6bjdlrQwnnKfybL4N4+uul06aFnLtCLzCfH6 w1zQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=x92WgMaOHn8fzLtU56YZZbAJQEZdJxjIFctMZqYhEHw=; b=RnRh7hAui8kNT1r/348RRM36x3DfxM70s32uXNZEaLxxcP7sifdWu9TglQiLCUD9Fv em5vOUXI1X/c5w0+HpXPEI6NiUmrWh/fzJBUEDHZAQ8IvnPXCHVitToLxB0LOwfNN6Xh duOcdXCP/58TMxcZMV8K2QPOzK05t4EalqmAyPg5/+vZx0snQc+rcvXoxyRnorxjbemF rJVqG4UspaQDnyNNh6Feay9Bp8cJIEaXMr9EYlJI/VAW3kWA83C524Ebol6dX+HyE38t rlEOlIjf3DEEWWsi4FkWwk4ZzX5fgOC7t+mvSKZHvosOWUc1riLyLXKIxCc65PtFY5MD kbTw== X-Gm-Message-State: APjAAAVA+yi6LXAAlXb1TB9hcqnHJQ4UsR9uqnhEkEVrgUv8qfwcGYmL vvuNg4/XmA69W5fTLnsMxPHgjcMoTcY= X-Google-Smtp-Source: APXvYqxQ4dR/DrI1WEq/GflUEu4NX6PJg3sXF764L+VKp58X+fHt4BkEPHabws7bejAGmBnr7IXBnA== X-Received: by 2002:a2e:8103:: with SMTP id d3mr911484ljg.105.1567665236916; Wed, 04 Sep 2019 23:33:56 -0700 (PDT) Received: from localhost (109-252-76-192.nat.spd-mgts.ru. [109.252.76.192]) by smtp.gmail.com with ESMTPSA id n18sm267331lfe.0.2019.09.04.23.33.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Sep 2019 23:33:56 -0700 (PDT) Date: Thu, 5 Sep 2019 09:33:54 +0300 From: Vladimir Zakharov To: freebsd-current@freebsd.org Subject: Re: ntpd segfaults on start Message-ID: <20190905063354.qxecqjkafikdtdyq@vzakharov> References: <20190905061251.rrip6635ebbfimsv@vzakharov> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ply3axd74k44nuk3" Content-Disposition: inline In-Reply-To: <20190905061251.rrip6635ebbfimsv@vzakharov> X-Operating-System: FreeBSD 13.0-CURRENT amd64 User-Agent: NeoMutt/20180716 X-Rspamd-Queue-Id: 46P9rR39cZz4KCV X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=VdwOQOFZ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of zakharovvv@gmail.com designates 2a00:1450:4864:20::243 as permitted sender) smtp.mailfrom=zakharovvv@gmail.com X-Spamd-Result: default: False [-5.58 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.98)[-0.984,0]; SIGNED_PGP(-2.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[192.76.252.109.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE(0.00)[ip: (3.11), ipnet: 2a00:1450::/32(-2.98), asn: 15169(-2.28), country: US(-0.05)]; RCVD_IN_DNSWL_NONE(0.00)[3.4.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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: Thu, 05 Sep 2019 06:34:00 -0000 --ply3axd74k44nuk3 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 05, 2019, Vladimir Zakharov wrote: > Hello! >=20 > Accidentally it turned out that the ntpd does not start on boot. > Logs show that it core dumps: > 2019-09-05T08:38:43.588563+03:00 vzakharov ntpd 34934 - - ntpd 4.2.8p12-a= (1): Starting > 2019-09-05T08:38:43.588717+03:00 vzakharov kernel - - - Security policy l= oaded: MAC/ntpd (mac_ntpd) > 2019-09-05T08:38:43.718356+03:00 vzakharov kernel - - - pid 35074 (ntpd),= jid 0, uid 123: exited on signal 11 >=20 > Not sure how long does it happen. ktrace and gdb points to `setrlimit` > call. Clean rebuild has no effect. Does anyone have any idea what the > problem could be? Accidental insight after sending initial mail: I've disabled ASLR related sysctls, and now ntpd starts and runs again. # grep aslr /boot/loader.conf kern.elf32.aslr.enable=3D0 kern.elf64.aslr.enable=3D0 # service ntpd status ntpd is running as pid 30528. --=20 Regards, | "In theory there is no difference between theory Vladimir Zakharov | and practice. In practice there is."- Yogi Berra --ply3axd74k44nuk3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEGigXAiE0PbwWpysjipH2KCLzK4cFAl1wrFIACgkQipH2KCLz K4dpVQgArDcKyoZ9kWc4uWVZCmoJ2nJSxCzKrTvzbx2HDMZJtJgOwlYxXcO92aEv c9YHol7DhRGFwG+/JBUPXgNCbgxVgijrtjaM8KRN8kW8hH2wSLQ0uBdRKr5NpJ3s /VkwLTLLLHj1nsmUvdmlvrKlImYhaAmZunKlFqu9QBWr7YbZmsP6TonKB7MaKlVA zxw/r5rNAxAW8iqT4GhNOHtiQjhqQrb+fK7etRhY6f1uu9vlbaDx9hmze4znM3BX ADChcu4KBjxiPrwzNz+P9iIWKgfRKPiezQVefCw5CNeh+1uPaFOIECqPZ9kWScwq ISS3lPfiBukVvXhLBEcR+M4bQlXF5Q== =44Dj -----END PGP SIGNATURE----- --ply3axd74k44nuk3-- From owner-freebsd-current@freebsd.org Thu Sep 5 13:07:26 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DC853E6E4A for ; Thu, 5 Sep 2019 13:07:26 +0000 (UTC) (envelope-from cy@freebsd.org) Received: from smtp-out-no.shaw.ca (smtp-out-no.shaw.ca [64.59.134.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 46PLZQ3GBfz3DWB for ; Thu, 5 Sep 2019 13:07:26 +0000 (UTC) (envelope-from cy@freebsd.org) Received: from spqr.komquats.com ([70.67.125.17]) by shaw.ca with ESMTPA id 5rTvi2Zu5sAGk5rTwiCEPz; Thu, 05 Sep 2019 07:07:24 -0600 X-Authority-Analysis: v=2.3 cv=WeVylHpX c=1 sm=1 tr=0 a=VFtTW3WuZNDh6VkGe7fA3g==:117 a=VFtTW3WuZNDh6VkGe7fA3g==:17 a=kj9zAlcOel0A:10 a=J70Eh1EUuV4A:10 a=YxBL1-UpAAAA:8 a=6I5d2MoRAAAA:8 a=LowuVhTJSFmqWrArY1IA:9 a=CjuIK1q_8ugA:10 a=Ia-lj3WSrqcvXOmTRaiG:22 a=IjZwj45LgO3ly-622nXo:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTPS id CF60812B; Thu, 5 Sep 2019 06:07:22 -0700 (PDT) Received: from slippy.cwsent.com (localhost [127.0.0.1]) by slippy.cwsent.com (8.15.2/8.15.2) with ESMTP id x85D7Mlv034062; Thu, 5 Sep 2019 06:07:22 -0700 (PDT) (envelope-from cy@freebsd.org) Received: from slippy (cy@localhost) by slippy.cwsent.com (8.15.2/8.15.2/Submit) with ESMTP id x85D7MGs034053; Thu, 5 Sep 2019 06:07:22 -0700 (PDT) (envelope-from cy@freebsd.org) Message-Id: <201909051307.x85D7MGs034053@slippy.cwsent.com> X-Authentication-Warning: slippy.cwsent.com: cy owned process doing -bs X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7.1 Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: Vladimir Zakharov cc: freebsd-current@freebsd.org Subject: Re: ntpd segfaults on start In-reply-to: <20190905063354.qxecqjkafikdtdyq@vzakharov> References: <20190905061251.rrip6635ebbfimsv@vzakharov> <20190905063354.qxecqjkafikdtdyq@vzakharov> Comments: In-reply-to Vladimir Zakharov message dated "Thu, 05 Sep 2019 09:33:54 +0300." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 05 Sep 2019 06:07:22 -0700 X-CMAE-Envelope: MS4wfHIgI/rkbFXSjmXCvnhw0kDiQulZe3z7/kHFvk1OsVYZsmmIjRzmRndlKfh8LzDojZhQfEXQLnZCwqQaSLupxR54vJv8OZ9kT8yZuRA6IFnjoR3eqvVc oEmPj6mnHcjUq9OzLOu33SwdtquxaM/20k94YhhaVmVW/1pSqJjnvLs4pJFKSrtX/xZms7rXU70n4w== X-Rspamd-Queue-Id: 46PLZQ3GBfz3DWB X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-2.98 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.98)[-0.984,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[]; ASN(0.00)[asn:6327, ipnet:64.59.128.0/20, country:CA] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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: Thu, 05 Sep 2019 13:07:26 -0000 In message <20190905063354.qxecqjkafikdtdyq@vzakharov>, Vladimir Zakharov write s: > > --ply3axd74k44nuk3 > Content-Type: text/plain; charset=utf-8 > Content-Disposition: inline > Content-Transfer-Encoding: quoted-printable > > On Thu, Sep 05, 2019, Vladimir Zakharov wrote: > > Hello! > >=20 > > Accidentally it turned out that the ntpd does not start on boot. > > Logs show that it core dumps: > > 2019-09-05T08:38:43.588563+03:00 vzakharov ntpd 34934 - - ntpd 4.2.8p12-a= > (1): Starting > > 2019-09-05T08:38:43.588717+03:00 vzakharov kernel - - - Security policy l= > oaded: MAC/ntpd (mac_ntpd) > > 2019-09-05T08:38:43.718356+03:00 vzakharov kernel - - - pid 35074 (ntpd),= > jid 0, uid 123: exited on signal 11 > >=20 > > Not sure how long does it happen. ktrace and gdb points to `setrlimit` > > call. Clean rebuild has no effect. Does anyone have any idea what the > > problem could be? > > Accidental insight after sending initial mail: I've disabled > ASLR related sysctls, and now ntpd starts and runs again. > # grep aslr /boot/loader.conf > kern.elf32.aslr.enable=3D0 > kern.elf64.aslr.enable=3D0 > # service ntpd status > ntpd is running as pid 30528. I'll take a look at this. When you get a chance can you open a PR for this and assign the ticket to me, please. -- Cheers, Cy Schubert FreeBSD UNIX: Web: http://www.FreeBSD.org The need of the many outweighs the greed of the few. From owner-freebsd-current@freebsd.org Thu Sep 5 14:28:27 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 263DBE9061 for ; Thu, 5 Sep 2019 14:28:27 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46PNMs6WXdz3Llm; Thu, 5 Sep 2019 14:28:25 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id x85ESHvC072905 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 5 Sep 2019 17:28:20 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua x85ESHvC072905 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id x85ESHfa072904; Thu, 5 Sep 2019 17:28:17 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 5 Sep 2019 17:28:17 +0300 From: Konstantin Belousov To: Cy Schubert Cc: Vladimir Zakharov , freebsd-current@freebsd.org Subject: Re: ntpd segfaults on start Message-ID: <20190905142817.GB2559@kib.kiev.ua> References: <20190905061251.rrip6635ebbfimsv@vzakharov> <20190905063354.qxecqjkafikdtdyq@vzakharov> <201909051307.x85D7MGs034053@slippy.cwsent.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201909051307.x85D7MGs034053@slippy.cwsent.com> User-Agent: Mutt/1.12.1 (2019-06-15) X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FORGED_GMAIL_RCVD,FREEMAIL_FROM, NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tom.home X-Rspamd-Queue-Id: 46PNMs6WXdz3Llm X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=gmail.com (policy=none); spf=softfail (mx1.freebsd.org: 2001:470:d5e7:1::1 is neither permitted nor denied by domain of kostikbel@gmail.com) smtp.mailfrom=kostikbel@gmail.com X-Spamd-Result: default: False [-2.95 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; DMARC_POLICY_SOFTFAIL(0.10)[gmail.com : No valid SPF, No valid DKIM,none]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; FREEMAIL_FROM(0.00)[gmail.com]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; TAGGED_RCPT(0.00)[]; HAS_XAW(0.00)[]; R_SPF_SOFTFAIL(0.00)[~all]; IP_SCORE_FREEMAIL(0.00)[]; MIME_TRACE(0.00)[0:+]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.95)[-0.955,0]; TO_DN_SOME(0.00)[]; IP_SCORE(0.00)[ip: (-2.71), ipnet: 2001:470::/32(-4.45), asn: 6939(-3.14), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US]; FREEMAIL_CC(0.00)[gmail.com]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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: Thu, 05 Sep 2019 14:28:27 -0000 On Thu, Sep 05, 2019 at 06:07:22AM -0700, Cy Schubert wrote: > In message <20190905063354.qxecqjkafikdtdyq@vzakharov>, Vladimir Zakharov > write > s: > > > > --ply3axd74k44nuk3 > > Content-Type: text/plain; charset=utf-8 > > Content-Disposition: inline > > Content-Transfer-Encoding: quoted-printable > > > > On Thu, Sep 05, 2019, Vladimir Zakharov wrote: > > > Hello! > > >=20 > > > Accidentally it turned out that the ntpd does not start on boot. > > > Logs show that it core dumps: > > > 2019-09-05T08:38:43.588563+03:00 vzakharov ntpd 34934 - - ntpd 4.2.8p12-a= > > (1): Starting > > > 2019-09-05T08:38:43.588717+03:00 vzakharov kernel - - - Security policy l= > > oaded: MAC/ntpd (mac_ntpd) > > > 2019-09-05T08:38:43.718356+03:00 vzakharov kernel - - - pid 35074 (ntpd),= > > jid 0, uid 123: exited on signal 11 > > >=20 > > > Not sure how long does it happen. ktrace and gdb points to `setrlimit` > > > call. Clean rebuild has no effect. Does anyone have any idea what the > > > problem could be? > > > > Accidental insight after sending initial mail: I've disabled > > ASLR related sysctls, and now ntpd starts and runs again. > > # grep aslr /boot/loader.conf > > kern.elf32.aslr.enable=3D0 > > kern.elf64.aslr.enable=3D0 > > # service ntpd status > > ntpd is running as pid 30528. > > I'll take a look at this. When you get a chance can you open a PR for this > and assign the ticket to me, please. See the thread 'ntpd doesn't like ASLR on stable/12 post-r350672' on stable. Read it to the end. From owner-freebsd-current@freebsd.org Fri Sep 6 00:47:45 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 41D45DA078; Fri, 6 Sep 2019 00:47:45 +0000 (UTC) (envelope-from lwhsu@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46Pf6T0wKQz4cTp; Fri, 6 Sep 2019 00:47:45 +0000 (UTC) (envelope-from lwhsu@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1129) id F37609F99; Fri, 6 Sep 2019 00:47:44 +0000 (UTC) Date: Fri, 6 Sep 2019 00:47:44 +0000 From: Li-Wen Hsu To: freebsd-testing@freebsd.org Cc: freebsd-current@freebsd.org, freebsd-stable@freebsd.org Subject: FreeBSD CI Weekly Report 2019-09-01 Message-ID: <20190906004744.GA67907@freefall.freebsd.org> Reply-To: freebsd-testing@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.11.4 (2019-03-13) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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: Fri, 06 Sep 2019 00:47:45 -0000 (Please send the followup to freebsd-testing@ and note Reply-To is set.) FreeBSD CI Weekly Report 2019-09-01 =================================== Here is a summary of the FreeBSD Continuous Integration results for the period from 2019-08-26 to 2019-09-01. During this period, we have: * 1625 builds (97.4% (+14.4) passed, 2.6% (-14.4) failed) were executed on aarch64, amd64, armv6, armv7, i386, mips, mips64, powerpc, powerpc64, powerpcspe, riscv64, sparc64 architectures for head, stable/12, stable/11 branches. * 276 test runs (59.8% (+14.6) passed, 40.2% (-8.6) unstable, 0% (-6) exception) were executed on amd64, i386, riscv64 architectures for head, stable/12, stable/11 branches. * 51 doc builds (98.0% (-2) passed, 2% (+2) failed) Test case status (on 2019-09-01 23:59): | Branch/Architecture | Total | Pass | Fail | Skipped | | ------------------- | ---------- | ---------- | ------- | ------- | | head/amd64 | 7550 (+17) | 7484 (+21) | 1 (+1) | 65 (-5) | | head/i386 | 7548 (+17) | 7477 (+22) | 2 (+2) | 69 (-5) | | 12-STABLE/amd64 | 7392 (0) | 7348 (+3) | 0 (0) | 44 (-3) | | 12-STABLE/i386 | 7390 (0) | 7339 (+3) | 0 (0) | 51 (-3) | | 11-STABLE/amd64 | 6845 (0) | 6798 (-3) | 0 (0) | 47 (+3) | | 11-STABLE/i386 | 6843 (0) | 6760 (-3) | 34 (0) | 49 (+3) | (The statistics from experimental jobs are omitted) If any of the issues found by CI are in your area of interest or expertise please investigate the PRs listed below. The latest web version of this report is available at https://hackmd.io/@FreeBSD-CI/report-20190901 and archive is available at http://hackfoldr.org/freebsd-ci-report/, any help is welcome. ## News * Faliure notification has been turned on for https://ci.freebsd.org/job/FreeBSD-head-amd64-gcc/ * [FCP 20190401-ci_policy: CI policy](https://github.com/freebsd/fcp/blob/master/fcp-20190401-ci_policy.md) is in "feedback" state, please check and provide comments on -fcp@ and -hackers@ mailing lists. ## Fixed Tests * https://ci.freebsd.org/job/FreeBSD-head-amd64-test/ * sys.kern.pdeathsig.signal_delivered_ptrace * Reported in https://bugs.freebsd.org/237657 * Fixed in https://svnweb.freebsd.org/changeset/base/351210 * https://ci.freebsd.org/job/FreeBSD-head-amd64-test_zfs/ * sys.cddl.zfs.tests.atime.atime_test.atime_001_pos * Reported in https://bugs.freebsd.org/240221 * Fixed in https://svnweb.freebsd.org/changeset/base/351642 ## Failing Tests * https://ci.freebsd.org/job/FreeBSD-head-amd64-test/ * (flaky) sys.sys.qmath_test.qdivq_s64q * https://bugs.freebsd.org/240219 * Disabled in https://svnweb.freebsd.org/changeset/base/351739 * https://ci.freebsd.org/job/FreeBSD-stable-11-i386-test/ * local.kyua.* (31 cases) * local.lutok.* (3 cases) ## Failing and Flaky Tests (from experimental jobs) * https://ci.freebsd.org/job/FreeBSD-head-amd64-dtrace_test/ * cddl.usr.sbin.dtrace.common.misc.t_dtrace_contrib.tst_dynopt_d * https://bugs.freebsd.org/237641 * cddl.usr.sbin.dtrace.amd64.arrays.t_dtrace_contrib.tst_uregsarray_d * https://bugs.freebsd.org/240358 * https://ci.freebsd.org/job/FreeBSD-head-amd64-test_zfs/ * There are ~60 failing cases, including flakey ones, see https://ci.freebsd.org/job/FreeBSD-head-amd64-test_zfs/lastCompletedBuild/testReport/ for more details ## Disabled Tests * lib.libc.sys.mmap_test.mmap_truncate_signal https://bugs.freebsd.org/211924 * sys.fs.tmpfs.mount_test.large https://bugs.freebsd.org/212862 * sys.fs.tmpfs.link_test.kqueue https://bugs.freebsd.org/213662 * sys.kqueue.libkqueue.kqueue_test.main https://bugs.freebsd.org/233586 * sys.kern.ptrace_test.ptrace__PT_KILL_competing_stop https://bugs.freebsd.org/220841 * lib.libc.regex.exhaust_test.regcomp_too_big (i386 only) https://bugs.freebsd.org/237450 * sys.netinet.socket_afinet.socket_afinet_bind_zero (new) https://bugs.freebsd.org/238781 * sys.netpfil.pf.names.names * sys.netpfil.pf.synproxy.synproxy https://bugs.freebsd.org/238870 * sys.kern.ptrace_test.ptrace__follow_fork_child_detached_unrelated_debugger https://bugs.freebsd.org/239292 * sys.netpfil.pf.forward.v4 (i386 only) * sys.netpfil.pf.forward.v6 (i386 only) * sys.netpfil.pf.set_tos.v4 (i386 only) https://bugs.freebsd.org/239380 (updating net/scapy to 2.4.3 may fix this) * sys.kern.ptrace_test.ptrace__follow_fork_both_attached_unrelated_debugger https://bugs.freebsd.org/239397 * sys.kern.ptrace_test.ptrace__parent_sees_exit_after_child_debugger https://bugs.freebsd.org/239399 * sys.kern.ptrace_test.ptrace__follow_fork_parent_detached_unrelated_debugger https://bugs.freebsd.org/239425 * lib.libc.gen.getmntinfo_test.getmntinfo_test https://bugs.freebsd.org/240049 * sys.sys.qmath_test.qdivq_s64q https://bugs.freebsd.org/240219 ## Issues ### Cause build fails * https://bugs.freebsd.org/233735 Possible build race: genoffset.o /usr/src/sys/sys/types.h: error: machine/endian.h: No such file or directory * https://bugs.freebsd.org/233769 Possible build race: ld: error: unable to find library -lgcc_s ### Cause kernel panics * https://bugs.freebsd.org/238870 sys.netpfil.pf.names.names and sys.netpfil.pf.synproxy.synproxy cause panic Patch exists: * https://reviews.freebsd.org/D20868 * https://reviews.freebsd.org/D20869 ### Open * https://bugs.freebsd.org/237403 Tests in sys/opencrypto should be converted to Python3 * https://bugs.freebsd.org/237641 Flakey test case: common.misc.t_dtrace_contrib.tst_dynopt_d * https://bugs.freebsd.org/237656 "Freed UMA keg (rtentry) was not empty (18 items). Lost 1 pages of memory." seen when running sys/netipsec tests * https://bugs.freebsd.org/238781 sys.netinet.socket_afinet.socket_afinet_bind_zero does not work when mac_portacl(4) loaded * https://bugs.freebsd.org/239292 Flakey test case: sys.kern.ptrace_test.ptrace__follow_fork_child_detached_unrelated_debugger * https://bugs.freebsd.org/239380 sys.netpfil.pf.forward.{v4,v6} and sys.netpfil.pf.set_tos.v4 fail on i386 * https://bugs.freebsd.org/239397 Flakey test case: sys.kern.ptrace_test.ptrace__follow_fork_both_attached_unrelated_debugger * https://bugs.freebsd.org/239399 Flakey test case: sys.kern.ptrace_test.ptrace__parent_sees_exit_after_child_debugger * https://bugs.freebsd.org/239425 Flakey test case: sys.kern.ptrace_test.ptrace__follow_fork_parent_detached_unrelated_debugger * https://bugs.freebsd.org/240085 Failing test: sys.netpfil.common.forward.pf_v4 on i386 * https://bugs.freebsd.org/240086 Failing test: sys.netpfil.common.tos.pf_tos on i386 ### Others * [Tickets related to testing@](https://preview.tinyurl.com/y9maauwg) From owner-freebsd-current@freebsd.org Fri Sep 6 03:55:35 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 364E6DE66F for ; Fri, 6 Sep 2019 03:55:35 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from smtp-out-so.shaw.ca (smtp-out-so.shaw.ca [64.59.136.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 46PkHB0qPmz3JSj; Fri, 6 Sep 2019 03:55:33 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from spqr.komquats.com ([70.67.125.17]) by shaw.ca with ESMTPA id 65LMiAksrIhW965LNiro5p; Thu, 05 Sep 2019 21:55:31 -0600 X-Authority-Analysis: v=2.3 cv=FcFJO626 c=1 sm=1 tr=0 a=VFtTW3WuZNDh6VkGe7fA3g==:117 a=VFtTW3WuZNDh6VkGe7fA3g==:17 a=kj9zAlcOel0A:10 a=J70Eh1EUuV4A:10 a=YxBL1-UpAAAA:8 a=6I5d2MoRAAAA:8 a=ov2QOtiH20IFYUlbwFIA:9 a=CjuIK1q_8ugA:10 a=Ia-lj3WSrqcvXOmTRaiG:22 a=IjZwj45LgO3ly-622nXo:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTPS id B40A6566; Thu, 5 Sep 2019 20:55:27 -0700 (PDT) Received: from slippy.cwsent.com (localhost [127.0.0.1]) by slippy.cwsent.com (8.15.2/8.15.2) with ESMTP id x863tRsP089172; Thu, 5 Sep 2019 20:55:27 -0700 (PDT) (envelope-from Cy.Schubert@cschubert.com) Received: from slippy (cy@localhost) by slippy.cwsent.com (8.15.2/8.15.2/Submit) with ESMTP id x863tRhP089169; Thu, 5 Sep 2019 20:55:27 -0700 (PDT) (envelope-from Cy.Schubert@cschubert.com) Message-Id: <201909060355.x863tRhP089169@slippy.cwsent.com> X-Authentication-Warning: slippy.cwsent.com: cy owned process doing -bs X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7.1 Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: Konstantin Belousov cc: Cy Schubert , Vladimir Zakharov , freebsd-current@freebsd.org Subject: Re: ntpd segfaults on start In-reply-to: <20190905142817.GB2559@kib.kiev.ua> References: <20190905061251.rrip6635ebbfimsv@vzakharov> <20190905063354.qxecqjkafikdtdyq@vzakharov> <201909051307.x85D7MGs034053@slippy.cwsent.com> <20190905142817.GB2559@kib.kiev.ua> Comments: In-reply-to Konstantin Belousov message dated "Thu, 05 Sep 2019 17:28:17 +0300." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 05 Sep 2019 20:55:27 -0700 X-CMAE-Envelope: MS4wfN8eJupOANKEdfr3kOep/y4/rjNSva0e9YHBa2QE/ifYVeOVG0u2ZWvuUukRZpT44BwEtbcAnMpynPoA/Ed3J96biTyCGl9XpfhQ/t53EQsRyADg23Lm voi2Vz2H2Efqi3mekfi7Vzi4mvgYrmh4ITYHZiBGSPSPsqP4RzaOPrAUlY5pEtZqFm8qIfcJfc6FE9buOv/k1zmrYqwQGTre9IE= X-Rspamd-Queue-Id: 46PkHB0qPmz3JSj X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=none; spf=none (mx1.freebsd.org: domain of cy.schubert@cschubert.com has no SPF policy when checking 64.59.136.138) smtp.mailfrom=cy.schubert@cschubert.com X-Spamd-Result: default: False [-4.93 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[Cy.Schubert@cschubert.com]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; HAS_XAW(0.00)[]; NEURAL_HAM_SHORT(-0.97)[-0.972,0]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:6327, ipnet:64.59.128.0/20, country:CA]; RCVD_TLS_LAST(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[17.125.67.70.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; RCVD_COUNT_FIVE(0.00)[5]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[138.136.59.64.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; IP_SCORE(-2.35)[ip: (-6.16), ipnet: 64.59.128.0/20(-3.10), asn: 6327(-2.41), country: CA(-0.09)] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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: Fri, 06 Sep 2019 03:55:35 -0000 In message <20190905142817.GB2559@kib.kiev.ua>, Konstantin Belousov writes: > On Thu, Sep 05, 2019 at 06:07:22AM -0700, Cy Schubert wrote: > > In message <20190905063354.qxecqjkafikdtdyq@vzakharov>, Vladimir Zakharov > > write > > s: > > > > > > --ply3axd74k44nuk3 > > > Content-Type: text/plain; charset=utf-8 > > > Content-Disposition: inline > > > Content-Transfer-Encoding: quoted-printable > > > > > > On Thu, Sep 05, 2019, Vladimir Zakharov wrote: > > > > Hello! > > > >=20 > > > > Accidentally it turned out that the ntpd does not start on boot. > > > > Logs show that it core dumps: > > > > 2019-09-05T08:38:43.588563+03:00 vzakharov ntpd 34934 - - ntpd 4.2.8p12 > -a= > > > (1): Starting > > > > 2019-09-05T08:38:43.588717+03:00 vzakharov kernel - - - Security policy > l= > > > oaded: MAC/ntpd (mac_ntpd) > > > > 2019-09-05T08:38:43.718356+03:00 vzakharov kernel - - - pid 35074 (ntpd > ),= > > > jid 0, uid 123: exited on signal 11 > > > >=20 > > > > Not sure how long does it happen. ktrace and gdb points to `setrlimit` > > > > call. Clean rebuild has no effect. Does anyone have any idea what the > > > > problem could be? > > > > > > Accidental insight after sending initial mail: I've disabled > > > ASLR related sysctls, and now ntpd starts and runs again. > > > # grep aslr /boot/loader.conf > > > kern.elf32.aslr.enable=3D0 > > > kern.elf64.aslr.enable=3D0 > > > # service ntpd status > > > ntpd is running as pid 30528. > > > > I'll take a look at this. When you get a chance can you open a PR for this > > and assign the ticket to me, please. > > See the thread 'ntpd doesn't like ASLR on stable/12 post-r350672' on stable. > Read it to the end. Same setrlimit, different error NetBSD is experiencing. I'll investigate. -- Cheers, Cy Schubert FreeBSD UNIX: Web: http://www.FreeBSD.org The need of the many outweighs the greed of the few. From owner-freebsd-current@freebsd.org Fri Sep 6 06:39:29 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 4D671EA766 for ; Fri, 6 Sep 2019 06:39:29 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from smtp-out-so.shaw.ca (smtp-out-so.shaw.ca [64.59.136.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 46PnwH3m2hz3xDs for ; Fri, 6 Sep 2019 06:39:27 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from spqr.komquats.com ([70.67.125.17]) by shaw.ca with ESMTPA id 67txiBoOPIhW967tyis6Hp; Fri, 06 Sep 2019 00:39:24 -0600 X-Authority-Analysis: v=2.3 cv=FcFJO626 c=1 sm=1 tr=0 a=VFtTW3WuZNDh6VkGe7fA3g==:117 a=VFtTW3WuZNDh6VkGe7fA3g==:17 a=kj9zAlcOel0A:10 a=J70Eh1EUuV4A:10 a=VxmjJ2MpAAAA:8 a=YxBL1-UpAAAA:8 a=6I5d2MoRAAAA:8 a=XRXNMI3TRygy5gFsLD8A:9 a=CjuIK1q_8ugA:10 a=i59JxQ1kvaAA:10 a=7gXAzLPJhVmCkEl4_tsf:22 a=Ia-lj3WSrqcvXOmTRaiG:22 a=IjZwj45LgO3ly-622nXo:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTPS id D1CC4633; Thu, 5 Sep 2019 23:39:20 -0700 (PDT) Received: from slippy.cwsent.com (localhost [127.0.0.1]) by slippy.cwsent.com (8.15.2/8.15.2) with ESMTP id x866dKoA090179; Thu, 5 Sep 2019 23:39:20 -0700 (PDT) (envelope-from Cy.Schubert@cschubert.com) Received: from slippy (cy@localhost) by slippy.cwsent.com (8.15.2/8.15.2/Submit) with ESMTP id x866dJ7f090176; Thu, 5 Sep 2019 23:39:20 -0700 (PDT) (envelope-from Cy.Schubert@cschubert.com) Message-Id: <201909060639.x866dJ7f090176@slippy.cwsent.com> X-Authentication-Warning: slippy.cwsent.com: cy owned process doing -bs X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7.1 Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: Vladimir Zakharov cc: Cy Schubert , Konstantin Belousov , freebsd-current@freebsd.org, Harlan Stenn Subject: Re: ntpd segfaults on start In-reply-to: <201909060355.x863tRhP089169@slippy.cwsent.com> References: <20190905061251.rrip6635ebbfimsv@vzakharov> <20190905063354.qxecqjkafikdtdyq@vzakharov> <201909051307.x85D7MGs034053@slippy.cwsent.com> <20190905142817.GB2559@kib.kiev.ua> <201909060355.x863tRhP089169@slippy.cwsent.com> Comments: In-reply-to Cy Schubert message dated "Thu, 05 Sep 2019 20:55:27 -0700." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 05 Sep 2019 23:39:19 -0700 X-CMAE-Envelope: MS4wfGeLdAxDdajAC/Wsa36txM/QGF4dbKijDj0mO8UGCi6dw9m0xV+zy0K3QhHfWlwQ8Y5jNtPNSAwXNDSL6n8746U2TkjgMyJMQwIlK2w6gntfJoU03j+m mWYyOZvGjlgs77Hjjh8m/TAzmMmT773QCG0/x/K5rptDpKzKKgT7OuXSYqT8rHDQ+G3I58RVWCQLvdKw5lpziUfk5Mz+beIvXvHwYtzarye9bI7jBD1iuprB X-Rspamd-Queue-Id: 46PnwH3m2hz3xDs X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=none; spf=none (mx1.freebsd.org: domain of cy.schubert@cschubert.com has no SPF policy when checking 64.59.136.137) smtp.mailfrom=cy.schubert@cschubert.com X-Spamd-Result: default: False [-4.88 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[Cy.Schubert@cschubert.com]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; HAS_XAW(0.00)[]; RCPT_COUNT_FIVE(0.00)[5]; NEURAL_HAM_SHORT(-0.99)[-0.986,0]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:6327, ipnet:64.59.128.0/20, country:CA]; RCVD_TLS_LAST(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[17.125.67.70.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; RCVD_COUNT_FIVE(0.00)[5]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[137.136.59.64.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; IP_SCORE(-2.29)[ip: (-5.86), ipnet: 64.59.128.0/20(-3.10), asn: 6327(-2.41), country: CA(-0.09)] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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: Fri, 06 Sep 2019 06:39:29 -0000 In message <201909060355.x863tRhP089169@slippy.cwsent.com>, Cy Schubert writes: > In message <20190905142817.GB2559@kib.kiev.ua>, Konstantin Belousov writes: > > On Thu, Sep 05, 2019 at 06:07:22AM -0700, Cy Schubert wrote: > > > In message <20190905063354.qxecqjkafikdtdyq@vzakharov>, Vladimir Zakharov > > > > write > > > s: > > > > > > > > --ply3axd74k44nuk3 > > > > Content-Type: text/plain; charset=utf-8 > > > > Content-Disposition: inline > > > > Content-Transfer-Encoding: quoted-printable > > > > > > > > On Thu, Sep 05, 2019, Vladimir Zakharov wrote: > > > > > Hello! > > > > >=20 > > > > > Accidentally it turned out that the ntpd does not start on boot. > > > > > Logs show that it core dumps: > > > > > 2019-09-05T08:38:43.588563+03:00 vzakharov ntpd 34934 - - ntpd 4.2.8p > 12 > > -a= > > > > (1): Starting > > > > > 2019-09-05T08:38:43.588717+03:00 vzakharov kernel - - - Security poli > cy > > l= > > > > oaded: MAC/ntpd (mac_ntpd) > > > > > 2019-09-05T08:38:43.718356+03:00 vzakharov kernel - - - pid 35074 (nt > pd > > ),= > > > > jid 0, uid 123: exited on signal 11 > > > > >=20 > > > > > Not sure how long does it happen. ktrace and gdb points to `setrlimit > ` > > > > > call. Clean rebuild has no effect. Does anyone have any idea what the > > > > > problem could be? > > > > > > > > Accidental insight after sending initial mail: I've disabled > > > > ASLR related sysctls, and now ntpd starts and runs again. > > > > # grep aslr /boot/loader.conf > > > > kern.elf32.aslr.enable=3D0 > > > > kern.elf64.aslr.enable=3D0 > > > > # service ntpd status > > > > ntpd is running as pid 30528. > > > > > > I'll take a look at this. When you get a chance can you open a PR for thi > s > > > and assign the ticket to me, please. > > > > See the thread 'ntpd doesn't like ASLR on stable/12 post-r350672' on stable > . > > Read it to the end. > > Same setrlimit, different error NetBSD is experiencing. > > I'll investigate. Until this can be resolved the workaround is to put the following in your rc.conf: ntpd_prepend="/usr/bin/proccontrol -m aslr -s disable" -- Cheers, Cy Schubert FreeBSD UNIX: Web: http://www.FreeBSD.org The need of the many outweighs the greed of the few. From owner-freebsd-current@freebsd.org Fri Sep 6 23:56:27 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 13A22DB7E1 for ; Fri, 6 Sep 2019 23:56:27 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from smtp-out-so.shaw.ca (smtp-out-so.shaw.ca [64.59.136.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 46QDwp0QKjz3Kgb for ; Fri, 6 Sep 2019 23:56:25 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from spqr.komquats.com ([70.67.125.17]) by shaw.ca with ESMTPA id 6O5ViKjE5IhW96O5XiuFNa; Fri, 06 Sep 2019 17:56:23 -0600 X-Authority-Analysis: v=2.3 cv=FcFJO626 c=1 sm=1 tr=0 a=VFtTW3WuZNDh6VkGe7fA3g==:117 a=VFtTW3WuZNDh6VkGe7fA3g==:17 a=kj9zAlcOel0A:10 a=J70Eh1EUuV4A:10 a=VxmjJ2MpAAAA:8 a=YxBL1-UpAAAA:8 a=6I5d2MoRAAAA:8 a=QJjhxcL5A4nKeTAYcvMA:9 a=CjuIK1q_8ugA:10 a=MO4jRBh_EhoA:10 a=i59JxQ1kvaAA:10 a=7gXAzLPJhVmCkEl4_tsf:22 a=Ia-lj3WSrqcvXOmTRaiG:22 a=IjZwj45LgO3ly-622nXo:22 a=pHzHmUro8NiASowvMSCR:22 a=nt3jZW36AmriUCFCBwmW:22 Received: from slippy.cwsent.com (slippy8 [10.2.2.6]) by spqr.komquats.com (Postfix) with ESMTPS id 7993E8D3; Fri, 6 Sep 2019 16:56:21 -0700 (PDT) Received: from slippy.cwsent.com (localhost [127.0.0.1]) by slippy.cwsent.com (8.15.2/8.15.2) with ESMTP id x86NuLxC003783; Fri, 6 Sep 2019 16:56:21 -0700 (PDT) (envelope-from Cy.Schubert@cschubert.com) Received: from slippy (cy@localhost) by slippy.cwsent.com (8.15.2/8.15.2/Submit) with ESMTP id x86NuKdk003780; Fri, 6 Sep 2019 16:56:20 -0700 (PDT) (envelope-from Cy.Schubert@cschubert.com) Message-Id: <201909062356.x86NuKdk003780@slippy.cwsent.com> X-Authentication-Warning: slippy.cwsent.com: cy owned process doing -bs X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7.1 Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: Cy Schubert cc: Vladimir Zakharov , Konstantin Belousov , freebsd-current@freebsd.org, Harlan Stenn Subject: Re: ntpd segfaults on start In-reply-to: <201909060639.x866dJ7f090176@slippy.cwsent.com> References: <20190905061251.rrip6635ebbfimsv@vzakharov> <20190905063354.qxecqjkafikdtdyq@vzakharov> <201909051307.x85D7MGs034053@slippy.cwsent.com> <20190905142817.GB2559@kib.kiev.ua> <201909060355.x863tRhP089169@slippy.cwsent.com> <201909060639.x866dJ7f090176@slippy.cwsent.com> Comments: In-reply-to Cy Schubert message dated "Thu, 05 Sep 2019 23:39:19 -0700." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 06 Sep 2019 16:56:20 -0700 X-CMAE-Envelope: MS4wfDyZFUdLiuxoW2CnBIDgFtj2oxZG847598LHAAx+tnmvdeV71f4kz9+ftUS7W7dnCnlgflJOQ5oYvdQKzQHkJLEyYNTHKgPTmW/JfXylXF+L/4pDLisM obFwY06jj98YvWGk8AS4LoceGGlWN6Ow5NaI+bHTCMUc7BHJDFdhdlxXdm/Ft6LRZLg9HAO9LL4ghhhLAYmYi5GfD73dOpch8tiEOR34oqRjiJQGwf7Ij99K X-Rspamd-Queue-Id: 46QDwp0QKjz3Kgb X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=none; spf=none (mx1.freebsd.org: domain of cy.schubert@cschubert.com has no SPF policy when checking 64.59.136.138) smtp.mailfrom=cy.schubert@cschubert.com X-Spamd-Result: default: False [-4.93 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[Cy.Schubert@cschubert.com]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; HAS_XAW(0.00)[]; RCPT_COUNT_FIVE(0.00)[5]; NEURAL_HAM_SHORT(-0.99)[-0.987,0]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(-2.35)[ip: (-6.14), ipnet: 64.59.128.0/20(-3.10), asn: 6327(-2.41), country: CA(-0.09)]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:6327, ipnet:64.59.128.0/20, country:CA]; MIME_TRACE(0.00)[0:+]; RECEIVED_SPAMHAUS_PBL(0.00)[17.125.67.70.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; RCVD_COUNT_FIVE(0.00)[5]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[138.136.59.64.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; FREEMAIL_CC(0.00)[gmail.com]; RCVD_TLS_LAST(0.00)[] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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: Fri, 06 Sep 2019 23:56:27 -0000 In message <201909060639.x866dJ7f090176@slippy.cwsent.com>, Cy Schubert writes: > In message <201909060355.x863tRhP089169@slippy.cwsent.com>, Cy Schubert > writes: > > In message <20190905142817.GB2559@kib.kiev.ua>, Konstantin Belousov writes: > > > On Thu, Sep 05, 2019 at 06:07:22AM -0700, Cy Schubert wrote: > > > > In message <20190905063354.qxecqjkafikdtdyq@vzakharov>, Vladimir Zakhar > ov > > > > > > write > > > > s: > > > > > > > > > > --ply3axd74k44nuk3 > > > > > Content-Type: text/plain; charset=utf-8 > > > > > Content-Disposition: inline > > > > > Content-Transfer-Encoding: quoted-printable > > > > > > > > > > On Thu, Sep 05, 2019, Vladimir Zakharov wrote: > > > > > > Hello! > > > > > >=20 > > > > > > Accidentally it turned out that the ntpd does not start on boot. > > > > > > Logs show that it core dumps: > > > > > > 2019-09-05T08:38:43.588563+03:00 vzakharov ntpd 34934 - - ntpd 4.2. > 8p > > 12 > > > -a= > > > > > (1): Starting > > > > > > 2019-09-05T08:38:43.588717+03:00 vzakharov kernel - - - Security po > li > > cy > > > l= > > > > > oaded: MAC/ntpd (mac_ntpd) > > > > > > 2019-09-05T08:38:43.718356+03:00 vzakharov kernel - - - pid 35074 ( > nt > > pd > > > ),= > > > > > jid 0, uid 123: exited on signal 11 > > > > > >=20 > > > > > > Not sure how long does it happen. ktrace and gdb points to `setrlim > it > > ` > > > > > > call. Clean rebuild has no effect. Does anyone have any idea what t > he > > > > > > problem could be? > > > > > > > > > > Accidental insight after sending initial mail: I've disabled > > > > > ASLR related sysctls, and now ntpd starts and runs again. > > > > > # grep aslr /boot/loader.conf > > > > > kern.elf32.aslr.enable=3D0 > > > > > kern.elf64.aslr.enable=3D0 > > > > > # service ntpd status > > > > > ntpd is running as pid 30528. > > > > > > > > I'll take a look at this. When you get a chance can you open a PR for t > hi > > s > > > > and assign the ticket to me, please. > > > > > > See the thread 'ntpd doesn't like ASLR on stable/12 post-r350672' on stab > le > > . > > > Read it to the end. > > > > Same setrlimit, different error NetBSD is experiencing. > > > > I'll investigate. > > Until this can be resolved the workaround is to put the following in your > rc.conf: > > ntpd_prepend="/usr/bin/proccontrol -m aslr -s disable" For those who enable ASLR, a better workaround is, to add this to your ntp.conf: rlimit memlock 64 Until a more precise default is determined. -- Cheers, Cy Schubert FreeBSD UNIX: Web: http://www.FreeBSD.org The need of the many outweighs the greed of the few. From owner-freebsd-current@freebsd.org Sat Sep 7 07:56:32 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A069CE8EC4 for ; Sat, 7 Sep 2019 07:56:32 +0000 (UTC) (envelope-from kib@freebsd.org) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46QRZm0bgJz4F5k for ; Sat, 7 Sep 2019 07:56:31 +0000 (UTC) (envelope-from kib@freebsd.org) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id x877uJ2U088667 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sat, 7 Sep 2019 10:56:22 +0300 (EEST) (envelope-from kib@freebsd.org) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua x877uJ2U088667 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id x877uJTR088666; Sat, 7 Sep 2019 10:56:19 +0300 (EEST) (envelope-from kib@freebsd.org) X-Authentication-Warning: tom.home: kostik set sender to kib@freebsd.org using -f Date: Sat, 7 Sep 2019 10:56:19 +0300 From: Konstantin Belousov To: Harlan Stenn Cc: Cy Schubert , Vladimir Zakharov , freebsd-current@freebsd.org Subject: Re: ntpd segfaults on start Message-ID: <20190907075619.GG2559@kib.kiev.ua> References: <20190905061251.rrip6635ebbfimsv@vzakharov> <20190905063354.qxecqjkafikdtdyq@vzakharov> <201909051307.x85D7MGs034053@slippy.cwsent.com> <20190905142817.GB2559@kib.kiev.ua> <201909060355.x863tRhP089169@slippy.cwsent.com> <201909060639.x866dJ7f090176@slippy.cwsent.com> <201909062356.x86NuKdk003780@slippy.cwsent.com> <156d1e7c-0dbb-8707-90b3-13ae97c87449@nwtime.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <156d1e7c-0dbb-8707-90b3-13ae97c87449@nwtime.org> User-Agent: Mutt/1.12.1 (2019-06-15) X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tom.home X-Rspamd-Queue-Id: 46QRZm0bgJz4F5k X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-2.97 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.97)[-0.970,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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, 07 Sep 2019 07:56:32 -0000 On Sat, Sep 07, 2019 at 12:53:19AM -0700, Harlan Stenn wrote: > Cy, > > On 9/6/2019 4:56 PM, Cy Schubert wrote: > > ... > > > > For those who enable ASLR, a better workaround is, to add this to your > > ntp.conf: > > > > rlimit memlock 64 > > > > Until a more precise default is determined. > > Should I change the default value for FreeBSD-12 to be 64 for now? > > I can get this change in place for the upcoming ntp-4.2.8p14 release, > and we can change it later if needed. ASLR is disabled by default, so if anybody tweak a system config, she should know better to tweak ntpd as well. I am fine with changing the defaults for ntpd, but I think that more useful would be to update the documentation (but where to put it ?). From owner-freebsd-current@freebsd.org Sat Sep 7 13:09:25 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2BFB2D217B for ; Sat, 7 Sep 2019 13:09:25 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from smtp-out-no.shaw.ca (smtp-out-no.shaw.ca [64.59.134.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 46QZWl3mDzz4YMx; Sat, 7 Sep 2019 13:09:23 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from spqr.komquats.com ([70.67.125.17]) by shaw.ca with ESMTPA id 6aSsiXcbeUIS26aStiRbry; Sat, 07 Sep 2019 07:09:20 -0600 X-Authority-Analysis: v=2.3 cv=N41X6F1B c=1 sm=1 tr=0 a=VFtTW3WuZNDh6VkGe7fA3g==:117 a=VFtTW3WuZNDh6VkGe7fA3g==:17 a=kj9zAlcOel0A:10 a=J70Eh1EUuV4A:10 a=6I5d2MoRAAAA:8 a=YxBL1-UpAAAA:8 a=b7AvpPGxYzg_sw961t0A:9 a=CjuIK1q_8ugA:10 a=IjZwj45LgO3ly-622nXo:22 a=Ia-lj3WSrqcvXOmTRaiG:22 a=pHzHmUro8NiASowvMSCR:22 a=xoEH_sTeL_Rfw54TyV31:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTPS id 78770199B; Sat, 7 Sep 2019 06:09:17 -0700 (PDT) Received: from slippy.cwsent.com (localhost [127.0.0.1]) by slippy.cwsent.com (8.15.2/8.15.2) with ESMTP id x87D9HvZ089967; Sat, 7 Sep 2019 06:09:17 -0700 (PDT) (envelope-from Cy.Schubert@cschubert.com) Received: from slippy (cy@localhost) by slippy.cwsent.com (8.15.2/8.15.2/Submit) with ESMTP id x87D9GxZ089964; Sat, 7 Sep 2019 06:09:16 -0700 (PDT) (envelope-from Cy.Schubert@cschubert.com) Message-Id: <201909071309.x87D9GxZ089964@slippy.cwsent.com> X-Authentication-Warning: slippy.cwsent.com: cy owned process doing -bs X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7.1 Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: Konstantin Belousov cc: Harlan Stenn , Cy Schubert , Vladimir Zakharov , freebsd-current@freebsd.org Subject: Re: ntpd segfaults on start In-reply-to: <20190907075619.GG2559@kib.kiev.ua> References: <20190905061251.rrip6635ebbfimsv@vzakharov> <20190905063354.qxecqjkafikdtdyq@vzakharov> <201909051307.x85D7MGs034053@slippy.cwsent.com> <20190905142817.GB2559@kib.kiev.ua> <201909060355.x863tRhP089169@slippy.cwsent.com> <201909060639.x866dJ7f090176@slippy.cwsent.com> <201909062356.x86NuKdk003780@slippy.cwsent.com> <156d1e7c-0dbb-8707-90b3-13ae97c87449@nwtime.org> <20190907075619.GG2559@kib.kiev.ua> Comments: In-reply-to Konstantin Belousov message dated "Sat, 07 Sep 2019 10:56:19 +0300." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 07 Sep 2019 06:09:16 -0700 X-CMAE-Envelope: MS4wfLg1wYLMh0dt2+lQDrZX3+w8SXC+ULZewGrqvhNWBnp10e5psfY60U+U2PubVMwO+Kb5PLsx7hG3kb/5KhViqnpfTAOcAwwvuuNxbo4Z3bLF/vRZzo3c ZndwbNSTusjSldBgiRNAkdiPZaDPSlzFxPkc/nkmeOWxUM2fNicGDKi3+F2jQUb29EYzmxyurY5OT+UmkWC5rk5YeGxC5W0upUmrCrXO8a8v4+YFjR1g4hYt x6MQzhIZPQwiaXXfvG3VwQ== X-Rspamd-Queue-Id: 46QZWl3mDzz4YMx X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=none; spf=none (mx1.freebsd.org: domain of cy.schubert@cschubert.com has no SPF policy when checking 64.59.134.12) smtp.mailfrom=cy.schubert@cschubert.com X-Spamd-Result: default: False [-5.00 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; HAS_REPLYTO(0.00)[Cy.Schubert@cschubert.com]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[]; HAS_XAW(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_FIVE(0.00)[5]; REPLYTO_EQ_FROM(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.97)[-0.974,0]; RCVD_IN_DNSWL_NONE(0.00)[12.134.59.64.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:6327, ipnet:64.59.128.0/20, country:CA]; RCVD_TLS_LAST(0.00)[]; IP_SCORE(-2.42)[ip: (-6.52), ipnet: 64.59.128.0/20(-3.10), asn: 6327(-2.40), country: CA(-0.09)]; RECEIVED_SPAMHAUS_PBL(0.00)[17.125.67.70.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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, 07 Sep 2019 13:09:25 -0000 In message <20190907075619.GG2559@kib.kiev.ua>, Konstantin Belousov writes: > On Sat, Sep 07, 2019 at 12:53:19AM -0700, Harlan Stenn wrote: > > Cy, > > > > On 9/6/2019 4:56 PM, Cy Schubert wrote: > > > ... > > > > > > For those who enable ASLR, a better workaround is, to add this to your > > > ntp.conf: > > > > > > rlimit memlock 64 > > > > > > Until a more precise default is determined. > > > > Should I change the default value for FreeBSD-12 to be 64 for now? > > > > I can get this change in place for the upcoming ntp-4.2.8p14 release, > > and we can change it later if needed. > > ASLR is disabled by default, so if anybody tweak a system config, she > should know better to tweak ntpd as well. I am fine with changing the > defaults for ntpd, but I think that more useful would be to update > the documentation (but where to put it ?). I agree. We should update the documentation for now. 64 MB was my first successful test but I suspect we can get it lower, like 47 MB. For now we can update the documentation to say that if a person enables ASLR they must add this to ntp.conf. I'll find the best number instead of the current sledgehammer. Where to put it? I've added it to the ASLR wiki (https://wiki.freebsd.org/AS LR) for now. An ASLR page should go into the handbook documenting how to use up ASLR and gotchas like this and mitigations. 64 MB is safe for now. I will do more testing. I think it can go below 47. My sandbox has been running ntpd all night with 47 so far. I will try lower. -- Cheers, Cy Schubert FreeBSD UNIX: Web: http://www.FreeBSD.org The need of the many outweighs the greed of the few. From owner-freebsd-current@freebsd.org Sat Sep 7 13:49:17 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2A84BD318A for ; Sat, 7 Sep 2019 13:49:17 +0000 (UTC) (envelope-from ler@FreeBSD.org) Received: from thebighonker.lerctr.org (ns-b.lerctr.org [IPv6:2001:470:1f0f:3ad::53:2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "*.lerctr.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46QbPm644Gz4b71 for ; Sat, 7 Sep 2019 13:49:16 +0000 (UTC) (envelope-from ler@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lerctr.org; s=ler2019; h=Message-ID:Subject:To:From:Date:Content-Type:MIME-Version: Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=izUU3JHrdgOTS/d98A/Selt9Fuxbe+43XJv5RMR9CMY=; b=h/h0Rql/7ulJHW6hgS5cfZxok1 yiFDmLM9JgKiTOFGTf5AltD0BZAEtlJnzqgwGRcV0/F78ymVQIViOKsZ6UCrSuLw+ln4N4H3sXc02 zLRrfBX01CjRa5gZWUOb20K/6FEJh+t8gaDqjT9ssbiAExH+H2GLc+3JkvjK8FTP0bZTJ+X8cLbaV BRVxsaki8VxBRNgR7Jd0tEritCDtxi7GZ/+L7QoDZTAv+aO/S8s3hPuabuLvT31zxJHSUXRe8RMV0 LGO4k4SRIXaNcYIhdnUUDDt4yHN7/6GpOEzq/AySukesVcfbOP61/zGkmFZb1HUWsqljKjhxu5zSY VK60xsqQ==; Received: from thebighonker.lerctr.org ([2001:470:1f0f:3ad:bb:dcff:fe50:d900]:33625 helo=webmail.lerctr.org) by thebighonker.lerctr.org with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.1 (FreeBSD)) (envelope-from ) id 1i6b5V-0000YU-Hg for freebsd-current@freebsd.org; Sat, 07 Sep 2019 08:49:13 -0500 Received: from 2600:1700:210:b180:3028:6982:aac3:8e06 by webmail.lerctr.org with HTTP (HTTP/1.1 POST); Sat, 07 Sep 2019 08:49:10 -0500 MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; boundary="=_9573493469b568e17e5ee7f4ac0682e0"; micalg=pgp-sha256 Date: Sat, 07 Sep 2019 08:49:10 -0500 From: Larry Rosenman To: Freebsd current Subject: panic: VOP_UNSET_TEXT returned 22: on r351627 Message-ID: <5c173c656fc0c9b510e268f6ccab0a0b@FreeBSD.org> X-Sender: ler@FreeBSD.org User-Agent: Roundcube Webmail/1.3.9 X-Rspamd-Queue-Id: 46QbPm644Gz4b71 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-2.99 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.99)[-0.987,0]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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, 07 Sep 2019 13:49:17 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --=_9573493469b568e17e5ee7f4ac0682e0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed I got the following panic this AM during a poudriere run. r351627 is the revision I'm at. Core *IS* available. Ideas? Unread portion of the kernel message buffer: VNASSERT failed 0xfffff809e6335960: tag tmpfs, type VREG usecount 1, writecount 0, refcount 2 flags (VI_ACTIVE) v_object 0xfffff81f37227000 ref 2 pages 1063 cleanbuf 0 dirtybuf 0 lock type tmpfs: SHARED (count 1) tag VT_TMPFS, tmpfs_node 0xfffff803214f83a0, flags 0x0, links 1 mode 0755, owner 65534, group 0, size 4352808, status 0x0 panic: VOP_UNSET_TEXT returned 22 cpuid = 22 time = 1567862254 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe01bfd618b0 vpanic() at vpanic+0x19d/frame 0xfffffe01bfd61900 panic() at panic+0x43/frame 0xfffffe01bfd61960 vm_map_entry_set_vnode_text() at vm_map_entry_set_vnode_text+0x275/frame 0xfffffe01bfd619b0 vm_map_process_deferred() at vm_map_process_deferred+0x70/frame 0xfffffe01bfd619d0 vm_map_remove() at vm_map_remove+0xc6/frame 0xfffffe01bfd61a00 vmspace_exit() at vmspace_exit+0xd8/frame 0xfffffe01bfd61a40 exit1() at exit1+0x57d/frame 0xfffffe01bfd61ab0 sys_sys_exit() at sys_sys_exit+0xd/frame 0xfffffe01bfd61ac0 amd64_syscall() at amd64_syscall+0x29f/frame 0xfffffe01bfd61bf0 fast_syscall_common() at fast_syscall_common+0x101/frame 0xfffffe01bfd61bf0 --- syscall (1, FreeBSD ELF64, sys_sys_exit), rip = 0x8008326aa, rsp = 0x7fffffffe1b8, rbp = 0x7fffffffe1d0 --- Uptime: 7d15h33m31s Dumping 23246 out of 131027 MB:..1%..11%..21%..31%..41%..51%..61%..71%..81%..91% __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:55 55 __asm("movq %%gs:%P1,%0" : "=r" (td) : "n" (offsetof(struct pcpu, (kgdb) #0 __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:55 #1 doadump (textdump=1) at /usr/src/sys/kern/kern_shutdown.c:392 #2 0xffffffff804bcf60 in kern_reboot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:479 #3 0xffffffff804bd3d9 in vpanic (fmt=, ap=) at /usr/src/sys/kern/kern_shutdown.c:905 #4 0xffffffff804bd113 in panic (fmt=) at /usr/src/sys/kern/kern_shutdown.c:832 #5 0xffffffff807644e5 in vm_map_entry_set_vnode_text (entry=, add=) at /usr/src/sys/vm/vm_map.c:557 #6 0xffffffff807645a0 in vm_map_process_deferred () at /usr/src/sys/vm/vm_map.c:593 #7 0xffffffff8076a1b6 in _vm_map_unlock (map=, file=, line=3653) at /usr/src/sys/vm/vm_map.c:607 #8 vm_map_remove (map=, start=4096, end=140737488355328) at /usr/src/sys/vm/vm_map.c:3653 #9 0xffffffff80764118 in vmspace_dofree (vm=) at /usr/src/sys/vm/vm_map.c:335 #10 vmspace_exit (td=0xfffff8016632c000) at /usr/src/sys/vm/vm_map.c:416 #11 0xffffffff8047d27d in exit1 (td=0xfffff8016632c000, rval=, signo=0) at /usr/src/sys/kern/kern_exit.c:416 #12 0xffffffff8047ccfd in sys_sys_exit (td=, uap=) at /usr/src/sys/kern/kern_exit.c:195 #13 0xffffffff807f13df in syscallenter (td=0xfffff8016632c000) at /usr/src/sys/amd64/amd64/../../kern/subr_syscall.c:144 #14 amd64_syscall (td=0xfffff8016632c000, traced=0) at /usr/src/sys/amd64/amd64/trap.c:1180 #15 #16 0x00000008008326aa in ?? () Backtrace stopped: Cannot access memory at address 0x7fffffffe1b8 (kgdb) -- Larry Rosenman http://people.freebsd.org/~ler Phone: +1 214-642-9640 E-Mail: ler@FreeBSD.org US Mail: 5708 Sabbia Dr, Round Rock, TX 78665-2106 --=_9573493469b568e17e5ee7f4ac0682e0 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc; size=488 Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEHjgknedhWzvJgwVzaXyZsatIp30FAl1ztVkACgkQaXyZsatI p31GYAgAqwzvFn39IO9fTxJVBujaukH4rsOweH+pvzOJjk/LPdu+1tmZotYXuYDI voBZE7Xt0GDgeUD1AUkGfMFTPZt4IyA2W3h6VYV0nChPZTxw1O0OQgjnFqk5GBev NjTf23Yhz67DcHhPSsV+pqE/B0GlGWb2OC7kd2RM+/t7jl/Zo4Au7puzcZqEfc7q OAQaHitkXX7bWLOtlg5+PbF2thiHRF4ZBcsYIPyP0Ue4l3xm/I9SY9BAjp35X6qG zrg0BQfsUMSPjoDqEV02UW+qGUQlGFgUxDrv7eD6iglOyCW0WHLuN8ziI6/p39ez GP954qK2kbwjUvWJ84HKbl4DiNUbhA== =Xf6q -----END PGP SIGNATURE----- --=_9573493469b568e17e5ee7f4ac0682e0-- From owner-freebsd-current@freebsd.org Sat Sep 7 15:31:20 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 52D00D5426 for ; Sat, 7 Sep 2019 15:31:20 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46QdgW726Mz4gBf; Sat, 7 Sep 2019 15:31:19 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id x87FV5Kn097134 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sat, 7 Sep 2019 18:31:08 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua x87FV5Kn097134 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id x87FV5c0097133; Sat, 7 Sep 2019 18:31:05 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Sat, 7 Sep 2019 18:31:05 +0300 From: Konstantin Belousov To: Larry Rosenman Cc: Freebsd current Subject: Re: panic: VOP_UNSET_TEXT returned 22: on r351627 Message-ID: <20190907153105.GH2559@kib.kiev.ua> References: <5c173c656fc0c9b510e268f6ccab0a0b@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5c173c656fc0c9b510e268f6ccab0a0b@FreeBSD.org> User-Agent: Mutt/1.12.1 (2019-06-15) X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FORGED_GMAIL_RCVD,FREEMAIL_FROM, NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tom.home X-Rspamd-Queue-Id: 46QdgW726Mz4gBf X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-6.94 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.997,0]; NEURAL_HAM_SHORT(-0.94)[-0.942,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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, 07 Sep 2019 15:31:20 -0000 On Sat, Sep 07, 2019 at 08:49:10AM -0500, Larry Rosenman wrote: > I got the following panic this AM during a poudriere run. > > r351627 is the revision I'm at. > > Core *IS* available. > > Ideas? It highly suspect that is should be fixed by https://reviews.freebsd.org/D21560. Slightly amused that your report comes a day after the Andrew' one. > > > > Unread portion of the kernel message buffer: > VNASSERT failed > 0xfffff809e6335960: tag tmpfs, type VREG > usecount 1, writecount 0, refcount 2 > flags (VI_ACTIVE) > v_object 0xfffff81f37227000 ref 2 pages 1063 cleanbuf 0 dirtybuf 0 > lock type tmpfs: SHARED (count 1) > tag VT_TMPFS, tmpfs_node 0xfffff803214f83a0, flags 0x0, links 1 > mode 0755, owner 65534, group 0, size 4352808, status 0x0 > > panic: VOP_UNSET_TEXT returned 22 > cpuid = 22 > time = 1567862254 > KDB: stack backtrace: > db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame > 0xfffffe01bfd618b0 > vpanic() at vpanic+0x19d/frame 0xfffffe01bfd61900 > panic() at panic+0x43/frame 0xfffffe01bfd61960 > vm_map_entry_set_vnode_text() at vm_map_entry_set_vnode_text+0x275/frame > 0xfffffe01bfd619b0 > vm_map_process_deferred() at vm_map_process_deferred+0x70/frame > 0xfffffe01bfd619d0 > vm_map_remove() at vm_map_remove+0xc6/frame 0xfffffe01bfd61a00 > vmspace_exit() at vmspace_exit+0xd8/frame 0xfffffe01bfd61a40 > exit1() at exit1+0x57d/frame 0xfffffe01bfd61ab0 > sys_sys_exit() at sys_sys_exit+0xd/frame 0xfffffe01bfd61ac0 > amd64_syscall() at amd64_syscall+0x29f/frame 0xfffffe01bfd61bf0 > fast_syscall_common() at fast_syscall_common+0x101/frame > 0xfffffe01bfd61bf0 > --- syscall (1, FreeBSD ELF64, sys_sys_exit), rip = 0x8008326aa, rsp = > 0x7fffffffe1b8, rbp = 0x7fffffffe1d0 --- > Uptime: 7d15h33m31s > Dumping 23246 out of 131027 > MB:..1%..11%..21%..31%..41%..51%..61%..71%..81%..91% > > __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:55 > 55 __asm("movq %%gs:%P1,%0" : "=r" (td) : "n" (offsetof(struct pcpu, > (kgdb) #0 __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:55 > #1 doadump (textdump=1) at /usr/src/sys/kern/kern_shutdown.c:392 > #2 0xffffffff804bcf60 in kern_reboot (howto=260) > at /usr/src/sys/kern/kern_shutdown.c:479 > #3 0xffffffff804bd3d9 in vpanic (fmt=, ap= out>) > at /usr/src/sys/kern/kern_shutdown.c:905 > #4 0xffffffff804bd113 in panic (fmt=) > at /usr/src/sys/kern/kern_shutdown.c:832 > #5 0xffffffff807644e5 in vm_map_entry_set_vnode_text (entry= out>, > add=) at /usr/src/sys/vm/vm_map.c:557 > #6 0xffffffff807645a0 in vm_map_process_deferred () > at /usr/src/sys/vm/vm_map.c:593 > #7 0xffffffff8076a1b6 in _vm_map_unlock (map=, > file=, line=3653) at /usr/src/sys/vm/vm_map.c:607 > #8 vm_map_remove (map=, start=4096, end=140737488355328) > at /usr/src/sys/vm/vm_map.c:3653 > #9 0xffffffff80764118 in vmspace_dofree (vm=) > at /usr/src/sys/vm/vm_map.c:335 > #10 vmspace_exit (td=0xfffff8016632c000) at /usr/src/sys/vm/vm_map.c:416 > #11 0xffffffff8047d27d in exit1 (td=0xfffff8016632c000, rval= out>, > signo=0) at /usr/src/sys/kern/kern_exit.c:416 > #12 0xffffffff8047ccfd in sys_sys_exit (td=, uap= out>) > at /usr/src/sys/kern/kern_exit.c:195 > #13 0xffffffff807f13df in syscallenter (td=0xfffff8016632c000) > at /usr/src/sys/amd64/amd64/../../kern/subr_syscall.c:144 > #14 amd64_syscall (td=0xfffff8016632c000, traced=0) > at /usr/src/sys/amd64/amd64/trap.c:1180 > #15 > #16 0x00000008008326aa in ?? () > Backtrace stopped: Cannot access memory at address 0x7fffffffe1b8 > (kgdb) > > -- > Larry Rosenman http://people.freebsd.org/~ler > Phone: +1 214-642-9640 E-Mail: ler@FreeBSD.org > US Mail: 5708 Sabbia Dr, Round Rock, TX 78665-2106 > From owner-freebsd-current@freebsd.org Sat Sep 7 15:32:40 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id C3609D5753 for ; Sat, 7 Sep 2019 15:32:40 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46Qdj363WPz3C4k for ; Sat, 7 Sep 2019 15:32:39 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id x87FWRSQ097160 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sat, 7 Sep 2019 18:32:30 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua x87FWRSQ097160 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id x87FWQca097159; Sat, 7 Sep 2019 18:32:26 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Sat, 7 Sep 2019 18:32:26 +0300 From: Konstantin Belousov To: Cy Schubert Cc: Harlan Stenn , Vladimir Zakharov , freebsd-current@freebsd.org Subject: Re: ntpd segfaults on start Message-ID: <20190907153226.GI2559@kib.kiev.ua> References: <20190905061251.rrip6635ebbfimsv@vzakharov> <20190905063354.qxecqjkafikdtdyq@vzakharov> <201909051307.x85D7MGs034053@slippy.cwsent.com> <20190905142817.GB2559@kib.kiev.ua> <201909060355.x863tRhP089169@slippy.cwsent.com> <201909060639.x866dJ7f090176@slippy.cwsent.com> <201909062356.x86NuKdk003780@slippy.cwsent.com> <156d1e7c-0dbb-8707-90b3-13ae97c87449@nwtime.org> <20190907075619.GG2559@kib.kiev.ua> <201909071309.x87D9GxZ089964@slippy.cwsent.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201909071309.x87D9GxZ089964@slippy.cwsent.com> User-Agent: Mutt/1.12.1 (2019-06-15) X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FORGED_GMAIL_RCVD,FREEMAIL_FROM, NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tom.home X-Rspamd-Queue-Id: 46Qdj363WPz3C4k X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=gmail.com (policy=none); spf=softfail (mx1.freebsd.org: 2001:470:d5e7:1::1 is neither permitted nor denied by domain of kostikbel@gmail.com) smtp.mailfrom=kostikbel@gmail.com X-Spamd-Result: default: False [-2.98 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; FREEMAIL_FROM(0.00)[gmail.com]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; TAGGED_RCPT(0.00)[]; HAS_XAW(0.00)[]; R_SPF_SOFTFAIL(0.00)[~all]; IP_SCORE_FREEMAIL(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.98)[-0.977,0]; IP_SCORE(0.00)[ip: (-2.66), ipnet: 2001:470::/32(-4.45), asn: 6939(-3.15), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; FREEMAIL_ENVFROM(0.00)[gmail.com]; DMARC_POLICY_SOFTFAIL(0.10)[gmail.com : No valid SPF, No valid DKIM,none] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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, 07 Sep 2019 15:32:40 -0000 On Sat, Sep 07, 2019 at 06:09:16AM -0700, Cy Schubert wrote: > In message <20190907075619.GG2559@kib.kiev.ua>, Konstantin Belousov writes: > > On Sat, Sep 07, 2019 at 12:53:19AM -0700, Harlan Stenn wrote: > > > Cy, > > > > > > On 9/6/2019 4:56 PM, Cy Schubert wrote: > > > > ... > > > > > > > > For those who enable ASLR, a better workaround is, to add this to your > > > > ntp.conf: > > > > > > > > rlimit memlock 64 > > > > > > > > Until a more precise default is determined. > > > > > > Should I change the default value for FreeBSD-12 to be 64 for now? > > > > > > I can get this change in place for the upcoming ntp-4.2.8p14 release, > > > and we can change it later if needed. > > > > ASLR is disabled by default, so if anybody tweak a system config, she > > should know better to tweak ntpd as well. I am fine with changing the > > defaults for ntpd, but I think that more useful would be to update > > the documentation (but where to put it ?). > > I agree. We should update the documentation for now. 64 MB was my first > successful test but I suspect we can get it lower, like 47 MB. For now we > can update the documentation to say that if a person enables ASLR they must > add this to ntp.conf. I'll find the best number instead of the current > sledgehammer. > > Where to put it? I've added it to the ASLR wiki (https://wiki.freebsd.org/AS > LR) for now. An ASLR page should go into the handbook documenting how to > use up ASLR and gotchas like this and mitigations. May be in security(7). There are actually two workarounds, with enabled ASLR. One is the rlimit, another one is to disable stack base randomization by gap. > > 64 MB is safe for now. I will do more testing. I think it can go below 47. > My sandbox has been running ntpd all night with 47 so far. I will try lower. > > > -- > Cheers, > Cy Schubert > FreeBSD UNIX: Web: http://www.FreeBSD.org > > The need of the many outweighs the greed of the few. > From owner-freebsd-current@freebsd.org Sat Sep 7 15:45:27 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 4D219D5C21 for ; Sat, 7 Sep 2019 15:45:27 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from smtp-out-no.shaw.ca (smtp-out-no.shaw.ca [64.59.134.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 46Qdzp3WLSz3Cj6 for ; Sat, 7 Sep 2019 15:45:26 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from spqr.komquats.com ([70.67.125.17]) by shaw.ca with ESMTPA id 6ctuiQKz9sAGk6ctviJZR3; Sat, 07 Sep 2019 09:45:24 -0600 X-Authority-Analysis: v=2.3 cv=WeVylHpX c=1 sm=1 tr=0 a=VFtTW3WuZNDh6VkGe7fA3g==:117 a=VFtTW3WuZNDh6VkGe7fA3g==:17 a=kj9zAlcOel0A:10 a=J70Eh1EUuV4A:10 a=6I5d2MoRAAAA:8 a=YxBL1-UpAAAA:8 a=JHFAIFlfradOjb6nKfAA:9 a=CjuIK1q_8ugA:10 a=IjZwj45LgO3ly-622nXo:22 a=Ia-lj3WSrqcvXOmTRaiG:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTPS id C5959281; Sat, 7 Sep 2019 08:45:21 -0700 (PDT) Received: from slippy.cwsent.com (localhost [127.0.0.1]) by slippy.cwsent.com (8.15.2/8.15.2) with ESMTP id x87FjLnY004451; Sat, 7 Sep 2019 08:45:21 -0700 (PDT) (envelope-from Cy.Schubert@cschubert.com) Received: from slippy (cy@localhost) by slippy.cwsent.com (8.15.2/8.15.2/Submit) with ESMTP id x87FjLS6004448; Sat, 7 Sep 2019 08:45:21 -0700 (PDT) (envelope-from Cy.Schubert@cschubert.com) Message-Id: <201909071545.x87FjLS6004448@slippy.cwsent.com> X-Authentication-Warning: slippy.cwsent.com: cy owned process doing -bs X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7.1 Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: Konstantin Belousov cc: Cy Schubert , Harlan Stenn , Vladimir Zakharov , freebsd-current@freebsd.org Subject: Re: ntpd segfaults on start In-reply-to: <20190907153226.GI2559@kib.kiev.ua> References: <20190905061251.rrip6635ebbfimsv@vzakharov> <20190905063354.qxecqjkafikdtdyq@vzakharov> <201909051307.x85D7MGs034053@slippy.cwsent.com> <20190905142817.GB2559@kib.kiev.ua> <201909060355.x863tRhP089169@slippy.cwsent.com> <201909060639.x866dJ7f090176@slippy.cwsent.com> <201909062356.x86NuKdk003780@slippy.cwsent.com> <156d1e7c-0dbb-8707-90b3-13ae97c87449@nwtime.org> <20190907075619.GG2559@kib.kiev.ua> <201909071309.x87D9GxZ089964@slippy.cwsent.com> <20190907153226.GI2559@kib.kiev.ua> Comments: In-reply-to Konstantin Belousov message dated "Sat, 07 Sep 2019 18:32:26 +0300." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 07 Sep 2019 08:45:21 -0700 X-CMAE-Envelope: MS4wfAGSPgiAAhtgvVx3HTrxoJ72AmhcWsy8PI3A6RofCYFD0Cs69ZXT/ie4wEJeJWtahJIu6icgf/IcwPpkVuRPRurXfZJd/tmXec4gQ2MRV8faeemPFCFA dHkELgGuq6zTm6/Lf994ljJyJjSJP4hoou61VUsDQwx279sWV98I8GFFQUaeOyCCIDVDjpAVpfhUM4SU8PHOWvQmVZp5Vmqi0ht0g60nSoiIO007BaZIs3wE X-Rspamd-Queue-Id: 46Qdzp3WLSz3Cj6 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=none; spf=none (mx1.freebsd.org: domain of cy.schubert@cschubert.com has no SPF policy when checking 64.59.134.13) smtp.mailfrom=cy.schubert@cschubert.com X-Spamd-Result: default: False [-5.04 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[Cy.Schubert@cschubert.com]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; HAS_XAW(0.00)[]; RCPT_COUNT_FIVE(0.00)[5]; NEURAL_HAM_SHORT(-0.99)[-0.987,0]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:6327, ipnet:64.59.128.0/20, country:CA]; RCVD_TLS_LAST(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[17.125.67.70.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; RCVD_COUNT_FIVE(0.00)[5]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[13.134.59.64.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; IP_SCORE(-2.45)[ip: (-6.67), ipnet: 64.59.128.0/20(-3.09), asn: 6327(-2.40), country: CA(-0.09)] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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, 07 Sep 2019 15:45:27 -0000 In message <20190907153226.GI2559@kib.kiev.ua>, Konstantin Belousov writes: > On Sat, Sep 07, 2019 at 06:09:16AM -0700, Cy Schubert wrote: > > In message <20190907075619.GG2559@kib.kiev.ua>, Konstantin Belousov writes: > > > On Sat, Sep 07, 2019 at 12:53:19AM -0700, Harlan Stenn wrote: > > > > Cy, > > > > > > > > On 9/6/2019 4:56 PM, Cy Schubert wrote: > > > > > ... > > > > > > > > > > For those who enable ASLR, a better workaround is, to add this to you > r > > > > > ntp.conf: > > > > > > > > > > rlimit memlock 64 > > > > > > > > > > Until a more precise default is determined. > > > > > > > > Should I change the default value for FreeBSD-12 to be 64 for now? > > > > > > > > I can get this change in place for the upcoming ntp-4.2.8p14 release, > > > > and we can change it later if needed. > > > > > > ASLR is disabled by default, so if anybody tweak a system config, she > > > should know better to tweak ntpd as well. I am fine with changing the > > > defaults for ntpd, but I think that more useful would be to update > > > the documentation (but where to put it ?). > > > > I agree. We should update the documentation for now. 64 MB was my first > > successful test but I suspect we can get it lower, like 47 MB. For now we > > can update the documentation to say that if a person enables ASLR they must > > > add this to ntp.conf. I'll find the best number instead of the current > > sledgehammer. > > > > Where to put it? I've added it to the ASLR wiki (https://wiki.freebsd.org/A > S > > LR) for now. An ASLR page should go into the handbook documenting how to > > use up ASLR and gotchas like this and mitigations. > May be in security(7). Maybe. > > There are actually two workarounds, with enabled ASLR. One is the rlimit, > another one is to disable stack base randomization by gap. The latter works but I'm not enamoured with it. I suppose we can list the workarounds and let the user pick the one they want to use. I've been able to set the memlock rlimit as low as 20 MB. The issue is letting it default to 0 which allows ntp to mlockall() anything it wants. ntpd on my sandbox is currently using 18 MB. -- Cheers, Cy Schubert FreeBSD UNIX: Web: http://www.FreeBSD.org The need of the many outweighs the greed of the few. From owner-freebsd-current@freebsd.org Sat Sep 7 16:18:00 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 616F2D6DBA for ; Sat, 7 Sep 2019 16:18:00 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46QfjL62sqz3Fw1 for ; Sat, 7 Sep 2019 16:17:58 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id x87GHnlL008111 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Sat, 7 Sep 2019 19:17:52 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua x87GHnlL008111 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id x87GHn7f008110; Sat, 7 Sep 2019 19:17:49 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Sat, 7 Sep 2019 19:17:49 +0300 From: Konstantin Belousov To: Cy Schubert Cc: Harlan Stenn , Vladimir Zakharov , freebsd-current@freebsd.org Subject: Re: ntpd segfaults on start Message-ID: <20190907161749.GJ2559@kib.kiev.ua> References: <201909051307.x85D7MGs034053@slippy.cwsent.com> <20190905142817.GB2559@kib.kiev.ua> <201909060355.x863tRhP089169@slippy.cwsent.com> <201909060639.x866dJ7f090176@slippy.cwsent.com> <201909062356.x86NuKdk003780@slippy.cwsent.com> <156d1e7c-0dbb-8707-90b3-13ae97c87449@nwtime.org> <20190907075619.GG2559@kib.kiev.ua> <201909071309.x87D9GxZ089964@slippy.cwsent.com> <20190907153226.GI2559@kib.kiev.ua> <201909071545.x87FjLS6004448@slippy.cwsent.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201909071545.x87FjLS6004448@slippy.cwsent.com> User-Agent: Mutt/1.12.1 (2019-06-15) X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FORGED_GMAIL_RCVD,FREEMAIL_FROM, NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tom.home X-Rspamd-Queue-Id: 46QfjL62sqz3Fw1 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=gmail.com (policy=none); spf=softfail (mx1.freebsd.org: 2001:470:d5e7:1::1 is neither permitted nor denied by domain of kostikbel@gmail.com) smtp.mailfrom=kostikbel@gmail.com X-Spamd-Result: default: False [-2.98 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; DMARC_POLICY_SOFTFAIL(0.10)[gmail.com : No valid SPF, No valid DKIM,none]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; FREEMAIL_FROM(0.00)[gmail.com]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[]; HAS_XAW(0.00)[]; R_SPF_SOFTFAIL(0.00)[~all]; MIME_GOOD(-0.10)[text/plain]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.98)[-0.977,0]; IP_SCORE_FREEMAIL(0.00)[]; IP_SCORE(0.00)[ip: (-2.65), ipnet: 2001:470::/32(-4.45), asn: 6939(-3.15), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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, 07 Sep 2019 16:18:00 -0000 On Sat, Sep 07, 2019 at 08:45:21AM -0700, Cy Schubert wrote: > I've been able to set the memlock rlimit as low as 20 MB. The issue is > letting it default to 0 which allows ntp to mlockall() anything it wants. > ntpd on my sandbox is currently using 18 MB. Default stack size on amd64 is 512M, and default stack gap percentage is 3%. This means that the gap can be as large as ~17MB. If 3MB is enough for the stack of the main thread of ntpd, then fine. From owner-freebsd-current@freebsd.org Sat Sep 7 16:28:24 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 4A597D72E7 for ; Sat, 7 Sep 2019 16:28:24 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from smtp-out-so.shaw.ca (smtp-out-so.shaw.ca [64.59.136.139]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 46QfxM0grhz3GcG for ; Sat, 7 Sep 2019 16:28:22 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from spqr.komquats.com ([70.67.125.17]) by shaw.ca with ESMTPA id 6dZQiiu74SrVc6dZRiQnVe; Sat, 07 Sep 2019 10:28:21 -0600 X-Authority-Analysis: v=2.3 cv=L5ZjvNb8 c=1 sm=1 tr=0 a=VFtTW3WuZNDh6VkGe7fA3g==:117 a=VFtTW3WuZNDh6VkGe7fA3g==:17 a=kj9zAlcOel0A:10 a=J70Eh1EUuV4A:10 a=YxBL1-UpAAAA:8 a=6I5d2MoRAAAA:8 a=hJSPzmgovYHAIU_DXlIA:9 a=ml6RBKLhiWCBSNlM:21 a=2u4W6QJgkEN3HXM5:21 a=CjuIK1q_8ugA:10 a=Ia-lj3WSrqcvXOmTRaiG:22 a=IjZwj45LgO3ly-622nXo:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTPS id 3DD5132D; Sat, 7 Sep 2019 09:28:16 -0700 (PDT) Received: from slippy.cwsent.com (localhost [127.0.0.1]) by slippy.cwsent.com (8.15.2/8.15.2) with ESMTP id x87GSGPH005830; Sat, 7 Sep 2019 09:28:16 -0700 (PDT) (envelope-from Cy.Schubert@cschubert.com) Received: from slippy (cy@localhost) by slippy.cwsent.com (8.15.2/8.15.2/Submit) with ESMTP id x87GSFPV005827; Sat, 7 Sep 2019 09:28:15 -0700 (PDT) (envelope-from Cy.Schubert@cschubert.com) Message-Id: <201909071628.x87GSFPV005827@slippy.cwsent.com> X-Authentication-Warning: slippy.cwsent.com: cy owned process doing -bs X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7.1 Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: Konstantin Belousov cc: Cy Schubert , Harlan Stenn , Vladimir Zakharov , freebsd-current@freebsd.org Subject: Re: ntpd segfaults on start In-reply-to: <20190907161749.GJ2559@kib.kiev.ua> References: <201909051307.x85D7MGs034053@slippy.cwsent.com> <20190905142817.GB2559@kib.kiev.ua> <201909060355.x863tRhP089169@slippy.cwsent.com> <201909060639.x866dJ7f090176@slippy.cwsent.com> <201909062356.x86NuKdk003780@slippy.cwsent.com> <156d1e7c-0dbb-8707-90b3-13ae97c87449@nwtime.org> <20190907075619.GG2559@kib.kiev.ua> <201909071309.x87D9GxZ089964@slippy.cwsent.com> <20190907153226.GI2559@kib.kiev.ua> <201909071545.x87FjLS6004448@slippy.cwsent.com> <20190907161749.GJ2559@kib.kiev.ua> Comments: In-reply-to Konstantin Belousov message dated "Sat, 07 Sep 2019 19:17:49 +0300." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 07 Sep 2019 09:28:15 -0700 X-CMAE-Envelope: MS4wfPlecJBAy1UMsiZkQyR0v2SknvtjhLsfrnhnNLXbbEuAoDL++P0THA11maVf2PO71W91Mx+EJjASuTMzxL6z8BzOAogxnGPo+p67pBXASbnaqfw8CdUY tFF/s8EVDnmgvRi7HsGk1O2CapOn11qX8lZxuQppP8iTY5WbnKn236Ez8u0aJ+7QflINixE8aDT8doq41m6RqoDlDts6RgeLtYtdGpOlUgu1lyItg4tZhphD X-Rspamd-Queue-Id: 46QfxM0grhz3GcG X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=none; spf=none (mx1.freebsd.org: domain of cy.schubert@cschubert.com has no SPF policy when checking 64.59.136.139) smtp.mailfrom=cy.schubert@cschubert.com X-Spamd-Result: default: False [-4.82 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[Cy.Schubert@cschubert.com]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; HAS_XAW(0.00)[]; RCPT_COUNT_FIVE(0.00)[5]; NEURAL_HAM_SHORT(-0.99)[-0.988,0]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:6327, ipnet:64.59.128.0/20, country:CA]; RCVD_TLS_LAST(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[17.125.67.70.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; RCVD_COUNT_FIVE(0.00)[5]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[139.136.59.64.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; IP_SCORE(-2.23)[ip: (-5.56), ipnet: 64.59.128.0/20(-3.09), asn: 6327(-2.40), country: CA(-0.09)] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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, 07 Sep 2019 16:28:24 -0000 In message <20190907161749.GJ2559@kib.kiev.ua>, Konstantin Belousov writes: > On Sat, Sep 07, 2019 at 08:45:21AM -0700, Cy Schubert wrote: > > I've been able to set the memlock rlimit as low as 20 MB. The issue is > > letting it default to 0 which allows ntp to mlockall() anything it wants. > > ntpd on my sandbox is currently using 18 MB. > > Default stack size on amd64 is 512M, and default stack gap percentage is > 3%. This means that the gap can be as large as ~17MB. If 3MB is enough > for the stack of the main thread of ntpd, then fine. The default stack is 200K, which is also tuneable in ntp.conf. rlimit [memlock Nmegabytes | stacksize N4kPages filenum Nfiledescriptors] memlock Nmegabytes Specify the number of megabytes of memory that should be allocated and locked. Probably only available under Linux, this option may be useful when dropping root (the -i option). The default is 32 megabytes on non-Linux machines, and -1 under Linux. -1 means "do not lock the process into memory". 0 means "lock whatever memory the process wants into memory". stacksize N4kPages Specifies the maximum size of the process stack on systems with the mlockall() function. Defaults to 50 4k pages (200 4k pages in OpenBSD). filenum Nfiledescriptors Specifies the maximum number of file descriptors ntpd may have open at once. Defaults to the system default. -- Cheers, Cy Schubert FreeBSD UNIX: Web: http://www.FreeBSD.org The need of the many outweighs the greed of the few.