Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp887078pxb; Wed, 27 Oct 2021 14:29:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIaAOeWEL4i9LkyGTpDf90Y8hOuVHB/3HSXqECKWD0TwRoGr+/SbYr9ejqUxmRb6//bL98 X-Received: by 2002:a17:907:9491:: with SMTP id dm17mr61191ejc.359.1635370181890; Wed, 27 Oct 2021 14:29:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635370181; cv=none; d=google.com; s=arc-20160816; b=kskOWkCWuuDyTqKDRmqmBwFEMa5iU4TR7XQZDsuklwaFWxcRtVUtvr7reZOnpJaHOn 43NPt4TeiNrpOPz3T7L/52lvZySAk4jTaSFbMfCUwLmx7i41Kk7QKoDYF3DS8PNXXz0E SUp79IaZwSndYOSuxJ0MH4Sc9GO5SRCwZGA7uN/mXbV48mk7oR/f0sRFLxNaYayLeJVD yIce7u8G533xtyYxIqDvnMzi5JDJWNGXYAfUfqi3nXefEVDjvm7YvWnHZUULKzfXDxiD VG6q5tuXKr0g0jHatiBQLNnu7myq1nReYyK99Q+dGVWUDzIsw9omzHA+IFZ9Mmt8+Z/w WplQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=9MzrYEtHrPiQtWwPbWMu/lQdr19sDgEzF+pHUCov90g=; b=E81CDpSz7u//1ywx21zSxqhqQKwW5Wbd9jLuKzBrBeejPL4ynAHxoZRi8lA807nCyD gjS7Ft2seni+nP3XjrQrZdFGV6xx6aUQBzVQitw3Fbi0cnqbV0Q6SaNP89EHm7nN4VOv /+oimj3C8Ml+T8b7Imh2/X4vc/tNs5bJlNCbiSXfNU9n0fpZeG5zxvSlWiguJONKqa2b w4XrR9Y3fXYBZLq7JpBBUdBpk6sQNg0mnkYDzw2glwIjcxNz0LxOO5BNWRNLQUqtWxwU B9C+WA9O738ZxoqncNN8qBpmaC2o/rUiXYZoCwsDkfmNmsEJdxez6zRrR7yOUwdRgXoX Kmkw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nc2si1626704ejc.557.2021.10.27.14.29.19; Wed, 27 Oct 2021 14:29:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238277AbhJ0O1W (ORCPT + 97 others); Wed, 27 Oct 2021 10:27:22 -0400 Received: from brightrain.aerifal.cx ([216.12.86.13]:40200 "EHLO brightrain.aerifal.cx" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238272AbhJ0O1V (ORCPT ); Wed, 27 Oct 2021 10:27:21 -0400 Date: Wed, 27 Oct 2021 10:24:51 -0400 From: Rich Felker To: Linus Torvalds Cc: "Eric W. Biederman" , Linux Kernel Mailing List , linux-arch , Oleg Nesterov , Al Viro , Kees Cook , Yoshinori Sato , Linux-sh list Subject: Re: [PATCH 06/20] signal/sh: Use force_sig(SIGKILL) instead of do_group_exit(SIGKILL) Message-ID: <20211027142450.GV7074@brightrain.aerifal.cx> References: <87y26nmwkb.fsf@disp2133> <20211020174406.17889-6-ebiederm@xmission.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 20, 2021 at 09:57:58AM -1000, Linus Torvalds wrote: > On Wed, Oct 20, 2021 at 7:44 AM Eric W. Biederman wrote: > > > > + force_sig(SIGKILL); > > I wonder if SIGFPE would be a more intuitive thing. > > Doesn't really matter, this is a "doesn't happen" event anyway, but > that was just my reaction to reading the patch. I think SIGKILL makes more sense unless there's a way the process could handle the resulting SIGFPE and recover. I'd actually like to see the lazy allocation of FPU state just removed (the amount of space saved is tiny relative to the complexity cost and the negative aspects of unrecoverable late failure) but for now let's just go with this. Rich