From owner-freebsd-current@freebsd.org Wed Nov 18 04:01:11 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 19B76477CAB for ; Wed, 18 Nov 2020 04:01:11 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-qk1-x741.google.com (mail-qk1-x741.google.com [IPv6:2607:f8b0:4864:20::741]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CbTd22GXXz4bvp for ; Wed, 18 Nov 2020 04:01:10 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-qk1-x741.google.com with SMTP id 199so565641qkg.9 for ; Tue, 17 Nov 2020 20:01:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to; bh=MNgmM8aXYxMg/0ap0711N7ES7UQkKYCu9CAcPBUQ8SA=; b=euqlROl/TWfATocBkL54Hq5RXPGy6z6U9DFvIXHdPqFQHbHOCql+I7kWSOabZVOPFn KqVUaQ8Ivu5sZ5pFwqTPO2LSjijSMa88JkLEaaJv6ep8vYnXHSkQJQVBS3Mdd0nsspdu AMDQjwAlwikcReTqYlSKy+BtIKH668T8ws0oA2Sh5u9UeKK2XQZ8JtAGePCcnFfxrGpk EIYsBUJ5PM3uppONu4JzDfYuK9zJm+2g3o1g35G7TMsF7FVgEVBpLpXHQE8ryyeinlY5 Fvo0b0M4BZrLXwrwBaYw3xEiaLqpYjo0T0wrW6u3UFSscSaAx/TXMZp98tphaJFm+xOl zPxw== X-Gm-Message-State: AOAM533ve8nuQioZnj6lM+VS2vH4EuFqPObikpfxMODklRhyq6JXJZsD uUCiByoenlxdG6LH6s1viKg1iH79wXw= X-Google-Smtp-Source: ABdhPJzQ3S7YyhhiQUYzeUYvFXXe8rCxIa067n2h8QYBOVDORRe7v5R0jKqwgss7XyFiIxSen3Slkg== X-Received: by 2002:ae9:eb10:: with SMTP id b16mr3025984qkg.494.1605672069451; Tue, 17 Nov 2020 20:01:09 -0800 (PST) Received: from raichu ([142.126.164.150]) by smtp.gmail.com with ESMTPSA id o5sm15174420qtt.60.2020.11.17.20.01.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Nov 2020 20:01:08 -0800 (PST) Sender: Mark Johnston Date: Tue, 17 Nov 2020 23:01:06 -0500 From: Mark Johnston To: Konstantin Belousov Cc: Johan Hendriks , freebsd-current@freebsd.org Subject: Re: Samba kernel panics. Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Rspamd-Queue-Id: 4CbTd22GXXz4bvp X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.70 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FREEMAIL_TO(0.00)[gmail.com]; FORGED_SENDER(0.30)[markj@freebsd.org,markjdb@gmail.com]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[markj@freebsd.org,markjdb@gmail.com]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::741:from]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; DMARC_NA(0.00)[freebsd.org]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::741:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::741:from]; MID_RHS_NOT_FQDN(0.50)[]; FREEMAIL_CC(0.00)[gmail.com,freebsd.org]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-current] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Nov 2020 04:01:11 -0000 On Tue, Nov 17, 2020 at 08:19:12PM +0200, Konstantin Belousov wrote: > On Tue, Nov 17, 2020 at 06:20:31PM +0100, Johan Hendriks wrote: > > Hello all after updating FreeBSD13 from r367724 to r367755 my samba server > > craches the server. > > I did rebuild samba 4.11 but that does not help. > > > > The output on the console is the following. > > > > Fatal trap 12: page fault while in kernel mode > > cpuid =3; apic id = 06 > > fault virtual address    = 0x803a122b8 > > fault code                   = supervisor read instruction, protection > > violation > > instruction pointer      = 0x20:0x803a122b8 > > stack pointer               = 0x28:0xfffffe0127733a50 > > frame pointer              = 0x28:0x803a122b0 > > code segment             = base 0x0, limit 0xfffff, type 0x1b > >                                    = DPL 0, pres 1, long 1, def32 0, gran 1 > > processor eflags          = 17340 (smbd) > > trap number                = 12 > > panic: page fault > > cpuid =3 > > time = 1605632521 > > KDB: stack backtrace: > > db_trace_self_wrapper() at db_trace_setf_wrapper+0x2b/frame > > 0xfffffe0127733700 > > vpanic() at vpanic+0x182/frame 0xfffffe0127733750 > > panic() at panic+0x43/frame 0xfffffe01277337b0 > > trap_fatal() at trap_fatal+0x387/frame 0xfffffe0127733810 > > trap_pfault() at trap_pfault+0x4f/frame 0xfffffe0127733870 > > trap() at trap+0x27d/frame 0xfffffe0127733980 > > calltrap() at caltrap+0x8/frame 0xfffffe0127733980 > > --- trap 0xc, rip = 0x803a122b8, rsp = 0xfffffe0127733a50, rbp = 0x803a122b0 > > --- > > KDB: enter: panic > > [ thread pid 17340 tid 101772 ] > > stopped at        kdb_enter+0x37: movq     $0,0x1fa9446(%rip) > > db> > > This looks like SMEP catching an issue, but it is not clear why. Probably fixed by r367783? The bug would have partially overwritten the stack frame, resulting in a jump to a user address after a return. > Did you clean rebuild of the kernel ? > > What filesystems types do you use ? > > Can you bisect ? I would actually suspect not clean rebuild after recent > changes to kern_event.c.