]> git.ipfire.org Git - thirdparty/linux.git/commit
afs: Fix afs_atcell_get_link() to check if ws_cell is unset first
authorDavid Howells <dhowells@redhat.com>
Tue, 18 Mar 2025 11:20:19 +0000 (11:20 +0000)
committerChristian Brauner <brauner@kernel.org>
Wed, 19 Mar 2025 08:23:05 +0000 (09:23 +0100)
commit0307d16f3610eb29ad0b7529846de7d62fed60ca
tree518118e8c1f67c891f4b24532dafc73c32d5b1be
parent4701f33a10702d5fc577c32434eb62adde0a1ae1
afs: Fix afs_atcell_get_link() to check if ws_cell is unset first

Fix afs_atcell_get_link() to check if the workstation cell is unset before
doing the RCU pathwalk bit where we dereference that.

Fixes: 823869e1e616 ("afs: Fix afs_atcell_get_link() to handle RCU pathwalk")
Reported-by: syzbot+76a6f18e3af82e84f264@syzkaller.appspotmail.com
Signed-off-by: David Howells <dhowells@redhat.com>
Link: https://lore.kernel.org/r/2481796.1742296819@warthog.procyon.org.uk
Tested-by: syzbot+76a6f18e3af82e84f264@syzkaller.appspotmail.com
cc: Marc Dionne <marc.dionne@auristor.com>
cc: linux-afs@lists.infradead.org
cc: linux-fsdevel@vger.kernel.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/afs/dynroot.c