KASAN: use-after-free Read in gfs2_quotad

Status: upstream: reported on 2025/06/06 12:35
Reported-by: syzbot+1c60687a1f6580099289@syzkaller.appspotmail.com
First crash: 450d, last: 9d11h
Similar bugs (2)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 KASAN: use-after-free Read in gfs2_quotad origin:lts-only 19 syz, C inconclusive 446 3h41m 504d 0/3 upstream: reported C repro on 2025/04/13 18:37
upstream KASAN: slab-use-after-free Read in gfs2_quotad gfs2 19 syz error error 10 221d 265d 0/29 auto-obsoleted due to no activity on 2026/04/04 10:59

Sample crash report:
==================================================================
BUG: KASAN: use-after-free in __lock_acquire+0x107/0x7b50 kernel/locking/lockdep.c:4882
Read of size 8 at addr ffff88807bb60bb0 by task gfs2_quotad/4389

CPU: 0 PID: 4389 Comm: gfs2_quotad Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Call Trace:
 <TASK>
 dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106
 print_address_description+0x60/0x2d0 mm/kasan/report.c:248
 __kasan_report mm/kasan/report.c:434 [inline]
 kasan_report+0xdf/0x130 mm/kasan/report.c:451
 __lock_acquire+0x107/0x7b50 kernel/locking/lockdep.c:4882
 lock_acquire+0x19e/0x400 kernel/locking/lockdep.c:5623
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
 _raw_spin_lock_irqsave+0xb0/0x100 kernel/locking/spinlock.c:162
 finish_wait+0xb8/0x1c0 kernel/sched/wait.c:407
 gfs2_quotad+0x713/0x890 fs/gfs2/quota.c:1605
 kthread+0x42e/0x520 kernel/kthread.c:334
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
 </TASK>

The buggy address belongs to the page:
page:ffffea0001eed800 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7bb60
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 ffffea00017af208 ffffea0001dd1e08 0000000000000000
raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as freed
page last allocated via order 3, migratetype Unmovable, gfp_mask 0x1528c0(GFP_NOWAIT|__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_HARDWALL), pid 4899, ts 98472960574, free_ts 98571716860
 prep_new_page mm/page_alloc.c:2426 [inline]
 get_page_from_freelist+0x24f6/0x2670 mm/page_alloc.c:4192
 __alloc_pages+0x1ee/0x480 mm/page_alloc.c:5501
 skb_page_frag_refill+0x225/0x4c0 net/core/sock.c:2666
 sk_page_frag_refill+0x4a/0x200 net/core/sock.c:2686
 tcp_sendmsg_locked+0xf44/0x3330 net/ipv4/tcp.c:1345
 tcp_sendmsg+0x2b/0x40 net/ipv4/tcp.c:1460
 sock_sendmsg_nosec net/socket.c:706 [inline]
 __sock_sendmsg net/socket.c:718 [inline]
 __sys_sendto+0x46d/0x620 net/socket.c:2073
 __do_sys_sendto net/socket.c:2085 [inline]
 __se_sys_sendto net/socket.c:2081 [inline]
 __x64_sys_sendto+0xda/0xf0 net/socket.c:2081
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
page last free stack trace:
 reset_page_owner include/linux/page_owner.h:24 [inline]
 free_pages_prepare mm/page_alloc.c:1340 [inline]
 free_pcp_prepare mm/page_alloc.c:1391 [inline]
 free_unref_page_prepare+0x637/0x6c0 mm/page_alloc.c:3317
 free_unref_page+0x8f/0x2a0 mm/page_alloc.c:3396
 put_page include/linux/mm.h:1258 [inline]
 __skb_frag_unref include/linux/skbuff.h:3254 [inline]
 skb_release_data+0x35c/0x830 net/core/skbuff.c:672
 skb_release_all net/core/skbuff.c:742 [inline]
 __kfree_skb+0x4c/0x60 net/core/skbuff.c:756
 tcp_clean_rtx_queue net/ipv4/tcp_input.c:3407 [inline]
 tcp_ack+0x1e17/0x6140 net/ipv4/tcp_input.c:3964
 tcp_rcv_established+0xeac/0x1d00 net/ipv4/tcp_input.c:5981
 tcp_v4_do_rcv+0x435/0x9b0 net/ipv4/tcp_ipv4.c:1732
 sk_backlog_rcv include/net/sock.h:1080 [inline]
 __release_sock+0x1e6/0x460 net/core/sock.c:2730
 release_sock+0x5b/0x1b0 net/core/sock.c:3273
 sk_wait_data+0x203/0x470 net/core/sock.c:2775
 tcp_recvmsg_locked+0xe63/0x2690 net/ipv4/tcp.c:2451
 tcp_recvmsg+0x22a/0x760 net/ipv4/tcp.c:2566
 inet_recvmsg+0x146/0x200 net/ipv4/af_inet.c:868
 sock_recvmsg_nosec net/socket.c:969 [inline]
 sock_recvmsg net/socket.c:987 [inline]
 __sys_recvfrom+0x396/0x510 net/socket.c:2130
 __do_sys_recvfrom net/socket.c:2148 [inline]
 __se_sys_recvfrom net/socket.c:2144 [inline]
 __x64_sys_recvfrom+0xda/0xf0 net/socket.c:2144
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80

Memory state around the buggy address:
 ffff88807bb60a80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
 ffff88807bb60b00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>ffff88807bb60b80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
                                     ^
 ffff88807bb60c00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
 ffff88807bb60c80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================

Crashes (42):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/08/21 07:36 linux-5.15.y 0eb903b5b519 1e72964b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: use-after-free Read in gfs2_quotad
2026/08/19 02:05 linux-5.15.y aabd761612db 1e72964b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: use-after-free Read in gfs2_quotad
2026/07/23 16:38 linux-5.15.y c86c4726e7f0 71a13572 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: use-after-free Read in gfs2_quotad
2026/07/19 19:07 linux-5.15.y c86c4726e7f0 72524a66 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: use-after-free Read in gfs2_quotad
2026/07/11 03:56 linux-5.15.y c86c4726e7f0 d78ea535 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: use-after-free Read in gfs2_quotad
2026/06/25 15:33 linux-5.15.y eceeec79dbc6 cfa969bf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: use-after-free Read in gfs2_quotad
2026/06/22 22:23 linux-5.15.y eceeec79dbc6 5a630be6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: use-after-free Read in gfs2_quotad
2026/06/22 22:12 linux-5.15.y eceeec79dbc6 5a630be6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: use-after-free Read in gfs2_quotad
2026/06/20 19:10 linux-5.15.y eceeec79dbc6 43bfcdb0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: use-after-free Read in gfs2_quotad
2026/06/19 16:56 linux-5.15.y eceeec79dbc6 570c59ee .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: use-after-free Read in gfs2_quotad
2026/06/09 07:11 linux-5.15.y dc027a595035 656e94c6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: use-after-free Read in gfs2_quotad
2026/06/06 12:46 linux-5.15.y dc027a595035 cc095639 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: use-after-free Read in gfs2_quotad
2026/05/25 11:24 linux-5.15.y 241d66fa280c c69befb3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: use-after-free Read in gfs2_quotad
2026/05/22 03:57 linux-5.15.y 93741761e5e3 70ae9b03 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: use-after-free Read in gfs2_quotad
2026/05/18 12:41 linux-5.15.y 93741761e5e3 55156e84 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: use-after-free Read in gfs2_quotad
2026/05/16 18:48 linux-5.15.y 93741761e5e3 a15a64a6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: use-after-free Read in gfs2_quotad
2026/05/15 11:23 linux-5.15.y de8dfb3f0278 9cd3beaa .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: use-after-free Read in gfs2_quotad
2026/05/15 02:37 linux-5.15.y de8dfb3f0278 6ccb967e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: use-after-free Read in gfs2_quotad
2026/05/13 17:19 linux-5.15.y de8dfb3f0278 fec2a7ee .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: use-after-free Read in gfs2_quotad
2026/04/08 21:51 linux-5.15.y 91d48252ad4b d9b7f621 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: use-after-free Read in gfs2_quotad
2026/04/07 17:37 linux-5.15.y 91d48252ad4b 628666c6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: use-after-free Read in gfs2_quotad
2026/04/02 03:57 linux-5.15.y 91d48252ad4b 0cb124d5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: use-after-free Read in gfs2_quotad
2026/03/31 14:14 linux-5.15.y 91d48252ad4b aeea1c72 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: use-after-free Read in gfs2_quotad
2026/03/31 03:25 linux-5.15.y 91d48252ad4b d0af506e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: use-after-free Read in gfs2_quotad
2026/03/31 00:37 linux-5.15.y 91d48252ad4b d0af506e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: use-after-free Read in gfs2_quotad
2026/03/31 00:31 linux-5.15.y 91d48252ad4b d0af506e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: use-after-free Read in gfs2_quotad
2026/03/27 07:47 linux-5.15.y 91d48252ad4b 766b6434 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: use-after-free Read in gfs2_quotad
2026/03/26 22:01 linux-5.15.y 91d48252ad4b 766b6434 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: use-after-free Read in gfs2_quotad
2026/02/18 19:24 linux-5.15.y e45d5d41c134 77d4d919 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: use-after-free Read in gfs2_quotad
2026/02/03 02:03 linux-5.15.y 9eec9a14ee10 d78927dd .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: use-after-free Read in gfs2_quotad
2026/02/01 16:33 linux-5.15.y 9eec9a14ee10 6b8752f2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: use-after-free Read in gfs2_quotad
2026/01/20 23:52 linux-5.15.y 9eec9a14ee10 06648d9c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: use-after-free Read in gfs2_quotad
2026/01/06 20:08 linux-5.15.y 68efe5a6c16a d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: use-after-free Read in gfs2_quotad
2025/12/08 22:16 linux-5.15.y 68efe5a6c16a d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: use-after-free Read in gfs2_quotad
2025/12/06 10:40 linux-5.15.y cc5ec8769306 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: use-after-free Read in gfs2_quotad
2025/11/11 13:26 linux-5.15.y cc5ec8769306 4e1406b4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: use-after-free Read in gfs2_quotad
2025/11/06 06:34 linux-5.15.y cc5ec8769306 a6c9c731 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: use-after-free Read in gfs2_quotad
2025/11/05 18:56 linux-5.15.y cc5ec8769306 a6c9c731 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: use-after-free Read in gfs2_quotad
2025/10/28 00:17 linux-5.15.y ac56c046adf4 fd2207e7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: use-after-free Read in gfs2_quotad
2025/06/06 12:35 linux-5.15.y 1c700860e8bc 9fa58bba .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: use-after-free Read in gfs2_quotad
2025/07/21 09:32 linux-5.15.y c79648372d02 7117feec .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 KASAN: use-after-free Read in gfs2_quotad
2025/12/15 02:22 linux-5.15.y 68efe5a6c16a d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: slab-out-of-bounds Read in gfs2_quotad
* Struck through repros no longer work on HEAD.