[LU-12952] oops in cfs_trace_copyin_string Created: 08/Nov/19  Updated: 11/Nov/19  Resolved: 11/Nov/19

Status: Closed
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Alex Zhuravlev Assignee: WC Triage
Resolution: Duplicate Votes: 0
Labels: None

Issue Links:
Related
is related to LU-9859 libcfs simplification Open
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

hitting this quite often in sanity/133*:

BUG: unable to handle kernel paging request at ffff880138b3bfff
PGD 368b067 P4D 368b067 PUD 19f7ff067 PMD 19f639067 PTE 800ffffec74c4060
Oops: 0000 [#1] SMP DEBUG_PAGEALLOC
CPU: 0 PID: 14733 Comm: badarea_io Tainted: G        W  O     --------- ---  4.18.0 #31
Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
RIP: 0010:cfs_trace_copyin_string+0x30/0x80 [libcfs]
Code: 89 f3 7f 53 4c 63 e1 48 89 d6 48 89 fd 4c 89 e2 e8 45 86 37 e1 48 85 c0 75 44 4c 89 e6 48 89 ef e8 35 2c 61 e1 eb 11 48 63 d0 <0f> b6 54 15 00 f6 82 60 26 cd 81 20 74 09 89 c2 83 e8 01 85 d2 79
RSP: 0018:ffff880131127db0 EFLAGS: 00010246
RAX: 00000000ffffffff RBX: 0000000000000080 RCX: ffff880138b3c000
RDX: ffffffffffffffff RSI: 0000000000000000 RDI: ffff880138b3c000
RBP: ffff880138b3c000 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
R13: 00007ffd4712f96c R14: 0000000000000000 R15: 0000000000000000
FS:  00007f6a5a97f500(0000) GS:ffff880198e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffff880138b3bfff CR3: 0000000171a29000 CR4: 00000000000006b0
Call Trace:
 __proc_lnet_portal_rotor+0xcd/0x3a0 [lnet]
 lprocfs_call_handler+0x16/0x40 [libcfs]
 lnet_debugfs_write+0x28/0x40 [libcfs]
 full_proxy_write+0x4b/0x70
 __vfs_write+0x1f/0x160
 ? rcu_sync_lockdep_assert+0x9/0x50
 ? __sb_start_write+0x13f/0x1a0
 ? vfs_write+0x183/0x1b0
 vfs_write+0xba/0x1b0
 ksys_write+0x3d/0xa0
 do_syscall_64+0x4b/0x1a0
 entry_SYSCALL_64_after_hwframe+0x6a/0xdf


 Comments   
Comment by Gerrit Updater [ 09/Nov/19 ]

Alex Zhuravlev (bzzz@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/36726
Subject: LU-12952 cfs: out-of-bound access in cfs_trace_copyin_string
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: ae480ab0f2cacd411658e661ed8c3363bf0c4139

Comment by James A Simmons [ 09/Nov/19 ]

Alex I think patch https://review.whamcloud.com/#/c/36567 back ported from upstream fixes the same bug.

Comment by Alex Zhuravlev [ 11/Nov/19 ]

a dup of LU-9859

Generated at Sat Feb 10 02:57:05 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.