Bug 728684

Summary: kernal oops while automounting cifs share
Product: [Fedora] Fedora Reporter: Dimitri Papadopoulos <dimitri.papadopoulos>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 15CC: aquini, gansalmon, itamar, jonathan, kernel-maint, madhu.chinakonda
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-08 15:56:18 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:

Description Dimitri Papadopoulos 2011-08-06 11:30:53 UTC
Description of problem:
kernel oops when attempting to automount a CIFS share

Version-Release number of selected component (if applicable):
kernel-2.6.40-4.fc15.x86_64

How reproducible:
always

Steps to Reproduce:
1. Setup automounter:
     # cat /etc/auto.nas 
     nas	-fstype=cifs,user,noperm ://192.168.1.3/Volume_1/nas
     # cat /etc/auto.master
     /nas /etc/auto.nas
     # 
2. Try to access /nas/nas.
  
Actual results:
kernel oops

Expected results:
accessing /nas/nas succeeds

Additional info:
Aug  6 12:11:23 is207617 kernel: [ 8096.579111] FS-Cache: Loaded
Aug  6 12:11:23 is207617 kernel: [ 8096.596623] FS-Cache: Netfs 'cifs' registered for caching
Aug  6 12:11:23 is207617 kernel: [ 8096.622354] CIFS VFS: default security mechanism requested.  The default security mechanism will be upgraded from ntlm to ntlmv2 in kernel release 3.1
Aug  6 12:11:23 is207617 kernel: [ 8096.739498] BUG: unable to handle kernel NULL pointer dereference at 0000000000000038
Aug  6 12:11:23 is207617 kernel: [ 8096.739972] IP: [<ffffffff814b636e>] mutex_lock+0x2c/0x4a
Aug  6 12:11:23 is207617 kernel: [ 8096.740482] PGD 111e18067 PUD 1090f3067 PMD 0 
Aug  6 12:11:23 is207617 kernel: [ 8096.740482] Oops: 0002 [#1] SMP 
Aug  6 12:11:23 is207617 kernel: [ 8096.740482] CPU 1 
Aug  6 12:11:23 is207617 kernel: [ 8096.740482] Modules linked in: des_generic md4 nls_utf8 cifs fscache usblp usb_storage uas vboxnetadp vboxnetflt vboxdrv fuse sunrpc p4_clockmod freq_table speedstep_lib bnep bluetooth rfkill nf_conntrack_ipv4 nf_defrag_ipv4 ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6 xt_state nf_conntrack ip6table_filter ip6_tables snd_hda_codec_analog ppdev microcode snd_hda_intel snd_hda_codec snd_hwdep snd_seq snd_seq_device snd_pcm dcdbas parport_pc parport i2c_i801 serio_raw iTCO_wdt iTCO_vendor_support snd_timer tg3 snd soundcore snd_page_alloc x38_edac edac_core nouveau ttm drm_kms_helper drm i2c_algo_bit i2c_core mxm_wmi wmi video [last unloaded: mperf]
Aug  6 12:11:23 is207617 kernel: [ 8096.740482] 
Aug  6 12:11:23 is207617 kernel: [ 8096.740482] Pid: 4816, comm: mount.cifs Not tainted 2.6.40-4.fc15.x86_64 #1 Dell Inc. Precision WorkStation T3400  /0TP412
Aug  6 12:11:23 is207617 kernel: [ 8096.740482] RIP: 0010:[<ffffffff814b636e>]  [<ffffffff814b636e>] mutex_lock+0x2c/0x4a
Aug  6 12:11:23 is207617 kernel: [ 8096.740482] RSP: 0018:ffff88011c373d08  EFLAGS: 00010246
Aug  6 12:11:23 is207617 kernel: [ 8096.740482] RAX: 0000000000000000 RBX: 0000000000000038 RCX: 000000000000002f
Aug  6 12:11:23 is207617 kernel: [ 8096.740482] RDX: 0000000000000000 RSI: 0000000000000055 RDI: 0000000000000038
Aug  6 12:11:23 is207617 kernel: [ 8096.740482] RBP: ffff88011c373d28 R08: ffffea0003a05cb8 R09: ffffffffa047f1bf
Aug  6 12:11:23 is207617 kernel: [ 8096.740482] R10: ffff88011c373968 R11: ffff88011c373968 R12: ffff880037915a00
Aug  6 12:11:23 is207617 kernel: [ 8096.740482] R13: ffff8800379c09a0 R14: ffff8800ac9d0540 R15: ffff8800379c09b6
Aug  6 12:11:23 is207617 kernel: [ 8096.740482] FS:  00007fe6e5a37740(0000) GS:ffff88013bc40000(0000) knlGS:0000000000000000
Aug  6 12:11:23 is207617 kernel: [ 8096.740482] CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
Aug  6 12:11:23 is207617 kernel: [ 8096.740482] CR2: 0000000000000038 CR3: 000000010395a000 CR4: 00000000000006e0
Aug  6 12:11:23 is207617 kernel: [ 8096.740482] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
Aug  6 12:11:23 is207617 kernel: [ 8096.740482] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Aug  6 12:11:23 is207617 kernel: [ 8096.740482] Process mount.cifs (pid: 4816, threadinfo ffff88011c372000, task ffff88008578ae60)
Aug  6 12:11:23 is207617 kernel: [ 8096.740482] Stack:
Aug  6 12:11:23 is207617 kernel: [ 8096.740482]  ffff88011c373d28 ffffffff81137c49 ffff880037b82000 ffff880037b82000
Aug  6 12:11:23 is207617 kernel: [ 8096.740482]  ffff88011c373da8 ffffffffa046ed2f ffff8800379c09ae ffffffff811f842f
Aug  6 12:11:23 is207617 kernel: [ 8096.740482]  0000000000000038 000000091c3f1000 ffff88011c24f000 ffff880109398000
Aug  6 12:11:23 is207617 kernel: [ 8096.740482] Call Trace:
Aug  6 12:11:23 is207617 kernel: [ 8096.740482]  [<ffffffff81137c49>] ? dput+0x42/0xea
Aug  6 12:11:23 is207617 kernel: [ 8096.740482]  [<ffffffffa046ed2f>] cifs_do_mount+0x396/0x466 [cifs]
Aug  6 12:11:23 is207617 kernel: [ 8096.740482]  [<ffffffff811f842f>] ? selinux_sb_copy_data+0x11b/0x1ab
Aug  6 12:11:23 is207617 kernel: [ 8096.740482]  [<ffffffff81129858>] mount_fs+0x69/0x155
Aug  6 12:11:23 is207617 kernel: [ 8096.740482]  [<ffffffff810f528a>] ? __alloc_percpu+0x10/0x12
Aug  6 12:11:23 is207617 kernel: [ 8096.740482]  [<ffffffff8113d5e9>] vfs_kern_mount+0x63/0x9d
Aug  6 12:11:23 is207617 kernel: [ 8096.740482]  [<ffffffff8113df6c>] do_kern_mount+0x4d/0xdf
Aug  6 12:11:23 is207617 kernel: [ 8096.740482]  [<ffffffff8113f5f1>] do_mount+0x63c/0x69f
Aug  6 12:11:23 is207617 kernel: [ 8096.740482]  [<ffffffff8113f8d6>] sys_mount+0x88/0xc2
Aug  6 12:11:23 is207617 kernel: [ 8096.740482]  [<ffffffff814bd7c2>] system_call_fastpath+0x16/0x1b
Aug  6 12:11:23 is207617 kernel: [ 8096.740482] Code: 48 89 e5 53 48 83 ec 18 66 66 66 66 90 31 d2 be 55 00 00 00 48 89 fb 48 c7 c7 82 36 7b 81 e8 9c 10 b9 ff e8 43 f7 ff ff 48 89 df <f0> ff 0f 79 05 e8 51 00 00 00 65 48 8b 04 25 80 cd 00 00 48 89 
Aug  6 12:11:23 is207617 kernel: [ 8096.740482] RIP  [<ffffffff814b636e>] mutex_lock+0x2c/0x4a
Aug  6 12:11:23 is207617 kernel: [ 8096.740482]  RSP <ffff88011c373d08>
Aug  6 12:11:23 is207617 kernel: [ 8096.740482] CR2: 0000000000000038
Aug  6 12:11:23 is207617 kernel: [ 8096.768824] ---[ end trace 6d0cae3c513a1102 ]---

Comment 1 Dimitri Papadopoulos 2011-08-06 11:38:08 UTC
This might be a duplicate of bug 727927.

Comment 2 Dave Jones 2011-08-08 15:56:18 UTC
yep, looks like it.

*** This bug has been marked as a duplicate of bug 727927 ***