From owner-freebsd-bugs@freebsd.org Tue Nov 5 08:37:57 2019 Return-Path: Delivered-To: freebsd-bugs@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 7C38517C3A7 for ; Tue, 5 Nov 2019 08:37:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 476jjK2l98z41B0 for ; Tue, 5 Nov 2019 08:37:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 5DECA17C3A6; Tue, 5 Nov 2019 08:37:57 +0000 (UTC) Delivered-To: bugs@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 5DB6A17C3A5 for ; Tue, 5 Nov 2019 08:37:57 +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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 476jjK1spjz419y for ; Tue, 5 Nov 2019 08:37:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 235299FBC for ; Tue, 5 Nov 2019 08:37:57 +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 xA58bvkh087437 for ; Tue, 5 Nov 2019 08:37:57 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id xA58bvEf087436 for bugs@FreeBSD.org; Tue, 5 Nov 2019 08:37:57 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 241728] linuxkpi: panics after loading Date: Tue, 05 Nov 2019 08:37:57 +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: pkubaj@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: 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.29 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Nov 2019 08:37:57 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241728 Bug ID: 241728 Summary: linuxkpi: panics after loading Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: pkubaj@FreeBSD.org I'm on head on powerpc64 elfv2 (r353588) and experience kernel panic after kldload radeonkms. I found it's due to linuxkpi. root@talos:~ # kldload radeonkms.ko fatal kernel trap: exception =3D 0x300 (data storage interrupt) virtual address =3D 0xcaa24580 dsisr =3D 0x42000000 srr0 =3D 0xe0000000ce3e5dc4 (0x20000000cbf95dc4) srr1 =3D 0x9000000000009032 current msr =3D 0x9000000000009032 lr =3D 0xc000000002cced44 (0x87ed44) frame =3D 0xe0000000bf08df00 curthread =3D 0xc00000002c43a560 pid =3D 47271, comm =3D kldload panic: data storage interrupt trap cpuid =3D 16 time =3D 1572942809 KDB: stack backtrace: 0xe0000000bf08da80: at kdb_backtrace+0x60 0xe0000000bf08db90: at vpanic+0x1d8 0xe0000000bf08dc40: at panic+0x40 0xe0000000bf08dc70: at trap+0x1564 0xe0000000bf08dd00: at trap+0x62c 0xe0000000bf08de40: at powerpc_interrupt+0x1b8 0xe0000000bf08ded0: kernel DSI write trap @ 0xcaa24580 by idr_preload_init+0xc8: srr1=3D0x9000000000009032 r1=3D0xe0000000bf08e180 cr=3D0x4488dc88 xer=3D0 ctr=3D0xc000000= 002ce7190 r2=3D0xe0000000ce401ed0 sr=3D0x42000000 frame=3D0xe0000000bf08df00 0xe0000000bf08e180: at 0xe0000000ce3c3a04 0xe0000000bf08e1f0: at linker_reference_module+0xfd4 0xe0000000bf08e630: at linker_load_dependencies+0x2b0 0xe0000000bf08e710: at elf_get_symname+0x132c 0xe0000000bf08e960: at linker_reference_module+0xc88 0xe0000000bf08eda0: at linker_load_dependencies+0x2b0 0xe0000000bf08ee80: at elf_get_symname+0x132c 0xe0000000bf08f0d0: at linker_reference_module+0xc88 0xe0000000bf08f510: at kern_kldload+0x138 0xe0000000bf08f5c0: at sys_kldload+0x8c 0xe0000000bf08f610: at trap+0xd58 0xe0000000bf08f750: at powerpc_interrupt+0x1b8 0xe0000000bf08f7e0: user SC trap by 0x810102f20: srr1=3D0x900000000200d032 r1=3D0x3fffffffffffd460 cr=3D0x44222b80 xer=3D0 ctr=3D0x810102f= 10 r2=3D0x8102a2398 frame=3D0xe0000000bf08f810 KDB: enter: panic [ thread pid 47271 tid 100787 ] Stopped at kdb_enter+0x78: ori r0, r0, 0x0 db> kldstat Id Refs Address Size Name 1 21 0xc000000002550100 1a611c8 kernel 2 1 0xe0000000c1900000 22000 tmpfs.ko 3 1 0xe0000000c4640000 21000 icee.ko 4 1 0xe0000000c5480000 21000 mac_ntpd.ko 5 1 0xe0000000c7820000 21000 imgact_binmisc.ko 6 1 0xe0000000ce600000 1e8000 radeonkms.ko 7 1 0xe0000000ce300000 c9000 drm.ko 8 1 0xe0000000ce3c9000 33000 linuxkpi.ko You can see it's caused by idr_preload_init, at offset 0xe0000000ce3e5dc4 (srr0) - 0xe0000000ce3c9000 (address of linuxkpi.ko) =3D 0x1d00, which is t= his file: sys/compat/linuxkpi/common/src/linux_idr.c, line: 118 free(cacheval, M_IDR); --=20 You are receiving this mail because: You are the assignee for the bug.=