Comment 0 for bug 1064489

Revision history for this message
roelof van der kleij (r-g-van-der-kleij) wrote : Kernel oops when accessing non existent folder on DFS share

When entering a dfs referral in the DFS root tree, I cannot follow the referral to the next server. I get either a "Permission denied" error or an "Object is remote" error.

if I cd to a non-existent folder I get a kernel oops:

username@COMP12345:~$ cd /DOMAIN/folder/dfsfolder/
username@COMP12345:/DOMAIN/folder/dfsfolder/ ls
ls: cannot open directory .: Permission denied
username@COMP12345:/DOMAIN/folder/dfsfolder$ klist
Ticket cache: FILE:/tmp/krb5cc_1234567
Default principal: <email address hidden>

Valid starting Expires Service principal
09/10/12 17:18:34 10/10/12 03:18:35 <email address hidden>
 renew until 16/10/12 17:18:34
09/10/12 17:18:35 10/10/12 03:18:35 COMP12345$@DOMAIN.LEIDENUNIV.NL
 renew until 16/10/12 17:18:34
09/10/12 17:19:13 10/10/12 03:18:35 <email address hidden>
 renew until 16/10/12 17:18:34

username@COMP12345:/DOMAIN/folder/dfsfolder$ cd XXXXXXXXXX

[ 214.095043] BUG: unable to handle kernel NULL pointer dereference at (null)
[ 214.095106] IP: [< (null)>] (null)
[ 214.095139] PGD 1061bc067 PUD 1061bb067 PMD 0
[ 214.095177] Oops: 0010 [#1] SMP
[ 214.095204] CPU 1
[ 214.095218] Modules linked in: arc4 nls_utf8 cifs autofs4 rfcomm bnep bluetooth snd_hda_codec_realtek snd_hda_intel snd_hda_codec snd_hwdep snd_pcm snd_seq_midi dell_wmi sparse_keymap ppdev snd_rawmidi rpcsec_gss_krb5 nfsd nfs lockd fscache auth_rpcgss nfs_acl snd_seq_midi_event sunrpc dcdbas snd_seq snd_timer snd_seq_device psmouse i915 serio_raw snd parport_pc drm_kms_helper wmi drm mac_hid soundcore i2c_algo_bit video snd_page_alloc lp parport usbhid hid tg3
[ 214.095573]
[ 214.095586] Pid: 1969, comm: bash Not tainted 3.2.0-31-generic #50-Ubuntu Dell Inc. OptiPlex 380 /01TKCC
[ 214.095656] RIP: 0010:[<0000000000000000>] [< (null)>] (null)
[ 214.095702] RSP: 0018:ffff88010614fcd0 EFLAGS: 00010286
[ 214.095734] RAX: ffffffffa0409000 RBX: ffff880036b3b3c0 RCX: 0000000000000000
[ 214.095775] RDX: ffff88010614fe78 RSI: ffff880036b3b3c0 RDI: ffff880106e90070
[ 214.095816] RBP: ffff88010614fd08 R08: ffff88012bc56ec0 R09: 0000000000000005
[ 214.095857] R10: 0000000000000000 R11: 0000000000000005 R12: ffff880106e90070
[ 214.095899] R13: ffff88010614fe78 R14: 0000000000000001 R15: ffff88010614fdf0
[ 214.095941] FS: 00007f6da7fdc700(0000) GS:ffff88012bc40000(0000) knlGS:0000000000000000
[ 214.095988] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 214.096022] CR2: 0000000000000000 CR3: 00000001061b9000 CR4: 00000000000406e0
[ 214.096063] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 214.096105] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[ 214.096146] Process bash (pid: 1969, threadinfo ffff88010614e000, task ffff88011107ae00)
[ 214.096192] Stack:
[ 214.096206] ffffffff81182b15 ffff88010614fd08 ffffffff81190235 ffff88010614fd08
[ 214.096260] ffff88010614fe78 ffff88010614fdc8 0000000000000000 ffff88010614fd88
[ 214.096313] ffffffff81184ca2 ffff88010614fd28 ffffffff00000001 ffff880106e90110
[ 214.096366] Call Trace:
[ 214.096387] [<ffffffff81182b15>] ? d_alloc_and_lookup+0x45/0x90
[ 214.096426] [<ffffffff81190235>] ? d_lookup+0x35/0x60
[ 214.096458] [<ffffffff81184ca2>] do_lookup+0x202/0x310
[ 214.096490] [<ffffffff811869dc>] path_lookupat+0x11c/0x750
[ 214.096524] [<ffffffff81187b53>] ? user_path_at_empty+0x63/0xa0
[ 214.096563] [<ffffffff813192b7>] ? __strncpy_from_user+0x27/0x60
[ 214.096600] [<ffffffff81187041>] do_path_lookup+0x31/0xc0
[ 214.098792] [<ffffffff81187b49>] user_path_at_empty+0x59/0xa0
[ 214.099014] [<ffffffff8117cc4b>] ? vfs_stat+0x1b/0x20
[ 214.099014] [<ffffffff8117cd8a>] ? sys_newstat+0x1a/0x40
[ 214.099014] [<ffffffff81187ba1>] user_path_at+0x11/0x20
[ 214.099014] [<ffffffff81176bb3>] sys_chdir+0x23/0x90
[ 214.099014] [<ffffffff81662b02>] system_call_fastpath+0x16/0x1b
[ 214.099014] Code: Bad RIP value.
[ 214.099014] RIP [< (null)>] (null)
[ 214.099014] RSP <ffff88010614fcd0>
[ 214.099014] CR2: 0000000000000000
[ 214.140115] ---[ end trace 563b8616dd09caad ]---

I mount the DFS root from the fstab:

//domain.leidenuniv.nl/Public /DOMAIN/folder/ cifs sec=krb5,intr,multiuser,_netdev,iocharset=utf8,noperm,nosuid,nodev,noexec,mapchars,nocase 0 0

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: linux-image-3.2.0-31-generic 3.2.0-31.50
ProcVersionSignature: Ubuntu 3.2.0-31.50-generic 3.2.28
Uname: Linux 3.2.0-31-generic x86_64
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
AplayDevices:
 **** List of PLAYBACK Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: ALC269VB Analog [ALC269VB Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
ApportVersion: 2.0.1-0ubuntu13
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: kleijrgvander 3293 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xfe6fc000 irq 42'
   Mixer name : 'Realtek ALC269VB'
   Components : 'HDA:10ec0269,10280400,00100100'
   Controls : 26
   Simple ctrls : 14
Date: Tue Oct 9 17:37:30 2012
HibernationDevice: RESUME=UUID=6c46ca78-30f2-4bc2-8e33-c3682ac842cc
IwConfig:
 lo no wireless extensions.

 eth0 no wireless extensions.
MachineType: Dell Inc. OptiPlex 380
ProcEnviron:
 LANGUAGE=en_IE:
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_IE.UTF-8
 SHELL=/bin/bash
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.2.0-31-generic root=UUID=075b4583-73a6-4a44-bf81-3ddd983436c8 ro LTS quiet splash vt.handoff=7
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
RelatedPackageVersions:
 linux-restricted-modules-3.2.0-31-generic N/A
 linux-backports-modules-3.2.0-31-generic N/A
 linux-firmware 1.79.1
RfKill:

SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 03/11/2010
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A01
dmi.board.name: 01TKCC
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.asset.tag: i.033.321
dmi.chassis.type: 15
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvrA01:bd03/11/2010:svnDellInc.:pnOptiPlex380:pvr:rvnDellInc.:rn01TKCC:rvrA00:cvnDellInc.:ct15:cvr:
dmi.product.name: OptiPlex 380
dmi.sys.vendor: Dell Inc.