lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 23 Nov 2006 20:08:59 +0900
From:	OGAWA Hirofumi <hirofumi@...l.parknet.co.jp>
To:	junjiec@...il.com
Cc:	smartart@...cali.it, linux-kernel@...r.kernel.org
Subject: Re: bug? VFAT copy problem

junjiec@...il.com writes:

> We encountered this problem before,it did being caused by dcache.
> When creating files, VFS would check the dcache first and pass the dentry
> it found there to vfat_create(). Instead of dentry , using the path info
> passed by user solved the problem.
>
> --- namei.c	2006-11-18 18:41:58.000000000 +0900
> +++ namei.c.new	2006-11-23 12:45:34.000000000 +0900
> @@ -742,7 +742,7 @@
>  	lock_kernel();
>  
>  	ts = CURRENT_TIME_SEC;
> -	err = vfat_add_entry(dir, &dentry->d_name, 0, 0, &ts, &sinfo);
> +	err = vfat_add_entry(dir, &nd->last, 0, 0, &ts, &sinfo);
>  	if (err)
>  		goto out;
>  	dir->i_version++;
>

Interesting hack. However, mkdir() and rename() have same problem.
-- 
OGAWA Hirofumi <hirofumi@...l.parknet.co.jp>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ