Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp174473imu; Mon, 19 Nov 2018 20:11:40 -0800 (PST) X-Google-Smtp-Source: AFSGD/VSNmu8zP+JBB/OrlLXcIebnfsci7rLeq1gQ4OT5O3GDsWOFVwhbKVkbLzrEPMXN+UAmzC5 X-Received: by 2002:a17:902:3181:: with SMTP id x1mr580926plb.58.1542687100661; Mon, 19 Nov 2018 20:11:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542687100; cv=none; d=google.com; s=arc-20160816; b=o/ouLoJ+iNaj12k8Mn5N478fD3DQ/1YYsNPU1CaEyJNmfX7WRJkOjgXf7qElWBJy+2 SGyZRlaNSNfZDWN/AlhWvihpsKnby81oqO9D4Wxe4RHUAS+1Kj0tckWqkxsXisOmFviz 58OHYIbioVQGyetbSJs4kepPIfzI9bVfjqq31ltxP+D7QLn6eaIGY8JoJMer0KLL8tp8 c6JcwL57T7CQCmOhufIZ56XDyALByQTcLHR34jdctAvd+1biUmvFaweWp9QUl1Zx4cqw wlki7qtfASl7qXpUqagYBY4wPmkb2DZNSLY8vNYNBSOSrKQ8oyoi61XFZkZZ4E5qgWXO tpzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=TLIoZA9EcdO99R0Fr5m7xoUfMZU2oQQB7qtzpCMc674=; b=dyPDJ8XRZ7kHz+1CAYsoXd5Y5NffdVlEwgzATh09lBMJDI/OuyTJN+lu6yqHMjCE1/ l5elQJcUCRoqKWXiBf/X+b2GVH8shNwFvp+7UT09u7gn/zh+Gev0CX6Td4taJ6gboPfi o8uYykS3wvYoTt8mvG2n6Egz/z9UcsSivU/9MEoBwON9oHEg/PKJ/CecSZAiWoFdnceI FmAvz8S34Krpa7idk/5bVk7bYOfdjWSSeeCjuKBlzsb9bH05W7uoSovJulScZmzHkuBT 5s9Ifqko4w4n+zfU8tXl4VZBj9ClIAKdm+671MaO4iTCTopZQ+/79bgkV6beIHyG4NiM A3GA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="F/cqJOpE"; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t12si4990369plr.311.2018.11.19.20.11.25; Mon, 19 Nov 2018 20:11:40 -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=@kernel.org header.s=default header.b="F/cqJOpE"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731431AbeKTOhv (ORCPT + 99 others); Tue, 20 Nov 2018 09:37:51 -0500 Received: from mail.kernel.org ([198.145.29.99]:60816 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727880AbeKTOhv (ORCPT ); Tue, 20 Nov 2018 09:37:51 -0500 Received: from localhost (lfbn-ncy-1-241-207.w83-194.abo.wanadoo.fr [83.194.85.207]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EC364206B2; Tue, 20 Nov 2018 04:10:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542687046; bh=eQ4S7S4+dURaMjQSsNhquss3rvCS2bN0w+K1346Oz9o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=F/cqJOpEt6inIjT+Ha/m/g+W8AFc+JNJc7K5C1u7KqLCEFXoD4DIrzcWy9UibfISA H+kaGRwm5thhm6TILOjQc2L9m3rucHbPxBt7vzoILZg77pBQ9YuGbAiMspHSlqPWbb Jm+LliyBOc4hh0xQjUD4i91AnpFNH/3PEUmaSqmY= Date: Tue, 20 Nov 2018 05:10:43 +0100 From: Frederic Weisbecker To: syzbot Cc: fweisbec@gmail.com, linux-kernel@vger.kernel.org, mingo@kernel.org, syzkaller-bugs@googlegroups.com, tglx@linutronix.de Subject: Re: KASAN: use-after-free Read in tick_sched_handle (3) Message-ID: <20181120041041.GA3398@lerouge> References: <0000000000007829c8057b0b58ed@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0000000000007829c8057b0b58ed@google.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 19, 2018 at 01:39:02PM -0800, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit: bae4e109837b mlxsw: spectrum: Expose discard counters via .. > git tree: net-next > console output: https://syzkaller.appspot.com/x/log.txt?x=11b5e77b400000 > kernel config: https://syzkaller.appspot.com/x/.config?x=d86f24333880b605 > dashboard link: https://syzkaller.appspot.com/bug?extid=999bca54de2ee169c021 > compiler: gcc (GCC) 8.0.1 20180413 (experimental) > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=14b7d093400000 > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1487a225400000 > > IMPORTANT: if you fix the bug, please add the following tag to the commit: > Reported-by: syzbot+999bca54de2ee169c021@syzkaller.appspotmail.com > > IPv6: ADDRCONF(NETDEV_CHANGE): veth1: link becomes ready > IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready > 8021q: adding VLAN 0 to HW filter on device team0 > ================================================================== > kasan: CONFIG_KASAN_INLINE enabled > BUG: KASAN: use-after-free in tick_sched_handle+0x16c/0x180 > kernel/time/tick-sched.c:164 So tick_sched_timer() -> tick_sched_handle() is passed regs returned by get_irq_regs() that seem to be junk. Those regs should come from smp_apic_timer_interrupt(). Thoughts?