Received: by 10.223.164.202 with SMTP id h10csp1519799wrb; Wed, 8 Nov 2017 05:37:38 -0800 (PST) X-Google-Smtp-Source: ABhQp+SYzjAxp2BGsxYlOyvgencnRf9CTvkNLQDJpNey8pAje8YkWVeyu4UHZdXyBvs3gBGYy9uN X-Received: by 10.101.100.68 with SMTP id s4mr500177pgv.181.1510148258073; Wed, 08 Nov 2017 05:37:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510148258; cv=none; d=google.com; s=arc-20160816; b=zBtBgXpOv55CPxE+SXYui+cU5vssjJCVabIH43WwEPgvpYJvWgP3opikzqWr17ek/e O9365guNy2LMZO6S5dn+FzVk/courlYlzPAv1F8w8rvhJIuC2DrZBD7s8wdjtmybOnAJ TP/1L9aArVHtABHKz6dv6xNMudh+nO+IuceXg7OIk81hyzivHfHRA6Ixn3JUDamK933Y vpgL6RNnWApSvW8PoWgyD8VI5Ik4tu3GquMFlEAKE3gN6FsUSwbDGPzd/dLiNMRe32wA vfoXookUCQTgNoBCTzkJaAlIf8uPjaAk/4Asxhs0/jnlhiWtq82ik0vfRjmyGc884LG1 C09Q== 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:mime-version:user-agent:date:message-id:subject :from:cc:to:dkim-signature:arc-authentication-results; bh=uH6n8vUdx8xaDE0VdvKqZNtnehPl19PHA4oDH3hs+x0=; b=M3NIn64UGfc1vSHwgJvgnYrwSSQ/0DzKD0NBr30JOjvxnLIoH21Bb/SMwMJRcUXCVv jiN5NDNipo025jFhGBoO1dvQ8WnD8oB8UqJRQ0kssXEYU51Qhna2FcuM8Cnb5Yu3SuCL 0KTlF31glOsB3+uvy1VJ5D0FqA0DjUdJpvVFhbNiWEHS+RLHqPnVHRroRtSwRHxhOUHW D+MwP33HpIDvkPgguqOIx2l9McDTcZ7AxCMfETh2IDfNfpdRJLEPRXuDUsdZUc3N/AzN 6mHz5I+SfZtZANutS6lcMXTlBsyvD5BXgblK+j6eg4KvtWYoZ9BEHTi0MrKwMt0a2g0Y sdcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@prevas.dk header.s=ironport1 header.b=gBNLz3pS; 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 y9si3681590pgp.405.2017.11.08.05.37.25; Wed, 08 Nov 2017 05:37:38 -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=fail header.i=@prevas.dk header.s=ironport1 header.b=gBNLz3pS; 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 S1752596AbdKHNg0 (ORCPT + 82 others); Wed, 8 Nov 2017 08:36:26 -0500 Received: from mail01.prevas.se ([62.95.78.3]:30464 "EHLO mail01.prevas.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752376AbdKHNgY (ORCPT ); Wed, 8 Nov 2017 08:36:24 -0500 X-Greylist: delayed 587 seconds by postgrey-1.27 at vger.kernel.org; Wed, 08 Nov 2017 08:36:23 EST DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=prevas.dk; i=@prevas.dk; l=4204; q=dns/txt; s=ironport1; t=1510148184; x=1541684184; h=to:cc:from:subject:message-id:date:mime-version: content-transfer-encoding; bh=n5hctKD+nVyQLXghQIojbhRrQ7JzPb+aU5qiVblNIFo=; b=gBNLz3pS6+oMbz/o87MM/RpqSAW7t59HLX7u0aBZB9wLv3hBVRJQw6tU Ny++yKHq1jqi8czCEmwbexlOlNY/AGoRkCgJn1qtCD8HKSa5XnwZQTBD0 WVaM2mMsfqbNRGqbLGUmEtc6rsVjATeCXb4kXaaksQDdPmYUKkIz2PbgO Y=; X-IronPort-AV: E=Sophos;i="5.44,364,1505772000"; d="scan'208";a="2794571" Received: from vmprevas4.prevas.se (HELO smtp.prevas.se) ([172.16.8.104]) by ironport1.prevas.se with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Nov 2017 14:26:35 +0100 Received: from [172.16.11.34] (172.16.8.31) by smtp.prevas.se (172.16.8.104) with Microsoft SMTP Server (TLS) id 14.3.361.1; Wed, 8 Nov 2017 14:26:34 +0100 To: CC: , Guenter Roeck From: Rasmus Villemoes Subject: oops with 4.14-rc8 when opening and closing /dev/watchdog0 Message-ID: <18b00f23-b71d-e6cb-8a51-9a48bf02d3b3@prevas.dk> Date: Wed, 8 Nov 2017 14:26:34 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [172.16.8.31] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Running current master (4.14.0-rc8-00009-gfbc3edf) I can reproduce the below quite consistently, though there are some variations in the stack trace. It happens when I start and stop busybox watchdog on /dev/watchdog0 a few times (sometimes on start, sometimes on stop, almost always after at most 3 starts/stops). watchdog0 is a gpio watchdog with the below DT entry. gpio-wdt { status = "okay"; compatible = "linux,wdt-gpio"; hw_margin_ms = <0xfa>; hw_algo = "toggle"; gpios = <0x15 0x19 0x0>; always-running; }; The 6b6b6b6b suggests some kind of use-after-free, I think. This is a ARM board based on LS1021A. Unfortunately, I hit this in the process of starting to use a mainline-based kernel for the board, so I don't have any previous known-working kernel to start a bisection from. I'll try to see if I can get a 4.13 one to boot with the same .dtb and .config, but in the meantime perhaps someone can see something obvious. Thanks, Rasmus Unable to handle kernel paging request at virtual address 6b6b6d3b pgd = 80003000 [6b6b6d3b] *pgd=80000080005003, *pmd=00000000 Internal error: Oops: 206 [#1] SMP ARM Modules linked in: bridge stp llc CPU: 0 PID: 1931 Comm: watchdog Not tainted 4.14.0-rc8-00009-gfbc3edf #1 Hardware name: Freescale LS1021A task: be4a8d40 task.stack: bd1d4000 PC is at module_put+0x8/0x68 LR is at __fput+0x108/0x1b0 pc : [<8027f090>] lr : [<802ef898>] psr: 200d0013 sp : bd1d5f20 ip : 00000000 fp : 00000000 r10: bf0877c8 r9 : be805608 r8 : be04ccd0 r7 : be3f57c8 r6 : 00000008 r5 : bf0877c8 r4 : be3f57c0 r3 : bf2241a0 r2 : 6b6b6b6a r1 : 00000000 r0 : 6b6b6b6b Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user Control: 30c5387d Table: bd189340 DAC: fffffffd Process watchdog (pid: 1931, stack limit = 0xbd1d4210) Stack: (0xbd1d5f20 to 0xbd1d6000) 5f20: 00000000 00000000 0000002b be4a917c be4a8d40 be412b80 81055310 be49897c 5f40: 00000000 0000044c 00000000 80235014 be4a8d40 be498940 bd1d4000 bd1d5f70 5f60: be49897c 80220a10 00000000 be4a9068 be4a8d40 be4a9068 bd80c5c0 000000f8 5f80: 00000000 80220fe8 000f4240 7ed9bccc 0007a154 000000f8 80207544 80220ffc 5fa0: 000f4240 80207380 000f4240 7ed9bccc 00000000 000874fe 00000001 00000000 5fc0: 000f4240 7ed9bccc 0007a154 000000f8 00000f00 00000000 76f89000 00000000 5fe0: 76eb87e0 7ed9b9b4 00021c9c 76eb87f0 600d0010 00000000 00000000 00000000 [<8027f090>] (module_put) from [<00000000>] ( (null)) Code: e3a00001 e12fff1e e3500000 012fff1e (e59021d0) ---[ end trace d8b636b1833a6c9e ]--- Kernel panic - not syncing: Fatal exception CPU1: stopping CPU: 1 PID: 64 Comm: kworker/u4:1 Tainted: G D 4.14.0-rc8-00009-gfbc3edf #1 Hardware name: Freescale LS1021A Workqueue: events_unbound flush_to_ldisc [<8020c8e8>] (unwind_backtrace) from [<8020a728>] (show_stack+0x10/0x14) [<8020a728>] (show_stack) from [<80661704>] (dump_stack+0x7c/0x98) [<80661704>] (dump_stack) from [<8020bc24>] (handle_IPI+0xdc/0x184) [<8020bc24>] (handle_IPI) from [<802013ac>] (gic_handle_irq+0x70/0x78) [<802013ac>] (gic_handle_irq) from [<806776f8>] (__irq_svc+0x58/0x74) Exception stack(0xbe0d1e58 to 0xbe0d1ea0) 1e40: 00000000 000000fd 1e60: 00000000 00000ff8 be18ca40 00000000 00000000 c08a3000 bdb09c5b bdb09c5b 1e80: 00000052 00000000 be18cbbc be0d1ea8 802502c0 8045cd2c 60010013 ffffffff [<806776f8>] (__irq_svc) from [<8045cd2c>] (n_tty_receive_buf_common+0x804/0x8bc) [<8045cd2c>] (n_tty_receive_buf_common) from [<8045cdf4>] (n_tty_receive_buf2+0x10/0x18) [<8045cdf4>] (n_tty_receive_buf2) from [<8045f374>] (tty_port_default_receive_buf+0x44/0x54) [<8045f374>] (tty_port_default_receive_buf) from [<8045ebfc>] (flush_to_ldisc+0x8c/0xac) [<8045ebfc>] (flush_to_ldisc) from [<80231224>] (process_one_work+0x1b0/0x314) [<80231224>] (process_one_work) from [<80232118>] (worker_thread+0x2cc/0x424) [<80232118>] (worker_thread) from [<80236598>] (kthread+0x130/0x148) [<80236598>] (kthread) from [<80207440>] (ret_from_fork+0x14/0x34) From 1583523575595981711@xxx Wed Nov 08 18:29:23 +0000 2017 X-GM-THRID: 1583523575595981711 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread