From nobody Thu Aug 21 23:29:08 2025 X-Original-To: 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 4c7KKM1w6Wz64bvQ for ; Thu, 21 Aug 2025 23:29:27 +0000 (UTC) (envelope-from delphij@gmail.com) Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) (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 "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4c7KKL6qFZz3Hgm; Thu, 21 Aug 2025 23:29:26 +0000 (UTC) (envelope-from delphij@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-pg1-x52e.google.com with SMTP id 41be03b00d2f7-b47174beb13so1064871a12.2; Thu, 21 Aug 2025 16:29:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1755818959; x=1756423759; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=C8XvBkuJOi+VkxmfFIYBq6WtuGLBTcROhZjXrzHGKvA=; b=AlEe0p1iTBe1BHTsmssomTrd1X9+W1hrd+DWBjH+V6qcpAMpQjbyE15cIcmqpbE1m7 ahgapkgcabU84S/eEdbLqKXdaG8vlvstDxeyTJK70UhUj5JIS2HHWa/PHuB3Hbe1/1dx YBtPxRqGUDslsyFaSYeDnt0mvRMFcUpsKpD1vZAQaR+ks2tFmDUr6u3E40tZWwRFbPpz 9OfSaLZWDVhyCXDeYnWb/QB/AGxMlppPeAwRuoxqKi58sA9iavXcbc06wWFfr0CjeCsd atc4/migU2UWG1FingdMryKNizi9nKMXquadFZo/NHVVIRe9KACKxaHP+KbPlaalvJB2 DFeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755818959; x=1756423759; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=C8XvBkuJOi+VkxmfFIYBq6WtuGLBTcROhZjXrzHGKvA=; b=V6bU6MlkAmxvKGZ5BVJXHGYquNOMQgVxeNFZ0Yd2asCiJZCkgdZWMwjaZKaWiBo3Kl sTEYXxv//doSZKM5xjZpK9HemGG6mNahYFtLMf5deGuyTRmorfnsXtF+9d+Cpx05WxJS cFCa1aKRcrJwCAk3loDtvpfILAoMJn7j2YguWaLrif3wYkjhQp3FBT51Uu/KxwqRuCgR 64wWL9iqYxZo0QNgC5ct2Dse+I8GgkezPX66MQS2kKupZIZt7UcEw0v90akrzBFpQM32 1OagHpi05rDFf3LsjHrS7A5tW1RnNpHDt/GvOnFDP+a1qHmxwOPTOTULB+y/31sdP9Xb WdTw== X-Forwarded-Encrypted: i=1; AJvYcCUoFZUx/gRNXcU46LbIKB8s1OmoqkxIA7rDL/4GWtPNnHX7/53gOBHIoDhqU7YkuIh5Kd9alCM1@freebsd.org X-Gm-Message-State: AOJu0YyvQNbBf0je7HMIXssbWCqVmAcijMzp/k2A7DKteafxkK9brMCT bMxDCC2EjYMudp6GG+Ryq/XCZrjCMD+BrzHkVVsiXUMFp+8sQHRG4j8zHBKPEcOrlKRKwlJ53Jf R3BMy0jODuO9j4+5b6ky8TaRUO2THWMLiDw== X-Gm-Gg: ASbGncurYKB6zseN93PgOXIDwLKRKlnYy4ptb0YlLI0mfLSNEH9Ivw9XyNzRlSEJXXE dlMhyNCWTEb2641JUHynEA2vNlQJBhzW1O2MLXekrKrnSRRUjqASJht7gBL41BTWLQbMETzOUkS lDLxv1rpoHHU407pAJBOf1dT04la/KQdlbJgQuH2S1sRo1hdJ/CKF7lREdp7GZnMhojq990yt+G Flp6iB8UVJGsYUg6j6A7/ZwJEWoIN3flNpsCg== X-Google-Smtp-Source: AGHT+IHkzOevAXOqfxDyvRs7zvkmpMmz+HJ2tabPiLMPn43/xh5gZ3sQVVrsqRLsX6uEWUzDXmSWViXi1Cu3EzBR0+Y= X-Received: by 2002:a17:90a:ec84:b0:31e:3bbc:e9e6 with SMTP id 98e67ed59e1d1-32517749935mr1650789a91.19.1755818959256; Thu, 21 Aug 2025 16:29:19 -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 References: <567997960c33b7a437a8a812b7d65379@Leidinger.net> In-Reply-To: From: Xin LI Date: Thu, 21 Aug 2025 16:29:08 -0700 X-Gm-Features: Ac12FXxMRPdvjcVyfNE6hrImeuRg8hIeBXUSFl-pE4hTXkFLlquXyJOMU1CA72w Message-ID: Subject: Re: Big compat issue with a recent current (zfs + syscall) To: Kyle Evans Cc: Alexander Leidinger , Current Content-Type: multipart/alternative; boundary="0000000000005b4230063ce875f2" X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4c7KKL6qFZz3Hgm --0000000000005b4230063ce875f2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Aug 21, 2025 at 2:56=E2=80=AFPM Kyle Evans wro= te: [...] > I don't think I'd expect it to help with zfs dataset stuff. > There are also some recent ZFS changes, but I don't know (didn't have read through all changes) if there are something related. > >> I had wondered the same, but the use of 'segfault' gave me pause; thes= e > would be SIGSYS rather than SIGSEGV, but that could just be a minor > terminology dispute. > > > > Aug 20 10:35:32 Andromeda kernel: [566445] pid 52166 (auth), jid 50, ui= d > 143: exited on signal 6 (no core dump - sugid process denied by ke > > rn.sugid_coredump) > > Aug 20 10:35:37 Andromeda kernel: [566450] pid 52172 (auth), jid 50, ui= d > 143: exited on signal 6 (no core dump - sugid process denied by ke > > rn.sugid_coredump) > > Aug 20 10:35:44 Andromeda kernel: [566457] pid 52179 (auth), jid 50, ui= d > 143: exited on signal 6 (no core dump - sugid process denied by ke > > rn.sugid_coredump) > > Aug 20 10:35:51 Andromeda kernel: [566463] pid 52185 (auth), jid 50, ui= d > 143: exited on signal 6 (no core dump - sugid process denied by ke > > rn.sugid_coredump) > > Aug 20 10:35:56 Andromeda kernel: [566469] pid 52193 (auth), jid 50, ui= d > 143: exited on signal 6 (no core dump - sugid process denied by ke > > rn.sugid_coredump) > > > > SIGABRT would seem to imply something like an assertion being tripped, > which is a bit unusual. Might need to flip > kern.sugid_coredump for a minute and see if you can gather some more > context from a coredump. > Well, yes (it's somewhat unusual) and no (I think it's expected behavior here): It's not unusual for a program to explicitly abort() when a setgroups() call failed, though: if I was the programmer who wanted to drop privileges and failed, showing some error message and abort() as soon as possible would be a reasonable choice (IMHO) because I wouldn't have a lot of other remedies, so to me it sounded reasonable here, especially when Alexander saw some missing system calls earlier. Cheers, --0000000000005b4230063ce875f2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Thu, Aug 2= 1, 2025 at 2:56=E2=80=AFPM Kyle Evans <kevans@freebsd.org> wrote:
[...]
I don't think I'd expect it to help with zfs dataset stuff.

There are also some recent ZFS changes, but I don= 't know (didn't have read through all changes) if there are somethi= ng related.
=C2=A0
>> I had wondered the same, but the use of 'segfault' gave me= pause; these would be SIGSYS rather than SIGSEGV, but that could just be a= minor terminology dispute.
>
> Aug 20 10:35:32 Andromeda kernel: [566445] pid 52166 (auth), jid 50, u= id 143: exited on signal 6 (no core dump - sugid process denied by ke
> rn.sugid_coredump)
> Aug 20 10:35:37 Andromeda kernel: [566450] pid 52172 (auth), jid 50, u= id 143: exited on signal 6 (no core dump - sugid process denied by ke
> rn.sugid_coredump)
> Aug 20 10:35:44 Andromeda kernel: [566457] pid 52179 (auth), jid 50, u= id 143: exited on signal 6 (no core dump - sugid process denied by ke
> rn.sugid_coredump)
> Aug 20 10:35:51 Andromeda kernel: [566463] pid 52185 (auth), jid 50, u= id 143: exited on signal 6 (no core dump - sugid process denied by ke
> rn.sugid_coredump)
> Aug 20 10:35:56 Andromeda kernel: [566469] pid 52193 (auth), jid 50, u= id 143: exited on signal 6 (no core dump - sugid process denied by ke
> rn.sugid_coredump)
>

SIGABRT would seem to imply something like an assertion being tripped, whic= h is a bit unusual.=C2=A0 Might need to flip
kern.sugid_coredump for a minute and see if you can gather some more contex= t from a coredump.

Well, yes (it's somewhat = unusual) and no (I think it's expected behavior here):=C2=A0 It's n= ot unusual for a program to explicitly abort() when a setgroups() call fail= ed, though: if I was the programmer who wanted to drop privileges and faile= d, showing some error message and abort() as soon as possible would be a re= asonable choice (IMHO) because I wouldn't have a lot of other remedies,= so to me it sounded reasonable here, especially when Alexander saw some mi= ssing system calls earlier.

Cheers,
--0000000000005b4230063ce875f2--