From nobody Sat Dec 23 14:37:02 2023 X-Original-To: fs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Sy6FB6KRPz54Zq7 for ; Sat, 23 Dec 2023 14:37:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Sy6FB52Ccz3DHG for ; Sat, 23 Dec 2023 14:37:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1703342222; a=rsa-sha256; cv=none; b=gNvbHBGOsnhbDab6u8zE49NU/v5n3wzqZqpfCQVJk25ybzdXR8RviSt3gsC4efufzjYEjT 466cqoTmXh5X+af5V9sDL83ekbXG9oyTzfYU2NXefUs1JLcYmTkjwkAq5sw+v9Ml2EnHi7 O/jy/91LV+GBnrvRXGkv+S9U/FMkw8/WYK+PIpAWucIbjWwoVfy2+xpeowd+KPtCOYWVLO biRfHLDlAglQHCIgwd8ugEfU5u+1ttAF4Z/yPZmWlzB23kD4jMyNsejjhRm6632RNs/M/r wasRD3ViDr7wSa70zpdj6IfpSZgsSKYLIQ1gilyeOsylOg7pVgQMZ4ok7/oAKg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1703342222; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kV2TZoy637C26YNN3NZOBl98GZqixFmUO6ryNsu+fgc=; b=cCKpfF7TUsBSZVa8oL4PkKYbVFbPGdDxVgYnjes6Vj+H/a/tNUs/geveKeR5QckFqwR7xY ZeztDi3N2r582OJVp0x5RjmxKu6GreKdXLJZChcgWuu0y5L57eqw3xNUUHXBc2msekO0F1 apOK1OT5RH2JY1XY0mqer9mzEPmVIxtEvC25PZ6GIMFOXmT47WBU5KHPc6QzpFZWHUjfZU 3V0s5a1jmn93GZGuHAb+XEhDOJYSPkxxpTDSIurIrumBi4yl7XOohxRLASw4GVLDOBbK4l yhzDG73pvUlCQbGyh2+UNS4SKpiEKjCTvrq+coK8Ky2ruHrEaFfNSl9RntLCiQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Sy6FB401cz13LT for ; Sat, 23 Dec 2023 14:37:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 3BNEb2lK011591 for ; Sat, 23 Dec 2023 14:37:02 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3BNEb2cA011590 for fs@FreeBSD.org; Sat, 23 Dec 2023 14:37:02 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: fs@FreeBSD.org Subject: [Bug 275597] Samba: smbd sometimes aborts by PANIC when 'vfs objects = cap' Date: Sat, 23 Dec 2023 14:37:02 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: crash X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: uratan@miomio.jp X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: fs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Filesystems List-Archive: https://lists.freebsd.org/archives/freebsd-fs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-fs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D275597 --- Comment #3 from uratan --- I will close this topic with this. /* * how to make samba4 from ports (memorandum for me in the future) */ (and for those who got here) [1] Extract files from freebsd-dist/ports.txz +------------------------------------------------------ |# cd / |# tar xzf ...somewhere/freebsd-dist/ports.txz usr/ports/net/samba416 +------------------------------------------------------ Also these files are needed to make samba416 +------------------------------------------------------ |# tar xzf ...somewhere/freebsd-dist/ports.txz usr/ports/Keywords |# tar xzf ...somewhere/freebsd-dist/ports.txz usr/ports/Mk |# tar xzf ...somewhere/freebsd-dist/ports.txz usr/ports/Templates |# tar xzf ...somewhere/freebsd-dist/ports.txz usr/ports/lang |# tar xzf ...somewhere/freebsd-dist/ports.txz usr/ports/ports-mgmt +------------------------------------------------------ [2] Other preparations These packages were required additionally to make in my environment | p5-Parse-Yapp-1.21.pkg | libtextstyle-0.22.pkg | cmocka-1.1.5.pkg | bison-3.8.2,1.pkg | p5-JSON-4.10.pkg | m4-1.4.19,1.pkg | pkgconf-2.0.3,1.pkg (I wonder... 'make' would have added them on during 'make'ing ?) The distfile: samba-4.16.11.tar.gz will be downloaded automatically but if you already have it, place it to /usr/ports/distfiles/ [3] Do (first) make +------------------------------------------------------ |# cd /usr/ports/net/samba416 |# make +------------------------------------------------------ Then some configuration menu is appeared, simply select to choose/keep default settings +------------------------------------------------------ |lqqqqqqqqqqqqqqqqqqqqqqqqqqq samba416-4.16.11 qqqqqqqqqqqqqqqqqqqqqqqqqq= qqqk |x lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq= qk x |x x+[x] ADS Active Directory client(implies LDAP) = x x |x x+[x] AD_DC Active Directory Domain Controller(implies PYTHO= Nx x |x x+[ ] CLUSTER Clustering support = x x |x x+[ ] CUPS CUPS printing system support = x x |x x+[x] DOCS Build and/or install documentation = x x |x x+[x] FAM File Alteration Monitor = x x |x x+[ ] GPGME GpgME support = x x |x x+[x] LDAP LDAP client = x x |x x+[ ] MANDOC Build manpages from DOCBOOK templates = x x |x x+[x] PROFILE Profiling data = x x |x x+[x] PYTHON3 Python 3.x bindings or support = x x |x x+[x] QUOTAS Disk quota support = x x |x x+[ ] SPOTLIGHT Spotlight server-side search support = x x |x x+[x] SYSLOG Syslog logging support = x x |x x+[x] UTMP UTMP accounting = x x |x xqqqqqqqqqqqqqqqqqqqqqqqqqqqqq VFS modules qqqqqqqqqqqqqqqqqqqqqqqqqqq= qx x |x mqqqqqv(+)qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq64%qqqq= qj x |tqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq= qqqu |x < OK > = x |mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq= qqqj +------------------------------------------------------ It takes about 30min to finish in my environment, I've got same binary to samba416-4.16.11.pkg +------------------------------------------------------ |# pwd |/usr/ports/net/samba416 | |# ls -F |Makefile pkg-descr pkg-plist.cluster |distinfo pkg-plist pkg-plist.python |files/ pkg-plist.ad_dc work/ | |# ls -F work/ |.PLIST.mktmp .patch_done.samba416._usr_local |.build_done.samba416._usr_local .stage_done.samba416._usr_local |.configure_done.samba416._usr_local README.FreeBSD |.extract_done.samba416._usr_local pkg-message |.license-catalog.mk samba-4.16.11/ |.license-report samba_server |.license_done.samba416._usr_local stage/ | |# md5 -r work/stage/usr/local/sbin/smbd \ | /usr/local/sbin/smbd |e281293697932aff5d3c32c211da3a4b work/stage/usr/local/sbin/smbd |e281293697932aff5d3c32c211da3a4b /usr/local/sbin/smbd +------------------------------------------------------ [4] How to make again after changing source codes +------------------------------------------------------ |# pwd |/usr/ports/net/samba416 | |# cd work/samba-4.16.11/ |# vim source3/modules/vfs_cap.c |# cd ../../ | |# make | ... <-- do for the configuration menu |=3D=3D=3D> Options unchanged |# ... ???? NOTHING is DONE !!!! | |# ls -lrt work/ |total 1 |-rw-r--r-- 1 root wheel 0 Dec 23 13:45 .extract_done.samba416._usr_local |-rw-r--r-- 1 root wheel 215 Dec 23 13:45 .license-catalog.mk |-rw-r--r-- 1 root wheel 93 Dec 23 13:45 .license-report |-rw-r--r-- 1 root wheel 0 Dec 23 13:45 .license_done.samba416._usr_local |-rw-r--r-- 1 root wheel 0 Dec 23 13:45 .patch_done.samba416._usr_l= ocal |-rw-r--r-- 1 root wheel 958 Dec 23 13:45 pkg-message |-rw-r--r-- 1 root wheel 3094 Dec 23 13:45 README.FreeBSD |-rw-r--r-- 1 root wheel 8412 Dec 23 13:45 samba_server |drwxr-xr-x 36 root wheel 2048 Dec 23 13:49 samba-4.16.11 |-rw-r--r-- 1 root wheel 0 Dec 23 13:49 .configure_done.samba416._usr_local |-rw-r--r-- 1 root wheel 0 Dec 23 14:13 .build_done.samba416._usr_l= ocal |drwxr-xr-x 4 root wheel 512 Dec 23 14:13 stage |-rw-r--r-- 1 root wheel 52433 Dec 23 14:17 .PLIST.mktmp |-rw-r--r-- 1 root wheel 0 Dec 23 14:17 .stage_done.samba416._usr_l= ocal | |# rm work/.stage_done.samba416._usr_local \ | work/.build_done.samba416._usr_local | |# make | ... <-- do for the configuration menu |=3D=3D=3D> Options unchanged | ... re-make started (takes 5min to finish) +------------------------------------------------------ [5] How to install samba4 of ports +------------------------------------------------------ |# pkg info | fgrep samba4 |samba416-4.16.11 Free SMB/CIFS and AD/DC server and client for Un= ix |# pkg delete samba416-4.16.11 | |# pwd |/usr/ports/net/samba416 |# make install | ... <-- do for the configuration menu +------------------------------------------------------ [6] How to rollback to samba4 of packages +------------------------------------------------------ |# pwd |/usr/ports/net/samba416 |# make deinstall | |# pkg intall samba416-4.16.11 +------------------------------------------------------ you can confirm installation status from /var/log/messages | "pkg-static" means install/deinstall from ports | "pkg" means install/delete by pkg +------------------------------------------------------ |# bzcat /var/log/messages.0.bz2 | fgrep pkg : : |Dec 16 17:34:38 oxygen pkg-static[11504]: samba416-4.16.11 installed |Dec 16 18:27:13 oxygen pkg-static[39133]: samba416-4.16.11 deinstalled |Dec 16 18:27:27 oxygen pkg-static[39645]: samba416-4.16.11 installed |Dec 16 22:23:23 oxygen pkg-static[65811]: samba416-4.16.11 deinstalled |Dec 16 22:26:15 oxygen pkg[65987]: pkg upgraded: 1.20.8 -> 1.20.9 |Dec 16 22:27:52 oxygen pkg[66699]: samba416-4.16.11 installed |Dec 16 23:00:40 oxygen pkg[81824]: samba416-4.16.11 deinstalled |Dec 16 23:01:17 oxygen pkg-static[82502]: samba416-4.16.11 installed |Dec 16 23:24:09 oxygen pkg-static[96335]: samba416-4.16.11 deinstalled |Dec 16 23:24:40 oxygen pkg-static[96976]: samba416-4.16.11 installed |Dec 17 00:01:49 oxygen pkg-static[13207]: samba416-4.16.11 deinstalled |Dec 17 00:02:39 oxygen pkg[13431]: samba416-4.16.11 installed |Dec 17 00:32:43 oxygen pkg[27009]: samba416-4.16.11 deinstalled |Dec 17 00:33:14 oxygen pkg-static[27678]: samba416-4.16.11 installed +------------------------------------------------------ ... My smbd has been running great ever since! (Please let me know if there are any problems with the workflow) --=20 You are receiving this mail because: You are the assignee for the bug.=