🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: muc.lists.freebsd.bugs
7 messages
7 total messages Started by bugzilla-noreply Thu, 19 Nov 2026 11:36
[Bug 300904] usr.sbin/inetd build without INET6, error uninitialized nbuf2
#548
Author: bugzilla-noreply
Date: Thu, 19 Nov 2026 11:36
61 lines
4033 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300904

            Bug ID: 300904
           Summary: usr.sbin/inetd build without INET6, error
                    uninitialized nbuf2
           Product: Base System
           Version: 14.5-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: dym@afalina.od.ua

Created attachment 277453
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=277453&action=edit
Placing nbuf2 and netid2, along with the associated rpcb_unset()/rpcb_set()
calls, in the #ifdef INET6 blocks in the file usr.sbin/inetd/inetd.c

Building world without IPv6 support (when INET6 is not defined) fails on
FreeBSD 14.5 (this did not occur on 14.4), as well as on 15.1 and 15.2, due to
a new Clang compiler warning (-Wuninitialized-const-pointer) being treated as
an error under -Werror:
------------------------------------
/usr/src/usr.sbin/inetd/inetd.c:1377:44: error: variable 'nbuf2' is
uninitialized when passed as a const p
ointer argument here [-Werror,-Wuninitialized-const-pointer]
 1377 |                                 rpcb_set(sep->se_rpc_prog, i, netid2,
&nbuf2);
      |                                                                       
^~~~~
1 warning and 1 error generated.
*** [inetd.pieo] Error code 1

make[4]: stopped making "all" in /usr/src/usr.sbin/inetd
make[4]: 1 error
...
------------------------------------
When INET6 is disabled, nbuf2 is never initialized.

The fix involves separating the definitions of nbuf and nbuf2 in the
usr.sbin/inetd/inetd.c file and moving the definition of nbuf2 into the block
with #ifdef INET6

-- 
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 300904] usr.sbin/inetd build without INET6, error uninitialized nbuf2
#549
Author: bugzilla-noreply
Date: Thu, 19 Nov 2026 11:39
16 lines
2517 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300904

DYM <dym@afalina.od.ua> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch

-- 
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 300904] usr.sbin/inetd build without INET6, error uninitialized nbuf2
#550
Author: bugzilla-noreply
Date: Thu, 19 Nov 2026 11:44
17 lines
2564 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300904

DYM <dym@afalina.od.ua> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #277453|0                           |1
           is patch|                            |

-- 
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 300904] usr.sbin/inetd build without INET6, error uninitialized nbuf2
#551
Author: bugzilla-noreply
Date: Thu, 19 Nov 2026 11:47
52 lines
3951 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300904

--- Comment #1 from DYM <dym@afalina.od.ua> ---
Comment on attachment 277453
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=277453
Placing nbuf2 and netid2, along with the associated rpcb_unset()/rpcb_set()
calls, in the #ifdef INET6 blocks in the file usr.sbin/inetd/inetd.c

>--- usr.sbin/inetd/inetd.c.orig 2026-11-17 17:28:38.000000000 +0000
>+++ usr.sbin/inetd/inetd.c      2026-11-17 22:12:26.255699000 +0000
>@@ -1327,11 +1327,13 @@
>         if (sep->se_rpc) {
>                u_int i;
>                socklen_t len = sep->se_ctrladdr_size;
>-               struct netconfig *netid, *netid2 = NULL;
>+               struct netconfig *netid = NULL;
>+               struct netbuf nbuf;
> #ifdef INET6
>+               struct netconfig *netid2 = NULL;
>                struct sockaddr_in sock;
>+               struct netbuf nbuf2;
> #endif
>-               struct netbuf nbuf, nbuf2;
>
>                 if (getsockname(sep->se_fd,
>                                (struct sockaddr*)&sep->se_ctrladdr, &len) < 0){
>@@ -1372,10 +1374,12 @@
>                 for (i = sep->se_rpc_lowvers; i <= sep->se_rpc_highvers; i++) {
>                        rpcb_unset(sep->se_rpc_prog, i, netid);
>                        rpcb_set(sep->se_rpc_prog, i, netid, &nbuf);
>+#ifdef INET6
>                        if (netid2) {
>                                rpcb_unset(sep->se_rpc_prog, i, netid2);
>                                rpcb_set(sep->se_rpc_prog, i, netid2, &nbuf2);
>                        }
>+#endif
>                 }
>         }
>        if (sep->se_socktype == SOCK_STREAM)
>

-- 
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 300904] usr.sbin/inetd build without INET6, error uninitialized nbuf2
#552
Author: bugzilla-noreply
Date: Thu, 19 Nov 2026 11:50
19 lines
2682 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300904

DYM <dym@afalina.od.ua> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #277453|1                           |0
           is patch|                            |
 Attachment #277453|0                           |1
        is obsolete|                            |

-- 
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 300904] usr.sbin/inetd build without INET6, error uninitialized nbuf2
#553
Author: bugzilla-noreply
Date: Thu, 19 Nov 2026 11:57
18 lines
2591 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300904

--- Comment #2 from DYM <dym@afalina.od.ua> ---
Created attachment 277454
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=277454&action=edit
placing nbuf2, netid2 with the associated rpcb_unset(), rpcb_set() calls in the
#ifdef INET6 in usr.sbin/inetd/inetd.c

-- 
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 300904] usr.sbin/inetd build without INET6, error uninitialized nbuf2
#559
Author: bugzilla-noreply
Date: Thu, 19 Nov 2026 16:04
22 lines
2827 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300904

Mark Linimon <linimon@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |Overcome By Events
             Status|New                         |Closed
           Assignee|bugs@FreeBSD.org            |bugmeister@FreeBSD.org

--- Comment #3 from Mark Linimon <linimon@FreeBSD.org> ---
^Triage: appears to have been committed separately via
https://reviews.freebsd.org/D59277 .

-- 
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads