From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751953AbcGSTjW (ORCPT ); Tue, 19 Jul 2016 15:39:22 -0400 Received: from mail-qt0-f170.google.com ([209.85.216.170]:35135 "EHLO mail-qt0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751364AbcGSTjU (ORCPT ); Tue, 19 Jul 2016 15:39:20 -0400 Subject: Re: [PATCH v15 00/10] arm64: Add kernel probes (kprobes) support To: Catalin Marinas References: <1467995754-32508-1-git-send-email-dave.long@linaro.org> <20160719182744.GI21256@e104818-lin.cambridge.arm.com> Cc: Huang Shijie , James Morse , Marc Zyngier , Pratyush Anand , Sandeepa Prabhu , Will Deacon , William Cohen , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Steve Capper , Masami Hiramatsu , Li Bin , Jisheng Zhang , Mark Rutland , Daniel Thompson , Vladimir Murzin , Petr Mladek , Ard Biesheuvel , Jens Wiklander , Robin Murphy , Mark Brown , Suzuki K Poulose , Dave P Martin , Andrey Ryabinin , yalin wang , Yang Shi , Zi Shen Lim , John Blackwood , Andrew Morton , =?UTF-8?Q?Alex_Benn=c3=a9e?= , Adam Buchbinder , Christoffer Dall From: David Long Message-ID: <578E81BE.3060100@linaro.org> Date: Tue, 19 Jul 2016 15:38:38 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <20160719182744.GI21256@e104818-lin.cambridge.arm.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/19/2016 02:27 PM, Catalin Marinas wrote: > On Fri, Jul 08, 2016 at 12:35:44PM -0400, David Long wrote: >> From: "David A. Long" >> >> This patchset is heavily based on Sandeepa Prabhu's ARM v8 kprobes patches, >> first seen in October 2013. This version attempts to address concerns >> raised by reviewers and also fixes problems discovered during testing. >> >> This patchset adds support for kernel probes(kprobes), jump probes(jprobes) >> and return probes(kretprobes) support for ARM64. > > Some more errors with this patchset applied and CONFIG_NET_TCPPROBE > enabled (it's fine with this option disabled though). I boot on a Juno > with NFS over UDP and then try to ssh into it (hence establish the first > TCP connection): > > Unable to handle kernel NULL pointer dereference at virtual address 00000003 > pgd = ffff000008ceb000 > [00000003] *pgd=00000009fff6d003, *pud=00000009fff6c003, *pmd=0000000000000000 > Internal error: Oops: 96000004 [#1] PREEMPT SMP > Modules linked in: > CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.7.0-rc4+ #9 > Hardware name: ARM Juno development board (r0) (DT) > task: ffff800976901900 ti: ffff800976910000 task.ti: ffff800976910000 > PC is at enqueue_task_fair+0x818/0x1188 > LR is at enqueue_task_fair+0x8a4/0x1188 > pc : [] lr : [] pstate: 600001c5 > sp : ffff80097fec3a80 [...] I've reproduced the failure on hikey. I'm looking at it. -dl