From nobody Tue Oct 22 12:55:55 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 4XXscD29BXz5PQtD for ; Tue, 22 Oct 2024 12:55:56 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XXscC6DFXz434l for ; Tue, 22 Oct 2024 12:55:55 +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=1729601755; 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=Tan7Yn79yIxIShS0HwvmDSD56AI84Jc7JDHXVkzdJr8=; b=VIQRsW0BPWIgJ/0oFZpXzzHxwIGYp4Kpn19pdHI1dOk8+2JWpnJXWH6iA1luEffrPZEM/J 2F4XPli6oaB5AyDT52WN1Y4eL39akEO2vcYnzK3EBMuohjaQn5ZympeBxmVyJFBHreQd+G C9Jugf4JnIZnT5ysdMFqg7DNqdd+fZp8aADqIj+Z10LwhsOkYHY20hNzMQXonPX8tPcUwV WP9T7xhfcbdzUSOgTDstNw2sK9TxkGuZMXmyy77ECbKlc6uFXFkVSPrM82sXUVt+x/77TV qCOACvzhVS/6QkGdDisZ8vH/etPak9u6jmRGpMxd9CSIb3CSvrsxSnzYrVLPZg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729601755; a=rsa-sha256; cv=none; b=QiWXw1ypxVqZXKh2wb/0nwLMQx70RgBVkSJf8OBt1s8m46BssE0UvjDDhz8fm0BCkHri1t KVZE/+MESsY0gFalPAJw9hhKsseZ5I4VzanqVIFbJwZOhViqhHECjXmcckQBlOBxfNzjJX nA+sUAzlUgFKoZ9+6BZwEx2LkoMFvqsBjywhqGTxXhAB9/yTI9EV5i6/LEySY+oQDSLXGe V8/FwHs6+ZoOwkKVt7MxZd9SIj3NCwZwL6rf4U2YMdLCtyi90gbhcL81O7WjwpQU+/aPHX 2rH4rxj6rRdOClIs2aHiTXOsYilHRElo1nlMhsB1luFM+1DiD4DcysF3BMOTgw== 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 4XXscC5KG4zFYF for ; Tue, 22 Oct 2024 12:55:55 +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 49MCttIv061976 for ; Tue, 22 Oct 2024 12:55:55 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 49MCttrb061975 for bugs@FreeBSD.org; Tue, 22 Oct 2024 12:55:55 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 282268] linker_load_module() panics with KASAN during post-panic reboot Date: Tue, 22 Oct 2024 12:55:55 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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: christos@freebsd.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: 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: 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=3D282268 --- Comment #2 from Christos Margiolis --- Not sure if this theory is correct, but I am noticing that the issue is more frequent when the panic was caused by a manual call to panic(9), as opposed= to, say, a memory issue. I sent you the dump file on Slack because it's too big to attach here. Seems like it's crashing when loading filemon(4): (kgdb) bt #0 __curthread () at /mnt/src/sys/amd64/include/pcpu_aux.h:57 #1 doadump (textdump=3Dtextdump@entry=3D0) at /mnt/src/sys/kern/kern_shutdown.c:404 #2 0xffffffff805a33b6 in db_dump (dummy=3D, dummy2=3D, dummy3=3D, dummy4=3D) at /mnt/src/sys/ddb/db_command.c:595 #3 0xffffffff805a31eb in db_command (last_cmdp=3D, cmd_table=3D, dopager=3Dtrue) at /mnt/src/sys/ddb/db_command.c:508 #4 0xffffffff805a2bfd in db_command_loop () at /mnt/src/sys/ddb/db_command.c:555 #5 0xffffffff805a8979 in db_trap (type=3D, code=3D) at /mnt/src/sys/ddb/db_main.c:267 #6 0xffffffff81189485 in kdb_trap (type=3D3, code=3Dcode@entry=3D0, tf=3Dtf@entry=3D0xfffffe0046ce0110) at /mnt/src/sys/kern/subr_kdb.c:790 #7 0xffffffff81a201a8 in trap (frame=3D0xfffffe0046ce0110) at /mnt/src/sys/amd64/amd64/trap.c:606 #8 #9 kdb_enter (why=3D, msg=3D) at /mnt/src/sys/kern/subr_kdb.c:556 #10 0xffffffff810dde37 in vpanic ( fmt=3Dfmt@entry=3D0xffffffff81c8f46f "ASan: Invalid access, %zu-byte %s= at %#lx, %s(%x)", ap=3Dap@entry=3D0xfffffe0046ce03e0) at /mnt/src/sys/kern/kern_shutdown.= c:967 #11 0xffffffff810ddbd5 in panic (fmt=3D0xffffffff81c8f46f "ASan: Invalid ac= cess, %zu-byte %s at %#lx, %s(%x)") at /mnt/src/sys/kern/kern_shutdown.c:892 #12 0xffffffff81160970 in kasan_report (addr=3D18446741875887136624, size= =3D4, write=3Dfalse, pc=3D, code=3D) at /mnt/src/sys/kern/subr_asan.c:202 #13 0xffffffff8107f1f3 in linker_hints_lookup ( path=3D0xffffffff829c65e0 "/boot/kernel;/boot/modules;/boot/dtb;/boot/dtb/overlays", modname=3D0xfffffe004a17ec00 "filemon", modnamelen=3D7, verinfo=3D0x0, pathlen=3D) at /mnt/src/sys/kern/kern_linker.c:2046 #14 linker_search_module (modname=3D0xfffffe004a17ec00 "filemon", modnamele= n=3D7, verinfo=3D0x0) at /mnt/src/sys/kern/kern_linker.c:2134 #15 linker_load_module (kldname=3Dkldname@entry=3D0x0, modname=3D0xfffffe00= 4a17ec00 "filemon", parent=3Dparent@entry=3D0x0, verinfo=3Dverinfo@entry=3D0x0, lfpp=3Dlfpp@entry=3D0xfffffe0046ce0c00) = at /mnt/src/sys/kern/kern_linker.c:2272 #16 0xffffffff81082e23 in kern_kldload (td=3D, file=3Dfile@entry=3D0xfffffe004a17ec00 "filemon", fileid=3Dfileid@entry=3D0xfffffe0046ce0ca0) at /mnt/src/sys/kern/kern_linker.c:1236 #17 0xffffffff81083052 in sys_kldload (td=3D0xffffffff826074b0 , uap=3D) at /mnt/src/sys/kern/kern_linker.c:1259 #18 0xffffffff81a223ae in syscallenter (td=3D0xfffffe005bc4c000) at /mnt/src/sys/amd64/amd64/../../kern/subr_syscall.c:189 #19 amd64_syscall (td=3D0xfffffe005bc4c000, traced=3D0) at /mnt/src/sys/amd64/amd64/trap.c:1192 #20 #21 0x000012614498a7da in ?? () Backtrace stopped: Cannot access memory at address 0x126142f959a8 (kgdb) --=20 You are receiving this mail because: You are the assignee for the bug.=