From nobody Sat Apr 11 02:17:29 2026 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 4fsy4924Y3z6YpN7 for ; Sat, 11 Apr 2026 02:17:29 +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 "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fsy491XQdz3q8k for ; Sat, 11 Apr 2026 02:17:29 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1775873849; 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=pFMVVCfFnpsIhmKZO9IOG/y9BAXKcVJpwzOTN9RdzOI=; b=MCFnbGiOe8QIktPW85wggtHMjWHfCB6qkkH9hcPED6ztMQZ09gEfqfsndKGbULaxfVQRUj H2TCRWyp/XuFUd+FJA6AsplD5nR8FpPzTG5niP96kHG+B5oP3iZxOWL5c6X+G5f0S79Ijc s+qrvvsVM6TtPpzympqqlWlOhoX9u3xeZDfgXSpHraoS+kx4GBGbb+a0NyVxkonfuUfRMu KrsxShSwFHwpbaSFu+NWzbx0Qq2qGuigbziP5JQImL6GejTbJtwex7O6kKfBKOtKCbQxcQ 8VN6YCPDgFGC7AadY2ZZQcTlpLoa/KLecq08dmvekMcTQz3bWU7hoSLzZjjo2A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1775873849; a=rsa-sha256; cv=none; b=HZxxyIixV+q6nvnnnFkeIjj/IawriGrCnn239lmupknEu4gvIsNuGUg1OBq6COqvSNtX2A xXmz+O0w6JflA0hqKMVcUOpaPrCOK4Ovf9A3fefWbHELoKkrDBF6e1D8ovDnWzSW8Mkrsq ew7yucFb1EH3bUzuSUEX8SfC5zQH2rMg28gZIGgAejqf2w1Y8M/3XmLAjfavYKloGUhpFc RgqflpESkso4zFCF1KcBZ6TIijfJDGeB7fWZstXRQehVC6AlOhIm7x0SLdokfbmG/OjOe5 fPJaqCSUZbqSYE4aB4eEUsZC2eQT6L5lJGHxGvZZcvZdddqKc079sHfdYbn0GQ== 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=1775873849; 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=pFMVVCfFnpsIhmKZO9IOG/y9BAXKcVJpwzOTN9RdzOI=; b=dudLx7nJAtDtIA5joVZWv2m/Ad1a3E9IyD6oEb5P8rDaWdQLSTMpMBqpWRqPx0/XDNyXo0 IjdcFxRVOvb+00hQNBgP4yvHi3XDRc/hY4ycWujJZG0sXXgq3Oa9RPRQ45Zxk2EK4KS94k WJFMOejhWaxmvTQtqTTYmlmACXavpIuV37AFIvRG/x9/FfIDopfuWYkrcAOForAQKdnJhV 7aeM1yc+p+gz0NPSqLFjf75csC8vxZ1y0OtHYMTvHrbrdUBwHdJqXWG+uXNGZd5NlkF/2v +Jrt2LTDknRG3BXMk9gvHeQD0DPnHYWBvVfcLzAyCPlYRapNHL4SWiAyU+jS1A== 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 4fsy490mh6z19HB for ; Sat, 11 Apr 2026 02:17:29 +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 63B2HSpa040861 for ; Sat, 11 Apr 2026 02:17:28 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 63B2HSxg040860 for bugs@FreeBSD.org; Sat, 11 Apr 2026 02:17:28 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 293382] Dead lock and kernel crash around closefp_impl Date: Sat, 11 Apr 2026 02:17:29 +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: 14.3-STABLE X-Bugzilla-Keywords: crash X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: kris@tranception.com 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-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" 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=3D293382 --- Comment #63 from Kristofer Peterson --- I have attached kmod2.c (a kernel module) and call2.c (a program that invok= es kmod2.c). kmod2.ko can be built with the following makefile. -------- kmod2.mk -------- KMOD =3D kmod2 SRCS =3D kmod2.c .include -------------------------- call2 can be built with the following command line: cc -o call2 call2.c -lthr call2 assumes the syscall in kmod2 is assigned syscall number 210 on loadin= g; if this not the cases on your machine, edit call2.c accordingly. This will run 1 thread, zeroed allocations, starting memory size of 64k, 32 iterations, increase of 4k each iteration: $ call2 1 5 $((1<<16)) 32 4096 This will run 3 threads, not-zeroed allocations, starting memory size of 16= M, 128 iterations, increase of 16k each iteration: $ call2 3 5 $((1<<24)) 128 16384 dmesg will normally show lines such as: memkpy/syscall: enter pid:32426 tid:117355 4 16777216 128 16384 memkpy/syscall: exit pid:32426 tid:117355 4 16777216 128 16384 ilog:516 index:515 tsc:5520429094997775 event:4 If the memory checks fail, dmesg output (with kern.msgbuf_show_timestamp=3D= "2") will look like this: [375862.366839] memkpy/syscall: enter pid:9651 tid:191508 4 33554432 128 16= 384 [375862.787488] memkpy/check_block: failed at ptr:0xfffffe10d50e4000 data:0xfffffe10d50a8000 size:35356672 ... [375863.168260] memkpy/check_block: failed at ptr:0xfffffe10d513d000 data:0xfffffe10d5138000 size:35651584 [375863.178042] memkpy/syscall: exit pid:9651 tid:191508 4 33554432 128 163= 84 ilog:516 index:515 tsc:1428744768499442 event:4 This is an unfinished work in progress but hopefully it is of some assistan= ce. --=20 You are receiving this mail because: You are the assignee for the bug.=