Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1179435pxj; Fri, 4 Jun 2021 07:58:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgPc5NKy3QT0/w0d0oNSargmDNOTMGwOp5tPrNAIahuVi2ope+dpArDXbzVfFP6YqP0XR9 X-Received: by 2002:a05:6402:48f:: with SMTP id k15mr5038891edv.262.1622818703790; Fri, 04 Jun 2021 07:58:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622818703; cv=none; d=google.com; s=arc-20160816; b=AwQQ5bn71Z8PfToUOoBw2QdqDGgR8OHOcriM+ZEzWfPI35sjdgrDkG+GUDRY3XuUOP XDs47eYb/n6CBeBUDWb2tH/EIYdxsPqzf5KyGwL6WHIkPR1ZC4iVcyj19y7f/J0uu6cX aZTVKcCi0pJX3FEnWftzAJQrg3Ug3b/lc9JoLTtA2j393V1X94+A8N3eC85FUjkwnoSA FNc/XHqGkY/mAoA7bIKOaxxKfJUTDj8jc8G0+tcjt1rK+nFSPFZDr1TIwQL8iCY0/ZkZ 9fncUqTZo5OPaGIvAkmx4s0veqM9lLR1G3mVdEcZl+EE+vlY8M9VzRXnvdlvIMql3EiQ a8PA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=31n7UU4Z15y1OAxRM8RKNfIIbW0wtbe/JpXMxqq/xWU=; b=coUUD1SfhD9N+FniDeaus/kc+LLkhfh8LH0xRE+duI6bfzyaRJ9qXS15F9JyVtasIO KnshUKXF7DGEZLldwPlQ0+MYvb/LR1nH4WyzSl4uZ3yyoWc0WxsQuAfejDluIwt4e7T9 SzZLa0raaX3bp7qqlUauRZ3TXdKtfgitXL/MZzsN8rvij3/7Nzc1xPiUHxvM5X5kQE58 evcwNt6/pU2P0P61XMplPGBRCnGkZwTYyl+98Wx0e5FUfcPRPw1QSczYaPHwHeUEF42c ek35rqO/RO7bbxiG3PFbGEN9VCxTEdj7bAOCxNbsUWhHeCeRXSXm7fPQkGTWGGazYxrt lQUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=OnAwmC+G; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s4si318535ejs.60.2021.06.04.07.58.00; Fri, 04 Jun 2021 07:58:23 -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; dkim=pass header.i=@alien8.de header.s=dkim header.b=OnAwmC+G; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230269AbhFDO4I (ORCPT + 99 others); Fri, 4 Jun 2021 10:56:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230258AbhFDO4H (ORCPT ); Fri, 4 Jun 2021 10:56:07 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2AA7DC061766 for ; Fri, 4 Jun 2021 07:54:21 -0700 (PDT) Received: from zn.tnic (p200300ec2f138500346025dad93ce3b3.dip0.t-ipconnect.de [IPv6:2003:ec:2f13:8500:3460:25da:d93c:e3b3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 505051EC04A6; Fri, 4 Jun 2021 16:54:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1622818459; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=31n7UU4Z15y1OAxRM8RKNfIIbW0wtbe/JpXMxqq/xWU=; b=OnAwmC+Gr6fatcUvQOj9omjmVJnxckDvCSvkfmkqMnfu+7qe1oVKkS7s1PpIo3pNgHpaCy sLVNrpSHBHg/fmzcIc9tes10kc1aqbl18IAgvvzoekQCt9XziZaj2OE97275V0cI8k4PL3 I1bpSCs10vv8IGDwna0dW7qXrNVLpow= Date: Fri, 4 Jun 2021 16:54:15 +0200 From: Borislav Petkov To: "Eric W. Biederman" , mtk@man7.org Cc: Jiashuo Liang , Dave Hansen , Andy Lutomirski , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , x86@kernel.org, "H. Peter Anvin" , linux-kernel@vger.kernel.org Subject: Re: [PATCH] signal/x86: Don't send SIGSEGV twice on SEGV_PKUERR Message-ID: References: <20210601085203.40214-1-liangjs@pku.edu.cn> <87lf7qocsd.fsf@disp2133> <878s3plmxj.fsf@disp2133> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <878s3plmxj.fsf@disp2133> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 04, 2021 at 09:33:12AM -0500, Eric W. Biederman wrote: > At some point I just figured someone needs to take the time to > understand the linux signal handling and get as many bugs out as we > can. It may not be flashy but it is one of those core things > that everything is built on so we need code that works. Oh yeah, good idea. Signals and their handling make most people cringe. Also, selftests. I wonder if it would be a good idea to make it a kernelnewbies project for people to do short programs, each exercising an API from the Linux manpages. Or maybe even get Michael (CCed) to donate some of the examples from his book: https://man7.org/tlpi/code/online/all_files_by_chapter.html in this case, chapters 20-22, as selftests for the kernel. Or maybe even all examples. :-) Just an idea anyway. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette