From: Greg KH <greg@kroah.com>
To: Jeffrey E Altman <jaltman@auristor.com>
Cc: stable@vger.kernel.org, linux-afs@lists.infradead.org
Subject: Re: Backport request: commit 0dc54bd4d6e0 ("fscache_cookie_enabled: check cookie is valid before accessing it")
Date: Wed, 5 Jan 2022 15:58:46 +0100 [thread overview]
Message-ID: <YdWyJuRus3zknfak@kroah.com> (raw)
In-Reply-To: <8b47354f-ff8f-4dfe-6c1e-813ffefbcf79@auristor.com>
On Tue, Jan 04, 2022 at 05:29:34PM -0500, Jeffrey E Altman wrote:
> Please backport commit 0dc54bd4d6e03be1f0b678c4297170b79f1a44ab
> ("fscache_cookie_enabled: check cookie is valid before accessing it") to
> the 5.13, 5.14, and 5.15 kernel series.
Only 5.15 is still alive, see the front page of kernel.org to see the
active kernel verisons.
> Commit 0dc54bd4d6e03be1f0b678c4297170b79f1a44ab fixes a bug introduced
> by 3003bbd0697b659944237f3459489cb596ba196c ("afs: Use the
> netfs_write_begin() helper") that results in a NULL pointer dereference
> observed in Fedora 35 when accessing afs volumes from Kubernetes.
>
> [ 3627.403829] BUG: kernel NULL pointer dereference, address:
> 0000000000000068
> [ 3627.411649] RIP: 0010:afs_is_cache_enabled+0xc/0x30 [kafs]
> [ 3627.419900] Call Trace:
> [ 3627.420432] <TASK>
> [ 3627.420957] netfs_write_begin+0x1ff/0x810 [netfs]
> [ 3627.421498] ? lock_timer_base+0x61/0x80
> [ 3627.422124] afs_write_begin+0x58/0x240 [kafs]
> [ 3627.422738] generic_perform_write+0xae/0x1d0
> [ 3627.423325] ? file_update_time+0xd2/0x120
> [ 3627.423806] __generic_file_write_iter+0x101/0x1d0
> [ 3627.424275] generic_file_write_iter+0x5d/0xb0
> [ 3627.424741] afs_file_write+0x73/0xa0 [kafs]
> [ 3627.425270] new_sync_write+0x10b/0x180
> [ 3627.425708] vfs_write+0x1ce/0x260
> [ 3627.426160] ksys_write+0x4f/0xc0
> [ 3627.426606] do_syscall_64+0x3b/0x90
> [ 3627.427086] entry_SYSCALL_64_after_hwframe+0x44/0xae
>
> The defect was introduced in v5.13-rc1 and fixed in v5.16-rc1.
Now queued up, thanks.
greg k-h
next prev parent reply other threads:[~2022-01-05 14:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-04 22:29 Backport request: commit 0dc54bd4d6e0 ("fscache_cookie_enabled: check cookie is valid before accessing it") Jeffrey E Altman
2022-01-05 14:58 ` Greg KH [this message]
2022-01-05 15:00 ` Jeffrey E Altman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YdWyJuRus3zknfak@kroah.com \
--to=greg@kroah.com \
--cc=jaltman@auristor.com \
--cc=linux-afs@lists.infradead.org \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.