Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp547003imp; Thu, 21 Feb 2019 06:37:19 -0800 (PST) X-Google-Smtp-Source: AHgI3IYxU2+BIfGIwYAVQPxHnX3bVZukFATltfoRei0VmqYxvQ6sxmUpU9UiM+lH3DzCi8mPkZI3 X-Received: by 2002:a63:43:: with SMTP id 64mr12244916pga.64.1550759839141; Thu, 21 Feb 2019 06:37:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550759839; cv=none; d=google.com; s=arc-20160816; b=YAMRhrnA65yT/WESoskLfpj9E0/PpHB3puT9Csc2QX5Zb9PITRV822g3/OoKbWlYBl ufgZK6tcP1qYGRN7kNKkYA/cuV/Y7qi6rd/EKk1hPKPsIKeyEs4lI21jQjfjO0rtRnSk Qvkpql9GuOZQb2tB6m/ApB6SDg5DNd4qMPXeuzI/hA7iIesEfDNFPGJHcvKMGOv9yLzI ugG+VbK7MpNJlHjYY0tMVjYeMavCHn8KX3XXHQxH65nNtYgNg8vZEuvQDVZiO5L/giI8 JZMVlTX2OUChgI/DfFpphnXZ5fitMFiqShvO8o5it54X1KeXs+95R8Ep77mDq4iDH6/v pXYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=lGG+UoaJtf33D/sU6m7hgA+z6kCYn+Ebo80FsNqSlo4=; b=FBEFMTH9SRz4QKIgBQPrXoQxRXppHauu3EpzCKig+fC5V1k+1t3mIWj+m3XBz3eut1 hu4rZV3UJCJdFWnnK+ZpN7lOEE0a9p+zQz//YM/Q3E55ADuSTnMHmkIsvyEayR+47s2E x987GCPdzXkRHz19RlM/ij3vN57YY9URgm1M/48MFQh3GkP3FG/c5R2XIeIZ1DXAmfPe YSnca09QxngY6LG5yiSWXAKKSWmn1ySDw2f9OUO/MbuIE30Cr/Xi60DHuMEDdPZyXrBc 0JI8b0/7CNffUxL8qXViRm684zyosr2se+KUwmme4KNmVpdkMcF7Zc0XRQWXyofhZuS2 rPZw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id az2si9754875plb.252.2019.02.21.06.37.03; Thu, 21 Feb 2019 06:37:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727771AbfBUOg2 (ORCPT + 99 others); Thu, 21 Feb 2019 09:36:28 -0500 Received: from mail.kernel.org ([198.145.29.99]:57302 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725385AbfBUOg2 (ORCPT ); Thu, 21 Feb 2019 09:36:28 -0500 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4B6CC2075C; Thu, 21 Feb 2019 14:36:27 +0000 (UTC) Date: Thu, 21 Feb 2019 09:36:25 -0500 From: Steven Rostedt To: Masami Hiramatsu Cc: linux-kernel@vger.kernel.org, Linus Torvalds , Ingo Molnar , Andrew Morton , stable@vger.kernel.org, Changbin Du Subject: Re: [PATCH 1/2 v2] kprobe: Do not use uaccess functions to access kernel memory that can fault Message-ID: <20190221093625.56afccd2@gandalf.local.home> In-Reply-To: <20190221165252.4a9033b3348f30f9d973dbc4@kernel.org> References: <20190215174712.372898450@goodmis.org> <20190215174945.557218316@goodmis.org> <20190221165252.4a9033b3348f30f9d973dbc4@kernel.org> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 21 Feb 2019 16:52:52 +0900 Masami Hiramatsu wrote: > Basically OK to me. > Could you use probe_kernel_read() in this context, since probe_mem_read() is a > wrapper function for template code. > > With that change, > > Acked-by: Masami Hiramatsu This already hit Linus's tree. I was able to reproduce the crash, so I streamlined it. I should have still pushed more for your ack first. Sorry about that. For some reason, I thought the change was in the generic probe code, and accepted the probe_mem_read(). Anyway, did you want to send a patch to change it to probe_kernel_read(), for the merge window? > > And for the long term, I need to find more efficient (or smarter) way to do it, > like strnlen_user() does. Agreed. Thanks, -- Steve