Received: by 10.223.176.46 with SMTP id f43csp4560101wra; Tue, 23 Jan 2018 10:59:32 -0800 (PST) X-Google-Smtp-Source: AH8x225r+B4MIReu17RJAPf+/UMKSgC8jCQ/u9smmGEJ3/pd9FRYVcHr7pSqeUaMzBhOuoRzy5FL X-Received: by 10.36.241.65 with SMTP id q1mr4817359iti.4.1516733972072; Tue, 23 Jan 2018 10:59:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516733972; cv=none; d=google.com; s=arc-20160816; b=RpARuhIbqEPIahp6iplvF5RC3gUIK3QHINC8Sisr37TXKkWaStDRS/CsAOC+qQCF7w 2Ho0RKjSkmXF9wxHWGKxb83Mb3VPKDeXOwxkJ8SUNUCO33iwy4dQGbfE7X1HIxTL8xdx aYnoB2iNBgeBrIe4W2pAruyleLuyxoj+HVnXMxdS22U8Vr5NzwbGqJlFQxON+6tlV42H UmQ7l3CYKH+pIce4SydFgC/89d0RsRkmx8wXo+n7tyBV1abntxA5GQsYqpOIEcIYbZKR ahfTQSGW8QePCXQ0X+wMj1x0y6/K1rRtzHi60ZqvEg5E011Qu5zyuSjAkpqlUW8SR4uM /+PA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=5HPR7944Bo9ro2hqFlaWYkEnfJ1S/vKf59v3yUcki10=; b=nYcJE7lTMLzRDJuQuBhVX/jXqkDmljJEGcdCtk/8D3EVFDqj0SmxSthWz7utSALdKY T0r49qKhGoesLi8LrcnpHJwxRP7GalyfQZWMjlHEo9aFuldOtAE4gZoHMwrYSVfyua49 5vcHwDWXbWKa9e3omr8iNDbcvdsHHmwlNtVd/AnF14QW3VDBlBBLcHgkQAFJyzDxpjcO nPQ0j9oO1kaEVU6/wDVQI830isRRc3nartIU79AXCIFgBRBZziY5gTzUMe+tYUaDrgu/ 1AZPqDCznHshT3EXD5h5jQmSiQUB1ZQ0Sa3YIYlYNStqQA3Kw+BV31mZr2TfzOkLlgCC YErA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CHYFKHbs; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n14si6891555iob.258.2018.01.23.10.59.17; Tue, 23 Jan 2018 10:59:32 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CHYFKHbs; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751688AbeAWS6x (ORCPT + 99 others); Tue, 23 Jan 2018 13:58:53 -0500 Received: from mail-pg0-f45.google.com ([74.125.83.45]:39172 "EHLO mail-pg0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751389AbeAWS6v (ORCPT ); Tue, 23 Jan 2018 13:58:51 -0500 Received: by mail-pg0-f45.google.com with SMTP id w17so907635pgv.6; Tue, 23 Jan 2018 10:58:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=5HPR7944Bo9ro2hqFlaWYkEnfJ1S/vKf59v3yUcki10=; b=CHYFKHbsXMAqDfYryVjq2JZu6SoQQ0XvxPO3sFaNgpCng3449+jvZSKHJ0NYX2smmR NRq+ufygMW7OZIc4Bs8RklVT4H8C57LdvjdkxRgbpiHNhTo+T5R42FK3jiqAe8g5yLx1 +Gw93JJtJBMnWnHlxIzGiWY3RV98OIyK2Z44BGg6Rk/l67HilSRhYmZzaTUZJU0oFF4K G4hWqSe0yxJjfr41u3IME2bKhiwLTuG/s4EciYo9k3Jut6l3WJN1c4vc03xWzMM4Fxx0 JzIbOHul/D7gxD7GzkwElrmik/KPY2t2ivZrh+Gp+vM6GtQ0CnazcglusyFoS/55WiJq ZtXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=5HPR7944Bo9ro2hqFlaWYkEnfJ1S/vKf59v3yUcki10=; b=TBc5woHgCGEabJADqjUfiHxgQbq4Ei+3fq2fX7IYqOVRbITewLFFUMQcLGnXP+LO+q pZkKRqG3xqj5tnKDdP9TiHTZ+vj0Wea0Y7QiGleUBX7vl6+Bg5ziSFbfAazDaOAD6Eur aRMUcaFnBYS9JKY5Bvr7r+QtelhnW5kZi+4E83/b2arvvw5xrXDhiFH2ubARFLraV8T5 h2kpmbAbPTAUGvI27sJ7V8ah6cmsbBtMu0qKJ7T1fig0z4opBPUwdiTmmUrhSnyd4QIY Wi19KtCgsC/5rTwwOCKALiM6B+KGrygqkTPN1YhGWu/zoFs3vs6vnSfS+Hi2q5WcPi1U 8mEA== X-Gm-Message-State: AKwxytcS6+7ZFTOd+U7PcSaftdqRJUrQzzMUap42HBT93rtbEjaS7D8r VumKKJloGBuwZuF57hXSMaY= X-Received: by 10.99.94.69 with SMTP id s66mr9104934pgb.155.1516733931250; Tue, 23 Jan 2018 10:58:51 -0800 (PST) Received: from dsa-mb.local ([216.129.126.118]) by smtp.googlemail.com with ESMTPSA id z5sm1301061pge.11.2018.01.23.10.58.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Jan 2018 10:58:50 -0800 (PST) Subject: Re: KASAN: slab-out-of-bounds Read in erspan_xmit To: William Tu Cc: syzbot , David Miller , Alexey Kuznetsov , linux-kernel@vger.kernel.org, Linux Kernel Network Developers , syzkaller-bugs@googlegroups.com, Hideaki YOSHIFUJI References: <001a113e9f281d2cc3056362d99a@google.com> <7d3e467c-543c-7076-e900-25028a2c54b5@gmail.com> From: David Ahern Message-ID: <32f1adea-f2e3-9f29-bb1b-1b2116f13903@gmail.com> Date: Tue, 23 Jan 2018 11:58:56 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/23/18 11:50 AM, William Tu wrote: > Hi, > > I'm new to kasan and trying to follow this instruction to reproduce the issue: > https://github.com/google/syzkaller/blob/master/docs/executing_syzkaller_programs.md > > After re-compile my kernel with KASAN related config enable, I run > $ ./syz-execprog -cover=0 -repeat=0 -procs=16 program > > I wonder does the "program" mean the repro.c.txt? or I should compile > it to binary? > # gcc -o program repro.c.txt > # ./syz-execprog myprogram > 2018/01/23 10:45:19 parsed 0 programs > > And how to use the "repro.syz.txt"? > It seems to have some command like "syz_emit_ethernet" to generate packet. > but I have no clue where to run it. Maybe I'm still missing something? > In the past I have only compiled a kernel with KASAN, compiled the reproducer program and run it in a VM. No need for the syzbot overhead.