Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Jan 2018 11:18:45 +0000
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
Message-ID:  <bug-225339-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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<unavailable>) 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  <signal handler called>
    #9  0xffffffff8059e3d5 in bit_test (_bitstr=3D<optimized out>,
_bit=3D<optimized out>) at
/mnt/home/dumbbell/Projects/freebsd/src/SVN/head/sys/sys/bitstring.h:141
    #10 evdev_event_supported (type=3D2, evdev=3D<optimized out>) 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<optimized out>,
value=3D<optimized out>) 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<optimized out>,
code=3D<optimized out>, value=3D<optimized out>) at
/mnt/home/dumbbell/Projects/freebsd/src/SVN/head/sys/dev/evdev/evdev.h:172
    #14 proc_elantech (pb=3D<optimized out>, sc=3D<optimized out>, ms=3D<op=
timized
out>, x=3D<optimized out>, y=3D<optimized out>, z=3D<optimized out>)
        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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-225339-8>