[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170227045840.mzhb2gqqyxmig5jo@wfg-t540p.sh.intel.com>
Date: Mon, 27 Feb 2017 12:58:40 +0800
From: Fengguang Wu <fengguang.wu@...el.com>
To: Alan Jenkins <alan-jenkins@...fmail.co.uk>
Cc: kernel test robot <xiaolong.ye@...el.com>,
Jonathan Woithe <jwoithe@...t42.net>,
Darren Hart <dvhart@...ux.intel.com>,
LKML <linux-kernel@...r.kernel.org>,
platform-driver-x86@...r.kernel.org,
Michał Kępień <kernel@...pniu.pl>,
Darren Hart <dvhart@...radead.org>,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>, lkp@...org
Subject: [platform/x86] 84c2f235ad BUG: KASAN: null-ptr-deref on address
0000000000000008
Hi Alan,
Here is another bisect result. The attached reproduce-* script may
help debug the issue.
git://git.infradead.org/users/dvhart/linux-platform-drivers-x86.git testing
commit 84c2f235ad130cf59911fdd1970d297d28540d35
Author: Alan Jenkins <alan-jenkins@...fmail.co.uk>
AuthorDate: Wed Feb 8 14:46:31 2017 +0100
Commit: Darren Hart <dvhart@...ux.intel.com>
CommitDate: Fri Feb 24 23:54:45 2017 -0800
platform/x86: fujitsu-laptop: only register backlight device if FUJ02B1 is present
As the backlight device registered by fujitsu-laptop relies on the
FUJ02B1 ACPI device being present, only register the backlight device
once that ACPI device is detected. Drop redundant max_brightness local
variable. Assign current brightness before registering the backlight
device. Adjust indentation to make checkpatch happy.
Signed-off-by: Alan Jenkins <alan-jenkins@...fmail.co.uk>
[kempniu: rebase patch, rewrite commit message]
Signed-off-by: Michał Kępień <kernel@...pniu.pl>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Reviewed-by: Jonathan Woithe <jwoithe@...t42.net>
817d65498f platform/x86: fujitsu-laptop: simplify acpi_bus_register_driver() error handling
84c2f235ad platform/x86: fujitsu-laptop: only register backlight device if FUJ02B1 is present
+------------------------------------------+------------+------------+
| | 817d65498f | 84c2f235ad |
+------------------------------------------+------------+------------+
| boot_successes | 81 | 0 |
| boot_failures | 11 | 26 |
| invoked_oom-killer:gfp_mask=0x | 7 | |
| Mem-Info | 7 | |
| Out_of_memory:Kill_process | 7 | |
| BUG:kernel_hang_in_test_stage | 1 | |
| BUG:kernel_hang_in_boot_stage | 3 | |
| BUG:KASAN:null-ptr-deref_on_address | 0 | 26 |
| BUG:unable_to_handle_kernel | 0 | 26 |
| Oops | 0 | 26 |
| Kernel_panic-not_syncing:Fatal_exception | 0 | 26 |
+------------------------------------------+------------+------------+
[ 60.038293] acer_wmi: Acer Laptop ACPI-WMI Extras
[ 60.039141] acer_wmi: No or unsupported WMI interface, unable to load
[ 60.040390] Initializing HPQ6001 module
[ 60.044011] fujitsu_laptop: call_fext_func: FUNC interface is not present
[ 60.045221] ==================================================================
[ 60.046471] BUG: KASAN: null-ptr-deref on address 0000000000000008
[ 60.047668] Write of size 4 by task swapper/0/1
[ 60.048457] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.10.0-rc6-00053-g84c2f23 #1
[ 60.049738] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.9.3-20161025_171302-gandalf 04/01/2014
[ 60.051534] Call Trace:
[ 60.051975] dump_stack+0x63/0x8d
[ 60.052563] kasan_report_error+0xdc/0x470
[ 60.053272] kasan_report+0x33/0x40
[ 60.053886] ? fujitsu_init+0x249/0x304
[ 60.054560] __asan_store4+0x6e/0x70
[ 60.055245] fujitsu_init+0x249/0x304
[ 60.056025] ? hotkey_init+0xb35/0xb35
[ 60.056684] do_one_initcall+0xf1/0x1c8
[ 60.057356] ? repair_env_string+0x2f/0x73
[ 60.058065] ? start_kernel+0x4b3/0x4b3
[ 60.058854] ? parse_args+0x3a0/0x4f0
[ 60.059498] ? do_early_param+0xb5/0xb5
[ 60.060163] kernel_init_freeable+0x1b9/0x25e
[ 60.060921] ? rest_init+0xe0/0xe0
[ 60.061522] kernel_init+0xe/0x110
[ 60.062113] ? rest_init+0xe0/0xe0
[ 60.062717] ret_from_fork+0x2c/0x40
[ 60.063341] ==================================================================
[ 60.064700] Disabling lock debugging due to kernel taint
[ 60.065733] BUG: unable to handle kernel NULL pointer dereference at 0000000000000008
[ 60.067077] IP: fujitsu_init+0x249/0x304
[ 60.067781] PGD 0
[ 60.067783]
[ 60.068427] Oops: 0002 [#1] SMP KASAN
[ 60.069065] CPU: 0 PID: 1 Comm: swapper/0 Tainted: G B 4.10.0-rc6-00053-g84c2f23 #1
[ 60.070564] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.9.3-20161025_171302-gandalf 04/01/2014
[ 60.088409] task: ffff8800002aa040 task.stack: ffff8800002b0000
[ 60.089432] RIP: 0010:fujitsu_init+0x249/0x304
[ 60.090192] RSP: 0000:ffff8800002b7e10 EFLAGS: 00010296
[ 60.091107] RAX: ffff8800002aa040 RBX: 0000000000000000 RCX: ffffffff81132406
[ 60.092330] RDX: 1ffffffff0985844 RSI: 0000000000000003 RDI: 0000000000000286
[ 60.093410] RBP: ffff8800002b7e20 R08: 0000000000000003 R09: 0000000000000000
[ 60.094442] R10: ffff8800002b7c90 R11: 6775626564206b63 R12: 0000000000000000
[ 60.095547] R13: 0000000000000000 R14: ffff8800002b7eb8 R15: 00000000ffffffff
[ 60.096740] FS: 0000000000000000(0000) GS:ffff880018a00000(0000) knlGS:0000000000000000
[ 60.098122] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 60.099103] CR2: 0000000000000008 CR3: 0000000004a27000 CR4: 00000000000006f0
[ 60.100324] Call Trace:
[ 60.100770] ? hotkey_init+0xb35/0xb35
[ 60.101428] do_one_initcall+0xf1/0x1c8
[ 60.102090] ? repair_env_string+0x2f/0x73
[ 60.102807] ? start_kernel+0x4b3/0x4b3
[ 60.103556] ? parse_args+0x3a0/0x4f0
[ 60.104196] ? do_early_param+0xb5/0xb5
[ 60.104875] kernel_init_freeable+0x1b9/0x25e
[ 60.105637] ? rest_init+0xe0/0xe0
[ 60.106234] kernel_init+0xe/0x110
[ 60.106831] ? rest_init+0xe0/0xe0
[ 60.107437] ret_from_fork+0x2c/0x40
[ 60.108058] Code: 24 38 49 8d 7c 24 08 e8 fb c1 8b fb 41 c7 44 24 08 04 00 00 00 eb 1d e8 5b c2 8b fb 4d 8b 64 24 38 49 8d 7c 24 08 e8 dc c1 8b fb <41> c7 44 24 08 00 00 00 00 48 c7 c7 00 c6 26 84 e8 d1 d8 84 fb
[ 60.111346] RIP: fujitsu_init+0x249/0x304 RSP: ffff8800002b7e10
[ 60.112428] CR2: 0000000000000008
[ 60.113013] ---[ end trace d167d8189ac2ad2a ]---
[ 60.113813] Kernel panic - not syncing: Fatal exception
git bisect start 0acdc349b86c481b5e17b8a6b54a1191882ebbad c470abd4fde40ea6a0846a2beab642a578c0b8cd --
git bisect bad 6186dc8bb99152e49617d52fcb77622dfae315e9 # 12:20 0- 2 Merge 'linux-review/Abel-Vesa/arm-ftrace-Adds-support-for-CONFIG_DYNAMIC_FTRACE_WITH_REGS/20170225-070220' into devel-hourly-2017022603
git bisect good f4d7f23c0a2c571678167b01d6273ec60381fb03 # 12:39 20+ 7 Merge 'linux-review/Michal-Suchanek/tpm-ibmvtpm-simplify-crq-initialization-and-document-crq-format/20170225-034100' into devel-hourly-2017022603
git bisect bad b4786b009829e6b45488d3e6e57c6c92b2df1074 # 12:55 0- 2 Merge 'linux-review/Sean-Young/rc-raw-decoder-for-keymap-protocol-is-not-loaded-on-register/20170223-072140' into devel-hourly-2017022603
git bisect bad 8257a2ad6e31c4dcfd888be74365cecf3741ed00 # 13:10 0- 1 Merge 'linux-review/Lepton-Wu/mtd-Fix-mtdblock-for-4GB-MTD-devices/20170222-111155' into devel-hourly-2017022603
git bisect bad 084d95812bfb394356a0cabe799a6b84b49ab877 # 13:28 0- 1 Merge 'linux-review/Raju-Lakkaraju/net-phy-Fix-LED-mode-in-DT-single-property/20170224-185342' into devel-hourly-2017022603
git bisect bad 6f788f444a946365c9f2aeb41e56206808fd4125 # 13:50 0- 3 Merge 'platform-drivers-x86/testing' into devel-hourly-2017022603
git bisect good 62dc54925a4dc4fe94e293d5e8205200969c28c9 # 14:13 22+ 3 Merge 'linux-review/Tobin-C-Harding/cciss-Fix-coccinelle-checkpatch-warnings/20170222-135714' into devel-hourly-2017022603
git bisect good bb70ba316db25b2d6dd8c4dfb452b740180bae3c # 14:41 22+ 1 Merge 'linux-review/yuantian-tang-nxp-com/cpufreq-qoriq-clean-up-unused-code/20170221-152534' into devel-hourly-2017022603
git bisect good 6db8eb98474586a52042bd33c7fad23238b3628f # 15:16 20+ 1 Merge 'mac80211/master' into devel-hourly-2017022603
git bisect good 5cb44ee2f4dde68d83a3e17c3333bc4099003669 # 15:49 21+ 1 platform/x86: intel_mid_powerbtn: Move comment to where it belongs
git bisect good bd5762a0c1c9ae66bd0ece6959bbc5013ab95dcd # 16:29 20+ 1 platform/x86: intel-hid: Support 5 button array
git bisect good 85de5e6668b51d55b9cba78c44079c900eeb7b8c # 17:00 21+ 0 platform/x86: fujitsu-laptop: replace numeric values with constants
git bisect bad ec8c2841a71816e1de982a4a339c02d0a21bdb21 # 17:17 0- 3 platform/x86: fujitsu-laptop: autodetect LCD interface on all models
git bisect good 817d65498fea6a92790b538702e6a94d3abea09d # 17:57 21+ 3 platform/x86: fujitsu-laptop: simplify acpi_bus_register_driver() error handling
git bisect bad 84c2f235ad130cf59911fdd1970d297d28540d35 # 18:11 0- 1 platform/x86: fujitsu-laptop: only register backlight device if FUJ02B1 is present
# first bad commit: [84c2f235ad130cf59911fdd1970d297d28540d35] platform/x86: fujitsu-laptop: only register backlight device if FUJ02B1 is present
git bisect good 817d65498fea6a92790b538702e6a94d3abea09d # 21:16 65+ 10 platform/x86: fujitsu-laptop: simplify acpi_bus_register_driver() error handling
# extra tests with CONFIG_DEBUG_INFO_REDUCED
git bisect bad 84c2f235ad130cf59911fdd1970d297d28540d35 # 01:10 0- 26 platform/x86: fujitsu-laptop: only register backlight device if FUJ02B1 is present
# extra tests on HEAD of linux-devel/devel-hourly-2017022603
git bisect bad 0acdc349b86c481b5e17b8a6b54a1191882ebbad # 01:10 0- 13 0day head guard for 'devel-hourly-2017022603'
# extra tests on tree/branch platform-drivers-x86/testing
git bisect good 6dddfebdc1d79e507215e604523948058a68866e # 02:36 62+ 5 platform/x86: asus-wmi: Remove quirk_no_rfkill
# extra tests with first bad commit reverted
git bisect good 31389858ee4cf01f09ff5cb426b883e93546afde # 04:22 63+ 3 Revert "platform/x86: fujitsu-laptop: only register backlight device if FUJ02B1 is present"
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/lkp Intel Corporation
Download attachment "dmesg-quantal-kbuild-57:20170226181348:x86_64-randconfig-s3-02260915:4.10.0-rc6-00053-g84c2f23:1.gz" of type "application/gzip" (16452 bytes)
View attachment "reproduce-quantal-kbuild-57:20170226181348:x86_64-randconfig-s3-02260915:4.10.0-rc6-00053-g84c2f23:1" of type "text/plain" (892 bytes)
View attachment "config-4.10.0-rc6-00053-g84c2f23" of type "text/plain" (108157 bytes)
Powered by blists - more mailing lists