Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp57205pxj; Wed, 16 Jun 2021 20:12:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzuj41UuVmi/u+Aiwm43WEbTt5mtKXcOiiQCbYYzW/jPn99lY1QNbofeT6GJ18aUCf3QIrS X-Received: by 2002:a02:8816:: with SMTP id r22mr2346041jai.135.1623899528535; Wed, 16 Jun 2021 20:12:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623899528; cv=none; d=google.com; s=arc-20160816; b=v5c+PPPwYgCV1lglmgz1lyPGgO95Jn+L2Wgx79F+zdcYjaQAtiJbIRhTFUMGMlKflj 6jmrQFk6exdHm2KP2XSNAALx2a6+/ssBMmTmU73FXFFUe30o4VFuKUlwSDxd7ORjnN0h 8EU9mfaqNKC9sv7/MTMbfyQ7/ywH+n5gaUVQL3ma9sBehxgJaXLhH8doWHekPIwLq/qR hCw4qUy00jujWNJRHSQAJZsz2zH63/Fuz9Sb3KmWKekNKfbUE+fzFoZBDMmNt2gJoRiS K1s4ZeBvuAbkHyrsoCFQ+uB7bBnW+iWcQMLmL94/A6kMvHcgMN2xicAVDzfvbnxh35tt 26sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:mime-version:user-agent:message-id :in-reply-to:date:references:cc:to:from; bh=ruXxLhdYwBs+p4Bie9oOLUI+CXkqnMgpBL2gNGo11PM=; b=pR7yAjUdNt7oU/rKfEvbB1oX9WpDlt0Ta+18/F1UgXnYH18Gb325plhuXW2k/Ewvsi PF4fIPVx2078iggYwGtHsyPvv1/l4GUAXxUJomVrKvFz3kMniADTpHuWNhR+ELs4wL8H Fur+Gh1BYTJSXYlIbDFtyGNsJ1xmcqoFTntpQ2z+D7lNrrelgd0N7itu9fMh7d7pSj5y ZEoQ9+dFTXjlUwJAA2SCA1Po1pYGeVKELUiU7orsq3dqGX9JMgqEn4tMdapGkJXVESWc mw7KT1YIvcKfpClQI3n2vW4JNrhVE3I+iHknvQW7LQKQUr/aeynE08AxuySIkx9U3b/A Tijw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xmission.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q4si5006287jaj.46.2021.06.16.20.11.56; Wed, 16 Jun 2021 20:12:08 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xmission.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231843AbhFPScz (ORCPT + 99 others); Wed, 16 Jun 2021 14:32:55 -0400 Received: from out03.mta.xmission.com ([166.70.13.233]:33884 "EHLO out03.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231352AbhFPScy (ORCPT ); Wed, 16 Jun 2021 14:32:54 -0400 Received: from in02.mta.xmission.com ([166.70.13.52]) by out03.mta.xmission.com with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1ltaJF-00A84z-5r; Wed, 16 Jun 2021 12:30:41 -0600 Received: from ip68-227-160-95.om.om.cox.net ([68.227.160.95] helo=email.xmission.com) by in02.mta.xmission.com with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1ltaJE-000z9Q-7B; Wed, 16 Jun 2021 12:30:40 -0600 From: ebiederm@xmission.com (Eric W. Biederman) To: Linus Torvalds Cc: Michael Schmitz , linux-arch , Jens Axboe , Oleg Nesterov , Al Viro , Linux Kernel Mailing List , Richard Henderson , Ivan Kokshaysky , Matt Turner , alpha , Geert Uytterhoeven , linux-m68k , Arnd Bergmann , Ley Foon Tan , Tejun Heo , Kees Cook References: <87sg1p30a1.fsf@disp2133> <87pmwsytb3.fsf@disp2133> <87sg1lwhvm.fsf@disp2133> <6e47eff8-d0a4-8390-1222-e975bfbf3a65@gmail.com> <924ec53c-2fd9-2e1c-bbb1-3fda49809be4@gmail.com> <87eed4v2dc.fsf@disp2133> <5929e116-fa61-b211-342a-c706dcb834ca@gmail.com> <87fsxjorgs.fsf@disp2133> <87zgvqor7d.fsf_-_@disp2133> <87mtrpg47k.fsf@disp2133> Date: Wed, 16 Jun 2021 13:29:38 -0500 In-Reply-To: <87mtrpg47k.fsf@disp2133> (Eric W. Biederman's message of "Wed, 16 Jun 2021 11:32:47 -0500") Message-ID: <87pmwlek8d.fsf_-_@disp2133> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-XM-SPF: eid=1ltaJE-000z9Q-7B;;;mid=<87pmwlek8d.fsf_-_@disp2133>;;;hst=in02.mta.xmission.com;;;ip=68.227.160.95;;;frm=ebiederm@xmission.com;;;spf=neutral X-XM-AID: U2FsdGVkX1/QcGeYYkSKc73XnoZZIXFLvqc9Us7t81k= X-SA-Exim-Connect-IP: 68.227.160.95 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on sa07.xmission.com X-Spam-Level: ** X-Spam-Status: No, score=2.3 required=8.0 tests=ALL_TRUSTED,BAYES_50, DCC_CHECK_NEGATIVE,T_TooManySym_01,T_XMDrugObfuBody_08,XMNoVowels autolearn=disabled version=3.4.2 X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% * [score: 0.5000] * 1.5 XMNoVowels Alpha-numberic number with no vowels * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa07 1397; Body=1 Fuz1=1 Fuz2=1] * 0.0 T_TooManySym_01 4+ unique symbols in subject * 1.0 T_XMDrugObfuBody_08 obfuscated drug references X-Spam-DCC: XMission; sa07 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: **;Linus Torvalds X-Spam-Relay-Country: X-Spam-Timing: total 351 ms - load_scoreonly_sql: 0.06 (0.0%), signal_user_changed: 11 (3.2%), b_tie_ro: 10 (2.7%), parse: 1.21 (0.3%), extract_message_metadata: 3.2 (0.9%), get_uri_detail_list: 0.56 (0.2%), tests_pri_-1000: 4.9 (1.4%), tests_pri_-950: 1.37 (0.4%), tests_pri_-900: 1.14 (0.3%), tests_pri_-90: 110 (31.3%), check_bayes: 108 (30.8%), b_tokenize: 7 (1.9%), b_tok_get_all: 6 (1.9%), b_comp_prob: 2.0 (0.6%), b_tok_touch_all: 89 (25.5%), b_finish: 0.93 (0.3%), tests_pri_0: 199 (56.7%), check_dkim_signature: 0.58 (0.2%), check_dkim_adsp: 3.7 (1.1%), poll_dns_idle: 1.43 (0.4%), tests_pri_10: 2.2 (0.6%), tests_pri_500: 8 (2.2%), rewrite_mail: 0.00 (0.0%) Subject: [PATCH 0/2] alpha/ptrace: Improved switch_stack handling X-SA-Exim-Version: 4.2.1 (built Sat, 08 Feb 2020 21:53:50 +0000) X-SA-Exim-Scanned: Yes (on in02.mta.xmission.com) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This pair of changes has not received anything beyond build and boot testing. I am posting these changes as they do a much better job of warning of problems and shutting down the security hole. Making them a much better pattern than the my last patch. I hope to get the test cases soon. arch/alpha/include/asm/thread_info.h | 2 ++ arch/alpha/kernel/entry.S | 62 ++++++++++++++++++++++++++-------- arch/alpha/kernel/process.c | 3 ++ arch/alpha/kernel/ptrace.c | 13 +++++-- arch/alpha/kernel/syscalls/syscall.tbl | 8 ++--- 5 files changed, 67 insertions(+), 21 deletions(-) Eric W. Biederman (2): alpha/ptrace: Record and handle the absence of switch_stack alpha/ptrace: Add missing switch_stack frames