From owner-freebsd-current@freebsd.org Wed Nov 18 11:13:09 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 6CE192EBAFC for ; Wed, 18 Nov 2020 11:13:09 +0000 (UTC) (envelope-from joh.hendriks@gmail.com) Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) (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 4CbgCT2QxCz3GKH; Wed, 18 Nov 2020 11:13:09 +0000 (UTC) (envelope-from joh.hendriks@gmail.com) Received: by mail-ej1-x62c.google.com with SMTP id s25so2187750ejy.6; Wed, 18 Nov 2020 03:13:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=Up+ei0aBUj5roKpPPpaecPYOnaIcDQkg+s37sZDQz5A=; b=KTqIkFzdMO185/xtItTfN1pNG5ViPpbT8RfwoPwv3GJ/Dp62RKVuKWPcW5x5YX0zVb P9Z7OADyJZsndkd17VsgWRCgkHaUj28FNdX1iW9dOhLE+P8P0dsBzPVPl1Vx2CUmylrx GKoiP/8P+M6zY7/Q2D9BIEO8iDxwG/d33/4oc4WdC+t8QM8li+jt1AVJSTDRjMhXRm+l Ioq/0JjCTpnofFyyEm43MvdF3uz/GOfq61nBVc/SD4lCblNQ5P2/uvUanTe4P1algk8t ciZDZl3QBnHUYYahaWFttF5PCb5fqwlCMxdR6PHfwCILFSjrKHJVBSKPhcegWQ3bV1J2 AqeQ== X-Gm-Message-State: AOAM531ybX0+5nyBodYelmI8Hv0PtVyuqb9J7SBkZ4hinmKyNqLClwxx E9QMtSW89pnazi4hAFlquWT60FVLdvg= X-Google-Smtp-Source: ABdhPJyZKdpMexDOReVFYZK0RUuKOgWQCgL4xVtzGpQUpCD+CCEbPY2Tcd/4V9bRnV2oQdCurEH5oQ== X-Received: by 2002:a17:906:ce2a:: with SMTP id sd10mr5491079ejb.21.1605697986960; Wed, 18 Nov 2020 03:13:06 -0800 (PST) Received: from MacBook-Pro-van-Johan.local (85-147-130-226.cable.dynamic.v4.ziggo.nl. [85.147.130.226]) by smtp.gmail.com with ESMTPSA id g13sm2163768edv.14.2020.11.18.03.13.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 18 Nov 2020 03:13:06 -0800 (PST) Subject: Re: Samba kernel panics. To: Kyle Evans Cc: FreeBSD Current References: From: Johan Hendriks Message-ID: Date: Wed, 18 Nov 2020 12:13:05 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:78.0) Gecko/20100101 Thunderbird/78.4.3 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Rspamd-Queue-Id: 4CbgCT2QxCz3GKH X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; TAGGED_FROM(0.00)[]; REPLY(-4.00)[] 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 11:13:09 -0000 On 18/11/2020 05:53, Kyle Evans wrote: > On Tue, Nov 17, 2020 at 10:01 PM Mark Johnston wrote: >> 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. >> > Ah, yes, sorry that I missed this -- smbd was in-fact the exact > program that the reporter noted observed it with, and what the fix was > confirmed with. Sorry for the breakage~ > > Kyle Evans > I can confirm all is working fine again after i svnupped to r367785 Thank you all for your time. regards Johan