From nobody Thu Jan 23 00:47:31 2025 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Ydj2r0GNNz5lKj0 for ; Thu, 23 Jan 2025 00:47:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Ydj2q6hdjz3qWH for ; Thu, 23 Jan 2025 00:47:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737593252; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ElUafsiw5Cit0bDYP9IFcB2AGjuC0ARO2XxdvY3C2qs=; b=nEBrAsXIfWwoKDYwB2PCnrEP7nE70LskjisJHz+aazQwn4dwOGXK+HEwlX9odElrzs5vgN fXPYZPXdvo++Im8iJd89js0ftoTgATLBX2wJsPVfPa98+y4oSV+vzWQQomuZ/CUZDphAU3 7d9vPbk/F34/EBK3TPw7fYcItr94mfBUB9TWs2lADvAp49uxQbCRKmDZFILQyhKAOjQuYN g8wlQopbKeUfK84h6ckUdao4e4ubj18IfKFPp+3dVIz+KIxDnb+o4mdvw/FR51s3Y4lR8Y wYCXkqm0QaGagYe+M40QSXO7mQbERCQqwWxJJGv13B/hmIh631AIeuI8g+xMvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737593252; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ElUafsiw5Cit0bDYP9IFcB2AGjuC0ARO2XxdvY3C2qs=; b=dPFFPZ0Vjh9LAKk8b5B+QsjuYy5KXvPILOAJTsFN1V4KSzYLTEqoO65nhqPf5rwkOImr3B IVjKNe1HsS/KrKSMC144CCN5I3SMGpbn0GzsalgD1pynv9ZXPaQrDYPGuz33hZqnOe7c2y rDRWGNwNzv1Ie8HVOndHAwnsOE1X0wLsd4nTT3d8psAPvP3aMsyRUrcX+xoEF+F2lirSyQ yyYNhfWVZLwVTUq2LAIK6EAUIDwoL1v/5BTfLiaOJWwcx3RlP5Wg9ghgM+wShC+rc540dC 8bUHWsoKbKDLdOHDv0ZxDUfOqYYBIgCYubgz1xPad6cnGOt9ykxbmjg5nwspXg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1737593252; a=rsa-sha256; cv=none; b=XekCRFslpiho0lPaz8TZwjqNVPYI41MKJjgx/hFF0SOFM+QAUUkyLtv1gAI5ZpsLt+mp13 uulogZAEZMO9FeVm0uV7ZJAZTtHYmkR4sXd1CNP2Q5XxXIW97lIkr0yr6Ij47wi0fa4/o2 QQt5PxH0+n9SeFPfjSZvqYjKdIsFmKegswT008gEjlHoCKTllAE9BQgW5i1USxU1g0fO4b 2Txs+2pa1CIP/ktytYBImwKPHJmASJub4gwdWVsG/T5VtjQo2I09wVd6EieT+RmCcVHLL5 aINyZlN6/6TLgRPJ+j4U4i8vUjrMxU3nbjOGbY4C3dp9vtSMmXnYEumGOZUGLA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Ydj2q5yBWz1gr for ; Thu, 23 Jan 2025 00:47:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 50N0lV5o031464 for ; Thu, 23 Jan 2025 00:47:31 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 50N0lVjw031463 for bugs@FreeBSD.org; Thu, 23 Jan 2025 00:47:31 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 284283] if_re(4) crashes when attaching on RVVM Date: Thu, 23 Jan 2025 00:47:31 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: fuz@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: mfc-stable14? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform bug_file_loc op_sys bug_status bug_severity priority component assigned_to reporter cc flagtypes.name Message-ID: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D284283 Bug ID: 284283 Summary: if_re(4) crashes when attaching on RVVM Product: Base System Version: CURRENT Hardware: riscv URL: https://github.com/LekKit/RVVM/issues/131 OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: fuz@FreeBSD.org CC: jhibbits@FreeBSD.org, wpaul@FreeBSD.org, yongari@FreeBSD.org Flags: mfc-stable14? I've tried to use FreeBSD 15-CURRENT in the RVVM riscv64 emulator. I'm usi= ng a 15-CURRENT image with this uname -a, though it also happens on 14.2: FreeBSD 15.0-CURRENT (GENERIC) #0 main-n274800-054c5ddf587a: Thu Jan 16 06:51:42 UTC 2025 This emulator emulates a network card identifying itself as follows: none0@pci0:0:1:0: class=3D0x020000 rev=3D0x00 hdr=3D0x00 vendor=3D0x1= 0ec device=3D0x8169 subvendor=3D0x10dc subdevice=3D0xeba1 vendor =3D 'Realtek Semiconductor Co., Ltd.' device =3D 'RTL8169 PCI Gigabit Ethernet Controller' class =3D network subclass =3D ethernet when I do "kldload if_re" to attach the suitable driver, the system crashes immediately: # kldload if_re re0: mem 0x40000000-0x400000ff irq 21 at device 1.0 on pci0 re0: Chip rev. 0x00800000 re0: MAC rev. 0x00000000 t[0]: 0xffffffd045944000 t[1]: 0xffffffc09a40b3ec (.L0 + 0x450) t[2]: 0xffffffc000adc530 (w_locklistdata + 0x3f1f0) t[3]: 0xffffffc00042acf8 (ifmedia_ioctl) t[4]: 0xccf509939f66f20a t[5]: 0xffffffc0635be230 ($d + 0x62400008) t[6]: 0xd8c0caa20cc138df s[0]: 0xffffffc0635be2a0 ($d + 0x62400078) s[1]: 0xffffffd0040d5280 s[2]: 0xffffffc0635be2e0 ($d + 0x624000b8) s[3]: 0x0000000000000000 s[4]: 0xffffffd00b0ac800 s[5]: 0xffffffd04594402c s[6]: 0xffffffc000a93fc0 (__stack_chk_guard) s[7]: 0xffffffc0008d1598 (db_pager_quit) s[8]: 0xffffffc09a359000 ($d + 0x9919add8) s[9]: 0x0000000000000801 s[10]: 0xffffffc09a35d130 ($d + 0x9919ef08) s[11]: 0xffffffc0007bf028 (pci_find_cap_desc) a[0]: 0xffffffd00b0ac800 a[1]: 0xffffffc0635be2e0 ($d + 0x624000b8) a[2]: 0xffffffd0040d5280 a[3]: 0x0000000000000000 a[4]: 0x00000000c0306938 a[5]: 0x0000000000000010 a[6]: 0x0000000000000020 a[7]: 0x0000000000000016 ra: 0xffffffc00042ade8 (ifmedia_ioctl + 0xf0) sp: 0xffffffc0635be270 ($d + 0x62400048) gp: 0xffffffc0008d0cd0 (__global_pointer$) tp: 0xffffffc000b54900 (__pcpu + 0x300) sepc: 0x0000000000000000 sstatus: 0x0000000a00000120 stval : 0x0000000000000000 panic: Fatal page fault at 0: 0 cpuid =3D 3 time =3D 1737592726 KDB: stack backtrace: db_trace_self() at db_trace_self db_trace_self_wrapper() at db_trace_self_wrapper+0x36 kdb_backtrace() at kdb_backtrace+0x2c vpanic() at vpanic+0x16e panic() at panic+0x26 page_fault_handler() at page_fault_handler+0x22a do_trap_supervisor() at do_trap_supervisor+0x6c cpu_exception_handler_supervisor() at cpu_exception_handler_supervisor+0x74 --- exception 12, tval =3D 0 (null)() at 0 if_ioctl() at if_ioctl+0xc dump_iface() at dump_iface+0x10e rtnl_handle_ifevent() at rtnl_handle_ifevent+0x60 rtnl_handle_ifattach() at rtnl_handle_ifattach+0x48 if_attach_internal() at if_attach_internal+0x344 if_attach() at if_attach+0xe ether_ifattach() at ether_ifattach+0x32 .L0 () at .L0 +0xa device_attach() at device_attach+0x40c device_probe_and_attach() at device_probe_and_attach+0x44 pci_driver_added() at pci_driver_added+0x102 devclass_driver_added() at devclass_driver_added+0x34 devclass_add_driver() at devclass_add_driver+0xfc driver_module_handler() at driver_module_handler+0x6a module_register_init() at module_register_init+0xa8 linker_load_module() at linker_load_module+0x9ee kern_kldload() at kern_kldload+0x14e sys_kldload() at sys_kldload+0x52 do_trap_user() at do_trap_user+0x1e4 cpu_exception_handler_user() at cpu_exception_handler_user+0x72 --- syscall (304, FreeBSD ELF64, kldload) Up stream has noticed the same issue (see URL field) and found bug #275920 = as a related issue. --=20 You are receiving this mail because: You are the assignee for the bug.=