From nobody Tue Oct 17 00:07:01 2023 X-Original-To: freebsd-current@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 4S8Z6V4Z83z4wkTV for ; Tue, 17 Oct 2023 00:07:14 +0000 (UTC) (envelope-from rick.macklem@gmail.com) Received: from mail-il1-x134.google.com (mail-il1-x134.google.com [IPv6:2607:f8b0:4864:20::134]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4S8Z6T6hzcz3JwS for ; Tue, 17 Oct 2023 00:07:13 +0000 (UTC) (envelope-from rick.macklem@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=cq4tnFKs; spf=pass (mx1.freebsd.org: domain of rick.macklem@gmail.com designates 2607:f8b0:4864:20::134 as permitted sender) smtp.mailfrom=rick.macklem@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-il1-x134.google.com with SMTP id e9e14a558f8ab-352a3a95271so19323495ab.0 for ; Mon, 16 Oct 2023 17:07:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697501232; x=1698106032; darn=freebsd.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=zYPA3FThTyRWNxE1WRpvURPx1qpKPK4qeeEo/r7ilNs=; b=cq4tnFKsgLExSwI5PQ7DYGxFfBuMe9PIFtl9Vz0NR8FfziEm4+4lEQhpnOcwVDi9P0 TEC/56Q4WZvDYev6FoLhvrE4r94qwBHoZ0JF4Km5DTibgH6rbsdBwastzE/N2SdQVhPK TYJV48oVTrZ3asqFrnJcWvuBBa4BV0dR4MMqz6X+cq6eyBFISSg4udfxye6l7n+4JvU5 Ds5OHGYX79ibqWFvqLf5Ukc+djLz+BO5a0F8rmF1Wa8JL22dkdL5yRciubYvWTxBcGM3 shtMErJ0Gcz/Wd84GNPB0tHg6Y8lvLQFFY0CEG9Pn38022JSeZwJUQhVRHBVzo/352Kq T6Eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697501232; x=1698106032; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=zYPA3FThTyRWNxE1WRpvURPx1qpKPK4qeeEo/r7ilNs=; b=qMkiOrd4Ihq8D8Ir5Pyk3cilIdLpIGAJt72F4jEkr0GZjO98+IP9o6B9+AlGMLfuMi 1Kw7F4qGYvMi75/4gIWGhRb22/zmmy3H3akBPiSOUp0AnczjBq0+xAve+mUMywFMJUJp 8NBXo2M6tou8ikn/qanFUjPCRMWuB3MiJj0ZbBm2E4mezlr2y2H6fJOLKcs4kI01UTMn d0XdtulHaqEaOFtmruvw+YOAz5iOEVwgGlKivMMZRQMnSUVRnQ4LW03TBt2/j2f8IvLC koHHBz1zEm1dn2upb7AAKMQwKjtt3LwlFHTW1zSxNnt2SX6BDYuZgd65sAyozgPRvPQB zw2Q== X-Gm-Message-State: AOJu0Yxjcfd3BcBiC8x+hhZOgQ73S4ftRPrwZCBtLrpEI60xGM+09CaZ IZDnZUp+NNzy8KQP6Ztjkio1ytoCjdpNiK12cJC/JQk= X-Google-Smtp-Source: AGHT+IHU52moq9+35KnI6XAvbDl0YMkHFns9+PARQvtssYhUXCuhCQz283vUEkqP3xbhqa5B7ODaSKbzgUI0tqKPUPc= X-Received: by 2002:a05:6e02:154f:b0:351:1d53:c789 with SMTP id j15-20020a056e02154f00b003511d53c789mr1204127ilu.8.1697501232451; Mon, 16 Oct 2023 17:07:12 -0700 (PDT) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 From: Rick Macklem Date: Mon, 16 Oct 2023 17:07:01 -0700 Message-ID: Subject: RFC: Using NI_MAXSERV and NI_MAXHOST in the kernel To: FreeBSD CURRENT Content-Type: text/plain; charset="UTF-8" X-Spamd-Bar: --- X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::134:from]; DKIM_TRACE(0.00)[gmail.com:+]; TO_DN_ALL(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; TAGGED_FROM(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org] X-Rspamd-Queue-Id: 4S8Z6T6hzcz3JwS Hi, I have a patch for a bug identified at last week's testing event, where the FreeBSD NFSv4.1/4.2 client needs to rDNS a DS's address to a FQDN so that it can generate a server principal for Kerberos. (The bug only affects the case of a sec=krb5[ip],pnfs mount, so most will never see it.) Since the userspace gssd daemon calls getnameinfo(3) to do the rDNS, it would be nice if the kernel upcall code knew NI_MAXSERV and NI_MAXHOST. However, they currently live in netdb.h. I have put copies of them in sys/kgssapi/gssapi;.h, which works, but means that they are defined in two different places What do others think is the best way to handle this? Thanks, rick