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] [day] [month] [year] [list]
Message-ID: <3193793.1590509939@warthog.procyon.org.uk>
Date:   Tue, 26 May 2020 17:18:59 +0100
From:   David Howells <dhowells@...hat.com>
To:     Xiyu Yang <xiyuyang19@...an.edu.cn>
Cc:     dhowells@...hat.com, linux-afs@...ts.infradead.org,
        linux-kernel@...r.kernel.org, yuanxzhang@...an.edu.cn,
        kjlu@....edu, Xin Tan <tanxin.ctf@...il.com>
Subject: Re: [PATCH] afs: Fix afs_cb_interest refcnt leak in afs_select_fileserver()

Xiyu Yang <xiyuyang19@...an.edu.cn> wrote:

>  	error = afs_wait_for_fs_probes(fc->server_list, fc->untried);
> -	if (error < 0)
> +	if (error < 0) {
> +		afs_put_cb_interest(afs_v2net(vnode), fc->cbi);
>  		goto failed_set_error;
> +	}

Ummm...  Did you try this?  afs_end_vnode_operation() should then cause a
double free because you don't clear fc->cbi.

You can try it by installing the kafs-client package if your distribution has
it available and starting the afs.mount service or doing:

	mount -t afs none /afs -o dyn

and then:

	ls /afs/grand.central.org/

David

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ