ubuntu_zram_smoke test will cause soft lockup on Artful ThunderX ARM64
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
Undecided
|
Paolo Pisati | ||
Artful |
Fix Released
|
Undecided
|
Paolo Pisati | ||
Bionic |
Fix Released
|
Undecided
|
Paolo Pisati |
Bug Description
== SRU Justification ==
Enabling virtual mapped kernel stacks breaks the thunderx_zip driver. On compression or decompression the executing CPU hangs in an endless loop. The reason for this is the usage of __pa() by the driver that does not work for an address that is not part of the 1:1 mapping.
== Fix ==
The patch in comment #12 fixes it.
To reproduce the bug (and test the new kernel), see comment #9.
== Regression Potential ==
The patch affects only the thunderx_zip driver (that is already in a completely broken state), so the regression potential is low.
---
This is a POTENTIAL REGRESSION.
This test has passed with 4.13.0-36.40, but not 4.13.0-37.42
The test will stuck with error message in dmesg:
ubuntu@
[ 470.227210] zram: Added device: zram0
[ 472.262544] zram0: detected capacity change from 0 to 134217728
[ 472.396960] EXT4-fs (zram0): mounted filesystem with ordered data mode. Opts: (null)
[ 475.761947] zram0: detected capacity change from 134217728 to 0
[ 476.796641] zram0: detected capacity change from 0 to 134217728
[ 476.909118] EXT4-fs (zram0): mounted filesystem with ordered data mode. Opts: (null)
[ 480.233817] zram0: detected capacity change from 134217728 to 0
[ 481.239001] zram0: detected capacity change from 0 to 134217728
[ 508.079684] watchdog: BUG: soft lockup - CPU#8 stuck for 23s! [mkfs.ext4:2253]
[ 508.086994] Modules linked in: lz4 lz4_compress zram nls_iso8859_1 thunderx_edac i2c_thunderx thunderx_zip i2c_smbus shpchp cavium_rng_vf cavium_rng gpio_keys ipmi_ssif uio_pdrv_genirq uio ipmi_devintf ipmi_msghandler ib_iser rdma_cm iw_cm ib_cm ib_core iscsi_tcp libiscsi_tcp libiscsi scsi_transport_
[ 508.087138] CPU: 8 PID: 2253 Comm: mkfs.ext4 Not tainted 4.13.0-37-generic #42-Ubuntu
[ 508.087141] Hardware name: Cavium ThunderX CRB/To be filled by O.E.M., BIOS 5.11 12/12/2012
[ 508.087144] task: ffff801f57a86900 task.stack: ffff000023ec0000
[ 508.087158] PC is at zip_deflate+
[ 508.087164] LR is at zip_deflate+
[ 508.087167] pc : [<ffff000001a69
[ 508.087169] sp : ffff000023ec3580
[ 508.087171] x29: ffff000023ec3580 x28: 0000000000000000
[ 508.087177] x27: ffff801f57a86900 x26: 000000010000b104
[ 508.087182] x25: ffff801f5618c000 x24: ffff801f6a15bc18
[ 508.087188] x23: 0000000000001000 x22: ffff000023ec3688
[ 508.087193] x21: ffff801f5a2d4880 x20: ffff801f6a15bc18
[ 508.087199] x19: ffff000023ec3608 x18: 0000000000000000
[ 508.087204] x17: 0000000000000001 x16: 0000000000000000
[ 508.087209] x15: 0000aaaabd4048db x14: 00000000fa130000
[ 508.087215] x13: 0000100000000000 x12: 00000000fa120000
[ 508.087220] x11: 0000000000000000 x10: 0000000000000000
[ 508.087225] x9 : 0000000000000000 x8 : 0000000000000000
[ 508.087230] x7 : 0000000000000000 x6 : ffff8000101d6080
[ 508.087236] x5 : ffff000001a69058 x4 : 0000000000000008
[ 508.087241] x3 : 0000000000000000 x2 : 0000000000000000
[ 508.087246] x1 : ffff801f6a15be08 x0 : 0000000000000000
[ 508.087252] Call trace:
[ 508.087256] Exception stack(0xffff000
[ 508.087260] 3440: 0000000000000000 ffff801f6a15be08 0000000000000000 0000000000000000
[ 508.087264] 3460: 0000000000000008 ffff000001a69058 ffff8000101d6080 0000000000000000
[ 508.087268] 3480: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[ 508.087272] 34a0: 00000000fa120000 0000100000000000 00000000fa130000 0000aaaabd4048db
[ 508.087276] 34c0: 0000000000000000 0000000000000001 0000000000000000 ffff000023ec3608
[ 508.087280] 34e0: ffff801f6a15bc18 ffff801f5a2d4880 ffff000023ec3688 0000000000001000
[ 508.087284] 3500: ffff801f6a15bc18 ffff801f5618c000 000000010000b104 ffff801f57a86900
[ 508.087288] 3520: 0000000000000000 ffff000023ec3580 ffff000001a69614 ffff000023ec3580
[ 508.087292] 3540: ffff000001a6961c 0000000020400145 ffff801f5a2d4880 ffff000023ec3688
[ 508.087297] 3560: 0000ffffffffffff ffff801f6a15bc18 ffff000023ec3580 ffff000001a6961c
[ 508.087304] [<ffff000001a69
[ 508.087311] [<ffff000001a68
[ 508.087317] [<ffff000001a69
[ 508.087325] [<ffff0000084b1
[ 508.087336] [<ffff000001c7a
[ 508.087343] [<ffff000001c7b
[ 508.087350] [<ffff000001c7c
[ 508.087356] [<ffff0000084de
[ 508.087360] [<ffff0000084de
[ 508.087367] [<ffff000008311
[ 508.087371] [<ffff000008311
[ 508.087375] [<ffff000008311
[ 508.087379] [<ffff000008315
[ 508.087383] [<ffff000008237
[ 508.087386] [<ffff000008237
[ 508.087389] [<ffff000008239
[ 508.087392] [<ffff000008315
[ 508.087395] [<ffff00000823a
[ 508.087400] [<ffff000008229
[ 508.087404] [<ffff00000822a
[ 508.087407] [<ffff000008314
[ 508.087410] [<ffff00000830b
[ 508.087413] [<ffff00000830b
[ 508.087417] [<ffff00000830b
[ 508.087419] Exception stack(0xffff000
[ 508.087423] 3ec0: 0000000000000008 0000000000000000 0000000000001000 0000000000001000
[ 508.087427] 3ee0: 0000000000000000 0000aaaabd4048d4 0000000000000000 000000001862beef
[ 508.087431] 3f00: 0000000000000052 00000000000003f8 0000000000000400 0000000000000800
[ 508.087435] 3f20: 0000000000000c00 0000000000001000 0000000000001c00 0000aaaabd4048db
[ 508.087439] 3f40: 0000ffffa72c4c98 0000ffffa714fb58 0000000000000000 0000000000000000
[ 508.087443] 3f60: 0000aaaabd4001d0 0000000000000000 0000000000000000 0000aaaabd403f70
[ 508.087447] 3f80: 0000ffffecf836c0 0000aaaabd4044e0 0000aaaabd403f70 0000000000000000
[ 508.087451] 3fa0: 0000aaaabd403f70 0000ffffecf834b0 0000ffffa72aa0a4 0000ffffecf834b0
[ 508.087455] 3fc0: 0000ffffa714fb7c 0000000060000000 0000000000000008 0000000000000052
[ 508.087458] 3fe0: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[ 508.087463] [<ffff000008083
[ 528.074307] watchdog: BUG: soft lockup - CPU#2 stuck for 22s! [kworker/u96:3:512]
[ 528.081877] Modules linked in: lz4 lz4_compress zram nls_iso8859_1 thunderx_edac i2c_thunderx thunderx_zip i2c_smbus shpchp cavium_rng_vf cavium_rng gpio_keys ipmi_ssif uio_pdrv_genirq uio ipmi_devintf ipmi_msghandler ib_iser rdma_cm iw_cm ib_cm ib_core iscsi_tcp libiscsi_tcp libiscsi scsi_transport_
[ 528.082019] CPU: 2 PID: 512 Comm: kworker/u96:3 Tainted: G L 4.13.0-37-generic #42-Ubuntu
[ 528.082021] Hardware name: Cavium ThunderX CRB/To be filled by O.E.M., BIOS 5.11 12/12/2012
[ 528.082033] Workqueue: writeback wb_workfn (flush-252:0)
[ 528.082039] task: ffff801f27b58000 task.stack: ffff000013b00000
[ 528.082052] PC is at zip_deflate+
[ 528.082059] LR is at zip_deflate+
[ 528.082062] pc : [<ffff000001a69
[ 528.082064] sp : ffff000013b03330
[ 528.082066] x29: ffff000013b03330 x28: 0000000000000000
[ 528.082071] x27: ffff801f27b58000 x26: 000000010000c700
[ 528.082077] x25: ffff801f57e04000 x24: ffff801f6a15bc18
[ 528.082082] x23: 0000000000001000 x22: ffff000013b03438
[ 528.082087] x21: ffff801f5a2d5880 x20: ffff801f6a15bc18
[ 528.082093] x19: ffff000013b033b8 x18: 0000000000000009
[ 528.082098] x17: 0000000000000002 x16: 0000000000000000
[ 528.082103] x15: 0000000000000001 x14: 0000000000db0000
[ 528.082108] x13: 0000100000000000 x12: 0000000000da0000
[ 528.082113] x11: 0000000000000000 x10: 0000000000000000
[ 528.082119] x9 : 0000000000000000 x8 : 0000000000000000
[ 528.082124] x7 : 0000000000000000 x6 : ffff8000101d6100
[ 528.082129] x5 : ffff000001a69058 x4 : 0000000000000008
[ 528.082134] x3 : 0000000000000000 x2 : 0000000000000000
[ 528.082139] x1 : ffff801f6a15be08 x0 : 0000000000000000
[ 528.082145] Call trace:
[ 528.082149] Exception stack(0xffff000
[ 528.082152] 31e0: 0000000000000000 ffff801f6a15be08
[ 528.082156] 3200: 0000000000000000 0000000000000000 0000000000000008 ffff000001a69058
[ 528.082160] 3220: ffff8000101d6100 0000000000000000 0000000000000000 0000000000000000
[ 528.082164] 3240: 0000000000000000 0000000000000000 0000000000da0000 0000100000000000
[ 528.082167] 3260: 0000000000db0000 0000000000000001 0000000000000000 0000000000000002
[ 528.082171] 3280: 0000000000000009 ffff000013b033b8 ffff801f6a15bc18 ffff801f5a2d5880
[ 528.082175] 32a0: ffff000013b03438 0000000000001000 ffff801f6a15bc18 ffff801f57e04000
[ 528.082179] 32c0: 000000010000c700 ffff801f27b58000 0000000000000000 ffff000013b03330
[ 528.082183] 32e0: ffff000001a69614 ffff000013b03330 ffff000001a69618 0000000020400145
[ 528.082187] 3300: ffff801f5a2d5880 ffff000013b03438 ffffffffffffffff ffff801f6a15bc18
[ 528.082190] 3320: ffff000013b03330 ffff000001a69618
[ 528.082197] [<ffff000001a69
[ 528.082204] [<ffff000001a68
[ 528.082210] [<ffff000001a69
[ 528.082216] [<ffff0000084b1
[ 528.082228] [<ffff000001c7a
[ 528.082236] [<ffff000001c7b
[ 528.082242] [<ffff000001c7c
[ 528.082248] [<ffff0000084de
[ 528.082252] [<ffff0000084de
[ 528.082258] [<ffff000008311
[ 528.082262] [<ffff000008311
[ 528.082266] [<ffff000008311
[ 528.082270] [<ffff000008315
[ 528.082274] [<ffff000008237
[ 528.082277] [<ffff000008237
[ 528.082280] [<ffff000008239
[ 528.082283] [<ffff000008315
[ 528.082286] [<ffff00000823a
[ 528.082290] [<ffff000008305
[ 528.082293] [<ffff000008306
[ 528.082296] [<ffff000008306
[ 528.082299] [<ffff000008306
[ 528.082302] [<ffff000008307
[ 528.082308] [<ffff0000080fe
[ 528.082312] [<ffff0000080fe
[ 528.082316] [<ffff000008105
[ 528.082321] [<ffff000008085
ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: linux-image-
ProcVersionSign
Uname: Linux 4.13.0-37-generic aarch64
AlsaDevices:
total 0
crw-rw---- 1 root audio 116, 1 Mar 12 03:13 seq
crw-rw---- 1 root audio 116, 33 Mar 12 03:13 timer
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay': 'aplay'
ApportVersion: 2.20.7-0ubuntu3.7
Architecture: arm64
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord': 'arecord'
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
Date: Mon Mar 12 03:22:24 2018
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig': 'iwconfig'
MachineType: Cavium ThunderX CRB
PciMultimedia:
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=C.UTF-8
SHELL=/bin/bash
ProcFB:
0 EFI VGA
1 astdrmfb
ProcKernelCmdLine: BOOT_IMAGE=
RelatedPackageV
linux-
linux-
linux-firmware 1.169.3
RfKill: Error: [Errno 2] No such file or directory: 'rfkill': 'rfkill'
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 12/12/2012
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 5.11
dmi.board.
dmi.board.name: To be filled by O.E.M.
dmi.board.vendor: To be filled by O.E.M.
dmi.board.version: To be filled by O.E.M.
dmi.chassis.
dmi.chassis.type: 0
dmi.chassis.vendor: Cavium
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.family: Default string
dmi.product.name: ThunderX CRB
dmi.product.
dmi.sys.vendor: Cavium
summary: |
- ubuntu_zram_smoke test will cause soft lockup with Artful ARM64 kernel + ubuntu_zram_smoke test will cause soft lockup on Artful ARM64 kernel |
Changed in linux (Ubuntu): | |
assignee: | nobody → Colin Ian King (colin-king) |
tags: | added: patch |
description: | updated |
Changed in linux (Ubuntu Bionic): | |
status: | Confirmed → Fix Committed |
Changed in linux (Ubuntu Artful): | |
status: | New → In Progress |
assignee: | nobody → Paolo Pisati (p-pisati) |
Changed in linux (Ubuntu Artful): | |
status: | In Progress → Fix Committed |
tags: |
added: kernel-fixup-verification-needed-bionic removed: verification-needed-bionic |
tags: | added: cscc |
This change was made by a bot.