Bug 2078147

Summary: [abrt] nfs-utils: dev_from_arg(): nfsrahead killed by SIGSEGV
Product: [Fedora] Fedora Reporter: Mr Beedell, Roke Julian Lockhart <8ru2u4gz>
Component: nfs-utilsAssignee: Steve Dickson <steved>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: bfields, luk.claes, nmoureynh, rvykydal, steved, tbecker
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/5c99bc258da85268dcc0e49d252c7b8ed65edcc3
Whiteboard: abrt_hash:b44996b9a41125d9b849bc78fba29b4d88f59fb2;
Fixed In Version: nfs-utils-2.6.1-2.rc4.fc36 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-07 04:37:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: core_backtrace
none
File: cpuinfo
none
File: dso_list
none
File: environ
none
File: exploitable
none
File: limits
none
File: maps
none
File: mountinfo
none
File: open_fds
none
File: proc_pid_status
none
File: var_log_messages none

Description Mr Beedell, Roke Julian Lockhart 2022-04-24 00:34:04 UTC
Version-Release number of selected component:
nfs-utils-1:2.6.1-1.rc4.fc37

Additional info:
reporter:       libreport-2.17.1
backtrace_rating: 4
cgroup:         0::/system.slice/systemd-udevd.service/udev
cmdline:        /usr/libexec/nfsrahead btrfs-2
crash_function: dev_from_arg
executable:     /usr/libexec/nfsrahead
journald_cursor: s=63124e464cd74aa997fd2f6f11f60867;i=6e31;b=1594db57f2a54039b6e50bc9cfed3575;m=1f7f14d;t=5dd4fe31bfa08;x=b74bb6848a6b1060
kernel:         5.18.0-0.rc3.27.fc37.x86_64
rootdir:        /
runlevel:       N 5
type:           CCpp
uid:            0

Truncated backtrace:
Thread no. 1 (4 frames)
 #0 dev_from_arg at /usr/src/debug/nfs-utils-2.6.1-1.rc4.fc37.x86_64/tools/nfsrahead/main.c:37
 #1 init_device_info at /usr/src/debug/nfs-utils-2.6.1-1.rc4.fc37.x86_64/tools/nfsrahead/main.c:58
 #2 get_mountinfo at /usr/src/debug/nfs-utils-2.6.1-1.rc4.fc37.x86_64/tools/nfsrahead/main.c:78
 #3 get_device_info at /usr/src/debug/nfs-utils-2.6.1-1.rc4.fc37.x86_64/tools/nfsrahead/main.c:113

Comment 1 Mr Beedell, Roke Julian Lockhart 2022-04-24 00:34:07 UTC
Created attachment 1874585 [details]
File: backtrace

Comment 2 Mr Beedell, Roke Julian Lockhart 2022-04-24 00:34:08 UTC
Created attachment 1874586 [details]
File: core_backtrace

Comment 3 Mr Beedell, Roke Julian Lockhart 2022-04-24 00:34:09 UTC
Created attachment 1874587 [details]
File: cpuinfo

Comment 4 Mr Beedell, Roke Julian Lockhart 2022-04-24 00:34:10 UTC
Created attachment 1874588 [details]
File: dso_list

Comment 5 Mr Beedell, Roke Julian Lockhart 2022-04-24 00:34:11 UTC
Created attachment 1874589 [details]
File: environ

Comment 6 Mr Beedell, Roke Julian Lockhart 2022-04-24 00:34:12 UTC
Created attachment 1874590 [details]
File: exploitable

Comment 7 Mr Beedell, Roke Julian Lockhart 2022-04-24 00:34:13 UTC
Created attachment 1874591 [details]
File: limits

Comment 8 Mr Beedell, Roke Julian Lockhart 2022-04-24 00:34:14 UTC
Created attachment 1874592 [details]
File: maps

Comment 9 Mr Beedell, Roke Julian Lockhart 2022-04-24 00:34:15 UTC
Created attachment 1874593 [details]
File: mountinfo

Comment 10 Mr Beedell, Roke Julian Lockhart 2022-04-24 00:34:16 UTC
Created attachment 1874594 [details]
File: open_fds

Comment 11 Mr Beedell, Roke Julian Lockhart 2022-04-24 00:34:17 UTC
Created attachment 1874595 [details]
File: proc_pid_status

Comment 12 Mr Beedell, Roke Julian Lockhart 2022-04-24 00:34:18 UTC
Created attachment 1874596 [details]
File: var_log_messages

Comment 13 Thiago Rafael Becker 2022-04-25 20:04:58 UTC
Patch submitted upstream: https://lore.kernel.org/linux-nfs/20220425195948.2627428-1-tbecker@redhat.com/T/#u

Comment 14 Steve Dickson 2022-04-28 14:40:21 UTC
Here is a scratch build which has the upstream patch that should fix this problem

https://koji.fedoraproject.org/koji/taskinfo?taskID=86356846

Could you please verify it does fix the problem... tia!

Comment 15 Nathan Mourey II 2022-04-29 12:51:28 UTC
Similar problem has been detected:

I beleive that this was caused by putting my notebook in suspend mode as the timing of going into suspend mode and the
application crash time are about the same. I had active nfs mounts and exports at the time.

reporter:       libreport-2.17.1
backtrace_rating: 4
cgroup:         0::/system.slice/systemd-udevd.service/udev
cmdline:        /usr/libexec/nfsrahead zfs-1
crash_function: dev_from_arg
executable:     /usr/libexec/nfsrahead
journald_cursor: s=c667eb9c60a64df7bcc156da25f2fe86;i=69ac21;b=59d0f944bc4448f6a1d4a7266fea64d2;m=b04ae00;t=5ddbd69b511e8;x=c4f0f5944d2e2aa6
kernel:         5.17.4-300.fc36.x86_64
package:        nfs-utils-1:2.6.1-1.rc4.fc37
reason:         nfsrahead killed by SIGSEGV
rootdir:        /
runlevel:       unknown
type:           CCpp
uid:            0

Comment 16 Steve Dickson 2022-04-29 13:07:18 UTC
(In reply to Nathan Mourey II from comment #15)
> Similar problem has been detected:
> 
> I beleive that this was caused by putting my notebook in suspend mode as the
> timing of going into suspend mode and the
> application crash time are about the same. I had active nfs mounts and
> exports at the time.
> 
> reporter:       libreport-2.17.1
> backtrace_rating: 4
> cgroup:         0::/system.slice/systemd-udevd.service/udev
> cmdline:        /usr/libexec/nfsrahead zfs-1
> crash_function: dev_from_arg
> executable:     /usr/libexec/nfsrahead
> journald_cursor:
> s=c667eb9c60a64df7bcc156da25f2fe86;i=69ac21;
> b=59d0f944bc4448f6a1d4a7266fea64d2;m=b04ae00;t=5ddbd69b511e8;
> x=c4f0f5944d2e2aa6
> kernel:         5.17.4-300.fc36.x86_64
> package:        nfs-utils-1:2.6.1-1.rc4.fc37
> reason:         nfsrahead killed by SIGSEGV
> rootdir:        /
> runlevel:       unknown
> type:           CCpp
> uid:            0

Where you using the nfs-utils in the scratch build in Comment 14?

Comment 17 Nathan Mourey II 2022-04-29 13:52:31 UTC
@Steve Dickson
No.

Comment 18 Steve Dickson 2022-04-29 14:31:06 UTC
(In reply to Nathan Mourey II from comment #17)
> @Steve Dickson
> No.

Well in bug 2077585, the problem was fix although logging is a bit too verbose... Which will be fixed.

Comment 19 Fedora Update System 2022-04-30 17:03:20 UTC
FEDORA-2022-b60800de8a has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-b60800de8a

Comment 20 Fedora Update System 2022-05-01 18:12:17 UTC
FEDORA-2022-b60800de8a has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-b60800de8a`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-b60800de8a

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 21 Fedora Update System 2022-05-07 04:37:16 UTC
FEDORA-2022-b60800de8a has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 22 Mr Beedell, Roke Julian Lockhart 2022-06-11 18:52:11 UTC
The problem appears to have been remediated, else I expect that I would have reported occurrence of it subsequently.