Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7023376ybi; Mon, 22 Jul 2019 05:53:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqybBGSTClNr+diwlGzMDhDQb1NhaA3mbrm86kghlVgfpY9wb8HktQ/MIhhXWRDB99dMRe+2 X-Received: by 2002:a65:6547:: with SMTP id a7mr50829494pgw.65.1563800002261; Mon, 22 Jul 2019 05:53:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563800002; cv=none; d=google.com; s=arc-20160816; b=DMg67tsH1Z3gDcs1tn/ME6hipChT6hvG8M/QKCC3dkMmqioAmpOVVxeHBt3pH4hu07 IqNxFpq2XiSbtXzsrwTNDSVK6tAvkRAnalwh3MdJ6T6zjR8Djvxzy6VOkgfjX6/91LGj PHDoG1XkWauM7LWoc0/rHkhfbrBzzoXm1039NWukU51uCRVZIo7puCC8JXKW37NPJ78s 9jFfyBbIpL73CZ1bDolewZRjOmKiUHRSK8mJJbPNutzlFNscLl7fCqeGjP4GLBcpdC3r 7H5Joo6+7bG7eHw4Vk/ajrYAkGT7DcCAMfYAv6ITSqhM7k/e3xJEGRlCSLBB0m0ESBtc 83Pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :mime-version:dkim-signature; bh=ujHdfLfSWvsHF1oE603ltXaiu4/78ytMOb+D6rck/hM=; b=m8wkLym5Mv8WnC7lY5wOJ8YTG1BZU4ySymLIIJCI//DZLW6dWaLmm0VkTCzkkpjP7K FRExJz6wRKEbbbIpWrRoMeO4QW6Tm40i/zoqM+Yv26O1g/A48y9uCFIM9I0i6CxeV8N7 1PFYs63qMlKZ6Lt9whgZal0+1MaH5g3DzSx+ZLVqwtXVTIEqyHuLU5PePi1GxKzZjqhd bRrWPJFNaeFA/HaXAGOi79oOcYeYBlUOCAPP1mfdZMFkYAf+316o+kSiD/vuYwTCtGv/ NVF7n0WiSCU8Y/Q+OjVvxjad9SsflWHLIaNAiwuupswhOhswFbyxNuqW6NJCF+8Q93Pc MxsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=zIj44iPy; 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 g13si10131221pfo.22.2019.07.22.05.53.06; Mon, 22 Jul 2019 05:53:22 -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=zIj44iPy; 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 S1730241AbfGVMND (ORCPT + 99 others); Mon, 22 Jul 2019 08:13:03 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:37233 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728413AbfGVMND (ORCPT ); Mon, 22 Jul 2019 08:13:03 -0400 Received: by mail-io1-f65.google.com with SMTP id q22so73345856iog.4 for ; Mon, 22 Jul 2019 05:13:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to:cc; bh=ujHdfLfSWvsHF1oE603ltXaiu4/78ytMOb+D6rck/hM=; b=zIj44iPyHspeHVR8Gt7z43LbyBX2qltxfzyfDwScRdemHkbeVVy70zfRdYXLjObh70 Qpj8Jsbx5FuXXbWBXOXQGARzDGVYbwgzWRoPUxQvXspwxkoskUW+C6nuRCXdHyrFrzkN +vZcEWFwUalt/DDI/7ImRARxdsZSmNCqgUet6FFagVq/bsx60B5FLv/1cEWUHz2RHZKt 9hhOwquSJIMoXVUD5CSgps2X2nKvjG+7ESFA8XVqOUJoKMeznNFhjMjeBJMnW2C+cQvI TFfQHwk4ccBZa+GIaT1i6uoOf4jLaIm9EIQtij2/koQ7HomEU1havZQKwOCbS+6GGzz9 5QaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=ujHdfLfSWvsHF1oE603ltXaiu4/78ytMOb+D6rck/hM=; b=X0ocfgzWSjER9O9Cl5FRm6MkoDQbmZtnL/2IeQhDzo7MwPfLkwy/A8QfljWAvF27SE uzwkNftGPMKp3qbFSMghGhw9bki5StK4FD/KQQfS97ItrkngX5qarQeamA7kQRKsX25n 66xvlW1++KjYDyJh5Wz9g9bemzoTjxg3pTwJWReaAmq34eINVOgT2ohX2MTbVlatoZH9 JGSZVvR2hiHx3WFVDXkVYdSoldSxEiceoeqwTvl1N7J8CXqkXhfVeQTxCXYwVLTMjwfo f48baH9bxg5obCJk62YmjelWRqeo6/Ty6s+t80g6bhNEsOQpzpiO+6qWY+5yAFuXNk38 vEsA== X-Gm-Message-State: APjAAAW50e4V2PGx9mhYoOcDAP6BrewQWOtGfRc2pEFq6S31aTtvKumJ pUtzoqDBUJU20xW/T8IumUBnPfXcE94UXdoAlxk= X-Received: by 2002:a6b:f80b:: with SMTP id o11mr56951325ioh.40.1563797582522; Mon, 22 Jul 2019 05:13:02 -0700 (PDT) MIME-Version: 1.0 From: Bartosz Golaszewski Date: Mon, 22 Jul 2019 14:12:51 +0200 Message-ID: Subject: [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" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 = 0x(ptrval)) Stack: (0xc6837e58 to 0xc6838000) 7e40: bf005740 c6492a90 7e60: 00000001 c6bf5788 00000003 c6837f38 bf0058c0 bf0058a8 bf00a495 c0493e38 7e80: 00000000 c05368c0 00000001 00000000 c0580030 c0574b28 00000000 00000000 7ea0: 00000000 00000000 00000000 00000000 6e72656b 00006c65 00000000 00000000 7ec0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 7ee0: 00000000 00000000 00000000 aefb2bb8 7fffffff c0601008 00000000 00000004 7f00: b6cee714 c00091e4 c6836000 00000000 005bc668 c00847b0 7fffffff 00000000 7f20: 00000003 00000000 0000b2d0 c884e000 0000b2d0 00000000 c8852dcb c88533a0 7f40: c884e000 0000b2d0 c8858cb8 c8858b34 c88568d4 000058c0 00006190 000023b8 7f60: 00006713 00000000 00000000 00000000 000023a8 00000024 00000025 00000019 7f80: 0000001d 00000011 00000000 aefb2bb8 00000000 00000000 00000000 00000000 7fa0: 0000017b c0009000 00000000 00000000 00000004 b6cee714 00000000 00000000 7fc0: 00000000 00000000 00000000 0000017b 00000000 00000000 00000001 005bc668 7fe0: be907b00 be907af0 b6ce66b0 b6c3fac0 60000010 00000004 00000000 00000000 [] (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/0x50) Exception stack(0xc6837fa8 to 0xc6837ff0) 7fa0: 00000000 00000000 00000004 b6cee714 00000000 00000000 7fc0: 00000000 00000000 00000000 0000017b 00000000 00000000 00000001 005bc668 7fe0: be907b00 be907af0 b6ce66b0 b6c3fac0 Code: e1a01621 e1a00002 eafe4531 e7f001f2 (e7f001f2) ---[ end trace 2cbefb0005882c52 ]--- Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b ]--- I bisected it to commit 06bd260e836d ("modules: fix BUG when load module with rodata=n") with commit 7dabaa5ce05a ("modules: fix compile error if don't have strict module rwx") on top to make it build. Let me know if you need me to provide more info. Best regards, Bartosz Golaszewski