Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7050501ybi; Mon, 22 Jul 2019 06:19:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqxcRJ8Ztns56wVVKt1tR+P9yLpvPi0rIx4/K1aML/CQ5vyuel8A0hgJFEgkV171IilpvIf5 X-Received: by 2002:a62:107:: with SMTP id 7mr232889pfb.4.1563801591337; Mon, 22 Jul 2019 06:19:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563801591; cv=none; d=google.com; s=arc-20160816; b=nIcZJM3L5fYqRUvhOVCdCFQDd1xzoeYXYs1fLJ8oebdAYqCM7eZ8FEPvWPqq1cUjxS 2+zjPisoTIoRzKQ3I91ctOL2n6xICvft/EDQGmtS2FsG21NtfIeTtQ5CkryPropCvyrK 1yevdaUmGy/SQdJSj3jSKj1KuJyXfQpz6X6a1TPlrIybQLoeQshRd8DGghXaScI5Jxpy L2tKtLax7cANV4Q3I/+OEB2PgkRTmnMr1mEhUK/H3BEsSLYFZ6sir9ADMy1ao65lwJU+ S0ejQeSTnETz77rqZpRp5Ua067T4X0zlONq8Vj3VF241Umr6bUE61e7sO3fCLI75iicn 8xxw== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=1jqepYSM8WgsfNhH9i6/YmrUUqtzbVePUVomMLzy33Q=; b=tD/QZHmgoq9w8h2C6b9ztoELQeAw84cIvzAHTg6Vx48iRluS1v6Es6zTnO/I55OgVY 8Liay/vNyBwF+6tkbQ0345U9ViWvKRlRIYgQlhc6lFq74CNfVoedCBf1rOeXTocsJS3a ZxwsA67kIqJoxUC8ZHELYXB8TH7QuxStVvgX8fvBjgkvIF1nDA3k+sxSu+6EoHdPYtxL 5rAiJUQgrRmQ4IJ3g+kCKRQIcU1O9yxFhwxTda8M/2hWs/t5c5yfSUZOwXCKNF+GcRF7 HuIFOTUO1FAOTcSvZL+sd69ou859l9EsWjk+ZmqI0G41w+uvxjdKx6rKwbc+CCs+Wawo 86Eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=1ULS90MZ; 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 c8si13209576pje.30.2019.07.22.06.19.35; Mon, 22 Jul 2019 06:19:51 -0700 (PDT) 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=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=1ULS90MZ; 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 S1729316AbfGVNFT (ORCPT + 99 others); Mon, 22 Jul 2019 09:05:19 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:35253 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728501AbfGVNFT (ORCPT ); Mon, 22 Jul 2019 09:05:19 -0400 Received: by mail-io1-f65.google.com with SMTP id m24so73730986ioo.2 for ; Mon, 22 Jul 2019 06:05:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=1jqepYSM8WgsfNhH9i6/YmrUUqtzbVePUVomMLzy33Q=; b=1ULS90MZsmEbXmWbaF0QWNzWQeIyvX3nMexbCWW3bIDyrwA1SBD4M8CcVNxWsfCEg4 B0t1QzXfpmjzwQNntgJNQph37W5d5AYhgNj5BMrMSvCN1beQU/wCHX6hb8ccyTn6tWqK dbMKtJueIa7bz9hqtGjQ0fSnLv1SuGQeM0OKKBUiNcrCHRQAbM14cQJD3DnWxpVuiV5S 9SAjHqgz/PucnHm0xwwkN+KsBp0uQ/L7xzqCQ2yYKxrYs8K2Gk1y6edeM/pfVrjOPTbf T1WMIACxUllzT6rwlTB7VlswzseKsf7K0QXSAU8FA0Vs0q+Es96lYcqpYPV04rMuGQHX mGYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=1jqepYSM8WgsfNhH9i6/YmrUUqtzbVePUVomMLzy33Q=; b=Hv9uQwgOlCoEeJn9dgvMAJT0VmEK/uyH6gBw7iMrqBZvDvU2oV1vprV6am+HAfRMM9 3D9YTULAq88rVLpD/IifxZXzt+pYD64bMU2Sq5oK8bue9zEpOSwJWEEv7gJn8ox+DDTJ UQOOS1MCN6F+D0Jz7ejo94Be9OzEEMoWJeFkuKs2BhFTGuRIFknmXl3MH4kv/Qb8BKcF 9FuI9ug1ocw/qkmLZNU6S4DYxu0R0h4rjQGNV+vxBQVRU/IAEy9Qof+cl8jbVF24I9Xg FL4PBtD9ARauaXeaoTRx8E2egDDvPEkdTVfKK6wQv1dibOAtTb0I3QPYpFmBeTYvzHVc SwUA== X-Gm-Message-State: APjAAAX/z6sQwqAAEzdJXjlujhXJYK7M80G0lT2Za5LAhP1uU6n/MtwT OdB9j+Jw1ByD5gNQv2icMG8FruRT5Z9vcHSPCLI= X-Received: by 2002:a6b:f80b:: with SMTP id o11mr57184471ioh.40.1563800718793; Mon, 22 Jul 2019 06:05:18 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Bartosz Golaszewski Date: Mon, 22 Jul 2019 15:05:07 +0200 Message-ID: Subject: Re: [v5.3-rc1 regression] Hitting a kernel BUG() when trying to load a module on DaVinci SoC To: Yang Yingliang , Jian Cheng , Nadav Amit , Jessica Yu , Linux Kernel Mailing List Cc: Sekhar Nori , Kevin Hilman , David Lechner , Adam Ford Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org pon., 22 lip 2019 o 14:12 Bartosz Golaszewski napisa=C5=82(= a): > > Hi, > > with v5.3-rc1 I'm hitting the following BUG() when trying to load the > gpio-backlight module: > > kernel BUG at kernel/module.c:1919! > Internal error: Oops - BUG: 0 [#1] PREEMPT ARM > Modules linked in: > CPU: 0 PID: 1 Comm: systemd Tainted: G W > 5.2.0-rc2-00005-g7dabaa5ce05a #19 > Hardware name: DaVinci DA850/OMAP-L138/AM18x EVM > PC is at frob_text.constprop.16+0x2c/0x34 > LR is at load_module+0x1888/0x21b4 > pc : [] lr : [] psr: 20000013 > sp : c6837e58 ip : c6b4fa80 fp : bf00574c > r10: c0601008 r9 : bf005740 r8 : c0493e38 > r7 : c00807f8 r6 : 00000000 r5 : 00000001 r4 : c6837f38 > r3 : 00000fff r2 : bf000000 r1 : 00004b80 r0 : bf005818 > Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none > Control: 0005317f Table: c6b78000 DAC: 00000051 > Process systemd (pid: 1, stack limit =3D 0x(ptrval)) > Stack: (0xc6837e58 to 0xc6838000) > 7e40: bf005740 c649= 2a90 > 7e60: 00000001 c6bf5788 00000003 c6837f38 bf0058c0 bf0058a8 bf00a495 c049= 3e38 > 7e80: 00000000 c05368c0 00000001 00000000 c0580030 c0574b28 00000000 0000= 0000 > 7ea0: 00000000 00000000 00000000 00000000 6e72656b 00006c65 00000000 0000= 0000 > 7ec0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0000= 0000 > 7ee0: 00000000 00000000 00000000 aefb2bb8 7fffffff c0601008 00000000 0000= 0004 > 7f00: b6cee714 c00091e4 c6836000 00000000 005bc668 c00847b0 7fffffff 0000= 0000 > 7f20: 00000003 00000000 0000b2d0 c884e000 0000b2d0 00000000 c8852dcb c885= 33a0 > 7f40: c884e000 0000b2d0 c8858cb8 c8858b34 c88568d4 000058c0 00006190 0000= 23b8 > 7f60: 00006713 00000000 00000000 00000000 000023a8 00000024 00000025 0000= 0019 > 7f80: 0000001d 00000011 00000000 aefb2bb8 00000000 00000000 00000000 0000= 0000 > 7fa0: 0000017b c0009000 00000000 00000000 00000004 b6cee714 00000000 0000= 0000 > 7fc0: 00000000 00000000 00000000 0000017b 00000000 00000000 00000001 005b= c668 > 7fe0: be907b00 be907af0 b6ce66b0 b6c3fac0 60000010 00000004 00000000 0000= 0000 > [] (frob_text.constprop.16) from [] > (load_module+0x1888/0x21b4) > [] (load_module) from [] (sys_finit_module+0xbc/0xdc) > [] (sys_finit_module) from [] (ret_fast_syscall+0x0/0= x50) > Exception stack(0xc6837fa8 to 0xc6837ff0) > 7fa0: 00000000 00000000 00000004 b6cee714 00000000 0000= 0000 > 7fc0: 00000000 00000000 00000000 0000017b 00000000 00000000 00000001 005b= c668 > 7fe0: be907b00 be907af0 b6ce66b0 b6c3fac0 > Code: e1a01621 e1a00002 eafe4531 e7f001f2 (e7f001f2) > ---[ end trace 2cbefb0005882c52 ]--- > Kernel panic - not syncing: Attempted to kill init! exitcode=3D0x0000000b > ---[ end Kernel panic - not syncing: Attempted to kill init! > exitcode=3D0x0000000b ]--- > > I bisected it to commit 06bd260e836d ("modules: fix BUG when load > module with rodata=3Dn") with commit 7dabaa5ce05a ("modules: fix compile > error if don't have strict module rwx") on top to make it build. > I got the commit hashes wrong, because I was playing with a modified tree. They are 2eef1399a866 ("modules: fix BUG when load module with rodata=3Dn") and 93651f80dcb6 ("modules: fix compile error if don't have strict module rwx") respectively. Bart > Let me know if you need me to provide more info. > > Best regards, > Bartosz Golaszewski