lkml.org 
[lkml]   [2019]   [Oct]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: PROBLEM: nfs? crash in Linux 5.3 (possible regression)
On 9/20/19, Nick Bowler <nbowler@draconx.ca> wrote:
> I hit this oops on Linux 5.3 yesterday. The crash itself occurred while
> compiling Linux (source and build dirs on NFS). Afterwards, the system
> remained mostly alive but my NFS mounts became very busted with lots
> (but not all) I/O operations appearing to hang forever.

Well that took a long time but I completed the bisection. I had to
disable CONFIG_JUMP_LABEL because this option was apparently causing
almost every kernel between 5.2 and 5.3-rc1 to be unbootable for some
reason which made successful bisection impossible.

The first commit which exhibits the oops described is 218e6424e711
("keys: Garbage collect keys for which the domain has been removed").

The immediately preceding 8 commits are "skipped" because they crash
quite differently from the issue seen in Linux 5.3. After 218e6424e711
the observed crash is always exactly the same.

However the crash in the "skipped" kernels occurs under similar
circumstances with significantly more catastrophic results: the system
becoming completely non-responsive (I think basically every user process
is killed), nothing is saved, making it difficult to obtain logs. I can
try netconsole or something if it would help.

# only skipped commits left to test
# possible first bad commit:
[218e6424e711ceee31eeba93212fed8ee92d6a11] keys: Garbage collect keys
for which the domain has been removed
# possible first bad commit:
[3b6e4de05e9ee2e2f94e4a3fe14d945e2418d9a8] keys: Include target
namespace in match criteria
# possible first bad commit:
[0f44e4d976f96c6439da0d6717238efa4b91196e] keys: Move the user and
user-session keyrings to the user_namespace
# possible first bad commit:
[b206f281d0ee14969878469816a69db22d5838e8] keys: Namespace keyring
names
# possible first bad commit:
[dcf49dbc8077e278ddd1bc7298abc781496e8a08] keys: Add a 'recurse' flag
for keyring searches
# possible first bad commit:
[355ef8e15885020da88f5ba2d85ce42b1d01f537] keys: Cache the hash value
to avoid lots of recalculation
# possible first bad commit:
[f771fde82051976a6fc0fd570f8b86de4a92124b] keys: Simplify key
description management
# possible first bad commit:
[3b8c4a08a471d56ecaaca939c972fdf5b8255629] keys: Kill off
request_key_async{,_with_auxdata}
# possible first bad commit:
[7743c48e54ee9be9c799cbf3b8e3e9f2b8d19e72] keys: Cache result of
request_key*() temporarily in task_struct

Thanks,
Nick

> [ 796.050025] BUG: kernel NULL pointer dereference, address: 0000000000000014
> [ 796.051280] #PF: supervisor read access in kernel mode
> [ 796.053063] #PF: error_code(0x0000) - not-present page
> [ 796.054636] PGD 0 P4D 0
> [ 796.055688] Oops: 0000 [#1] PREEMPT SMP
> [ 796.056768] CPU: 2 PID: 190 Comm: kworker/2:2 Tainted: G W 5.3.0 #6
> [ 796.057953] Hardware name: To Be Filled By O.E.M. To Be Filled By O.E.M./B450 Gaming-ITX/ac, BIOS P3.30 05/17/2019
> [ 796.059329] Workqueue: events key_garbage_collector
> [ 796.060623] RIP: 0010:keyring_gc_check_iterator+0x27/0x30
> [ 796.061845] Code: 44 00 00 48 83 e7 fc b8 01 00 00 00 f6 87 80 00 00 00 21 75 19 48 8b 57 58 48 39 16 7c 05 48 85 d2 7f 0b 48 8b 87 a0 00 00 00 <0f> b6 40 14 c3 0f 1f 40 00 48 83 e7 fc e9 27 eb ff ff 0f 1f 80 00
> [ 796.064638] RSP: 0018:ffffb40fc0757df8 EFLAGS: 00010282
> [ 796.066058] RAX: 0000000000000000 RBX: ffffa14338caed80 RCX: ffffb40fc0757e40
> [ 796.067531] RDX: ffffa1433ae85558 RSI: ffffb40fc0757e40 RDI: ffffa1433ae85500
> [ 796.069014] RBP: ffffb40fc0757e40 R08: 0000000000000000 R09: 000000000000000f
> [ 796.070513] R10: 8080808080808080 R11: 0000000000000001 R12: ffffffffa4cd6180
> [ 796.072025] R13: ffffa14338caee10 R14: ffffa14338caedf0 R15: ffffa1433ffeff00
> [ 796.073567] FS: 0000000000000000(0000) GS:ffffa14340480000(0000) knlGS:0000000000000000
> [ 796.075171] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> [ 796.076785] CR2: 0000000000000014 CR3: 0000000747ce6000 CR4: 00000000003406e0
> [ 796.078445] Call Trace:
> [ 796.080091] assoc_array_subtree_iterate+0x55/0x100
> [ 796.081770] keyring_gc+0x3f/0x80
> [ 796.083447] key_garbage_collector+0x330/0x3d0
> [ 796.085155] process_one_work+0x1cb/0x320
> [ 796.086869] worker_thread+0x28/0x3c0
> [ 796.088603] ? process_one_work+0x320/0x320
> [ 796.090335] kthread+0x106/0x120
> [ 796.092053] ? kthread_create_on_node+0x40/0x40
> [ 796.093810] ret_from_fork+0x1f/0x30
> [ 796.095569] Modules linked in: sha1_ssse3 sha1_generic cbc cts rpcsec_gss_krb5 auth_rpcgss nfsv4 nfs lockd grace ext4 crc16 mbcache jbd2 iwlmvm mac80211 libarc4 amdgpu iwlwifi snd_hda_codec_realtek snd_hda_codec_generic kvm_amd gpu_sched kvm snd_hda_codec_hdmi drm_kms_helper irqbypass k10temp syscopyarea sysfillrect sysimgblt fb_sys_fops video ttm cfg80211 snd_hda_intel snd_hda_codec drm snd_hwdep rfkill snd_hda_core backlight snd_pcm evdev snd_timer snd soundcore efivarfs dm_crypt hid_generic igb hwmon i2c_algo_bit sr_mod cdrom sunrpc dm_mod
> [ 796.104033] CR2: 0000000000000014
> [ 796.106304] ---[ end trace 695aee10f9202347 ]---
> [ 796.108585] RIP: 0010:keyring_gc_check_iterator+0x27/0x30
> [ 796.110894] Code: 44 00 00 48 83 e7 fc b8 01 00 00 00 f6 87 80 00 00 00 21 75 19 48 8b 57 58 48 39 16 7c 05 48 85 d2 7f 0b 48 8b 87 a0 00 00 00 <0f> b6 40 14 c3 0f 1f 40 00 48 83 e7 fc e9 27 eb ff ff 0f 1f 80 00
> [ 796.115773] RSP: 0018:ffffb40fc0757df8 EFLAGS: 00010282
> [ 796.118209] RAX: 0000000000000000 RBX: ffffa14338caed80 RCX: ffffb40fc0757e40
> [ 796.120683] RDX: ffffa1433ae85558 RSI: ffffb40fc0757e40 RDI: ffffa1433ae85500
> [ 796.123176] RBP: ffffb40fc0757e40 R08: 0000000000000000 R09: 000000000000000f
> [ 796.125668] R10: 8080808080808080 R11: 0000000000000001 R12: ffffffffa4cd6180
> [ 796.128104] R13: ffffa14338caee10 R14: ffffa14338caedf0 R15: ffffa1433ffeff00
> [ 796.130493] FS: 0000000000000000(0000) GS:ffffa14340480000(0000) knlGS:0000000000000000
> [ 796.132923] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> [ 796.135266] CR2: 0000000000000014 CR3: 0000000747ce6000 CR4: 00000000003406e0

\
 
 \ /
  Last update: 2019-10-09 17:56    [W:0.059 / U:12.276 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site