[Bug 794988] New: cifs: don't compare uniqueids in cifs_prime_dcache unless server inode numbers are in use
https://bugzilla.novell.com/show_bug.cgi?id=794988 https://bugzilla.novell.com/show_bug.cgi?id=794988#c0 Summary: cifs: don't compare uniqueids in cifs_prime_dcache unless server inode numbers are in use Classification: openSUSE Product: openSUSE 12.2 Version: Final Platform: All OS/Version: openSUSE 12.2 Status: NEW Severity: Major Priority: P5 - None Component: Kernel AssignedTo: kernel-maintainers@forge.provo.novell.com ReportedBy: olivpass@web.de QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Firefox/17.0 Hi, the discription of this bug is on this site: https://patchwork.kernel.org/patch/1887301/ To reproduce this, you can use this mount command: /bin/mount -tcifs //vincent/lw_n /smb/lw_t/ -ouser=ms,uid=<number>,gid=<number>,noserverino,noperm,nocase,domain=xxx I backported the patch and it works for me. This is the diff to the original OpenSuSE 12.2 kernel: itms2:/lib/modules/3.4.11-2.16-desktop/source/fs/cifs # diff readdir_orig.c readdir.c 78a79
struct cifs_sb_info *cifs_sb = CIFS_SB(sb);
90,94c91,105 < /* update inode in place if i_ino didn't change */ < if (inode && CIFS_I(inode)->uniqueid == fattr->cf_uniqueid) { < cifs_fattr_to_inode(inode, fattr); < return dentry; < } ---
if (inode) { /* * If we're generating inode numbers, then we don't * want to clobber the existing one with the one that * the readdir code created. */ if (!(cifs_sb->mnt_cifs_flags & CIFS_MOUNT_SERVER_INUM)) fattr->cf_uniqueid = CIFS_I(inode)->uniqueid;
/* update inode in place if i_ino didn't change */ if (inode && CIFS_I(inode)->uniqueid == fattr->cf_uniqueid) { cifs_fattr_to_inode(inode, fattr); return dentry; } }
Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=794988 https://bugzilla.novell.com/show_bug.cgi?id=794988#c Jeff Mahoney <jeffm@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|kernel-maintainers@forge.pr |mszeredi@novell.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=794988 https://bugzilla.novell.com/show_bug.cgi?id=794988#c1 Miklos Szeredi <mszeredi@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |mszeredi@novell.com Resolution| |FIXED --- Comment #1 from Miklos Szeredi <mszeredi@novell.com> 2013-07-17 10:51:45 UTC --- committed fix to openSUSE-12.2 branch. 12.3 is not affected. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=794988 https://bugzilla.novell.com/show_bug.cgi?id=794988#c Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard| |obs:running:2033:moderate -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=794988 https://bugzilla.novell.com/show_bug.cgi?id=794988#c2 --- Comment #2 from Swamp Workflow Management <swamp@suse.de> 2013-10-31 23:05:06 UTC --- openSUSE-SU-2013:1619-1: An update that solves 12 vulnerabilities and has 17 fixes is now available. Category: security (moderate) Bug References: 783858,785542,787649,789598,794988,801178,806976,807153,807471,814336,815320,817377,818053,821560,821612,822575,823342,823517,824171,824295,827749,827750,828119,828714,831055,831058,833321,835414,838346 CVE References: CVE-2013-0231,CVE-2013-1774,CVE-2013-1819,CVE-2013-2148,CVE-2013-2164,CVE-2013-2232,CVE-2013-2234,CVE-2013-2237,CVE-2013-2850,CVE-2013-2851,CVE-2013-4162,CVE-2013-4163 Sources used: openSUSE 12.2 (src): kernel-docs-3.4.63-2.44.2, kernel-source-3.4.63-2.44.1, kernel-syms-3.4.63-2.44.1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=794988 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Whiteboard|obs:running:2033:moderate | -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com