Bug 711400
| Summary: | panic in cifsd code after unexpected lookup error -88. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Jeff Layton <jlayton> | ||||
| Component: | kernel | Assignee: | Jeff Layton <jlayton> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Jian Li <jiali> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 6.1 | CC: | bfields, dhowells, jiali, jlayton, jwest, kzhang, nmurray, rwheeler, sprabhu, steved, wmealing, yanwang | ||||
| Target Milestone: | rc | ||||||
| Target Release: | 6.2 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | kernel-2.6.32-170.el6 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | 704921 | Environment: | |||||
| Last Closed: | 2011-12-06 13:33:12 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: | 704921 | ||||||
| Attachments: |
|
||||||
|
Description
Jeff Layton
2011-06-07 12:07:21 UTC
Going ahead and cloning this for RHEL6 as I'm fairly certain it's a bug there too. I have a patch that should prevent the panics, but it needs further testing. It would be nice if we could come up with a reproducer, but it may be difficult for this one. This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release. as per comment #1, will do code review if no reproducer provided. Patch(es) available on kernel-2.6.32-170.el6 Created attachment 525428 [details]
The patch crash kernel-2.6.32-169 to reproduce the bug.
The bug could be reproduced by apply a manual patch to kernel, which would make 'cifs_reconnect' wait until 'cifs_negotiate_protocol' changed tcpserver->status. The patch is based on kernel-2.6.32-169.el6, and is attached. steps to crash with patch: 1. start smb service, create smb user (root/redhat) 2. modprobe cifs 3. echo 8 > /proc/fs/cifs/cifsFYI 4. mount.cifs //localhost/test /mnt/test -o user=root,password=redhat crash output: fs/cifs/cifssmb.c: Dialect: 2 fs/cifs/cifssmb.c: negprot rc 0 fs/cifs/connect.c: bug test 1 cifs-8000000f **snip** BUG: unable to handle kernel NULL pointer dereference at 0000000000000278 **snip** fs/cifs/transport.c: For smb_command 115 fs/cifs/misc.c: Null buffer passed to cifs_small_buf_release CIFS VFS: Send error in SessSetup = -88 fs/cifs/connect.c: CIFS VFS: leaving cifs_get_smb_ses (xid = 1) rc = -88 fs/cifs/connect.c: CIFS VFS: leaving cifs_mount (xid = 0) rc = -88 CIFS VFS: cifs_mount failed w/return code = -88 [last unloaded: scsi_wait_scan] Call Trace: [<ffffffff81079bcc>] ? lock_timer_base+0x3c/0x70 [<ffffffff8126d150>] ? string+0x40/0x100 [<ffffffff8120e5af>] selinux_socket_recvmsg+0x1f/0x30 [<ffffffff812067e6>] security_socket_recvmsg+0x16/0x20 [<ffffffff8140eae0>] sock_recvmsg+0xe0/0x160 [<ffffffff810943ef>] ? up+0x2f/0x50 [<ffffffff8108e6d0>] ? autoremove_wake_function+0x0/0x40 [<ffffffff814dd145>] ? printk+0x41/0x44 [<ffffffff8118ccb2>] ? iput+0x62/0x70 [<ffffffff8140eba4>] kernel_recvmsg+0x44/0x60 [<ffffffffa040ca0e>] cifs_demultiplex_thread+0x1ce/0x1070 [cifs] On kernel-2.6.32-203, the patch could not crash kernel. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2011-1530.html |