From nobody Sun Nov 19 17:20:38 2023 X-Original-To: ports-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 4SYHTf6B80z514KG for ; Sun, 19 Nov 2023 17:20:38 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SYHTf3DjHz4KRn for ; Sun, 19 Nov 2023 17:20:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700414438; 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: in-reply-to:in-reply-to:references:references; bh=9XpZs1G0VQnRhO44W1uVDFR0hZWS9zyJqFaBVQp2WE8=; b=xPY9uloNgLBNd+yevbO36UjRlyERJPPCalVJTlIBe6pkNdMFUqL1jkLcYtvzsItlaQ4rZw gA7aKW0oIFDIeVmblrS5LvBN61P+59z5i417tOC4fI1U/1Q6kmv95hFZ0SdORqbCbLgtAn /34/8ssok5AxHsa4NmojEBZ9axy5DJq/IeBsk3mjizqL/N9uqEbH8X6mbxnTCiDd8pL91l HdIyf0hvpEmVEoa27ek2lTVosSFcWBTJTi7kEw9/MCmHfN/GLpJ9rkWsg9yAAffeRpoXAp 1b2lm1s/Km8gsoQ5251n/M6QjXNCK7V6CFbQEyddga6ahtlW2WraPJHsUWihIw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1700414438; a=rsa-sha256; cv=none; b=b++qBtiPrYQ/i4vh37HpPTZoimgHeSDNNI+OWWjWopKtrgMe367PO46E9IZpOnUQaZDx3K 3Rgh1SG/ubBtEMsMe8zX0p5pdnamxBfUcNkzNy3BmQyILYRV4yaTzggWqnPLfA2RuJWdlR WMQdlYf3XQf9Cg5eAHERKcJYLEYpzgGPFj0KLQP+VRkzrSW1C1TQ9oPVdg08+Gyp1CynR2 TlkjCW2u/6sLVZyE7sn5WN5XBOAiaQepW8/I4eTlHcqFQ65ysLeKPMmD7xlcpcTfy1LEwZ z6CINIXLR+3pPmv/GXo73HUaDNJYcZpWd3vnk30Mee7Ywy0dv6XpAtEbXnVtjg== 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 4SYHTf223gz3Rw for ; Sun, 19 Nov 2023 17:20:38 +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 3AJHKcok075098 for ; Sun, 19 Nov 2023 17:20:38 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3AJHKcEQ075097 for ports-bugs@FreeBSD.org; Sun, 19 Nov 2023 17:20:38 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: ports-bugs@FreeBSD.org Subject: [Bug 275172] graphics/drm-kmod: crash with sysctl -a | less Date: Sun, 19 Nov 2023 17:20:38 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: d8zNeCFG@aon.at X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D275172 --- Comment #3 from Martin Birgmeier --- I just reproduced this with a simple "sysctl -a > /tmp/x1". The latter is "= auto mfs". After the machine had restarted, again with X and oclock running, I stopped= the X server and re-issued the command, with the same results. Finally, I completely disabled the starting of the X server + oclock (it was done by an rc.d start script). And surprise - again a crash! [0]# cd /usr/lib/debug/boot/kernel=20=20=20=20=20=20=20=20 [0]# kgdb kernel.debug /var/crash/vmcore.0 GNU gdb (GDB) 13.2 [GDB v13.2 for FreeBSD] Copyright (C) 2023 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-portbld-freebsd14.0". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from kernel.debug... Unread portion of the kernel message buffer: Fatal trap 9: general protection fault while in kernel mode cpuid =3D 2; apic id =3D 02 instruction pointer =3D 0x20:0xffffffff804f74c6 stack pointer =3D 0x28:0xfffffe00f75e4a60 frame pointer =3D 0x28:0xfffffe00f75e4b00 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags =3D interrupt enabled, resume, IOPL =3D 0 current process =3D 44121 (sysctl) rdi: fffff8000c8ed088 rsi: 0000000000000000 rdx: 0000000000000000 rcx: 0000000000000000 r8: ffffffff82012090 r9: 0000000000000000 rax: 0000000000000000 rbx: fffff8000c8ed088 rbp: fffffe00f75e4b00 r10: 7fffac007fffac03 r11: fffffe0100f39540 r12: fffffe0100f39020 r13: 0000000000000000 r14: 0000000000000000 r15: 95f8404ead006a00 trap number =3D 9 Timeout initializing vt_vga panic: general protection fault cpuid =3D 2 time =3D 1700327198 KDB: stack backtrace: #0 0xffffffff8053772d at kdb_backtrace+0x5d #1 0xffffffff804ec792 at vpanic+0x132 #2 0xffffffff804ec653 at panic+0x43 #3 0xffffffff8080a6fc at trap_fatal+0x40c #4 0xffffffff807e2c98 at calltrap+0x8 #5 0xffffffff825d0ab4 at drm_vblank_info+0x64 #6 0xffffffff804fda40 at sysctl_root_handler_locked+0x90 #7 0xffffffff804fce66 at sysctl_root+0x216 #8 0xffffffff804fd4f6 at userland_sysctl+0x176 #9 0xffffffff804fd33c at sys___sysctl+0x5c #10 0xffffffff8080afa5 at amd64_syscall+0x105 #11 0xffffffff807e35ab at fast_syscall_common+0xf8 Uptime: 8h43m24s Dumping 2556 out of 16096 MB:..1%..11%..21%..31%..41%..51%..61%..71%..81%..= 91% __curthread () at /net/hal/z/SRC/FreeBSD/src/MBi/stable/14/sys/amd64/include/pcpu_aux.h:57 57 __asm("movq %%gs:%P1,%0" : "=3Dr" (td) : "n" (offsetof(stru= ct pcpu, (kgdb)=20 However, the radeonkms module was still loaded, so I proceeded with removing the port: "pkg remove drm-515-kmod-5.15.118_1". After another reboot, this resulted in the following reduced set of modules loaded: [1]# diff =3D(sed 's/.* //' | s= ort) =3D(kldstat | sed 's/.* //' | sort) 17d16 < backlight.ko 21,22d19 < dmabuf.ko < drm.ko 26d22 < firmware.ko 33,35d28 < iic.ko < iicbb.ko < iicbus.ko 39,41d31 < lindebugfs.ko < linuxkpi.ko < linuxkpi_hdmi.ko 43d32 < nullfs.ko 47d35 < radeonkms.ko 53d40 < ttm.ko [1]#=20 I again issued "sysctl -a > /tmp/x1", and this time there was no crash. Summarizing, just loading the radeonkms driver can make the system crash. -- Martin --=20 You are receiving this mail because: You are the assignee for the bug.=