From owner-freebsd-bugs@freebsd.org Sat Jan 20 11:18:45 2018 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 98BF8ECA7E3 for ; Sat, 20 Jan 2018 11:18:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7F9DC7465F for ; Sat, 20 Jan 2018 11:18:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 750161ACB3 for ; Sat, 20 Jan 2018 11:18:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w0KBIjeV068861 for ; Sat, 20 Jan 2018 11:18:45 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w0KBIj8K068858 for freebsd-bugs@FreeBSD.org; Sat, 20 Jan 2018 11:18:45 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: freebsd-bugs@FreeBSD.org Subject: [Bug 225339] psm: Panic when trying to scroll with an Elantech touchpad without a trackpoint, with EVDEV_SUPPORT Date: Sat, 20 Jan 2018 11:18:45 +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: 11.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dumbbell@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Jan 2018 11:18:45 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D225339 Bug ID: 225339 Summary: psm: Panic when trying to scroll with an Elantech touchpad without a trackpoint, with EVDEV_SUPPORT Product: Base System Version: 11.0-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: dumbbell@FreeBSD.org After fixing bug 225338 and enabling EVDEV_SUPPORT, I got a kernel panic wh= en I tried to scroll with the Elantech touch of a Gigabyte Aero 15X laptop: #4 0xffffffff80a947b3 in panic (fmt=3D) at /mnt/home/dumbbell/Projects/freebsd/src/SVN/head/sys/kern/kern_shutdown.c:7= 38 #5 0xffffffff80f3ff32 in trap_fatal (frame=3D0xfffffe0087dc2610, eva= =3D328) at /mnt/home/dumbbell/Projects/freebsd/src/SVN/head/sys/amd64/amd64/trap.c:794 #6 0xffffffff80f3ffa2 in trap_pfault (frame=3D0xfffffe0087dc2610, usermode=3D0) at /mnt/home/dumbbell/Projects/freebsd/src/SVN/head/sys/amd64/amd64/trap.c:649 #7 0xffffffff80f3f772 in trap (frame=3D0xfffffe0087dc2610) at /mnt/home/dumbbell/Projects/freebsd/src/SVN/head/sys/amd64/amd64/trap.c:417 #8 #9 0xffffffff8059e3d5 in bit_test (_bitstr=3D, _bit=3D) at /mnt/home/dumbbell/Projects/freebsd/src/SVN/head/sys/sys/bitstring.h:141 #10 evdev_event_supported (type=3D2, evdev=3D) at /mnt/home/dumbbell/Projects/freebsd/src/SVN/head/sys/dev/evdev/evdev.c:441 #11 evdev_check_event (type=3D2, code=3D0, evdev=3D, value=3D) at /mnt/home/dumbbell/Projects/freebsd/src/SVN/head/sys/dev/evdev/evdev.c:490 #12 evdev_push_event (evdev=3D0x0, type=3D2, code=3D0, value=3D-16) at /mnt/home/dumbbell/Projects/freebsd/src/SVN/head/sys/dev/evdev/evdev.c:764 #13 0xffffffff80f67546 in evdev_push_rel (evdev=3D, code=3D, value=3D) at /mnt/home/dumbbell/Projects/freebsd/src/SVN/head/sys/dev/evdev/evdev.h:172 #14 proc_elantech (pb=3D, sc=3D, ms=3D, x=3D, y=3D, z=3D) at /mnt/home/dumbbell/Projects/freebsd/src/SVN/head/sys/dev/atkbdc/psm.c:4512 The problem is that the packet was erroneously detected as a trackpoint pac= ket, but the device has no trackpoint. We later want to emit an evdev event for = this packet, but the associated relative evdev device (`evdev_r`) is not initialized, causing the panic. --=20 You are receiving this mail because: You are the assignee for the bug.=