Bug 1079700
| Summary: | [abrt] kernel BUG at net/sunrpc/svc.c:550! | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Raphos <raphoszap> | ||||||
| Component: | kernel | Assignee: | Jeff Layton <jlayton> | ||||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
| Severity: | unspecified | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 20 | CC: | gansalmon, itamar, jlayton, jonathan, kernel-maint, madhu.chinakonda, mchehab, nfs-maint, raphoszap | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | x86_64 | ||||||||
| OS: | Unspecified | ||||||||
| URL: | https://retrace.fedoraproject.org/faf/reports/bthash/4c7ac007a6a14f1d9b10dc51577817de37f130f9 | ||||||||
| Whiteboard: | abrt_hash:3f79f4e9ba70a06d58e3d4d88500cc1204ed4b06 | ||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | |||||||||
| : | 1085774 1190376 (view as bug list) | Environment: | |||||||
| Last Closed: | 2014-05-29 10:42:23 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: | |||||||||
| Bug Depends On: | |||||||||
| Bug Blocks: | 1085774 | ||||||||
| Attachments: |
|
||||||||
|
Description
Raphos
2014-03-23 10:24:09 UTC
Created attachment 877749 [details]
File: dmesg
Ok, I see the bug. It oopsed because we tried to destroy the svc_xprt while there were still open sockets on the sv_permsocks list:
From make_socks:
err = create_lockd_family(serv, net, PF_INET);
if (err < 0)
goto out_err;
err = create_lockd_family(serv, net, PF_INET6);
if (err < 0 && err != -EAFNOSUPPORT)
goto out_err;
...so what happened is that lockd created the PF_INET sockets and then failed creating the PF_INET6 sockets. From the log, it was -EADDRINUSE error.
If creating the PF_INET6 sockets fails, then we need to tear down the PF_INET sockets before doing the goto out_err.
Out of curiousity, do you have this machine set up to make lockd listen on a particular set of ports? Yeah, I can reproduce this by setting up lockd to listen on a particular port. Then make nc squat on that port and try to start up the nfs server. At that point it oopses. The fix looks fairly simple, but it's a little difficult to unravel all of the struct net braindamage in this code so I'll need to stare at it a bit longer. Created attachment 878612 [details]
patch - lockd: ensure we tear down any live sockets when socket creation fails during lockd_up
This patch seems to fix the bug for me. Does it also fix it for you?
Bruce has accepted the patch and it should make 3.15 and then be marked for stable. Merged in v3.14.4. |