Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp3261337rwr; Sat, 22 Apr 2023 01:42:36 -0700 (PDT) X-Google-Smtp-Source: AKy350ZanNNUVfTa8wHdm2wchA2FwwdhkZaiBtHuyD1JzRV+momWBw2JejXh+y3C5OzJOtOGcFGc X-Received: by 2002:a17:90a:1994:b0:244:b4ea:add4 with SMTP id 20-20020a17090a199400b00244b4eaadd4mr7094807pji.3.1682152955848; Sat, 22 Apr 2023 01:42:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682152955; cv=none; d=google.com; s=arc-20160816; b=efYfwDI9Qz01PsiYlIAQnnhwlCZGVICmZcU5ylX8DT3Lvkp9qFH9mGCtDWVCuheFtQ SjZ5Yj3YhxOW7MYuBroqSa1C3CHeRAOiSq+mMMR+/4cV+1mIw5DIShcqlvmKkei/ObEJ 6tHkGzbdITQYc0cZf7mFNV/gj79YiWW/+2R0katp1FaHNOYmrq/iuBXfMEXf1TQyOFUu YyXs+2S3TmKWgLhxwms7ZCFW24wIPH9QrQBukQ8P4Dl/4sggdx7uS7eXWGZ4mkazY2ot udfuC40fgCGGIIpd9BczyvxTBY26nP4U43CQJP7qz3Mo2geCd4ugemn39fBVRN9+m6IC 3l1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=2cf1Y2SWdWCUg26TYEQJNq7Gbh8YsgVM5ILpbSVxZow=; b=CEjT5Kzei5QWMFt1YOs+ly/hX3/0Omm3N4g+14d9SfVBJuP4QavcPmX4BLU/xPjVLR UBRCiuTwtuJoyYCZ5HnUg+3nQuWWyBJcYkt2NRYHM4+2j9klK6YGZt+N5WWXHlyJdruq cDwS8XVMe7mKiqg2FkvcrYB55xfOx8Q5UjMt4XHiu7wvnVP5fk/z7smgVI2f4jdQgNB4 HEW9M5EWF17xoltvtFyEjZnNEtdsckzoZ9YFTsgvFPXTDKxQ/FRDbOZiBSvcL4LRzB1+ a9Y67Vi5BwzfR2SnqsQ7/p2AU1GIuyaEMl92K3tJMQiF4BAz5nUuTqVk+f1FgfrwJoV8 Awmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dgZoPEmy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ju10-20020a170903428a00b001a1d6a9c6f1si5963924plb.124.2023.04.22.01.42.24; Sat, 22 Apr 2023 01:42:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dgZoPEmy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229659AbjDVIkN (ORCPT + 99 others); Sat, 22 Apr 2023 04:40:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229473AbjDVIkM (ORCPT ); Sat, 22 Apr 2023 04:40:12 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2186C1BF7; Sat, 22 Apr 2023 01:40:11 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id A594761707; Sat, 22 Apr 2023 08:40:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 05DAAC4339E; Sat, 22 Apr 2023 08:40:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1682152810; bh=QXG5T42tVx2Zc3hVYTGfLvngOMBM37xTg5jMxu8Vaf8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=dgZoPEmyURGx8GO6GV9YJt++08mo4Jfcb78n9MD6yMcczqoFrzth2mtqyRFPXrq5S snUbjsLbFCxeIWPtIsAuAFk1DMWqzvQ/wGhE4vy253OyfrTODrOvzEpMk+C6Jd4O9p L/keUyvvi1gAA35kmpr90w6NkTy5NnHmbtmJo8nbmjS1c9X/i2CIRTDpMAEFWwVmC6 TP51hRCCHpSbSC+q6jaMCCKPCLHO27+pIYDpAfJxeeSWBDJ1yzCf/OclKVOPf68pym 60cqkEU1FRj1iwSL3gVMYwvEQvKtqvExa5jf20kRYv+xIcCCkZuFKfZs8oI6GqvdER Ax3V4hko0OHbw== Received: by mail-ej1-f50.google.com with SMTP id a640c23a62f3a-94a34d3812cso439695866b.2; Sat, 22 Apr 2023 01:40:09 -0700 (PDT) X-Gm-Message-State: AAQBX9c58pMjUV1DJ7vMvEVQv2g+leItBTll9VBiLjScjPh9qYRY4V37 +4Nhg1FdPwN1Rh/96ii+76wvFH/VHWnw/6Js8IE= X-Received: by 2002:a17:906:a2da:b0:946:be05:ed7a with SMTP id by26-20020a170906a2da00b00946be05ed7amr4668557ejb.70.1682152808057; Sat, 22 Apr 2023 01:40:08 -0700 (PDT) MIME-Version: 1.0 References: <20230416173326.3995295-1-kernel@xen0n.name> <6ca642a9-62a6-00e5-39ac-f14ef36f6bdb@xen0n.name> <2e8d357d-e006-bda8-3711-dcbafbd4c53e@xen0n.name> In-Reply-To: <2e8d357d-e006-bda8-3711-dcbafbd4c53e@xen0n.name> From: Huacai Chen Date: Sat, 22 Apr 2023 16:39:55 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 0/2] LoongArch: Make bounds-checking instructions useful To: WANG Xuerui Cc: Xi Ruoyao , loongarch@lists.linux.dev, WANG Xuerui , Eric Biederman , Al Viro , Arnd Bergmann , linux-api@vger.kernel.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 20, 2023 at 5:38=E2=80=AFPM WANG Xuerui wro= te: > > On 2023/4/20 16:36, Huacai Chen wrote: > > Hi, Xuerui, > > > > I hope V2 can be applied cleanly without the patch series "LoongArch: > > Better backtraces", thanks. > > I believe it's already the case (just try; I've moved the BADV printing > for BCE into the better backtraces series before sending this). > > I'm only waiting for comments from the other UAPI maintainers on the CC > list. You changed arch/loongarch/include/asm/kdebug.h, does it have something to do with UAPI? On the other hand, kprobe has dropped the notifier mechanism, so this piece should be changed, I think. + /* + * notify the kprobe handlers, if instruction is likely to + * pertain to them. + */ + if (notify_die(DIE_BOUNDS_CHECK, "Bounds check error", regs, 0, + current->thread.trap_nr, SIGSEGV) =3D=3D NOTIFY_STOP) + goto out; Huacai > > -- > WANG "xen0n" Xuerui > > Linux/LoongArch mailing list: https://lore.kernel.org/loongarch/ >