Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753936AbcLKVhV (ORCPT ); Sun, 11 Dec 2016 16:37:21 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:32822 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751686AbcLKVhT (ORCPT ); Sun, 11 Dec 2016 16:37:19 -0500 Reply-To: alex.popov@linux.com Subject: Re: [PATCH 2/2] kcov: make kcov work properly with KASLR enabled References: <1481417456-28826-1-git-send-email-alex.popov@linux.com> <1481417456-28826-3-git-send-email-alex.popov@linux.com> To: Dmitry Vyukov Cc: Catalin Marinas , Will Deacon , Ard Biesheuvel , Mark Rutland , Rob Herring , Kefeng Wang , AKASHI Takahiro , Jon Masters , David Daney , Ganapatrao Kulkarni , Andrew Morton , Nicolai Stange , James Morse , Andrey Ryabinin , Andrey Konovalov , linux-arm-kernel@lists.infradead.org, LKML , syzkaller , Quentin Casasnovas From: Alexander Popov Message-ID: Date: Mon, 12 Dec 2016 00:37:16 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1207 Lines: 32 On 11.12.2016 12:32, Dmitry Vyukov wrote: > On Sun, Dec 11, 2016 at 1:50 AM, Alexander Popov wrote: >> Subtract KASLR offset from the kernel addresses reported by kcov. >> Tested on x86_64 and AArch64 (Hikey LeMaker). >> >> Signed-off-by: Alexander Popov >> --- >> kernel/kcov.c | 8 +++++++- >> 1 file changed, 7 insertions(+), 1 deletion(-) > > I think generally this is the right thing to do. > > There are 2 pending patches for kcov by +Quentin (hopefully in mm): > "kcov: add AFL-style tracing" > "kcov: size of arena is now given in bytes" > https://groups.google.com/forum/#!topic/syzkaller/gcqbIhKjGcY > https://groups.google.com/d/msg/syzkaller/gcqbIhKjGcY/KQFryjBKCAAJ > > Your patch probably conflicts with them. > Should you base them on top of these patches, so that Andrew can merge > it without conflicts? Excuse me, I can't find these patches in: git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git://git.kernel.org/pub/scm/linux/kernel/git/mhocko/mm.git git://git.cmpxchg.org/linux-mmots.git Could you point at the tree which I can rebase onto? Should I cherry-pick Quentin's patches manually? Best regards, Alexander