From owner-freebsd-current@freebsd.org Tue Jan 12 16:00:16 2021 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 9E1C24DD329 for ; Tue, 12 Jan 2021 16:00:16 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4DFZzM54J3z3jnv for ; Tue, 12 Jan 2021 16:00:15 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2020.home.selasky.org (unknown [178.17.145.105]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 47A0C26048A; Tue, 12 Jan 2021 17:00:08 +0100 (CET) Subject: Re: Current amd64 main-c255825-g2a4b22514635-dirty panic triggered by ure(4) detach To: "Oleg V. Nauman" , freebsd-current@freebsd.org References: <3792754.BRNeRiNLvY@sigill.theweb.org.ua> From: Hans Petter Selasky Message-ID: Date: Tue, 12 Jan 2021 16:59:56 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: <3792754.BRNeRiNLvY@sigill.theweb.org.ua> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4DFZzM54J3z3jnv X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.30 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net:c]; MID_RHS_MATCH_FROM(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[selasky.org]; RBL_DBL_DONT_QUERY_IPS(0.00)[88.99.82.50:from]; SPAMHAUS_ZRD(0.00)[88.99.82.50:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:88.99.0.0/16, country:DE]; RCVD_COUNT_TWO(0.00)[2]; 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: Tue, 12 Jan 2021 16:00:16 -0000 On 1/12/21 4:58 PM, Oleg V. Nauman wrote: > > > > __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:55 > 55 __asm("movq %%gs:%P1,%0" : "=r" (td) : "n" (offsetof(struct > pcpu, > (kgdb) #0 __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:55 > #1 doadump (textdump=) > at /usr/src/sys/kern/kern_shutdown.c:399 > #2 0xffffffff804a3b3e in kern_reboot (howto=260) > at /usr/src/sys/kern/kern_shutdown.c:486 > #3 0xffffffff804a3f2b in vpanic (fmt=, ap=0xfffffe00eb7d3130) > at /usr/src/sys/kern/kern_shutdown.c:919 > #4 0xffffffff804a3d83 in panic (fmt=) > at /usr/src/sys/kern/kern_shutdown.c:843 > #5 0xffffffff807009cc in trap_fatal (frame=frame@entry=0xfffffe00eb7d3330, > eva=1088) at /usr/src/sys/amd64/amd64/trap.c:915 > #6 0xffffffff80700d68 in trap_pfault (frame=frame@entry=0xfffffe00eb7d3330, > usermode=false, signo=, signo@entry=0x0, > ucode=, ucode@entry=0x0) > at /usr/src/sys/amd64/include/cpufunc.h:433 > #7 0xffffffff807001c9 in trap (frame=0xfffffe00eb7d3330) > at /usr/src/sys/amd64/amd64/trap.c:398 > #8 > #9 __mtx_lock_sleep (c=0xfffff8023a13beb8, v=) > at /usr/src/sys/kern/kern_mutex.c:590 > #10 0xffffffff80400304 in usbd_do_request_flags (udev=, > udev@entry=0xfffff802f632e000, mtx=0xfffff8023a13bea0, > req=req@entry=0xfffffe00eb7d3558, data=data@entry=0xfffffe00eb7d3564, > flags=flags@entry=0, actlen=actlen@entry=0x0, timeout=) > at /usr/src/sys/dev/usb/usb_request.c:714 > #11 0xffffffff804003e0 in usbd_do_request_proc (udev=0xfffff802f632e000, > pproc=pproc@entry=0xfffff8023a13bc40, req=req@entry=0xfffffe00eb7d3558, > data=data@entry=0xfffffe00eb7d3564, flags=flags@entry=0, > actlen=actlen@entry=0x0, timeout=1000) > at /usr/src/sys/dev/usb/usb_request.c:759 > #12 0xffffffff81648499 in ure_ctl (sc=0xfffff8023a13bc00, rw=1 '\001', > val=45056, index=256, buf=0xfffffe00eb7d3564, len=4) > at /usr/src/sys/dev/usb/net/if_ure.c:303 > #13 ure_read_mem (sc=0xfffff8023a13bc00, addr=45056, index=256, > buf=0xfffffe00eb7d3564, len=4) at /usr/src/sys/dev/usb/net/if_ure.c:311 > #14 ure_read_2 (sc=0xfffff8023a13bc00, reg=45056, index=256) > at /usr/src/sys/dev/usb/net/if_ure.c:349 > #15 ure_ocp_reg_read (sc=0xfffff8023a13bc00, addr=8192) > at /usr/src/sys/dev/usb/net/if_ure.c:424 > #16 ure_miibus_readreg (dev=, phy=, > reg=) at /usr/src/sys/dev/usb/net/if_ure.c:457 > #17 0xffffffff81660535 in MIIBUS_READREG (dev=0xfffff8027ee1c900, phy=0, > reg=0) at ./miibus_if.h:27 > #18 rgephy_status (sc=0xfffff801bdce6880) at /usr/src/sys/dev/mii/rgephy.c:325 > #19 0xffffffff81660427 in rgephy_service (sc=0xfffff801bdce6880, > mii=, cmd=) > at /usr/src/sys/dev/mii/rgephy.c:265 > #20 0xffffffff8165c8d6 in mii_pollstat (mii=mii@entry=0xfffff801bc043700) > at /usr/src/sys/dev/mii/mii.c:627 > #21 0xffffffff8164b165 in ure_ifmedia_sts (ifp=, > ifmr=0xfffffe00eb7d3910) at /usr/src/sys/dev/usb/net/if_ure.c:1272 > #22 0xffffffff8059fbca in ifmedia_ioctl (ifp=0xfffff8023a13beb8, > ifr=0xfffffe00eb7d3910, ifm=0xfffff801bc043700, cmd=) > at /usr/src/sys/net/if_media.c:294 > #23 0xffffffff80597875 in ifhwioctl (cmd=cmd@entry=3224398136, > ifp=ifp@entry=0xfffff80268a30000, > data=data@entry=0xfffffe00eb7d3910 "ue0", td=td@entry=0xfffffe00eb4aea00) > at /usr/src/sys/net/if.c:2840 > #24 0xffffffff805992e6 in ifioctl (so=0xfffff8031252b3b0, cmd=3224398136, > data=0xfffffe00eb7d3910 "ue0", td=0xfffffe00eb4aea00) > at /usr/src/sys/net/if.c:3049 > #25 0xffffffff80505caa in fo_ioctl (fp=0xfffff80030644e10, com=3224398136, > data=0xfffffe00eb7d3910, active_cred=0xfffff8023a13bea0, > td=0xfffffe00eb4aea00) at /usr/src/sys/sys/file.h:354 > #26 kern_ioctl (td=0xfffffe00eb4aea00, fd=, > com=com@entry=3224398136, data=data@entry=0xfffffe00eb7d3910 "ue0") > at /usr/src/sys/kern/sys_generic.c:803 > #27 0xffffffff805059f6 in sys_ioctl (td=, > uap=0xfffffe00eb4aede8) at /usr/src/sys/kern/sys_generic.c:711 > #28 0xffffffff807012a0 in syscallenter (td=0xfffffe00eb4aea00) > at /usr/src/sys/amd64/amd64/../../kern/subr_syscall.c:189 > #29 amd64_syscall (td=0xfffffe00eb4aea00, traced=0) > at /usr/src/sys/amd64/amd64/trap.c:1156 > #30 > #31 0x00000008026d8b6a in ?? () > Backtrace stopped: Cannot access memory at address 0x7fffdf7f8ed8 > (kgdb) > This appears to a known regression issue. Patches are on the way. See: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252608 --HPS