From nobody Sun Apr 7 13:40:59 2024 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 4VCCzf1mrDz5GrMP for ; Sun, 7 Apr 2024 13:41:02 +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 4VCCzf09C9z43BF for ; Sun, 7 Apr 2024 13:41:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712497262; a=rsa-sha256; cv=none; b=M74OucfsncqMbWh/FGiixVBzOroBB0yMGQIbhq64TSSVp8Ri+mei0UsKzUhEpQU5a0CS4c pWB1KTZlctUMg+7IExEIk7gfZ2P3dIgiwiFLf3ovpcapncGsxluMev/TVsXFnpQbJ8W0o7 WKUyKy0BL+aIKCfz/hzmQhq8jVskI9WLN6lTRqvbokSnX6PDwQu+Pc+HSmroobH3nGg3/z WJdrKXJpl77p3hATHR8jyxZaU6aZ6coltbWqd/cCxq4XwHUEPh6slM9Lrw/iJdika2sYAj aTjmk9BxS3wqOnSGohS8G8iJWW7mQ1VnUFsNOVCKndW+95fi/4+8GQDLQ0NEyw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1712497262; 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=aCMeYqrjmlNKw1+8tKhovdJFoN+ilk/9xStCY70pqSA=; b=YsYmJyLSPQ+sV1zaJcpQaTMj50F0qDizHMjINWkunlpC37u/X9vSNqu41x9hQcPA/yIV0X lPWupSfF4IxkIxt9qza2AdFf2SnPCtNyuzEIrYPKnf6FNswloB4JLrqURg+us4+9JJ7M+d VPPvtFFqIENElttTNhgBbsAxuxdE2/9dtoSWJpJpANPxK5Wst5x4dIOn1co+TGzQuvgP6A LX2iZE6+lRqo8H51TU1ntLu42Pr4/SoxHEfEHc7Zr6UdSiEqIKZrkDdLd1DXRLDra/InNc KyqHvkNUWHi7WqbPpDFF+/i5Y8S9zGqFR6CZojlwTu9k+aN+AYDFhYsCtpiIaQ== 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 4VCCzd6ZtQzV7y for ; Sun, 7 Apr 2024 13:41:01 +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 437Df11X085535 for ; Sun, 7 Apr 2024 13:41:01 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 437Df1kD085492 for bugs@FreeBSD.org; Sun, 7 Apr 2024 13:41:01 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 278234] linsysfs assumes pci domain 0000 Date: Sun, 07 Apr 2024 13:40:59 +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: 15.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: zeev@amazon.com 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 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=3D278234 Bug ID: 278234 Summary: linsysfs assumes pci domain 0000 Product: Base System Version: 15.0-CURRENT Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: zeev@amazon.com When booting on a system with 2 pci domains (3 and 11) and linux compatibil= ity layer enabled on arm64 coherent system,=20 crash was observed with the following signature: Mounting local filesystems:.M panic: pfs_add_node(): homonymous siblingsM cpuid =3D 150M time =3D 1711898170M KDB: stack backtrace:M db_trace_self() at db_trace_selfM db_trace_self_wrapper() at db_trace_self_wrapper+0x38M vpanic() at vpanic+0x1a4M panic() at panic+0x48M pfs_add_node() at pfs_add_node+0x16cM pfs_create_dir() at pfs_create_dir+0xc0M linsysfs_run_bus() at linsysfs_run_bus+0x36cM linsysfs_run_bus() at linsysfs_run_bus+0x23cM linsysfs_run_bus() at linsysfs_run_bus+0x23cM linsysfs_run_bus() at linsysfs_run_bus+0x23cM linsysfs_run_bus() at linsysfs_run_bus+0x23cM linsysfs_run_bus() at linsysfs_run_bus+0x23cM linsysfs_init() at linsysfs_init+0x1b4M pfs_init() at pfs_init+0xb0M vfs_modevent() at vfs_modevent+0x368M module_register_init() at module_register_init+0xb4M linker_load_module() at linker_load_module+0xac8M kern_kldload() at kern_kldload+0x190M sys_kldload() at sys_kldload+0x64M do_el0_sync() at do_el0_sync+0x59cM handle_el0_sync() at handle_el0_sync+0x48M --- exception, esr 0x56000000M KDB: enter: panicM [ thread pid 115 tid 101679 ]M Stopped at kdb_enter+0x4c: str xzr, [x19, #1408]M This is caused by sys/compat/linsysfs/linsysfs.c:linsysfs_init() hardcoding= pci domain 0: ... /* /sys/devices/... */ dir =3D pfs_create_dir(root, "devices", NULL, NULL, NULL, 0); pci =3D pfs_create_dir(dir, "pci0000:00", NULL, NULL, NULL, 0); devclass =3D devclass_find("root"); if (devclass =3D=3D NULL) { return (0); } dev =3D devclass_get_device(devclass, 0); linsysfs_run_bus(dev, pci, scsi, chardev, drm, "/pci0000:00", "0000= "); ... --=20 You are receiving this mail because: You are the assignee for the bug.=