From nobody Thu Feb 1 21:36:26 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 4TQsff5f0zz58jRZ for ; Thu, 1 Feb 2024 21:36:26 +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 4TQsff4YyHz4gwh for ; Thu, 1 Feb 2024 21:36:26 +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=1706823386; 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=rnDvxhwBpw8Q/VbhZJAvJo6C1gLu1GuF/ritdyb/kuM=; b=j2h8e6zsLMvD+vT+mm/lU6M2APwY2H1CsQ+rsUMurm7IGoWMJQvEb3ymwV2tddSTgaMu87 ASiVLDbCkgpUC+Amjewvt7hPacyC6EuSM4i0nVmn4Gen3zis3QM8eaBjd7fblp+6xewvZH PVKs1Yb4pl+fG4bmZg+T/cuCYSrI79VlFNvdBokAng1GE/VCHCsbiLEab3kYjxvny3G7gQ yL/yW5Q5aQsDVSMnczSE0bORmcLL/oV9nhaVZRJcV4jdeoui2/0AwbG08CWCteIof2NViG 3vOapLkBCCy2WkUpuvylpb5iRazhJK8V344iWl3xoXzWwRZdoGv9dmuBYdtswg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1706823386; a=rsa-sha256; cv=none; b=vzQ0R9eHAUGcyN7jhkIavwf5sSVeIaQyqLcGL8jRkbKHS8e1l2xQ8SNtgYTSWR319je+z1 v+6UxUPgjwxMa1eidn9BhwHV5f0l1u4euN/VaGhU4cGsv08+F4F06ESTmfU7Bo18dMk5q4 6+GYfqpDz6LNl9iByL99s2KGkVzkd2VZ/YoO6VXHK4gLvY2i05VHnXlIGx0/jC2aeky5aH Vtx9wCPmaf4nBUwBzL67kMNZ6m/2EFQY+iJbJInAshT6MIb0W5ApMQBnSSL9qfTMOF3XZ9 JOtSHCnF+cCd6K+4m3U7SXYW6lI3GdvATwFaI/M6oXVT75C4El3Ic2Vy3b3srQ== 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 4TQsff3W5Nz1JMP for ; Thu, 1 Feb 2024 21:36:26 +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 411LaQ7G004801 for ; Thu, 1 Feb 2024 21:36:26 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 411LaQQb004800 for bugs@FreeBSD.org; Thu, 1 Feb 2024 21:36:26 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 276770] Some potential NULL-pointer dereferences Date: Thu, 01 Feb 2024 21:36:26 +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 Only Me X-Bugzilla-Who: w290680224@gmail.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 attachments.mimetype attachments.created 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=3D276770 Bug ID: 276770 Summary: Some potential NULL-pointer dereferences Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: w290680224@gmail.com Attachment #248120 text/plain mime type: Created attachment 248120 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D248120&action= =3Dedit The potential NULL dereferences We utilized a static analyzer to detect instances of omitted NULL checks in certain resource allocation functions within the Kernel. The attached docum= ent enumerates these occurrences, which could potentially lead to NULL pointer dereferences. The document is organized as follows: the first column lists = the allocation functions that might return a NULL pointer under certain conditi= ons; the second column specifies the exact locations (file +line_number) where t= hese allocation functions are invoked without appropriate NULL checks, creating a risk of NULL pointer dereference; and the third column pinpoints the specif= ic line of source code. --=20 You are receiving this mail because: You are the assignee for the bug.=