Linux filesystem development
 help / color / mirror / Atom feed
* [BUG] afs: ERR_PTR dereference in afs_lookup_server() error path
@ 2026-08-27 22:37 Farhad Alemi
  2026-09-02 11:40 ` David Howells
  0 siblings, 1 reply; 2+ messages in thread
From: Farhad Alemi @ 2026-08-27 22:37 UTC (permalink / raw)
  To: David Howells, Marc Dionne; +Cc: falemi, linux-afs, linux-fsdevel, linux-kernel

Hello David and Marc,

While fuzzing Linux 7.1-rc5 with syzkaller, as part of research at ASU's
SEFCOM lab, we hit the crash below. Crash reports can be found here:

  https://github.com/farhad-alemi/public_bug_reports/tree/main/104-afs-err_ptr-deref-afs_put_addrlist/

  BUG: unable to handle page fault for address: ffffffffffffff9f
  RIP: 0010:afs_put_addrlist+0x43/0x250 fs/afs/addr_list.c:38
  afs_lookup_server+0xd3f/0x1020 fs/afs/server.c:243
  afs_alloc_server_list+0x800/0x11a0 fs/afs/server_list.c:82
  afs_create_volume+0x995/0x1290 fs/afs/volume.c:227
  afs_get_tree+0x955/0x10b0 fs/afs/super.c:555

Our reproducer.c is available upon request.

Happy to test a patch if that would help.

Regards,

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [BUG] afs: ERR_PTR dereference in afs_lookup_server() error path
  2026-08-27 22:37 [BUG] afs: ERR_PTR dereference in afs_lookup_server() error path Farhad Alemi
@ 2026-09-02 11:40 ` David Howells
  0 siblings, 0 replies; 2+ messages in thread
From: David Howells @ 2026-09-02 11:40 UTC (permalink / raw)
  To: Farhad Alemi
  Cc: dhowells, Marc Dionne, falemi, linux-afs, linux-fsdevel,
	linux-kernel

Hi Farhad,

> While fuzzing Linux 7.1-rc5 with syzkaller, as part of research at ASU's
> SEFCOM lab, we hit the crash below. Crash reports can be found here:

Have you tried it with 7.3-rc1?

>   BUG: unable to handle page fault for address: ffffffffffffff9f
>   RIP: 0010:afs_put_addrlist+0x43/0x250 fs/afs/addr_list.c:38
>   afs_lookup_server+0xd3f/0x1020 fs/afs/server.c:243
>   afs_alloc_server_list+0x800/0x11a0 fs/afs/server_list.c:82
>   afs_create_volume+0x995/0x1290 fs/afs/volume.c:227
>   afs_get_tree+0x955/0x10b0 fs/afs/super.c:555

It looks like alist is 0xffffffffffffff9f, but it's not immediately obvious
how it could be anything other than a valid pointer at that point.

> Our reproducer.c is available upon request.

If I could have that, please?

Thanks,
David


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-09-02 11:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-27 22:37 [BUG] afs: ERR_PTR dereference in afs_lookup_server() error path Farhad Alemi
2026-09-02 11:40 ` David Howells

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox