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]
Date:	Fri, 2 Apr 2010 15:18:04 +0300
From:	"Kirill A. Shutemov" <kirill@...temov.name>
To:	Wu Fengguang <fengguang.wu@...el.com>
Cc:	Andrew Morton <akpm@...ux-foundation.org>, stable@...nel.org,
	"Yan, Zheng" <yanzheng@...n.com>,
	"linux-btrfs@...r.kernel.org" <linux-btrfs@...r.kernel.org>,
	LKML <linux-kernel@...r.kernel.org>,
	Jens Axboe <jens.axboe@...cle.com>
Subject: Re: [PATCH][BUGFIX] readahead: fix NULL filp dereference

On Fri, Apr 2, 2010 at 10:27 AM, Wu Fengguang <fengguang.wu@...el.com> wrote:
> The btrfs relocate_file_extent_cluster() calls us with NULL filp:
>
>  [ 4005.426805] BUG: unable to handle kernel NULL pointer dereference at 00000021
>  [ 4005.426818] IP: [<c109a130>] page_cache_sync_readahead+0x18/0x3e
>
> CC: Yan Zheng <yanzheng@...n.com>
> Reported-by: Kirill A. Shutemov <kirill@...temov.name>
> Signed-off-by: Wu Fengguang <fengguang.wu@...el.com>
> ---
>
> Andrew and Greg:
>
> This is an obvious correct bug fix for .34 and .33-stable,
> so I'm resending it directly to you without Kirill's confirmation.

Sorry.

Tested-by: Kirill A. Shutemov <kirill@...temov.name>

> --- sound-2.6.orig/mm/readahead.c       2010-03-26 11:51:57.000000000 +0800
> +++ sound-2.6/mm/readahead.c    2010-03-26 11:52:11.000000000 +0800
> @@ -502,7 +502,7 @@ void page_cache_sync_readahead(struct ad
>                return;
>
>        /* be dumb */
> -       if (filp->f_mode & FMODE_RANDOM) {
> +       if (filp && (filp->f_mode & FMODE_RANDOM)) {
>                force_page_cache_readahead(mapping, filp, offset, req_size);
>                return;
>        }
>
--
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