[update] samba-4.8.3

classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

[update] samba-4.8.3

Jeremie Courreges-Anglas-2

Bugfix release: https://www.samba.org/samba/history/samba-4.8.3.html

I don't see any change in vfs_virusfilter, which was new (and apparently
broken) in 4.8.2.

Test reports welcome!


Index: Makefile
===================================================================
RCS file: /cvs/ports/net/samba/Makefile,v
retrieving revision 1.254
diff -u -p -r1.254 Makefile
--- Makefile 11 Jun 2018 11:59:51 -0000 1.254
+++ Makefile 9 Jul 2018 13:10:02 -0000
@@ -1,6 +1,6 @@
 # $OpenBSD: Makefile,v 1.254 2018/06/11 11:59:51 jca Exp $
 
-VERSION = 4.8.2
+VERSION = 4.8.3
 DISTNAME = samba-${VERSION}
 
 COMMENT-main = SMB and CIFS client and server for UNIX
@@ -17,9 +17,11 @@ PKGNAME-docs = samba-docs-${VERSION}
 
 PKG_ARCH-docs = *
 
-LDB_V = 1.3.3
+LDB_V = 1.3.4
 TEVENT_V = 0.9.36
 
+REVISION-tevent = 0
+
 SHARED_LIBS = asn1-samba4 0.0 \
  com_err-samba4 0.0 \
  dcerpc 0.0 \
@@ -34,30 +36,30 @@ SHARED_LIBS = asn1-samba4 0.0 \
  hx509-samba4 0.0 \
  kdc-samba4 0.0 \
  krb5-samba4 0.1 \
- ldb 0.6 \
+ ldb 0.7 \
  ndr 0.3 \
  ndr-krb5pac 0.1 \
  ndr-nbt 0.1 \
  ndr-standard 3.0 \
  netapi 2.1 \
- pyldb-util 0.3 \
+ pyldb-util 0.4 \
  roken-samba4 0.0 \
  samba-credentials 0.2 \
  samba-errors 1.0 \
  samba-hostconfig 4.0 \
  samba-passdb 2.0 \
  samba-policy 0.0 \
- samba-util 3.1 \
+ samba-util 3.2 \
  samdb 0.1 \
  smbclient 4.2 \
- smbconf 4.0 \
+ smbconf 4.1 \
  smbldap 0.1 \
  tevent 0.4 \
  tevent-util 1.0 \
  wbclient 3.2 \
  wind-samba4 0.0 \
- replace 5.0 \
- util-setid 5.0
+ replace 6.0 \
+ util-setid 6.0
 
 CATEGORIES = net sysutils security
 
Index: distinfo
===================================================================
RCS file: /cvs/ports/net/samba/distinfo,v
retrieving revision 1.68
diff -u -p -r1.68 distinfo
--- distinfo 11 Jun 2018 11:59:51 -0000 1.68
+++ distinfo 9 Jul 2018 09:35:30 -0000
@@ -1,2 +1,2 @@
-SHA256 (samba-4.8.2.tar.gz) = YuVSKW1J5qtEu4fRIKKIgT+lLkJDXVOh9xt3WWUSvyI=
-SIZE (samba-4.8.2.tar.gz) = 17675145
+SHA256 (samba-4.8.3.tar.gz) = 4FaaimBdXftJ8f3RHbeW9NNv4DUcSn8hOH7yUwELgu0=
+SIZE (samba-4.8.3.tar.gz) = 17680660
Index: pkg/PLIST-main
===================================================================
RCS file: /cvs/ports/net/samba/pkg/PLIST-main,v
retrieving revision 1.41
diff -u -p -r1.41 PLIST-main
--- pkg/PLIST-main 11 Jun 2018 11:59:51 -0000 1.41
+++ pkg/PLIST-main 9 Jul 2018 11:35:53 -0000
@@ -2,6 +2,11 @@
 @pkgpath net/samba,ldap,-main
 @pkgpath net/samba,ads,-main
 @pkgpath net/samba,,-main
+@rcscript ${RCDIR}/nmbd
+@rcscript ${RCDIR}/samba
+@rcscript ${RCDIR}/samba_ad_dc
+@rcscript ${RCDIR}/smbd
+@rcscript ${RCDIR}/winbindd
 @sample ${SYSCONFDIR}/samba/
 @bin bin/cifsdd
 @bin bin/dbwrap_tool
@@ -1358,8 +1363,3 @@ share/samba/setup/ypServ30.ldif
 @sample /var/samba/
 @mode 0700
 @sample /var/samba/private/
-@rcscript ${RCDIR}/nmbd
-@rcscript ${RCDIR}/samba
-@rcscript ${RCDIR}/samba_ad_dc
-@rcscript ${RCDIR}/smbd
-@rcscript ${RCDIR}/winbindd


--
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply | Threaded
Open this post in threaded view
|

Re: [update] samba-4.8.3

Vijay Sankar

Quoting Jeremie Courreges-Anglas <[hidden email]>:

> Bugfix release: https://www.samba.org/samba/history/samba-4.8.3.html
>
> I don't see any change in vfs_virusfilter, which was new (and apparently
> broken) in 4.8.2.
>
> Test reports welcome!
>
>
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/net/samba/Makefile,v
> retrieving revision 1.254
> diff -u -p -r1.254 Makefile
> --- Makefile 11 Jun 2018 11:59:51 -0000 1.254
> +++ Makefile 9 Jul 2018 13:10:02 -0000
> @@ -1,6 +1,6 @@
> # $OpenBSD: Makefile,v 1.254 2018/06/11 11:59:51 jca Exp $
>
> -VERSION = 4.8.2
> +VERSION = 4.8.3
> DISTNAME = samba-${VERSION}
>
> COMMENT-main = SMB and CIFS client and server for UNIX
> @@ -17,9 +17,11 @@ PKGNAME-docs = samba-docs-${VERSION}
>
> PKG_ARCH-docs = *
>
> -LDB_V = 1.3.3
> +LDB_V = 1.3.4
> TEVENT_V = 0.9.36
>
> +REVISION-tevent = 0
> +
> SHARED_LIBS = asn1-samba4 0.0 \
> com_err-samba4 0.0 \
> dcerpc 0.0 \
> @@ -34,30 +36,30 @@ SHARED_LIBS = asn1-samba4 0.0 \
> hx509-samba4 0.0 \
> kdc-samba4 0.0 \
> krb5-samba4 0.1 \
> - ldb 0.6 \
> + ldb 0.7 \
> ndr 0.3 \
> ndr-krb5pac 0.1 \
> ndr-nbt 0.1 \
> ndr-standard 3.0 \
> netapi 2.1 \
> - pyldb-util 0.3 \
> + pyldb-util 0.4 \
> roken-samba4 0.0 \
> samba-credentials 0.2 \
> samba-errors 1.0 \
> samba-hostconfig 4.0 \
> samba-passdb 2.0 \
> samba-policy 0.0 \
> - samba-util 3.1 \
> + samba-util 3.2 \
> samdb 0.1 \
> smbclient 4.2 \
> - smbconf 4.0 \
> + smbconf 4.1 \
> smbldap 0.1 \
> tevent 0.4 \
> tevent-util 1.0 \
> wbclient 3.2 \
> wind-samba4 0.0 \
> - replace 5.0 \
> - util-setid 5.0
> + replace 6.0 \
> + util-setid 6.0
>
> CATEGORIES = net sysutils security
>
> Index: distinfo
> ===================================================================
> RCS file: /cvs/ports/net/samba/distinfo,v
> retrieving revision 1.68
> diff -u -p -r1.68 distinfo
> --- distinfo 11 Jun 2018 11:59:51 -0000 1.68
> +++ distinfo 9 Jul 2018 09:35:30 -0000
> @@ -1,2 +1,2 @@
> -SHA256 (samba-4.8.2.tar.gz) = YuVSKW1J5qtEu4fRIKKIgT+lLkJDXVOh9xt3WWUSvyI=
> -SIZE (samba-4.8.2.tar.gz) = 17675145
> +SHA256 (samba-4.8.3.tar.gz) = 4FaaimBdXftJ8f3RHbeW9NNv4DUcSn8hOH7yUwELgu0=
> +SIZE (samba-4.8.3.tar.gz) = 17680660
> Index: pkg/PLIST-main
> ===================================================================
> RCS file: /cvs/ports/net/samba/pkg/PLIST-main,v
> retrieving revision 1.41
> diff -u -p -r1.41 PLIST-main
> --- pkg/PLIST-main 11 Jun 2018 11:59:51 -0000 1.41
> +++ pkg/PLIST-main 9 Jul 2018 11:35:53 -0000
> @@ -2,6 +2,11 @@
> @pkgpath net/samba,ldap,-main
> @pkgpath net/samba,ads,-main
> @pkgpath net/samba,,-main
> +@rcscript ${RCDIR}/nmbd
> +@rcscript ${RCDIR}/samba
> +@rcscript ${RCDIR}/samba_ad_dc
> +@rcscript ${RCDIR}/smbd
> +@rcscript ${RCDIR}/winbindd
> @sample ${SYSCONFDIR}/samba/
> @bin bin/cifsdd
> @bin bin/dbwrap_tool
> @@ -1358,8 +1363,3 @@ share/samba/setup/ypServ30.ldif
> @sample /var/samba/
> @mode 0700
> @sample /var/samba/private/
> -@rcscript ${RCDIR}/nmbd
> -@rcscript ${RCDIR}/samba
> -@rcscript ${RCDIR}/samba_ad_dc
> -@rcscript ${RCDIR}/smbd
> -@rcscript ${RCDIR}/winbindd
>
>
> --
> jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Hi,

Upgraded 4.8.2 to the following packages on a test DC and a test member server

-rw-r--r--  3 vijay  vijay    22822072 Jul  9 13:45 samba-4.8.3.tgz
-rw-r--r--  3 vijay  vijay      205324 Jul  9 13:45 ldb-1.3.4.tgz
-rw-r--r--  3 vijay  vijay       56716 Jul  9 13:45 tevent-0.9.36p0.tgz
-rw-r--r--  3 vijay  vijay        6328 Jul  9 13:45 samba-util-4.8.3.tgz
-rw-r--r--  4 vijay  vijay      185904 Jul  9 13:45 samba-docs-4.8.3.tgz

All basic functionality seems to work fine. I noticed the following,  
but not sure what to make of it:

1) When the test DC is running as a VM with the following config:

switch "local" {
         interface bridge0
}

vm "samba483.DC" {
         disable
         memory 4096M
         disk "/vmm/samba483dc"
         interfaces 2
         interface { switch "local" }
         interface { switch "local" }
}

I was not able to add member servers initially and had to use rdate  
-nv pool.ntp.org to get the correct time. Looks like the time on the  
VM guest is not accurate. I could not find any solutions in the  
mailing list as to how to keep the VM guest time in sync.

I see the following in VM guest.

$ sysctl hw.sensors
hw.sensors.vmmci0.timedelta0=-533.253578 secs, OK, Mon Jul  9 18:41:59.328

2) When samba 4.8.3 starts, the following is logged

lock order reversal:
  1st 0xffffff07811695c0 vmmaplk (&map->lock) @ /usr/src/sys/uvm/uvm_map.c:4433
  2nd 0xffffff087c37bf80 inode (&ip->i_lock) @  
/usr/src/sys/ufs/ufs/ufs_vnops.c:1555
lock order "&ip->i_lock"(rrwlock) -> "&map->lock"(rwlock) first seen at:
#0  witness_checkorder+0x4c0
#1  _rw_enter_read+0x49
#2  uvmfault_lookup+0x8d
#3  uvm_fault+0x72
#4  pageflttrap+0x14c
#5  trap+0x319
#6  alltraps_kern+0x7e
#7  copyout+0x48
#8  ffs_read+0x1f0
#9  VOP_READ+0x49
#10 vn_read+0xca
#11 dofilereadv+0x216
#12 sys_read+0x82
#13 syscall+0x32a
#14 Xsyscall_untramp+0xe4
lock order "&map->lock"(rwlock) -> "&ip->i_lock"(rrwlock) first seen at:
#0  witness_checkorder+0x4c0
#1  _rw_enter+0x68
#2  _rrw_enter+0x3e
#3  VOP_LOCK+0x3d
#4  vn_lock+0x34
#5  uvn_io+0x1b8
#6  uvm_pager_put+0x109
#7  uvn_flush+0x424
#8  uvm_map_clean+0x3e7
#9  syscall+0x32a
#10 Xsyscall_untramp+0xe4

Is this to be expected or is there a problem here?

If there are any other tests that will be helpful please let me know.

Thanks very much,

Vijay


Vijay Sankar, M.Eng., P.Eng.
ForeTell Technologies Limited
[hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: [update] samba-4.8.3

Ian Mcwilliam-6
In reply to this post by Jeremie Courreges-Anglas-2
It looked something like this. Unfortunately still haven't compiled a debug version of samba to trace it.

Will look at 4.8.3 asap.



---- vfs virusfilter clamav


May 29 14:23:26 ianm-openbsd smbd[75668]: [2018/05/29 14:23:26.815150,  0] ../lib/util/fault.c:78(fault_report)

May 29 14:23:26 ianm-openbsd smbd[75668]:   ===============================================================

May 29 14:23:26 ianm-openbsd smbd[75668]: [2018/05/29 14:23:26.815194,  0] ../lib/util/fault.c:79(fault_report)

May 29 14:23:26 ianm-openbsd smbd[75668]:   INTERNAL ERROR: Signal 11 in pid 75668 (4.8.2)

May 29 14:23:26 ianm-openbsd smbd[75668]:   Please read the Trouble-Shooting section of the Samba HOWTO

May 29 14:23:26 ianm-openbsd smbd[75668]: [2018/05/29 14:23:26.815213,  0] ../lib/util/fault.c:81(fault_report)

May 29 14:23:26 ianm-openbsd smbd[75668]:   ===============================================================

May 29 14:23:26 ianm-openbsd smbd[75668]: [2018/05/29 14:23:26.815236,  0] ../source3/lib/util.c:815(smb_panic_s3)

May 29 14:23:26 ianm-openbsd smbd[75668]:   PANIC (pid 75668): internal error

May 29 14:23:26 ianm-openbsd smbd[75668]: [2018/05/29 14:23:26.816597,  0] ../source3/lib/util.c:926(log_stack_trace)

May 29 14:23:26 ianm-openbsd smbd[75668]:   BACKTRACE: 29 stack frames:

May 29 14:23:26 ianm-openbsd smbd[75668]:    #0 0x1570ef8fe8f3 <log_stack_trace+51> at /usr/local/lib/libsmbconf.so.4.0

May 29 14:23:26 ianm-openbsd smbd[75668]:    #1 0x1570ef8fe7c2 <smb_panic_s3+82> at /usr/local/lib/libsmbconf.so.4.0

May 29 14:23:26 ianm-openbsd smbd[75668]:    #2 0x15711d4c9ac7 <smb_panic+23> at /usr/local/lib/libsamba-util.so.3.1

May 29 14:23:26 ianm-openbsd smbd[75668]:    #3 0x15711d4c9d9d <smb_panic+749> at /usr/local/lib/libsamba-util.so.3.1

May 29 14:23:26 ianm-openbsd smbd[75668]:    #4 0x15711d4c9aa9 <fault_setup+89> at /usr/local/lib/libsamba-util.so.3.1

May 29 14:23:26 ianm-openbsd smbd[75668]:    #5 0x1570ebb05002

May 29 14:23:26 ianm-openbsd smbd[75668]:    #6 0x1570881303ac <virusfilter_io_connect_path+76> at /usr/local/lib/samba/vfs/virusfilter.so

May 29 14:23:26 ianm-openbsd smbd[75668]:    #7 0x15708812faec <virusfilter_clamav_init+268> at /usr/local/lib/samba/vfs/virusfilter.so

May 29 14:23:26 ianm-openbsd smbd[75668]:    #8 0x15708812b1cd <samba_init_module+9597> at /usr/local/lib/samba/vfs/virusfilter.so

May 29 14:23:26 ianm-openbsd smbd[75668]:    #9 0x15708812a109 <samba_init_module+5305> at /usr/local/lib/samba/vfs/virusfilter.so

May 29 14:23:26 ianm-openbsd smbd[75668]:    #10 0x15706bd0b024 <fd_open+1252> at /usr/local/lib/samba/libsmbd-base-samba4.so

May 29 14:23:26 ianm-openbsd smbd[75668]:    #11 0x15706bd0ad15 <fd_open+469> at /usr/local/lib/samba/libsmbd-base-samba4.so

May 29 14:23:26 ianm-openbsd smbd[75668]:    #12 0x15706bd100e5 <create_file_default+15189> at /usr/local/lib/samba/libsmbd-base-samba4.so

May 29 14:23:26 ianm-openbsd smbd[75668]:    #13 0x15706bd0d6be <create_file_default+4398> at /usr/local/lib/samba/libsmbd-base-samba4.so

May 29 14:23:26 ianm-openbsd smbd[75668]:    #14 0x15706bd0c7a9 <create_file_default+537> at /usr/local/lib/samba/libsmbd-base-samba4.so

May 29 14:23:26 ianm-openbsd smbd[75668]:    #15 0x15706bd4abf0 <smbd_smb2_request_process_create+5600> at /usr/local/lib/samba/libsmbd-base-samba4.so

May 29 14:23:26 ianm-openbsd smbd[75668]:    #16 0x15706bd410ad <smbd_smb2_request_dispatch+3053> at /usr/local/lib/samba/libsmbd-base-samba4.so

May 29 14:23:26 ianm-openbsd smbd[75668]:    #17 0x15706bd44416 <smbd_smb2_process_negprot+6502> at /usr/local/lib/samba/libsmbd-base-samba4.so

May 29 14:23:26 ianm-openbsd smbd[75668]:    #18 0x1570deac9464 <tevent_req_set_cleanup_fn+4180> at /usr/local/lib/libtevent.so.0.4

May 29 14:23:26 ianm-openbsd smbd[75668]:    #19 0x1570deac6523 <_tevent_loop_once+227> at /usr/local/lib/libtevent.so.0.4

May 29 14:23:26 ianm-openbsd smbd[75668]:    #20 0x1570deac94db <tevent_req_set_cleanup_fn+4299> at /usr/local/lib/libtevent.so.0.4

May 29 14:23:26 ianm-openbsd smbd[75668]:    #21 0x15706bd30279 <smbd_process+2185> at /usr/local/lib/samba/libsmbd-base-samba4.so

May 29 14:23:26 ianm-openbsd smbd[75668]:    #22 0x156e1f607fc8 <+27816> at /usr/local/sbin/smbd

May 29 14:23:26 ianm-openbsd smbd[75668]:    #23 0x1570deac9464 <tevent_req_set_cleanup_fn+4180> at /usr/local/lib/libtevent.so.0.4

May 29 14:23:26 ianm-openbsd smbd[75668]:    #24 0x1570deac6523 <_tevent_loop_once+227> at /usr/local/lib/libtevent.so.0.4

May 29 14:23:26 ianm-openbsd smbd[75668]:    #25 0x1570deac94db <tevent_req_set_cleanup_fn+4299> at /usr/local/lib/libtevent.so.0.4

May 29 14:23:26 ianm-openbsd smbd[75668]:    #26 0x156e1f606420 <+20736> at /usr/local/sbin/smbd

May 29 14:23:26 ianm-openbsd smbd[75668]:    #27 0x156e1f6057ca <+17578> at /usr/local/sbin/smbd

May 29 14:23:26 ianm-openbsd smbd[75668]:    #28 0x156e1f601376 <+86> at /usr/local/sbin/smbd

May 29 14:23:26 ianm-openbsd smbd[75668]: [2018/05/29 14:23:26.816817,  0] ../source3/lib/dumpcore.c:315(dump_core)

May 29 14:23:26 ianm-openbsd smbd[75668]:   dumping core in /var/log/samba/cores/smbd


Ian McWilliam


________________________________
From: [hidden email] <[hidden email]> on behalf of Jeremie Courreges-Anglas <[hidden email]>
Sent: Tuesday, 10 July 2018 12:58 AM
To: ports
Cc: Ian McWilliam
Subject: [update] samba-4.8.3


Bugfix release: https://www.samba.org/samba/history/samba-4.8.3.html
Samba 4.8.3 - Release Notes<https://www.samba.org/samba/history/samba-4.8.3.html>
www.samba.org
Samba 4.8.3 Available for Download. Samba 4.8.3 (gzipped) Signature. Patch (gzipped) against Samba 4.8.2 Signature ===== Release Notes for Samba 4.8.3 June 26, 2018 ===== This is the latest stable release of the Samba 4.8 release series.




I don't see any change in vfs_virusfilter, which was new (and apparently
broken) in 4.8.2.

Test reports welcome!


Index: Makefile
===================================================================
RCS file: /cvs/ports/net/samba/Makefile,v
retrieving revision 1.254
diff -u -p -r1.254 Makefile
--- Makefile    11 Jun 2018 11:59:51 -0000      1.254
+++ Makefile    9 Jul 2018 13:10:02 -0000
@@ -1,6 +1,6 @@
 # $OpenBSD: Makefile,v 1.254 2018/06/11 11:59:51 jca Exp $

-VERSION =              4.8.2
+VERSION =              4.8.3
 DISTNAME =              samba-${VERSION}

 COMMENT-main =          SMB and CIFS client and server for UNIX
@@ -17,9 +17,11 @@ PKGNAME-docs =               samba-docs-${VERSION}

 PKG_ARCH-docs =         *

-LDB_V =                        1.3.3
+LDB_V =                        1.3.4
 TEVENT_V =              0.9.36

+REVISION-tevent =      0
+
 SHARED_LIBS =           asn1-samba4             0.0 \
                         com_err-samba4          0.0 \
                         dcerpc                  0.0 \
@@ -34,30 +36,30 @@ SHARED_LIBS =               asn1-samba4             0.0 \
                         hx509-samba4            0.0 \
                         kdc-samba4              0.0 \
                         krb5-samba4             0.1 \
-                       ldb                     0.6 \
+                       ldb                     0.7 \
                         ndr                     0.3 \
                         ndr-krb5pac             0.1 \
                         ndr-nbt                 0.1 \
                         ndr-standard            3.0 \
                         netapi                  2.1 \
-                       pyldb-util              0.3 \
+                       pyldb-util              0.4 \
                         roken-samba4            0.0 \
                         samba-credentials       0.2 \
                         samba-errors            1.0 \
                         samba-hostconfig        4.0 \
                         samba-passdb            2.0 \
                         samba-policy            0.0 \
-                       samba-util              3.1 \
+                       samba-util              3.2 \
                         samdb                   0.1 \
                         smbclient               4.2 \
-                       smbconf                 4.0 \
+                       smbconf                 4.1 \
                         smbldap                 0.1 \
                         tevent                  0.4 \
                         tevent-util             1.0 \
                         wbclient                3.2 \
                         wind-samba4             0.0 \
-                       replace                 5.0 \
-                       util-setid              5.0
+                       replace                 6.0 \
+                       util-setid              6.0

 CATEGORIES =            net sysutils security

Index: distinfo
===================================================================
RCS file: /cvs/ports/net/samba/distinfo,v
retrieving revision 1.68
diff -u -p -r1.68 distinfo
--- distinfo    11 Jun 2018 11:59:51 -0000      1.68
+++ distinfo    9 Jul 2018 09:35:30 -0000
@@ -1,2 +1,2 @@
-SHA256 (samba-4.8.2.tar.gz) = YuVSKW1J5qtEu4fRIKKIgT+lLkJDXVOh9xt3WWUSvyI=
-SIZE (samba-4.8.2.tar.gz) = 17675145
+SHA256 (samba-4.8.3.tar.gz) = 4FaaimBdXftJ8f3RHbeW9NNv4DUcSn8hOH7yUwELgu0=
+SIZE (samba-4.8.3.tar.gz) = 17680660
Index: pkg/PLIST-main
===================================================================
RCS file: /cvs/ports/net/samba/pkg/PLIST-main,v
retrieving revision 1.41
diff -u -p -r1.41 PLIST-main
--- pkg/PLIST-main      11 Jun 2018 11:59:51 -0000      1.41
+++ pkg/PLIST-main      9 Jul 2018 11:35:53 -0000
@@ -2,6 +2,11 @@
 @pkgpath net/samba,ldap,-main
 @pkgpath net/samba,ads,-main
 @pkgpath net/samba,,-main
+@rcscript ${RCDIR}/nmbd
+@rcscript ${RCDIR}/samba
+@rcscript ${RCDIR}/samba_ad_dc
+@rcscript ${RCDIR}/smbd
+@rcscript ${RCDIR}/winbindd
 @sample ${SYSCONFDIR}/samba/
 @bin bin/cifsdd
 @bin bin/dbwrap_tool
@@ -1358,8 +1363,3 @@ share/samba/setup/ypServ30.ldif
 @sample /var/samba/
 @mode 0700
 @sample /var/samba/private/
-@rcscript ${RCDIR}/nmbd
-@rcscript ${RCDIR}/samba
-@rcscript ${RCDIR}/samba_ad_dc
-@rcscript ${RCDIR}/smbd
-@rcscript ${RCDIR}/winbindd


--
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply | Threaded
Open this post in threaded view
|

Re: [update] samba-4.8.3

Ian Mcwilliam-6
In reply to this post by Vijay Sankar
Ouch, that's a new lock order problem. The one I encountered with 4.8.2 was with the vfs/acl_tdb module.


Ian McWilliam


________________________________
From: [hidden email] <[hidden email]> on behalf of Vijay Sankar <[hidden email]>
Sent: Tuesday, 10 July 2018 9:55 AM
To: [hidden email]
Subject: Re: [update] samba-4.8.3


Quoting Jeremie Courreges-Anglas <[hidden email]>:

> Bugfix release: https://www.samba.org/samba/history/samba-4.8.3.html
Samba 4.8.3 - Release Notes<https://www.samba.org/samba/history/samba-4.8.3.html>
www.samba.org
Samba 4.8.3 Available for Download. Samba 4.8.3 (gzipped) Signature. Patch (gzipped) against Samba 4.8.2 Signature ===== Release Notes for Samba 4.8.3 June 26, 2018 ===== This is the latest stable release of the Samba 4.8 release series.



>
> I don't see any change in vfs_virusfilter, which was new (and apparently
> broken) in 4.8.2.
>
> Test reports welcome!
>
>
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/net/samba/Makefile,v
> retrieving revision 1.254
> diff -u -p -r1.254 Makefile
> --- Makefile  11 Jun 2018 11:59:51 -0000      1.254
> +++ Makefile  9 Jul 2018 13:10:02 -0000
> @@ -1,6 +1,6 @@
> # $OpenBSD: Makefile,v 1.254 2018/06/11 11:59:51 jca Exp $
>
> -VERSION =            4.8.2
> +VERSION =            4.8.3
> DISTNAME =            samba-${VERSION}
>
> COMMENT-main =                SMB and CIFS client and server for UNIX
> @@ -17,9 +17,11 @@ PKGNAME-docs =             samba-docs-${VERSION}
>
> PKG_ARCH-docs =               *
>
> -LDB_V =                      1.3.3
> +LDB_V =                      1.3.4
> TEVENT_V =            0.9.36
>
> +REVISION-tevent =    0
> +
> SHARED_LIBS =         asn1-samba4             0.0 \
>                        com_err-samba4          0.0 \
>                        dcerpc                  0.0 \
> @@ -34,30 +36,30 @@ SHARED_LIBS =             asn1-samba4             0.0 \
>                        hx509-samba4            0.0 \
>                        kdc-samba4              0.0 \
>                        krb5-samba4             0.1 \
> -                     ldb                     0.6 \
> +                     ldb                     0.7 \
>                        ndr                     0.3 \
>                        ndr-krb5pac             0.1 \
>                        ndr-nbt                 0.1 \
>                        ndr-standard            3.0 \
>                        netapi                  2.1 \
> -                     pyldb-util              0.3 \
> +                     pyldb-util              0.4 \
>                        roken-samba4            0.0 \
>                        samba-credentials       0.2 \
>                        samba-errors            1.0 \
>                        samba-hostconfig        4.0 \
>                        samba-passdb            2.0 \
>                        samba-policy            0.0 \
> -                     samba-util              3.1 \
> +                     samba-util              3.2 \
>                        samdb                   0.1 \
>                        smbclient               4.2 \
> -                     smbconf                 4.0 \
> +                     smbconf                 4.1 \
>                        smbldap                 0.1 \
>                        tevent                  0.4 \
>                        tevent-util             1.0 \
>                        wbclient                3.2 \
>                        wind-samba4             0.0 \
> -                     replace                 5.0 \
> -                     util-setid              5.0
> +                     replace                 6.0 \
> +                     util-setid              6.0
>
> CATEGORIES =          net sysutils security
>
> Index: distinfo
> ===================================================================
> RCS file: /cvs/ports/net/samba/distinfo,v
> retrieving revision 1.68
> diff -u -p -r1.68 distinfo
> --- distinfo  11 Jun 2018 11:59:51 -0000      1.68
> +++ distinfo  9 Jul 2018 09:35:30 -0000
> @@ -1,2 +1,2 @@
> -SHA256 (samba-4.8.2.tar.gz) = YuVSKW1J5qtEu4fRIKKIgT+lLkJDXVOh9xt3WWUSvyI=
> -SIZE (samba-4.8.2.tar.gz) = 17675145
> +SHA256 (samba-4.8.3.tar.gz) = 4FaaimBdXftJ8f3RHbeW9NNv4DUcSn8hOH7yUwELgu0=
> +SIZE (samba-4.8.3.tar.gz) = 17680660
> Index: pkg/PLIST-main
> ===================================================================
> RCS file: /cvs/ports/net/samba/pkg/PLIST-main,v
> retrieving revision 1.41
> diff -u -p -r1.41 PLIST-main
> --- pkg/PLIST-main    11 Jun 2018 11:59:51 -0000      1.41
> +++ pkg/PLIST-main    9 Jul 2018 11:35:53 -0000
> @@ -2,6 +2,11 @@
> @pkgpath net/samba,ldap,-main
> @pkgpath net/samba,ads,-main
> @pkgpath net/samba,,-main
> +@rcscript ${RCDIR}/nmbd
> +@rcscript ${RCDIR}/samba
> +@rcscript ${RCDIR}/samba_ad_dc
> +@rcscript ${RCDIR}/smbd
> +@rcscript ${RCDIR}/winbindd
> @sample ${SYSCONFDIR}/samba/
> @bin bin/cifsdd
> @bin bin/dbwrap_tool
> @@ -1358,8 +1363,3 @@ share/samba/setup/ypServ30.ldif
> @sample /var/samba/
> @mode 0700
> @sample /var/samba/private/
> -@rcscript ${RCDIR}/nmbd
> -@rcscript ${RCDIR}/samba
> -@rcscript ${RCDIR}/samba_ad_dc
> -@rcscript ${RCDIR}/smbd
> -@rcscript ${RCDIR}/winbindd
>
>
> --
> jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Hi,

Upgraded 4.8.2 to the following packages on a test DC and a test member server

-rw-r--r--  3 vijay  vijay    22822072 Jul  9 13:45 samba-4.8.3.tgz
-rw-r--r--  3 vijay  vijay      205324 Jul  9 13:45 ldb-1.3.4.tgz
-rw-r--r--  3 vijay  vijay       56716 Jul  9 13:45 tevent-0.9.36p0.tgz
-rw-r--r--  3 vijay  vijay        6328 Jul  9 13:45 samba-util-4.8.3.tgz
-rw-r--r--  4 vijay  vijay      185904 Jul  9 13:45 samba-docs-4.8.3.tgz

All basic functionality seems to work fine. I noticed the following,
but not sure what to make of it:

1) When the test DC is running as a VM with the following config:

switch "local" {
         interface bridge0
}

vm "samba483.DC" {
         disable
         memory 4096M
         disk "/vmm/samba483dc"
         interfaces 2
         interface { switch "local" }
         interface { switch "local" }
}

I was not able to add member servers initially and had to use rdate
-nv pool.ntp.org to get the correct time. Looks like the time on the
VM guest is not accurate. I could not find any solutions in the
mailing list as to how to keep the VM guest time in sync.

I see the following in VM guest.

$ sysctl hw.sensors
hw.sensors.vmmci0.timedelta0=-533.253578 secs, OK, Mon Jul  9 18:41:59.328

2) When samba 4.8.3 starts, the following is logged

lock order reversal:
  1st 0xffffff07811695c0 vmmaplk (&map->lock) @ /usr/src/sys/uvm/uvm_map.c:4433
  2nd 0xffffff087c37bf80 inode (&ip->i_lock) @
/usr/src/sys/ufs/ufs/ufs_vnops.c:1555
lock order "&ip->i_lock"(rrwlock) -> "&map->lock"(rwlock) first seen at:
#0  witness_checkorder+0x4c0
#1  _rw_enter_read+0x49
#2  uvmfault_lookup+0x8d
#3  uvm_fault+0x72
#4  pageflttrap+0x14c
#5  trap+0x319
#6  alltraps_kern+0x7e
#7  copyout+0x48
#8  ffs_read+0x1f0
#9  VOP_READ+0x49
#10 vn_read+0xca
#11 dofilereadv+0x216
#12 sys_read+0x82
#13 syscall+0x32a
#14 Xsyscall_untramp+0xe4
lock order "&map->lock"(rwlock) -> "&ip->i_lock"(rrwlock) first seen at:
#0  witness_checkorder+0x4c0
#1  _rw_enter+0x68
#2  _rrw_enter+0x3e
#3  VOP_LOCK+0x3d
#4  vn_lock+0x34
#5  uvn_io+0x1b8
#6  uvm_pager_put+0x109
#7  uvn_flush+0x424
#8  uvm_map_clean+0x3e7
#9  syscall+0x32a
#10 Xsyscall_untramp+0xe4

Is this to be expected or is there a problem here?

If there are any other tests that will be helpful please let me know.

Thanks very much,

Vijay


Vijay Sankar, M.Eng., P.Eng.
ForeTell Technologies Limited
[hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: [update] samba-4.8.3

Vijay Sankar

Quoting Ian McWilliam <[hidden email]>:

> Ouch, that's a new lock order problem. The one I encountered with  
> 4.8.2 was with the vfs/acl_tdb module.
>
>
> Ian McWilliam
>
>
> ________________________________
> From: [hidden email] <[hidden email]> on behalf of  
> Vijay Sankar <[hidden email]>
> Sent: Tuesday, 10 July 2018 9:55 AM
> To: [hidden email]
> Subject: Re: [update] samba-4.8.3
>
>
> Quoting Jeremie Courreges-Anglas <[hidden email]>:
>
>> Bugfix release: https://www.samba.org/samba/history/samba-4.8.3.html
> Samba 4.8.3 - Release  
> Notes<https://www.samba.org/samba/history/samba-4.8.3.html>
> www.samba.org
> Samba 4.8.3 Available for Download. Samba 4.8.3 (gzipped) Signature.  
> Patch (gzipped) against Samba 4.8.2 Signature ===== Release Notes  
> for Samba 4.8.3 June 26, 2018 ===== This is the latest stable  
> release of the Samba 4.8 release series.
>
>
>
>>
>> I don't see any change in vfs_virusfilter, which was new (and apparently
>> broken) in 4.8.2.
>>
>> Test reports welcome!
>>
>>
>> Index: Makefile
>> ===================================================================
>> RCS file: /cvs/ports/net/samba/Makefile,v
>> retrieving revision 1.254
>> diff -u -p -r1.254 Makefile
>> --- Makefile  11 Jun 2018 11:59:51 -0000      1.254
>> +++ Makefile  9 Jul 2018 13:10:02 -0000
>> @@ -1,6 +1,6 @@
>> # $OpenBSD: Makefile,v 1.254 2018/06/11 11:59:51 jca Exp $
>>
>> -VERSION =            4.8.2
>> +VERSION =            4.8.3
>> DISTNAME =            samba-${VERSION}
>>
>> COMMENT-main =                SMB and CIFS client and server for UNIX
>> @@ -17,9 +17,11 @@ PKGNAME-docs =             samba-docs-${VERSION}
>>
>> PKG_ARCH-docs =               *
>>
>> -LDB_V =                      1.3.3
>> +LDB_V =                      1.3.4
>> TEVENT_V =            0.9.36
>>
>> +REVISION-tevent =    0
>> +
>> SHARED_LIBS =         asn1-samba4             0.0 \
>>                        com_err-samba4          0.0 \
>>                        dcerpc                  0.0 \
>> @@ -34,30 +36,30 @@ SHARED_LIBS =             asn1-samba4             0.0 \
>>                        hx509-samba4            0.0 \
>>                        kdc-samba4              0.0 \
>>                        krb5-samba4             0.1 \
>> -                     ldb                     0.6 \
>> +                     ldb                     0.7 \
>>                        ndr                     0.3 \
>>                        ndr-krb5pac             0.1 \
>>                        ndr-nbt                 0.1 \
>>                        ndr-standard            3.0 \
>>                        netapi                  2.1 \
>> -                     pyldb-util              0.3 \
>> +                     pyldb-util              0.4 \
>>                        roken-samba4            0.0 \
>>                        samba-credentials       0.2 \
>>                        samba-errors            1.0 \
>>                        samba-hostconfig        4.0 \
>>                        samba-passdb            2.0 \
>>                        samba-policy            0.0 \
>> -                     samba-util              3.1 \
>> +                     samba-util              3.2 \
>>                        samdb                   0.1 \
>>                        smbclient               4.2 \
>> -                     smbconf                 4.0 \
>> +                     smbconf                 4.1 \
>>                        smbldap                 0.1 \
>>                        tevent                  0.4 \
>>                        tevent-util             1.0 \
>>                        wbclient                3.2 \
>>                        wind-samba4             0.0 \
>> -                     replace                 5.0 \
>> -                     util-setid              5.0
>> +                     replace                 6.0 \
>> +                     util-setid              6.0
>>
>> CATEGORIES =          net sysutils security
>>
>> Index: distinfo
>> ===================================================================
>> RCS file: /cvs/ports/net/samba/distinfo,v
>> retrieving revision 1.68
>> diff -u -p -r1.68 distinfo
>> --- distinfo  11 Jun 2018 11:59:51 -0000      1.68
>> +++ distinfo  9 Jul 2018 09:35:30 -0000
>> @@ -1,2 +1,2 @@
>> -SHA256 (samba-4.8.2.tar.gz) = YuVSKW1J5qtEu4fRIKKIgT+lLkJDXVOh9xt3WWUSvyI=
>> -SIZE (samba-4.8.2.tar.gz) = 17675145
>> +SHA256 (samba-4.8.3.tar.gz) = 4FaaimBdXftJ8f3RHbeW9NNv4DUcSn8hOH7yUwELgu0=
>> +SIZE (samba-4.8.3.tar.gz) = 17680660
>> Index: pkg/PLIST-main
>> ===================================================================
>> RCS file: /cvs/ports/net/samba/pkg/PLIST-main,v
>> retrieving revision 1.41
>> diff -u -p -r1.41 PLIST-main
>> --- pkg/PLIST-main    11 Jun 2018 11:59:51 -0000      1.41
>> +++ pkg/PLIST-main    9 Jul 2018 11:35:53 -0000
>> @@ -2,6 +2,11 @@
>> @pkgpath net/samba,ldap,-main
>> @pkgpath net/samba,ads,-main
>> @pkgpath net/samba,,-main
>> +@rcscript ${RCDIR}/nmbd
>> +@rcscript ${RCDIR}/samba
>> +@rcscript ${RCDIR}/samba_ad_dc
>> +@rcscript ${RCDIR}/smbd
>> +@rcscript ${RCDIR}/winbindd
>> @sample ${SYSCONFDIR}/samba/
>> @bin bin/cifsdd
>> @bin bin/dbwrap_tool
>> @@ -1358,8 +1363,3 @@ share/samba/setup/ypServ30.ldif
>> @sample /var/samba/
>> @mode 0700
>> @sample /var/samba/private/
>> -@rcscript ${RCDIR}/nmbd
>> -@rcscript ${RCDIR}/samba
>> -@rcscript ${RCDIR}/samba_ad_dc
>> -@rcscript ${RCDIR}/smbd
>> -@rcscript ${RCDIR}/winbindd
>>
>>
>> --
>> jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE
>
> Hi,
>
> Upgraded 4.8.2 to the following packages on a test DC and a test  
> member server
>
> -rw-r--r--  3 vijay  vijay    22822072 Jul  9 13:45 samba-4.8.3.tgz
> -rw-r--r--  3 vijay  vijay      205324 Jul  9 13:45 ldb-1.3.4.tgz
> -rw-r--r--  3 vijay  vijay       56716 Jul  9 13:45 tevent-0.9.36p0.tgz
> -rw-r--r--  3 vijay  vijay        6328 Jul  9 13:45 samba-util-4.8.3.tgz
> -rw-r--r--  4 vijay  vijay      185904 Jul  9 13:45 samba-docs-4.8.3.tgz
>
> All basic functionality seems to work fine. I noticed the following,
> but not sure what to make of it:
>
> 1) When the test DC is running as a VM with the following config:
>
> switch "local" {
>          interface bridge0
> }
>
> vm "samba483.DC" {
>          disable
>          memory 4096M
>          disk "/vmm/samba483dc"
>          interfaces 2
>          interface { switch "local" }
>          interface { switch "local" }
> }
>
> I was not able to add member servers initially and had to use rdate
> -nv pool.ntp.org to get the correct time. Looks like the time on the
> VM guest is not accurate. I could not find any solutions in the
> mailing list as to how to keep the VM guest time in sync.
>
> I see the following in VM guest.
>
> $ sysctl hw.sensors
> hw.sensors.vmmci0.timedelta0=-533.253578 secs, OK, Mon Jul  9 18:41:59.328
>
> 2) When samba 4.8.3 starts, the following is logged
>
> lock order reversal:
>   1st 0xffffff07811695c0 vmmaplk (&map->lock) @  
> /usr/src/sys/uvm/uvm_map.c:4433
>   2nd 0xffffff087c37bf80 inode (&ip->i_lock) @
> /usr/src/sys/ufs/ufs/ufs_vnops.c:1555
> lock order "&ip->i_lock"(rrwlock) -> "&map->lock"(rwlock) first seen at:
> #0  witness_checkorder+0x4c0
> #1  _rw_enter_read+0x49
> #2  uvmfault_lookup+0x8d
> #3  uvm_fault+0x72
> #4  pageflttrap+0x14c
> #5  trap+0x319
> #6  alltraps_kern+0x7e
> #7  copyout+0x48
> #8  ffs_read+0x1f0
> #9  VOP_READ+0x49
> #10 vn_read+0xca
> #11 dofilereadv+0x216
> #12 sys_read+0x82
> #13 syscall+0x32a
> #14 Xsyscall_untramp+0xe4
> lock order "&map->lock"(rwlock) -> "&ip->i_lock"(rrwlock) first seen at:
> #0  witness_checkorder+0x4c0
> #1  _rw_enter+0x68
> #2  _rrw_enter+0x3e
> #3  VOP_LOCK+0x3d
> #4  vn_lock+0x34
> #5  uvn_io+0x1b8
> #6  uvm_pager_put+0x109
> #7  uvn_flush+0x424
> #8  uvm_map_clean+0x3e7
> #9  syscall+0x32a
> #10 Xsyscall_untramp+0xe4
>
> Is this to be expected or is there a problem here?
>
> If there are any other tests that will be helpful please let me know.
>
> Thanks very much,
>
> Vijay
>
>
> Vijay Sankar, M.Eng., P.Eng.
> ForeTell Technologies Limited
> [hidden email]

Thanks very much Ian. I am having this problem only on the VM host. If  
I install samba 4.8.3 on a VM guest -- either as a member server or as  
a DC, the lock order reversal does not seem to happen. However, the  
time drift make the VM guests unusable. If I install it on the VM  
host, then there is no time drift but I get the lock order reversal.  
Just to make sure that the lock order reversal is not due to some  
mistake I may have made, I will redo everything on two new sets of  
drives on two physical servers running -current and report back ASAP.

Vijay

Vijay Sankar, M.Eng., P.Eng.
ForeTell Technologies Limited
[hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: [update] samba-4.8.3

Jeremie Courreges-Anglas-2
In reply to this post by Ian Mcwilliam-6
On Tue, Jul 10 2018, Ian McWilliam <[hidden email]> wrote:
> Ouch, that's a new lock order problem. The one I encountered with 4.8.2 was with the vfs/acl_tdb module.

They are not the same thing: you hit a locking problem in samba code,
the log from Vijay shows a lock ordering problem in the OpenBSD kernel.

> Ian McWilliam
>
>
> ________________________________
> From: [hidden email] <[hidden email]> on behalf of Vijay Sankar <[hidden email]>
> Sent: Tuesday, 10 July 2018 9:55 AM
> To: [hidden email]
> Subject: Re: [update] samba-4.8.3
>
>
> Quoting Jeremie Courreges-Anglas <[hidden email]>:
>
>> Bugfix release: https://www.samba.org/samba/history/samba-4.8.3.html
> Samba 4.8.3 - Release Notes<https://www.samba.org/samba/history/samba-4.8.3.html>
> www.samba.org
> Samba 4.8.3 Available for Download. Samba 4.8.3 (gzipped) Signature.
> Patch (gzipped) against Samba 4.8.2 Signature ===== Release Notes for
> Samba 4.8.3 June 26, 2018 ===== This is the latest stable release of the
> Samba 4.8 release series.
>
>
>
>>
>> I don't see any change in vfs_virusfilter, which was new (and apparently
>> broken) in 4.8.2.
>>
>> Test reports welcome!
>>
>>
>> Index: Makefile
>> ===================================================================
>> RCS file: /cvs/ports/net/samba/Makefile,v
>> retrieving revision 1.254
>> diff -u -p -r1.254 Makefile
>> --- Makefile  11 Jun 2018 11:59:51 -0000      1.254
>> +++ Makefile  9 Jul 2018 13:10:02 -0000
>> @@ -1,6 +1,6 @@
>> # $OpenBSD: Makefile,v 1.254 2018/06/11 11:59:51 jca Exp $
>>
>> -VERSION =            4.8.2
>> +VERSION =            4.8.3
>> DISTNAME =            samba-${VERSION}
>>
>> COMMENT-main =                SMB and CIFS client and server for UNIX
>> @@ -17,9 +17,11 @@ PKGNAME-docs =             samba-docs-${VERSION}
>>
>> PKG_ARCH-docs =               *
>>
>> -LDB_V =                      1.3.3
>> +LDB_V =                      1.3.4
>> TEVENT_V =            0.9.36
>>
>> +REVISION-tevent =    0
>> +
>> SHARED_LIBS =         asn1-samba4             0.0 \
>>                        com_err-samba4          0.0 \
>>                        dcerpc                  0.0 \
>> @@ -34,30 +36,30 @@ SHARED_LIBS =             asn1-samba4             0.0 \
>>                        hx509-samba4            0.0 \
>>                        kdc-samba4              0.0 \
>>                        krb5-samba4             0.1 \
>> -                     ldb                     0.6 \
>> +                     ldb                     0.7 \
>>                        ndr                     0.3 \
>>                        ndr-krb5pac             0.1 \
>>                        ndr-nbt                 0.1 \
>>                        ndr-standard            3.0 \
>>                        netapi                  2.1 \
>> -                     pyldb-util              0.3 \
>> +                     pyldb-util              0.4 \
>>                        roken-samba4            0.0 \
>>                        samba-credentials       0.2 \
>>                        samba-errors            1.0 \
>>                        samba-hostconfig        4.0 \
>>                        samba-passdb            2.0 \
>>                        samba-policy            0.0 \
>> -                     samba-util              3.1 \
>> +                     samba-util              3.2 \
>>                        samdb                   0.1 \
>>                        smbclient               4.2 \
>> -                     smbconf                 4.0 \
>> +                     smbconf                 4.1 \
>>                        smbldap                 0.1 \
>>                        tevent                  0.4 \
>>                        tevent-util             1.0 \
>>                        wbclient                3.2 \
>>                        wind-samba4             0.0 \
>> -                     replace                 5.0 \
>> -                     util-setid              5.0
>> +                     replace                 6.0 \
>> +                     util-setid              6.0
>>
>> CATEGORIES =          net sysutils security
>>
>> Index: distinfo
>> ===================================================================
>> RCS file: /cvs/ports/net/samba/distinfo,v
>> retrieving revision 1.68
>> diff -u -p -r1.68 distinfo
>> --- distinfo  11 Jun 2018 11:59:51 -0000      1.68
>> +++ distinfo  9 Jul 2018 09:35:30 -0000
>> @@ -1,2 +1,2 @@
>> -SHA256 (samba-4.8.2.tar.gz) = YuVSKW1J5qtEu4fRIKKIgT+lLkJDXVOh9xt3WWUSvyI=
>> -SIZE (samba-4.8.2.tar.gz) = 17675145
>> +SHA256 (samba-4.8.3.tar.gz) = 4FaaimBdXftJ8f3RHbeW9NNv4DUcSn8hOH7yUwELgu0=
>> +SIZE (samba-4.8.3.tar.gz) = 17680660
>> Index: pkg/PLIST-main
>> ===================================================================
>> RCS file: /cvs/ports/net/samba/pkg/PLIST-main,v
>> retrieving revision 1.41
>> diff -u -p -r1.41 PLIST-main
>> --- pkg/PLIST-main    11 Jun 2018 11:59:51 -0000      1.41
>> +++ pkg/PLIST-main    9 Jul 2018 11:35:53 -0000
>> @@ -2,6 +2,11 @@
>> @pkgpath net/samba,ldap,-main
>> @pkgpath net/samba,ads,-main
>> @pkgpath net/samba,,-main
>> +@rcscript ${RCDIR}/nmbd
>> +@rcscript ${RCDIR}/samba
>> +@rcscript ${RCDIR}/samba_ad_dc
>> +@rcscript ${RCDIR}/smbd
>> +@rcscript ${RCDIR}/winbindd
>> @sample ${SYSCONFDIR}/samba/
>> @bin bin/cifsdd
>> @bin bin/dbwrap_tool
>> @@ -1358,8 +1363,3 @@ share/samba/setup/ypServ30.ldif
>> @sample /var/samba/
>> @mode 0700
>> @sample /var/samba/private/
>> -@rcscript ${RCDIR}/nmbd
>> -@rcscript ${RCDIR}/samba
>> -@rcscript ${RCDIR}/samba_ad_dc
>> -@rcscript ${RCDIR}/smbd
>> -@rcscript ${RCDIR}/winbindd
>>
>>
>> --
>> jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE
>
> Hi,
>
> Upgraded 4.8.2 to the following packages on a test DC and a test member server
>
> -rw-r--r--  3 vijay  vijay    22822072 Jul  9 13:45 samba-4.8.3.tgz
> -rw-r--r--  3 vijay  vijay      205324 Jul  9 13:45 ldb-1.3.4.tgz
> -rw-r--r--  3 vijay  vijay       56716 Jul  9 13:45 tevent-0.9.36p0.tgz
> -rw-r--r--  3 vijay  vijay        6328 Jul  9 13:45 samba-util-4.8.3.tgz
> -rw-r--r--  4 vijay  vijay      185904 Jul  9 13:45 samba-docs-4.8.3.tgz
>
> All basic functionality seems to work fine. I noticed the following,
> but not sure what to make of it:
>
> 1) When the test DC is running as a VM with the following config:
>
> switch "local" {
>          interface bridge0
> }
>
> vm "samba483.DC" {
>          disable
>          memory 4096M
>          disk "/vmm/samba483dc"
>          interfaces 2
>          interface { switch "local" }
>          interface { switch "local" }
> }
>
> I was not able to add member servers initially and had to use rdate
> -nv pool.ntp.org to get the correct time. Looks like the time on the
> VM guest is not accurate. I could not find any solutions in the
> mailing list as to how to keep the VM guest time in sync.
>
> I see the following in VM guest.
>
> $ sysctl hw.sensors
> hw.sensors.vmmci0.timedelta0=-533.253578 secs, OK, Mon Jul  9 18:41:59.328
>
> 2) When samba 4.8.3 starts, the following is logged
>
> lock order reversal:
>   1st 0xffffff07811695c0 vmmaplk (&map->lock) @ /usr/src/sys/uvm/uvm_map.c:4433
>   2nd 0xffffff087c37bf80 inode (&ip->i_lock) @
> /usr/src/sys/ufs/ufs/ufs_vnops.c:1555
> lock order "&ip->i_lock"(rrwlock) -> "&map->lock"(rwlock) first seen at:
> #0  witness_checkorder+0x4c0
> #1  _rw_enter_read+0x49
> #2  uvmfault_lookup+0x8d
> #3  uvm_fault+0x72
> #4  pageflttrap+0x14c
> #5  trap+0x319
> #6  alltraps_kern+0x7e
> #7  copyout+0x48
> #8  ffs_read+0x1f0
> #9  VOP_READ+0x49
> #10 vn_read+0xca
> #11 dofilereadv+0x216
> #12 sys_read+0x82
> #13 syscall+0x32a
> #14 Xsyscall_untramp+0xe4
> lock order "&map->lock"(rwlock) -> "&ip->i_lock"(rrwlock) first seen at:
> #0  witness_checkorder+0x4c0
> #1  _rw_enter+0x68
> #2  _rrw_enter+0x3e
> #3  VOP_LOCK+0x3d
> #4  vn_lock+0x34
> #5  uvn_io+0x1b8
> #6  uvm_pager_put+0x109
> #7  uvn_flush+0x424
> #8  uvm_map_clean+0x3e7
> #9  syscall+0x32a
> #10 Xsyscall_untramp+0xe4
>
> Is this to be expected or is there a problem here?
>
> If there are any other tests that will be helpful please let me know.
>
> Thanks very much,
>
> Vijay
>
>
> Vijay Sankar, M.Eng., P.Eng.
> ForeTell Technologies Limited
> [hidden email]
>


--
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply | Threaded
Open this post in threaded view
|

Re: [update] samba-4.8.3

Vijay Sankar

Quoting Jeremie Courreges-Anglas <[hidden email]>:

> On Tue, Jul 10 2018, Ian McWilliam <[hidden email]> wrote:
>> Ouch, that's a new lock order problem. The one I encountered with  
>> 4.8.2 was with the vfs/acl_tdb module.
>
> They are not the same thing: you hit a locking problem in samba code,
> the log from Vijay shows a lock ordering problem in the OpenBSD kernel.
>
>> Ian McWilliam
>>
>>
>> ________________________________
>> From: [hidden email] <[hidden email]> on behalf  
>> of Vijay Sankar <[hidden email]>
>> Sent: Tuesday, 10 July 2018 9:55 AM
>> To: [hidden email]
>> Subject: Re: [update] samba-4.8.3
>>
>>
>> Quoting Jeremie Courreges-Anglas <[hidden email]>:
>>
>>> Bugfix release: https://www.samba.org/samba/history/samba-4.8.3.html
>> Samba 4.8.3 - Release  
>> Notes<https://www.samba.org/samba/history/samba-4.8.3.html>
>> www.samba.org
>> Samba 4.8.3 Available for Download. Samba 4.8.3 (gzipped) Signature.
>> Patch (gzipped) against Samba 4.8.2 Signature ===== Release Notes for
>> Samba 4.8.3 June 26, 2018 ===== This is the latest stable release of the
>> Samba 4.8 release series.
>>
>>
>>
>>>
>>> I don't see any change in vfs_virusfilter, which was new (and apparently
>>> broken) in 4.8.2.
>>>
>>> Test reports welcome!
>>>
>>>
>>> Index: Makefile
>>> ===================================================================
>>> RCS file: /cvs/ports/net/samba/Makefile,v
>>> retrieving revision 1.254
>>> diff -u -p -r1.254 Makefile
>>> --- Makefile  11 Jun 2018 11:59:51 -0000      1.254
>>> +++ Makefile  9 Jul 2018 13:10:02 -0000
>>> @@ -1,6 +1,6 @@
>>> # $OpenBSD: Makefile,v 1.254 2018/06/11 11:59:51 jca Exp $
>>>
>>> -VERSION =            4.8.2
>>> +VERSION =            4.8.3
>>> DISTNAME =            samba-${VERSION}
>>>
>>> COMMENT-main =                SMB and CIFS client and server for UNIX
>>> @@ -17,9 +17,11 @@ PKGNAME-docs =             samba-docs-${VERSION}
>>>
>>> PKG_ARCH-docs =               *
>>>
>>> -LDB_V =                      1.3.3
>>> +LDB_V =                      1.3.4
>>> TEVENT_V =            0.9.36
>>>
>>> +REVISION-tevent =    0
>>> +
>>> SHARED_LIBS =         asn1-samba4             0.0 \
>>>                      com_err-samba4          0.0 \
>>>                      dcerpc                  0.0 \
>>> @@ -34,30 +36,30 @@ SHARED_LIBS =             asn1-samba4             0.0 \
>>>                      hx509-samba4            0.0 \
>>>                      kdc-samba4              0.0 \
>>>                      krb5-samba4             0.1 \
>>> -                     ldb                     0.6 \
>>> +                     ldb                     0.7 \
>>>                      ndr                     0.3 \
>>>                      ndr-krb5pac             0.1 \
>>>                      ndr-nbt                 0.1 \
>>>                      ndr-standard            3.0 \
>>>                      netapi                  2.1 \
>>> -                     pyldb-util              0.3 \
>>> +                     pyldb-util              0.4 \
>>>                      roken-samba4            0.0 \
>>>                      samba-credentials       0.2 \
>>>                      samba-errors            1.0 \
>>>                      samba-hostconfig        4.0 \
>>>                      samba-passdb            2.0 \
>>>                      samba-policy            0.0 \
>>> -                     samba-util              3.1 \
>>> +                     samba-util              3.2 \
>>>                      samdb                   0.1 \
>>>                      smbclient               4.2 \
>>> -                     smbconf                 4.0 \
>>> +                     smbconf                 4.1 \
>>>                      smbldap                 0.1 \
>>>                      tevent                  0.4 \
>>>                      tevent-util             1.0 \
>>>                      wbclient                3.2 \
>>>                      wind-samba4             0.0 \
>>> -                     replace                 5.0 \
>>> -                     util-setid              5.0
>>> +                     replace                 6.0 \
>>> +                     util-setid              6.0
>>>
>>> CATEGORIES =          net sysutils security
>>>
>>> Index: distinfo
>>> ===================================================================
>>> RCS file: /cvs/ports/net/samba/distinfo,v
>>> retrieving revision 1.68
>>> diff -u -p -r1.68 distinfo
>>> --- distinfo  11 Jun 2018 11:59:51 -0000      1.68
>>> +++ distinfo  9 Jul 2018 09:35:30 -0000
>>> @@ -1,2 +1,2 @@
>>> -SHA256 (samba-4.8.2.tar.gz) = YuVSKW1J5qtEu4fRIKKIgT+lLkJDXVOh9xt3WWUSvyI=
>>> -SIZE (samba-4.8.2.tar.gz) = 17675145
>>> +SHA256 (samba-4.8.3.tar.gz) = 4FaaimBdXftJ8f3RHbeW9NNv4DUcSn8hOH7yUwELgu0=
>>> +SIZE (samba-4.8.3.tar.gz) = 17680660
>>> Index: pkg/PLIST-main
>>> ===================================================================
>>> RCS file: /cvs/ports/net/samba/pkg/PLIST-main,v
>>> retrieving revision 1.41
>>> diff -u -p -r1.41 PLIST-main
>>> --- pkg/PLIST-main    11 Jun 2018 11:59:51 -0000      1.41
>>> +++ pkg/PLIST-main    9 Jul 2018 11:35:53 -0000
>>> @@ -2,6 +2,11 @@
>>> @pkgpath net/samba,ldap,-main
>>> @pkgpath net/samba,ads,-main
>>> @pkgpath net/samba,,-main
>>> +@rcscript ${RCDIR}/nmbd
>>> +@rcscript ${RCDIR}/samba
>>> +@rcscript ${RCDIR}/samba_ad_dc
>>> +@rcscript ${RCDIR}/smbd
>>> +@rcscript ${RCDIR}/winbindd
>>> @sample ${SYSCONFDIR}/samba/
>>> @bin bin/cifsdd
>>> @bin bin/dbwrap_tool
>>> @@ -1358,8 +1363,3 @@ share/samba/setup/ypServ30.ldif
>>> @sample /var/samba/
>>> @mode 0700
>>> @sample /var/samba/private/
>>> -@rcscript ${RCDIR}/nmbd
>>> -@rcscript ${RCDIR}/samba
>>> -@rcscript ${RCDIR}/samba_ad_dc
>>> -@rcscript ${RCDIR}/smbd
>>> -@rcscript ${RCDIR}/winbindd
>>>
>>>
>>> --
>>> jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE
>>
>> Hi,
>>
>> Upgraded 4.8.2 to the following packages on a test DC and a test  
>> member server
>>
>> -rw-r--r--  3 vijay  vijay    22822072 Jul  9 13:45 samba-4.8.3.tgz
>> -rw-r--r--  3 vijay  vijay      205324 Jul  9 13:45 ldb-1.3.4.tgz
>> -rw-r--r--  3 vijay  vijay       56716 Jul  9 13:45 tevent-0.9.36p0.tgz
>> -rw-r--r--  3 vijay  vijay        6328 Jul  9 13:45 samba-util-4.8.3.tgz
>> -rw-r--r--  4 vijay  vijay      185904 Jul  9 13:45 samba-docs-4.8.3.tgz
>>
>> All basic functionality seems to work fine. I noticed the following,
>> but not sure what to make of it:
>>
>> 1) When the test DC is running as a VM with the following config:
>>
>> switch "local" {
>>        interface bridge0
>> }
>>
>> vm "samba483.DC" {
>>        disable
>>        memory 4096M
>>        disk "/vmm/samba483dc"
>>        interfaces 2
>>        interface { switch "local" }
>>        interface { switch "local" }
>> }
>>
>> I was not able to add member servers initially and had to use rdate
>> -nv pool.ntp.org to get the correct time. Looks like the time on the
>> VM guest is not accurate. I could not find any solutions in the
>> mailing list as to how to keep the VM guest time in sync.
>>
>> I see the following in VM guest.
>>
>> $ sysctl hw.sensors
>> hw.sensors.vmmci0.timedelta0=-533.253578 secs, OK, Mon Jul  9 18:41:59.328
>>
>> 2) When samba 4.8.3 starts, the following is logged
>>
>> lock order reversal:
>> 1st 0xffffff07811695c0 vmmaplk (&map->lock) @  
>> /usr/src/sys/uvm/uvm_map.c:4433
>> 2nd 0xffffff087c37bf80 inode (&ip->i_lock) @
>> /usr/src/sys/ufs/ufs/ufs_vnops.c:1555
>> lock order "&ip->i_lock"(rrwlock) -> "&map->lock"(rwlock) first seen at:
>> #0  witness_checkorder+0x4c0
>> #1  _rw_enter_read+0x49
>> #2  uvmfault_lookup+0x8d
>> #3  uvm_fault+0x72
>> #4  pageflttrap+0x14c
>> #5  trap+0x319
>> #6  alltraps_kern+0x7e
>> #7  copyout+0x48
>> #8  ffs_read+0x1f0
>> #9  VOP_READ+0x49
>> #10 vn_read+0xca
>> #11 dofilereadv+0x216
>> #12 sys_read+0x82
>> #13 syscall+0x32a
>> #14 Xsyscall_untramp+0xe4
>> lock order "&map->lock"(rwlock) -> "&ip->i_lock"(rrwlock) first seen at:
>> #0  witness_checkorder+0x4c0
>> #1  _rw_enter+0x68
>> #2  _rrw_enter+0x3e
>> #3  VOP_LOCK+0x3d
>> #4  vn_lock+0x34
>> #5  uvn_io+0x1b8
>> #6  uvm_pager_put+0x109
>> #7  uvn_flush+0x424
>> #8  uvm_map_clean+0x3e7
>> #9  syscall+0x32a
>> #10 Xsyscall_untramp+0xe4
>>
>> Is this to be expected or is there a problem here?
>>
>> If there are any other tests that will be helpful please let me know.
>>
>> Thanks very much,
>>
>> Vijay
>>
>>
>> Vijay Sankar, M.Eng., P.Eng.
>> ForeTell Technologies Limited
>> [hidden email]
>>
>
>
> --
> jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

I will do the tests again on a set of clean machines with a newer  
-current. I am also wondering if testing with bsd.sp instead of bsd.mp  
is a valid approach.

This is what I have done so far:

My test set up is using a VM guest as the DC and the VM host server as  
a member server. So may be that was not a good idea to begin with.

I verified that there were no errors with Samba 4.8.2 (tested by doing  
a pkg_add -r for ldb 1.3.3 and samba 4.8.2 on the server that had ldb  
1.3.4 and samba 4.8.3). Lock order reversal messages show up only with  
4.8.3 and they show up whether I use the default smb.conf or the  
smb.conf for being a member server in a DC.

The problems I noticed went away when I did the following:

Shutdown Samba on both the member server and the DC.

On the DC, I did

samba483dc# rdate -nv pool.ntp.org
Tue Jul 10 05:36:24 CDT 2018
rdate: adjust local clock by 19432.934504 seconds
samba483dc# date
Tue Jul 10 05:36:25 CDT 2018

Restarted samba_ad_dc on the DC and then restarted samba on the member  
server. I did not get the lock order reversal message this time. If I  
have samba in /etc/rc.conf.local pkg_scripts on the VM host, then the  
lock order reversal shows up in dmesg and in /var/log/messages.

So I installed samba 4.8.3 on a different box (desktop computer with  
gnome) thinking that the problem was due to my test setup.  
Unfortunately starting samba with the default smb.conf (not a domain  
member) resulted in the following:

error: [drm:pid48841:intel_pipe_update_start] *ERROR* Potential atomic  
update failure on pipe A
lock order reversal:
   1st 0xffffffff81df30b0 &sched_lock (&sched_lock) @  
/usr/src/sys/kern/kern_synch.c:444
   2nd 0xffff8000000ff9f0 &dev_priv->uncore.lock  
(&dev_priv->uncore.lock) @  
/usr/src/sys/dev/pci/drm/i915/intel_uncore.c:811
lock order "&dev_priv->uncore.lock"(mutex) ->  
"&sched_lock"(sched_lock) first seen at:
#0  witness_checkorder+0x4c0
#1  ___mp_lock+0x70
#2  schedclock+0x30
#3  hardclock+0xe3
#4  lapic_clockintr+0x3d
#5  Xresume_lapic_ltimer+0x22
#6  x86_bus_space_mem_read_4+0x14
#7  gen6_read32+0x184
#8  drm_update_vblank_count+0x65
#9  drm_handle_vblank+0xee
#10 ironlake_irq_handler+0x4e4
#11 intr_handler+0x74
#12 Xintr_ioapic_edge18_untramp+0x161
#13 ___mp_lock+0xca
#14 solock+0x50
#15 sosend+0x117
#16 sendit+0x3fb
#17 sys_sendmsg+0x15a
#18 syscall+0x32a
lock order "&sched_lock"(sched_lock) ->  
"&dev_priv->uncore.lock"(mutex) first seen at:
#0  witness_checkorder+0x4c0
#1  _mtx_enter+0x31
#2  gen6_read32+0x8f
#3  gen6_ring_get_seqno+0x3a
#4  __i915_wait_request+0x232
#5  i915_gem_object_wait_rendering__nonblocking+0x1d6
#6  i915_gem_set_domain_ioctl+0xdb
#7  drm_do_ioctl+0x221
#8  drmioctl+0xf9
#9  VOP_IOCTL+0x5a
#10 vn_ioctl+0x6b
#11 sys_ioctl+0x477
#12 syscall+0x32a
#13 Xsyscall_untramp+0xe4
lock order reversal:
   1st 0xffffffff81df30b0 &sched_lock (&sched_lock) @  
/usr/src/sys/kern/kern_synch.c:444
   2nd 0xffff800000106270 &dev_priv->irq_lock (&dev_priv->irq_lock) @  
/usr/src/sys/dev/pci/drm/i915/intel_ringbuffer.c:1787
lock order "&dev_priv->irq_lock"(mutex) -> "&sched_lock"(sched_lock)  
first seen at:
#0  witness_checkorder+0x4c0
#1  ___mp_lock+0x70
#2  wakeup_n+0x39
#3  task_add+0x93
#4  gen6_rps_boost+0x129
#5  __i915_wait_request+0x155
#6  i915_gem_object_wait_rendering__nonblocking+0x1d6
#7  i915_gem_set_domain_ioctl+0xdb
#8  drm_do_ioctl+0x221
#9  drmioctl+0xf9
#10 VOP_IOCTL+0x5a
#11 vn_ioctl+0x6b
#12 sys_ioctl+0x477
#13 syscall+0x32a
#14 Xsyscall_untramp+0xe4
lock order "&sched_lock"(sched_lock) -> "&dev_priv->irq_lock"(mutex)  
first seen at:
#0  witness_checkorder+0x4c0
#1  _mtx_enter+0x31
#2  gen6_ring_put_irq+0x36
#3  __i915_wait_request+0x367
#4  i915_gem_object_wait_rendering__nonblocking+0x1d6
#5  i915_gem_set_domain_ioctl+0xdb
#6  drm_do_ioctl+0x221
#7  drmioctl+0xf9
#8  VOP_IOCTL+0x5a
#9  vn_ioctl+0x6b
#10 sys_ioctl+0x477
#11 syscall+0x32a
#12 Xsyscall_untramp+0xe4
lock order reversal:
   1st 0xffffff07059c4a00 vmmaplk (&map->lock) @  
/usr/src/sys/uvm/uvm_map.c:4433
   2nd 0xffffff070d217a30 inode (&ip->i_lock) @  
/usr/src/sys/ufs/ufs/ufs_vnops.c:1555
lock order "&ip->i_lock"(rrwlock) -> "&map->lock"(rwlock) first seen at:
#0  witness_checkorder+0x4c0
#1  _rw_enter+0x68
#2  vm_map_lock_ln+0xbc
#3  uvm_map+0x1a1
#4  km_alloc+0x16a
#5  pool_multi_alloc_ni+0xbb
#6  pool_p_alloc+0x56
#7  pool_do_get+0xe4
#8  pool_get+0xaf
#9  ufsdirhash_build+0x31e
#10 ufs_lookup+0x19d
#11 VOP_LOOKUP+0x4f
#12 vfs_lookup+0x27e
#13 namei+0x226
#14 start_init+0xb2
lock order "&map->lock"(rwlock) -> "&ip->i_lock"(rrwlock) first seen at:
#0  witness_checkorder+0x4c0
#1  _rw_enter+0x68
#2  _rrw_enter+0x3e
#3  VOP_LOCK+0x3d
#4  vn_lock+0x34
#5  uvn_io+0x1b8
#6  uvm_pager_put+0x109
#7  uvn_flush+0x424
#8  uvm_map_clean+0x3e7
#9  syscall+0x32a
#10 Xsyscall_untramp+0xe4

Did a pkg_add -r samba-4.8.2 and ldb-1.3.3; restarted the desktop and  
verified there are no lock reversal messages

Vijay

Vijay Sankar, M.Eng., P.Eng.
ForeTell Technologies Limited
[hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: [update] samba-4.8.3

Jeremie Courreges-Anglas-2
On Tue, Jul 10 2018, Vijay Sankar <[hidden email]> wrote:
> Quoting Jeremie Courreges-Anglas <[hidden email]>:
>
>> On Tue, Jul 10 2018, Ian McWilliam <[hidden email]> wrote:
>>> Ouch, that's a new lock order problem. The one I encountered with
>>> 4.8.2 was with the vfs/acl_tdb module.
>>
>> They are not the same thing: you hit a locking problem in samba code,
>> the log from Vijay shows a lock ordering problem in the OpenBSD kernel.

[...]

>>> 2) When samba 4.8.3 starts, the following is logged
>>>
>>> lock order reversal:
>>> 1st 0xffffff07811695c0 vmmaplk (&map->lock) @
>>> /usr/src/sys/uvm/uvm_map.c:4433
>>> 2nd 0xffffff087c37bf80 inode (&ip->i_lock) @
>>> /usr/src/sys/ufs/ufs/ufs_vnops.c:1555
>>> lock order "&ip->i_lock"(rrwlock) -> "&map->lock"(rwlock) first seen at:
>>> #0  witness_checkorder+0x4c0
>>> #1  _rw_enter_read+0x49
>>> #2  uvmfault_lookup+0x8d
>>> #3  uvm_fault+0x72
>>> #4  pageflttrap+0x14c
>>> #5  trap+0x319
>>> #6  alltraps_kern+0x7e
>>> #7  copyout+0x48
>>> #8  ffs_read+0x1f0
>>> #9  VOP_READ+0x49
>>> #10 vn_read+0xca
>>> #11 dofilereadv+0x216
>>> #12 sys_read+0x82
>>> #13 syscall+0x32a
>>> #14 Xsyscall_untramp+0xe4
>>> lock order "&map->lock"(rwlock) -> "&ip->i_lock"(rrwlock) first seen at:
>>> #0  witness_checkorder+0x4c0
>>> #1  _rw_enter+0x68
>>> #2  _rrw_enter+0x3e
>>> #3  VOP_LOCK+0x3d
>>> #4  vn_lock+0x34
>>> #5  uvn_io+0x1b8
>>> #6  uvm_pager_put+0x109
>>> #7  uvn_flush+0x424
>>> #8  uvm_map_clean+0x3e7
>>> #9  syscall+0x32a
>>> #10 Xsyscall_untramp+0xe4
>>>
>>> Is this to be expected or is there a problem here?
>>>
>>> If there are any other tests that will be helpful please let me know.
>>>
>>> Thanks very much,
>>>
>>> Vijay
>>>
>>>
>>> Vijay Sankar, M.Eng., P.Eng.
>>> ForeTell Technologies Limited
>>> [hidden email]
>>>
>>
>>
>> --
>> jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE
>
> I will do the tests again on a set of clean machines with
> a newer  -current. I am also wondering if testing with bsd.sp instead of
> bsd.mp  is a valid approach.

I'm not sure that using bsd.sp would avoid those log entries, but that's
not the point: those witness(4) traces are here to help kernel
developers track down lock ordering issues.  Please try a fresh -current
and if that message appears again please report it on bugs@.

Those witness(4) traces may point out a problem that could affect samba,
but they don't *look* samba-specific to me.  There's a good chance that
samba will keep working correctly, whether those warnings appear or not.

btw,

[...]

> So I installed samba 4.8.3 on a different box (desktop computer with
> gnome) thinking that the problem was due to my test setup.
> Unfortunately starting samba with the default smb.conf (not a domain
> member) resulted in the following:
>
> error: [drm:pid48841:intel_pipe_update_start] *ERROR* Potential atomic
> update failure on pipe A
> lock order reversal:
>   1st 0xffffffff81df30b0 &sched_lock (&sched_lock) @
> /usr/src/sys/kern/kern_synch.c:444
>   2nd 0xffff8000000ff9f0 &dev_priv->uncore.lock
> (&dev_priv->uncore.lock) @
> /usr/src/sys/dev/pci/drm/i915/intel_uncore.c:811
> lock order "&dev_priv->uncore.lock"(mutex) ->  "&sched_lock"(sched_lock)
> first seen at:
> #0  witness_checkorder+0x4c0
> #1  ___mp_lock+0x70
> #2  schedclock+0x30
> #3  hardclock+0xe3
> #4  lapic_clockintr+0x3d
> #5  Xresume_lapic_ltimer+0x22
> #6  x86_bus_space_mem_read_4+0x14
> #7  gen6_read32+0x184
> #8  drm_update_vblank_count+0x65
> #9  drm_handle_vblank+0xee
> #10 ironlake_irq_handler+0x4e4
> #11 intr_handler+0x74
> #12 Xintr_ioapic_edge18_untramp+0x161
> #13 ___mp_lock+0xca
> #14 solock+0x50
> #15 sosend+0x117
> #16 sendit+0x3fb
> #17 sys_sendmsg+0x15a
> #18 syscall+0x32a
> lock order "&sched_lock"(sched_lock) ->  "&dev_priv->uncore.lock"(mutex)
> first seen at:
> #0  witness_checkorder+0x4c0
> #1  _mtx_enter+0x31
> #2  gen6_read32+0x8f
> #3  gen6_ring_get_seqno+0x3a
> #4  __i915_wait_request+0x232
> #5  i915_gem_object_wait_rendering__nonblocking+0x1d6
> #6  i915_gem_set_domain_ioctl+0xdb
> #7  drm_do_ioctl+0x221
> #8  drmioctl+0xf9
> #9  VOP_IOCTL+0x5a
> #10 vn_ioctl+0x6b
> #11 sys_ioctl+0x477
> #12 syscall+0x32a
> #13 Xsyscall_untramp+0xe4
> lock order reversal:
>   1st 0xffffffff81df30b0 &sched_lock (&sched_lock) @
> /usr/src/sys/kern/kern_synch.c:444
>   2nd 0xffff800000106270 &dev_priv->irq_lock (&dev_priv->irq_lock) @
> /usr/src/sys/dev/pci/drm/i915/intel_ringbuffer.c:1787
> lock order "&dev_priv->irq_lock"(mutex) -> "&sched_lock"(sched_lock)
> first seen at:
> #0  witness_checkorder+0x4c0
> #1  ___mp_lock+0x70
> #2  wakeup_n+0x39
> #3  task_add+0x93
> #4  gen6_rps_boost+0x129
> #5  __i915_wait_request+0x155
> #6  i915_gem_object_wait_rendering__nonblocking+0x1d6
> #7  i915_gem_set_domain_ioctl+0xdb
> #8  drm_do_ioctl+0x221
> #9  drmioctl+0xf9
> #10 VOP_IOCTL+0x5a
> #11 vn_ioctl+0x6b
> #12 sys_ioctl+0x477
> #13 syscall+0x32a
> #14 Xsyscall_untramp+0xe4
> lock order "&sched_lock"(sched_lock) -> "&dev_priv->irq_lock"(mutex)
> first seen at:
> #0  witness_checkorder+0x4c0
> #1  _mtx_enter+0x31
> #2  gen6_ring_put_irq+0x36
> #3  __i915_wait_request+0x367
> #4  i915_gem_object_wait_rendering__nonblocking+0x1d6
> #5  i915_gem_set_domain_ioctl+0xdb
> #6  drm_do_ioctl+0x221
> #7  drmioctl+0xf9
> #8  VOP_IOCTL+0x5a
> #9  vn_ioctl+0x6b
> #10 sys_ioctl+0x477
> #11 syscall+0x32a
> #12 Xsyscall_untramp+0xe4

Those two traces don't look samba-related at all, and should be
reported. ;)

> lock order reversal:
>   1st 0xffffff07059c4a00 vmmaplk (&map->lock) @
> /usr/src/sys/uvm/uvm_map.c:4433
>   2nd 0xffffff070d217a30 inode (&ip->i_lock) @
> /usr/src/sys/ufs/ufs/ufs_vnops.c:1555
> lock order "&ip->i_lock"(rrwlock) -> "&map->lock"(rwlock) first seen at:
> #0  witness_checkorder+0x4c0
> #1  _rw_enter+0x68
> #2  vm_map_lock_ln+0xbc
> #3  uvm_map+0x1a1
> #4  km_alloc+0x16a
> #5  pool_multi_alloc_ni+0xbb
> #6  pool_p_alloc+0x56
> #7  pool_do_get+0xe4
> #8  pool_get+0xaf
> #9  ufsdirhash_build+0x31e
> #10 ufs_lookup+0x19d
> #11 VOP_LOOKUP+0x4f
> #12 vfs_lookup+0x27e
> #13 namei+0x226
> #14 start_init+0xb2
> lock order "&map->lock"(rwlock) -> "&ip->i_lock"(rrwlock) first seen at:
> #0  witness_checkorder+0x4c0
> #1  _rw_enter+0x68
> #2  _rrw_enter+0x3e
> #3  VOP_LOCK+0x3d
> #4  vn_lock+0x34
> #5  uvn_io+0x1b8
> #6  uvm_pager_put+0x109
> #7  uvn_flush+0x424
> #8  uvm_map_clean+0x3e7
> #9  syscall+0x32a
> #10 Xsyscall_untramp+0xe4
>
> Did a pkg_add -r samba-4.8.2 and ldb-1.3.3; restarted the desktop and
> verified there are no lock reversal messages

I would of course prefer that you keep on testing with the latest 4.8.3
samba package. ;)

--
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply | Threaded
Open this post in threaded view
|

Re: [update] samba-4.8.3

Vijay Sankar

Quoting Jeremie Courreges-Anglas <[hidden email]>:

> On Tue, Jul 10 2018, Vijay Sankar <[hidden email]> wrote:
>> Quoting Jeremie Courreges-Anglas <[hidden email]>:
>>
>>> On Tue, Jul 10 2018, Ian McWilliam  
>>> <[hidden email]> wrote:
>>>> Ouch, that's a new lock order problem. The one I encountered with
>>>> 4.8.2 was with the vfs/acl_tdb module.
>>>
>>> They are not the same thing: you hit a locking problem in samba code,
>>> the log from Vijay shows a lock ordering problem in the OpenBSD kernel.
>
> [...]
>
>>>> 2) When samba 4.8.3 starts, the following is logged
>>>>
>>>> lock order reversal:
>>>> 1st 0xffffff07811695c0 vmmaplk (&map->lock) @
>>>> /usr/src/sys/uvm/uvm_map.c:4433
>>>> 2nd 0xffffff087c37bf80 inode (&ip->i_lock) @
>>>> /usr/src/sys/ufs/ufs/ufs_vnops.c:1555
>>>> lock order "&ip->i_lock"(rrwlock) -> "&map->lock"(rwlock) first seen at:
>>>> #0  witness_checkorder+0x4c0
>>>> #1  _rw_enter_read+0x49
>>>> #2  uvmfault_lookup+0x8d
>>>> #3  uvm_fault+0x72
>>>> #4  pageflttrap+0x14c
>>>> #5  trap+0x319
>>>> #6  alltraps_kern+0x7e
>>>> #7  copyout+0x48
>>>> #8  ffs_read+0x1f0
>>>> #9  VOP_READ+0x49
>>>> #10 vn_read+0xca
>>>> #11 dofilereadv+0x216
>>>> #12 sys_read+0x82
>>>> #13 syscall+0x32a
>>>> #14 Xsyscall_untramp+0xe4
>>>> lock order "&map->lock"(rwlock) -> "&ip->i_lock"(rrwlock) first seen at:
>>>> #0  witness_checkorder+0x4c0
>>>> #1  _rw_enter+0x68
>>>> #2  _rrw_enter+0x3e
>>>> #3  VOP_LOCK+0x3d
>>>> #4  vn_lock+0x34
>>>> #5  uvn_io+0x1b8
>>>> #6  uvm_pager_put+0x109
>>>> #7  uvn_flush+0x424
>>>> #8  uvm_map_clean+0x3e7
>>>> #9  syscall+0x32a
>>>> #10 Xsyscall_untramp+0xe4
>>>>
>>>> Is this to be expected or is there a problem here?
>>>>
>>>> If there are any other tests that will be helpful please let me know.
>>>>
>>>> Thanks very much,
>>>>
>>>> Vijay
>>>>
>>>>
>>>> Vijay Sankar, M.Eng., P.Eng.
>>>> ForeTell Technologies Limited
>>>> [hidden email]
>>>>
>>>
>>>
>>> --
>>> jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE
>>
>> I will do the tests again on a set of clean machines with
>> a newer  -current. I am also wondering if testing with bsd.sp instead of
>> bsd.mp  is a valid approach.
>
> I'm not sure that using bsd.sp would avoid those log entries, but that's
> not the point: those witness(4) traces are here to help kernel
> developers track down lock ordering issues.  Please try a fresh -current
> and if that message appears again please report it on bugs@.
>
> Those witness(4) traces may point out a problem that could affect samba,
> but they don't *look* samba-specific to me.  There's a good chance that
> samba will keep working correctly, whether those warnings appear or not.
>
> btw,
>
> [...]
>
>> So I installed samba 4.8.3 on a different box (desktop computer with
>> gnome) thinking that the problem was due to my test setup.
>> Unfortunately starting samba with the default smb.conf (not a domain
>> member) resulted in the following:
>>
>> error: [drm:pid48841:intel_pipe_update_start] *ERROR* Potential atomic
>> update failure on pipe A
>> lock order reversal:
>>   1st 0xffffffff81df30b0 &sched_lock (&sched_lock) @
>> /usr/src/sys/kern/kern_synch.c:444
>>   2nd 0xffff8000000ff9f0 &dev_priv->uncore.lock
>> (&dev_priv->uncore.lock) @
>> /usr/src/sys/dev/pci/drm/i915/intel_uncore.c:811
>> lock order "&dev_priv->uncore.lock"(mutex) ->  "&sched_lock"(sched_lock)
>> first seen at:
>> #0  witness_checkorder+0x4c0
>> #1  ___mp_lock+0x70
>> #2  schedclock+0x30
>> #3  hardclock+0xe3
>> #4  lapic_clockintr+0x3d
>> #5  Xresume_lapic_ltimer+0x22
>> #6  x86_bus_space_mem_read_4+0x14
>> #7  gen6_read32+0x184
>> #8  drm_update_vblank_count+0x65
>> #9  drm_handle_vblank+0xee
>> #10 ironlake_irq_handler+0x4e4
>> #11 intr_handler+0x74
>> #12 Xintr_ioapic_edge18_untramp+0x161
>> #13 ___mp_lock+0xca
>> #14 solock+0x50
>> #15 sosend+0x117
>> #16 sendit+0x3fb
>> #17 sys_sendmsg+0x15a
>> #18 syscall+0x32a
>> lock order "&sched_lock"(sched_lock) ->  "&dev_priv->uncore.lock"(mutex)
>> first seen at:
>> #0  witness_checkorder+0x4c0
>> #1  _mtx_enter+0x31
>> #2  gen6_read32+0x8f
>> #3  gen6_ring_get_seqno+0x3a
>> #4  __i915_wait_request+0x232
>> #5  i915_gem_object_wait_rendering__nonblocking+0x1d6
>> #6  i915_gem_set_domain_ioctl+0xdb
>> #7  drm_do_ioctl+0x221
>> #8  drmioctl+0xf9
>> #9  VOP_IOCTL+0x5a
>> #10 vn_ioctl+0x6b
>> #11 sys_ioctl+0x477
>> #12 syscall+0x32a
>> #13 Xsyscall_untramp+0xe4
>> lock order reversal:
>>   1st 0xffffffff81df30b0 &sched_lock (&sched_lock) @
>> /usr/src/sys/kern/kern_synch.c:444
>>   2nd 0xffff800000106270 &dev_priv->irq_lock (&dev_priv->irq_lock) @
>> /usr/src/sys/dev/pci/drm/i915/intel_ringbuffer.c:1787
>> lock order "&dev_priv->irq_lock"(mutex) -> "&sched_lock"(sched_lock)
>> first seen at:
>> #0  witness_checkorder+0x4c0
>> #1  ___mp_lock+0x70
>> #2  wakeup_n+0x39
>> #3  task_add+0x93
>> #4  gen6_rps_boost+0x129
>> #5  __i915_wait_request+0x155
>> #6  i915_gem_object_wait_rendering__nonblocking+0x1d6
>> #7  i915_gem_set_domain_ioctl+0xdb
>> #8  drm_do_ioctl+0x221
>> #9  drmioctl+0xf9
>> #10 VOP_IOCTL+0x5a
>> #11 vn_ioctl+0x6b
>> #12 sys_ioctl+0x477
>> #13 syscall+0x32a
>> #14 Xsyscall_untramp+0xe4
>> lock order "&sched_lock"(sched_lock) -> "&dev_priv->irq_lock"(mutex)
>> first seen at:
>> #0  witness_checkorder+0x4c0
>> #1  _mtx_enter+0x31
>> #2  gen6_ring_put_irq+0x36
>> #3  __i915_wait_request+0x367
>> #4  i915_gem_object_wait_rendering__nonblocking+0x1d6
>> #5  i915_gem_set_domain_ioctl+0xdb
>> #6  drm_do_ioctl+0x221
>> #7  drmioctl+0xf9
>> #8  VOP_IOCTL+0x5a
>> #9  vn_ioctl+0x6b
>> #10 sys_ioctl+0x477
>> #11 syscall+0x32a
>> #12 Xsyscall_untramp+0xe4
>
> Those two traces don't look samba-related at all, and should be
> reported. ;)
>
>> lock order reversal:
>>   1st 0xffffff07059c4a00 vmmaplk (&map->lock) @
>> /usr/src/sys/uvm/uvm_map.c:4433
>>   2nd 0xffffff070d217a30 inode (&ip->i_lock) @
>> /usr/src/sys/ufs/ufs/ufs_vnops.c:1555
>> lock order "&ip->i_lock"(rrwlock) -> "&map->lock"(rwlock) first seen at:
>> #0  witness_checkorder+0x4c0
>> #1  _rw_enter+0x68
>> #2  vm_map_lock_ln+0xbc
>> #3  uvm_map+0x1a1
>> #4  km_alloc+0x16a
>> #5  pool_multi_alloc_ni+0xbb
>> #6  pool_p_alloc+0x56
>> #7  pool_do_get+0xe4
>> #8  pool_get+0xaf
>> #9  ufsdirhash_build+0x31e
>> #10 ufs_lookup+0x19d
>> #11 VOP_LOOKUP+0x4f
>> #12 vfs_lookup+0x27e
>> #13 namei+0x226
>> #14 start_init+0xb2
>> lock order "&map->lock"(rwlock) -> "&ip->i_lock"(rrwlock) first seen at:
>> #0  witness_checkorder+0x4c0
>> #1  _rw_enter+0x68
>> #2  _rrw_enter+0x3e
>> #3  VOP_LOCK+0x3d
>> #4  vn_lock+0x34
>> #5  uvn_io+0x1b8
>> #6  uvm_pager_put+0x109
>> #7  uvn_flush+0x424
>> #8  uvm_map_clean+0x3e7
>> #9  syscall+0x32a
>> #10 Xsyscall_untramp+0xe4
>>
>> Did a pkg_add -r samba-4.8.2 and ldb-1.3.3; restarted the desktop and
>> verified there are no lock reversal messages
>
> I would of course prefer that you keep on testing with the latest 4.8.3
> samba package. ;)
>
> --
> jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Thanks very much for the detailed reply. I am going to start with the  
assumption that I have made some mistake in how I upgraded snapshots  
or set up the VMs. Will install the latest -current and ports on two  
new sets of drives, make samba-4.8.3, and then test without any  
dependence on VMs etc.

Vijay



Vijay Sankar, M.Eng., P.Eng.
ForeTell Technologies Limited
[hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: [update] samba-4.8.3

Jeremie Courreges-Anglas-2
In reply to this post by Jeremie Courreges-Anglas-2
On Mon, Jul 09 2018, Jeremie Courreges-Anglas <[hidden email]> wrote:
> Bugfix release: https://www.samba.org/samba/history/samba-4.8.3.html
>
> I don't see any change in vfs_virusfilter, which was new (and apparently
> broken) in 4.8.2.
>
> Test reports welcome!

The diff should still apply to -current.  Vijay, did you spot any issue
(besides the witness(4) logs) during your tests?  Any other test
reports? :)

--
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply | Threaded
Open this post in threaded view
|

Re: [update] samba-4.8.3

Vijay Sankar

Quoting Jeremie Courreges-Anglas <[hidden email]>:

> On Mon, Jul 09 2018, Jeremie Courreges-Anglas <[hidden email]> wrote:
>> Bugfix release: https://www.samba.org/samba/history/samba-4.8.3.html
>>
>> I don't see any change in vfs_virusfilter, which was new (and apparently
>> broken) in 4.8.2.
>>
>> Test reports welcome!
>
> The diff should still apply to -current.  Vijay, did you spot any issue
> (besides the witness(4) logs) during your tests?  Any other test
> reports? :)
>
> --
> jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

I am very sorry, I should have reported this earlier.

4.8.3 is running quite well with TWO DCs and ONE Member Server.  
samba-tool drs showrepl does not show any errors and windbindd on DCs  
is working great. Member server as well as one Windows 10 and one  
Windows 7 domain member authenticates etc., without any problems.  
Built-in GPOs can be edited. New GPO's cannot be created because I am  
using FFS without any ACLs etc.,

There were no errors when I was using VMs (qemu). VMs on VMM did not  
work because I don't know how to get around the time sync issue. So I  
tried setting up the DC's on a Varia pcengines appliance (the one with  
two motherboards in one case) and those also work fine (witness logs  
still show up on pcengines similar to my initial amd64 desktop). dmesg  
below from pcengines box

OpenBSD 6.3-current (SAMBATEST) #5: Fri Jun 22 17:12:09 CDT 2018
     [hidden email]:/usr/src/sys/arch/amd64/compile/SAMBATEST
real mem = 1996152832 (1903MB)
avail mem = 1905065984 (1816MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0x77fb7020 (7 entries)
bios0: vendor coreboot version "4.0.7" date 02/28/2017
bios0: PC Engines APU2
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S2 S3 S4 S5
acpi0: tables DSDT FACP SSDT APIC HEST SSDT SSDT HPET
acpi0: wakeup devices PWRB(S4) PBR4(S4) PBR5(S4) PBR6(S4) PBR7(S4)  
PBR8(S4) UOH1(S3) UOH3(S3) UOH5(S3) XHC0(S4)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD GX-412TC SOC, 998.26 MHz
cpu0:  
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,DBKP,PERFTSC,PCTRL3,ITSC,BMI1,XSAVEOPT
cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB  
64b/line 16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD GX-412TC SOC, 998.13 MHz
cpu1:  
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,DBKP,PERFTSC,PCTRL3,ITSC,BMI1,XSAVEOPT
cpu1: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB  
64b/line 16-way L2 cache
cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu1: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 2 (application processor)
cpu2: AMD GX-412TC SOC, 998.14 MHz
cpu2:  
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,DBKP,PERFTSC,PCTRL3,ITSC,BMI1,XSAVEOPT
cpu2: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB  
64b/line 16-way L2 cache
cpu2: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu2: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: AMD GX-412TC SOC, 998.13 MHz
cpu3:  
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,DBKP,PERFTSC,PCTRL3,ITSC,BMI1,XSAVEOPT
cpu3: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB  
64b/line 16-way L2 cache
cpu3: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu3: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu3: smt 0, core 3, package 0
ioapic0 at mainbus0: apid 4 pa 0xfec00000, version 21, 24 pins
ioapic1 at mainbus0: apid 5 pa 0xfec20000, version 21, 32 pins
, remapped to apid 5
acpihpet0 at acpi0: 14318180 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PBR4)
acpiprt2 at acpi0: bus 1 (PBR5)
acpiprt3 at acpi0: bus 2 (PBR6)
acpiprt4 at acpi0: bus 3 (PBR7)
acpiprt5 at acpi0: bus -1 (PBR8)
acpicpu0 at acpi0: C2(0@400 io@0x1771), C1(@1 halt!), PSS
acpicpu1 at acpi0: C2(0@400 io@0x1771), C1(@1 halt!), PSS
acpicpu2 at acpi0: C2(0@400 io@0x1771), C1(@1 halt!), PSS
acpicpu3 at acpi0: C2(0@400 io@0x1771), C1(@1 halt!), PSS
acpibtn0 at acpi0: PWRB
acpicmos0 at acpi0
cpu0: 998 MHz: speeds: 1000 800 600 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "AMD AMD64 16h Root Complex" rev 0x00
pchb1 at pci0 dev 2 function 0 "AMD AMD64 16h Host" rev 0x00
ppb0 at pci0 dev 2 function 2 "AMD AMD64 16h PCIE" rev 0x00: msi
pci1 at ppb0 bus 1
em0 at pci1 dev 0 function 0 "Intel I211" rev 0x03: msi, address  
00:0d:b9:4c:14:fc
ppb1 at pci0 dev 2 function 3 "AMD AMD64 16h PCIE" rev 0x00: msi
pci2 at ppb1 bus 2
em1 at pci2 dev 0 function 0 "Intel I211" rev 0x03: msi, address  
00:0d:b9:4c:14:fd
ppb2 at pci0 dev 2 function 4 "AMD AMD64 16h PCIE" rev 0x00: msi
pci3 at ppb2 bus 3
em2 at pci3 dev 0 function 0 "Intel I211" rev 0x03: msi, address  
00:0d:b9:4c:14:fe
ccp0 at pci0 dev 8 function 0 "AMD Cryptographic Co-processor v3" rev 0x00
xhci0 at pci0 dev 16 function 0 "AMD Bolton xHCI" rev 0x11: msi, xHCI 1.0
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "AMD xHCI root hub" rev  
3.00/1.00 addr 1
ahci0 at pci0 dev 17 function 0 "AMD Hudson-2 SATA" rev 0x40: apic 4  
int 19, AHCI 1.3
ahci0: port 0: 6.0Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, Samsung SSD 860, RVT4> SCSI3  
0/direct fixed naa.5002538e403ccc1f
sd0: 238475MB, 512 bytes/sector, 488397168 sectors, thin
ehci0 at pci0 dev 19 function 0 "AMD Hudson-2 USB2" rev 0x39: apic 4 int 18
usb1 at ehci0: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "AMD EHCI root hub" rev  
2.00/1.00 addr 1
piixpm0 at pci0 dev 20 function 0 "AMD Hudson-2 SMBus" rev 0x42: SMBus  
disabled
pcib0 at pci0 dev 20 function 3 "AMD Hudson-2 LPC" rev 0x11
sdhc0 at pci0 dev 20 function 7 "AMD Bolton SD/MMC" rev 0x01: apic 4 int 16
sdhc0: SDHC 2.0, 50 MHz base clock
sdmmc0 at sdhc0: 4-bit, sd high-speed, mmc high-speed, dma
pchb2 at pci0 dev 24 function 0 "AMD AMD64 16h Link Cfg" rev 0x00
pchb3 at pci0 dev 24 function 1 "AMD AMD64 16h Address Map" rev 0x00
pchb4 at pci0 dev 24 function 2 "AMD AMD64 16h DRAM Cfg" rev 0x00
km0 at pci0 dev 24 function 3 "AMD AMD64 16h Misc Cfg" rev 0x00
pchb5 at pci0 dev 24 function 4 "AMD AMD64 16h CPU Power" rev 0x00
pchb6 at pci0 dev 24 function 5 "AMD AMD64 16h Misc Cfg" rev 0x00
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
wbsio0 at isa0 port 0x2e/2: NCT5104D rev 0x53
vmm0 at mainbus0: SVM/RVI
uhub2 at uhub1 port 1 configuration 1 interface 0 "Advanced Micro  
Devices product 0x7900" rev 2.00/0.18 addr 2
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on sd0a (aca9133cc30adb49.a) swap on sd0b dump on sd0b
Process (pid 1) got signal 31
lock order reversal:
  1st 0xffffff0065e2da08 vmmaplk (&map->lock) @ /usr/src/sys/uvm/uvm_map.c:4433
  2nd 0xffffff0075fdd808 inode (&ip->i_lock) @  
/usr/src/sys/ufs/ufs/ufs_vnops.c:1555
lock order "&ip->i_lock"(rrwlock) -> "&map->lock"(rwlock) first seen at:
#0  witness_checkorder+0x4c0
#1  _rw_enter+0x68
#2  vm_map_lock_ln+0xbc
#3  uvm_map+0x1a1
#4  km_alloc+0x16a
#5  pool_multi_alloc_ni+0xbb
#6  pool_p_alloc+0x56
#7  pool_do_get+0xe4
#8  pool_get+0xaf
#9  ufsdirhash_build+0x31e
#10 ufs_lookup+0x19d
#11 VOP_LOOKUP+0x4f
#12 vfs_lookup+0x27e
#13 namei+0x226
#14 start_init+0xb2
lock order "&map->lock"(rwlock) -> "&ip->i_lock"(rrwlock) first seen at:
#0  witness_checkorder+0x4c0
#1  _rw_enter+0x68
#2  _rrw_enter+0x3e
#3  VOP_LOCK+0x3d
#4  vn_lock+0x34
#5  uvn_io+0x1b8
#6  uvm_pager_put+0x109
#7  uvn_flush+0x424
#8  uvm_map_clean+0x3e7
#9  syscall+0x32a
#10 Xsyscall_untramp+0xe4

Vijay


Vijay Sankar, M.Eng., P.Eng.
ForeTell Technologies Limited
[hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: [update] samba-4.8.3

Ian Mcwilliam-6
I do see this weirdness in logs.


Aug  2 09:47:31 ianm-openbsd nmbd[23825]:   daemon_ready: STATUS=daemon 'nmbd' finished starting up and ready to serve connections

Aug  2 09:47:36 ianm-openbsd smbd: vfprintf %s NULL in "Auth: [%s,%s] user [%s]\\[%s] at [%s] with [%s] status [%s] workstation [%s] remote host [%s]%s local host [%s] %s "

Aug  2 09:47:49 ianm-openbsd smbd: vfprintf %s NULL in "sys_get_%s_quota() failed for mntpath[%s] bdev[%s] qtype[%d] id[%d]: %s "


Other than that and not having time to look at the virus-filter stuff. My use case is running fine.



Ian McWilliam


________________________________
From: [hidden email] <[hidden email]> on behalf of Vijay Sankar <[hidden email]>
Sent: Thursday, 2 August 2018 4:15 AM
To: Jeremie Courreges-Anglas
Cc: ports; Ian McWilliam
Subject: Re: [update] samba-4.8.3


Quoting Jeremie Courreges-Anglas <[hidden email]>:

> On Mon, Jul 09 2018, Jeremie Courreges-Anglas <[hidden email]> wrote:
>> Bugfix release: https://www.samba.org/samba/history/samba-4.8.3.html
Samba 4.8.3 - Release Notes<https://www.samba.org/samba/history/samba-4.8.3.html>
www.samba.org
Samba 4.8.3 Available for Download. Samba 4.8.3 (gzipped) Signature. Patch (gzipped) against Samba 4.8.2 Signature ===== Release Notes for Samba 4.8.3 June 26, 2018 ===== This is the latest stable release of the Samba 4.8 release series.



>>
>> I don't see any change in vfs_virusfilter, which was new (and apparently
>> broken) in 4.8.2.
>>
>> Test reports welcome!
>
> The diff should still apply to -current.  Vijay, did you spot any issue
> (besides the witness(4) logs) during your tests?  Any other test
> reports? :)
>
> --
> jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

I am very sorry, I should have reported this earlier.

4.8.3 is running quite well with TWO DCs and ONE Member Server.
samba-tool drs showrepl does not show any errors and windbindd on DCs
is working great. Member server as well as one Windows 10 and one
Windows 7 domain member authenticates etc., without any problems.
Built-in GPOs can be edited. New GPO's cannot be created because I am
using FFS without any ACLs etc.,

There were no errors when I was using VMs (qemu). VMs on VMM did not
work because I don't know how to get around the time sync issue. So I
tried setting up the DC's on a Varia pcengines appliance (the one with
two motherboards in one case) and those also work fine (witness logs
still show up on pcengines similar to my initial amd64 desktop). dmesg
below from pcengines box

OpenBSD 6.3-current (SAMBATEST) #5: Fri Jun 22 17:12:09 CDT 2018
     [hidden email]:/usr/src/sys/arch/amd64/compile/SAMBATEST
real mem = 1996152832 (1903MB)
avail mem = 1905065984 (1816MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0x77fb7020 (7 entries)
bios0: vendor coreboot version "4.0.7" date 02/28/2017
bios0: PC Engines APU2
acpi0 at bios0: rev 2
acpi0: sleep states S0 S1 S2 S3 S4 S5
acpi0: tables DSDT FACP SSDT APIC HEST SSDT SSDT HPET
acpi0: wakeup devices PWRB(S4) PBR4(S4) PBR5(S4) PBR6(S4) PBR7(S4)
PBR8(S4) UOH1(S3) UOH3(S3) UOH5(S3) XHC0(S4)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD GX-412TC SOC, 998.26 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,DBKP,PERFTSC,PCTRL3,ITSC,BMI1,XSAVEOPT
cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB
64b/line 16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD GX-412TC SOC, 998.13 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,DBKP,PERFTSC,PCTRL3,ITSC,BMI1,XSAVEOPT
cpu1: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB
64b/line 16-way L2 cache
cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu1: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 2 (application processor)
cpu2: AMD GX-412TC SOC, 998.14 MHz
cpu2:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,DBKP,PERFTSC,PCTRL3,ITSC,BMI1,XSAVEOPT
cpu2: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB
64b/line 16-way L2 cache
cpu2: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu2: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: AMD GX-412TC SOC, 998.13 MHz
cpu3:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,DBKP,PERFTSC,PCTRL3,ITSC,BMI1,XSAVEOPT
cpu3: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB
64b/line 16-way L2 cache
cpu3: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu3: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu3: smt 0, core 3, package 0
ioapic0 at mainbus0: apid 4 pa 0xfec00000, version 21, 24 pins
ioapic1 at mainbus0: apid 5 pa 0xfec20000, version 21, 32 pins
, remapped to apid 5
acpihpet0 at acpi0: 14318180 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PBR4)
acpiprt2 at acpi0: bus 1 (PBR5)
acpiprt3 at acpi0: bus 2 (PBR6)
acpiprt4 at acpi0: bus 3 (PBR7)
acpiprt5 at acpi0: bus -1 (PBR8)
acpicpu0 at acpi0: C2(0@400 io@0x1771), C1(@1 halt!), PSS
acpicpu1 at acpi0: C2(0@400 io@0x1771), C1(@1 halt!), PSS
acpicpu2 at acpi0: C2(0@400 io@0x1771), C1(@1 halt!), PSS
acpicpu3 at acpi0: C2(0@400 io@0x1771), C1(@1 halt!), PSS
acpibtn0 at acpi0: PWRB
acpicmos0 at acpi0
cpu0: 998 MHz: speeds: 1000 800 600 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "AMD AMD64 16h Root Complex" rev 0x00
pchb1 at pci0 dev 2 function 0 "AMD AMD64 16h Host" rev 0x00
ppb0 at pci0 dev 2 function 2 "AMD AMD64 16h PCIE" rev 0x00: msi
pci1 at ppb0 bus 1
em0 at pci1 dev 0 function 0 "Intel I211" rev 0x03: msi, address
00:0d:b9:4c:14:fc
ppb1 at pci0 dev 2 function 3 "AMD AMD64 16h PCIE" rev 0x00: msi
pci2 at ppb1 bus 2
em1 at pci2 dev 0 function 0 "Intel I211" rev 0x03: msi, address
00:0d:b9:4c:14:fd
ppb2 at pci0 dev 2 function 4 "AMD AMD64 16h PCIE" rev 0x00: msi
pci3 at ppb2 bus 3
em2 at pci3 dev 0 function 0 "Intel I211" rev 0x03: msi, address
00:0d:b9:4c:14:fe
ccp0 at pci0 dev 8 function 0 "AMD Cryptographic Co-processor v3" rev 0x00
xhci0 at pci0 dev 16 function 0 "AMD Bolton xHCI" rev 0x11: msi, xHCI 1.0
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "AMD xHCI root hub" rev
3.00/1.00 addr 1
ahci0 at pci0 dev 17 function 0 "AMD Hudson-2 SATA" rev 0x40: apic 4
int 19, AHCI 1.3
ahci0: port 0: 6.0Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, Samsung SSD 860, RVT4> SCSI3
0/direct fixed naa.5002538e403ccc1f
sd0: 238475MB, 512 bytes/sector, 488397168 sectors, thin
ehci0 at pci0 dev 19 function 0 "AMD Hudson-2 USB2" rev 0x39: apic 4 int 18
usb1 at ehci0: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "AMD EHCI root hub" rev
2.00/1.00 addr 1
piixpm0 at pci0 dev 20 function 0 "AMD Hudson-2 SMBus" rev 0x42: SMBus
disabled
pcib0 at pci0 dev 20 function 3 "AMD Hudson-2 LPC" rev 0x11
sdhc0 at pci0 dev 20 function 7 "AMD Bolton SD/MMC" rev 0x01: apic 4 int 16
sdhc0: SDHC 2.0, 50 MHz base clock
sdmmc0 at sdhc0: 4-bit, sd high-speed, mmc high-speed, dma
pchb2 at pci0 dev 24 function 0 "AMD AMD64 16h Link Cfg" rev 0x00
pchb3 at pci0 dev 24 function 1 "AMD AMD64 16h Address Map" rev 0x00
pchb4 at pci0 dev 24 function 2 "AMD AMD64 16h DRAM Cfg" rev 0x00
km0 at pci0 dev 24 function 3 "AMD AMD64 16h Misc Cfg" rev 0x00
pchb5 at pci0 dev 24 function 4 "AMD AMD64 16h CPU Power" rev 0x00
pchb6 at pci0 dev 24 function 5 "AMD AMD64 16h Misc Cfg" rev 0x00
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
wbsio0 at isa0 port 0x2e/2: NCT5104D rev 0x53
vmm0 at mainbus0: SVM/RVI
uhub2 at uhub1 port 1 configuration 1 interface 0 "Advanced Micro
Devices product 0x7900" rev 2.00/0.18 addr 2
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on sd0a (aca9133cc30adb49.a) swap on sd0b dump on sd0b
Process (pid 1) got signal 31
lock order reversal:
  1st 0xffffff0065e2da08 vmmaplk (&map->lock) @ /usr/src/sys/uvm/uvm_map.c:4433
  2nd 0xffffff0075fdd808 inode (&ip->i_lock) @
/usr/src/sys/ufs/ufs/ufs_vnops.c:1555
lock order "&ip->i_lock"(rrwlock) -> "&map->lock"(rwlock) first seen at:
#0  witness_checkorder+0x4c0
#1  _rw_enter+0x68
#2  vm_map_lock_ln+0xbc
#3  uvm_map+0x1a1
#4  km_alloc+0x16a
#5  pool_multi_alloc_ni+0xbb
#6  pool_p_alloc+0x56
#7  pool_do_get+0xe4
#8  pool_get+0xaf
#9  ufsdirhash_build+0x31e
#10 ufs_lookup+0x19d
#11 VOP_LOOKUP+0x4f
#12 vfs_lookup+0x27e
#13 namei+0x226
#14 start_init+0xb2
lock order "&map->lock"(rwlock) -> "&ip->i_lock"(rrwlock) first seen at:
#0  witness_checkorder+0x4c0
#1  _rw_enter+0x68
#2  _rrw_enter+0x3e
#3  VOP_LOCK+0x3d
#4  vn_lock+0x34
#5  uvn_io+0x1b8
#6  uvm_pager_put+0x109
#7  uvn_flush+0x424
#8  uvm_map_clean+0x3e7
#9  syscall+0x32a
#10 Xsyscall_untramp+0xe4

Vijay


Vijay Sankar, M.Eng., P.Eng.
ForeTell Technologies Limited
[hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: [update] samba-4.8.3

Jeremie Courreges-Anglas-2
On Wed, Aug 01 2018, Ian McWilliam <[hidden email]> wrote:
> I do see this weirdness in logs.
>
>
> Aug  2 09:47:31 ianm-openbsd nmbd[23825]:   daemon_ready: STATUS=daemon 'nmbd' finished starting up and ready to serve connections
>
> Aug  2 09:47:36 ianm-openbsd smbd: vfprintf %s NULL in "Auth: [%s,%s] user [%s]\\[%s] at [%s] with [%s] status [%s] workstation [%s] remote host [%s]%s local host [%s] %s "

The behavior is the same on Linux, except that the glibc doesn't add
a warning to syslog in this case.  So that's low priority as far as I'm
concerned.

> Aug  2 09:47:49 ianm-openbsd smbd: vfprintf %s NULL in "sys_get_%s_quota() failed for mntpath[%s] bdev[%s] qtype[%d] id[%d]: %s "

I'll have a look.

> Other than that and not having time to look at the virus-filter stuff. My use case is running fine.

ack, thanks to both of you.  I have committed this update.

--
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE