From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AADDCC433FE for ; Fri, 19 Nov 2021 16:07:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 92F2A61288 for ; Fri, 19 Nov 2021 16:07:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236214AbhKSQK5 (ORCPT ); Fri, 19 Nov 2021 11:10:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232454AbhKSQK4 (ORCPT ); Fri, 19 Nov 2021 11:10:56 -0500 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 416B1C061574 for ; Fri, 19 Nov 2021 08:07:54 -0800 (PST) Received: by mail-ed1-x52e.google.com with SMTP id o20so238620eds.10 for ; Fri, 19 Nov 2021 08:07:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kylehuey.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6J5BffBBnPWzW6VDKn7rj5am2GbMmTLCLYv70xXQS+8=; b=PjiU6zXPWE7V6Wkz+pySnqmQ+kWNo8w9Gx69VPCRIpjWDYl3LdRp4ye+HQf6hXYjkN a+wElY99oQX1pZtwRtzh5/3NAgNa3ET+uNNK+af6QD/DJD22kS8VgfJtSdu01jWxXH1o K1Mr6tYm0X8j3f9UOWHwH+d+XlDo4yDCuHigQvPYPvF8AIR3pPCaBxO4df4a8cLicnBB UCmgJafyNamln+rU+9453jJyf8tNixhuM/96MA/RfneM/GovkIEHqwxqSDslbHZuF5wB Zr/p8uaQpezsTspNNGBdAbyNrMqOK4A1JeU/4JhYdig9QUoM0lFUnQkdnEbryaApE7vz S1IQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6J5BffBBnPWzW6VDKn7rj5am2GbMmTLCLYv70xXQS+8=; b=Y2gh8zVYkztn5+Ykd090hQAxulQHK3WVdgczw3wSd1FgbSdZKcH7S5CT2QIFpXbSey Bba845BXvrPUr3S3AT9yz9oYeT754asVkgcXJx1FEHKk+D0hqgzNwcOhi4QQfRrg7z2/ 8rf97yeuOVe0AjzCC2fsBjWXp8olxtBRC44Fh0bKWvJQFeljfju1h10Da9AY7C4LIcYd WcXgxUk3DvcetQ70T3PYr+l6gymY3wPeYi+a9YS9mhldUhQuBWXlQiHPO0ObXcfuVOXw ezbbTKWSWT0nEl4m+YcnI0X+rxQeUD+j87cqGMnQYC42rgbNQu7ifA+LLvlTmq8aAvfi FpiA== X-Gm-Message-State: AOAM530iVCetR536gsUnvkgsqWtfUVd1zpBVnTRE6gCUIUZoNyDQtFSR o3gtz93EqhTVpJJtUN3/kekRtvJnnmQCbb8aq/+DBg== X-Google-Smtp-Source: ABdhPJzJ384uxRx8dMOneSKbUIyyuHtV/LDITFeoDAhCDkLIH6C/hXGFNoQoAiwwXorLi/jUgg6El4F1jXThPtbLifc= X-Received: by 2002:a05:6402:1a58:: with SMTP id bf24mr25933106edb.16.1637338072069; Fri, 19 Nov 2021 08:07:52 -0800 (PST) MIME-Version: 1.0 References: <202111171049.3F9C5F1@keescook> <87k0h6334w.fsf@email.froward.int.ebiederm.org> <202111171341.41053845C3@keescook> <202111171728.D85A4E2571@keescook> <875ysp1m39.fsf@email.froward.int.ebiederm.org> In-Reply-To: <875ysp1m39.fsf@email.froward.int.ebiederm.org> From: Kyle Huey Date: Fri, 19 Nov 2021 08:07:36 -0800 Message-ID: Subject: Re: [REGRESSION] 5.16rc1: SA_IMMUTABLE breaks debuggers To: "Eric W. Biederman" Cc: Kees Cook , Linus Torvalds , Andrea Righi , Shuah Khan , Alexei Starovoitov , Andy Lutomirski , Will Drewry , "open list:KERNEL SELFTEST FRAMEWORK" , bpf , open list , linux-hardening@vger.kernel.org, "Robert O'Callahan" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 18, 2021 at 8:12 AM Eric W. Biederman wrote: > Kyle thank you for your explanation of what breaks. For future kernels > I do need to do some work in this area and I will copy on the patches > going forward. In particular I strongly suspect that changing the > sigaction and blocked state of the signal for these synchronous signals > is the wrong thing to do, especially if the process is not killed. I > want to find another solution that does not break things but that also > does not change the program state behind the programs back so things > work differently under the debugger. The heads up in the future is appreciated, thanks. - Kyle