syzbot


WARNING in __v9fs_get_acl
Status: upstream: reported C repro on 2021/08/16 09:58
Reported-by: syzbot+56fdf7f6291d819b9b19@syzkaller.appspotmail.com
First crash: 289d, last: 16d

Cause bisection: introduced by (bisect log) :
commit 0ac1077e3a549bf8d35971613e2be05bdbb41a00
Author: Xin Long <lucien.xin@gmail.com>
Date: Tue Oct 16 07:52:02 2018 +0000

  sctp: get pr_assoc and pr_stream all status with SCTP_PR_SCTP_ALL instead

Crash: KASAN: use-after-free Write in batadv_iv_ogm_schedule (log)
Repro: C syz .config

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 3603 at mm/page_alloc.c:5383 current_gfp_context include/linux/sched/mm.h:204 [inline]
WARNING: CPU: 0 PID: 3603 at mm/page_alloc.c:5383 __alloc_pages+0x45d/0x500 mm/page_alloc.c:5395
Modules linked in:
CPU: 0 PID: 3603 Comm: syz-executor804 Not tainted 5.18.0-rc6-syzkaller-00009-gfeb9c5e19e91 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__alloc_pages+0x45d/0x500 mm/page_alloc.c:5383
Code: be c9 00 00 00 48 c7 c7 00 2a d8 89 c6 05 61 9f e9 0b 01 e8 7a 30 6e 07 e9 6a ff ff ff 0f 0b e9 a0 fd ff ff 40 80 e5 3f eb 88 <0f> 0b e9 18 ff ff ff 4c 89 ef 44 89 e6 45 31 ed e8 ee 5f ff ff e9
RSP: 0018:ffffc90002f0fb08 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 1ffff920005e1f62 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000014 RDI: 0000000000040d40
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001
R10: ffffffff81c17bc5 R11: 0000000000000001 R12: 0000000000040d40
R13: 0000000000000014 R14: 0000000000000000 R15: ffff88806f7e1318
FS:  0000555555c643c0(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055945418cec0 CR3: 00000000191a8000 CR4: 0000000000350ee0
Call Trace:
 <TASK>
 alloc_pages+0x1aa/0x310 mm/mempolicy.c:2272
 kmalloc_order+0x34/0xf0 mm/slab_common.c:953
 kmalloc_order_trace+0x14/0x120 mm/slab_common.c:969
 kmalloc include/linux/slab.h:586 [inline]
 kzalloc include/linux/slab.h:714 [inline]
 __v9fs_get_acl+0xb5/0x170 fs/9p/acl.c:28
 v9fs_get_acl+0xf7/0x2f0 fs/9p/acl.c:63
 v9fs_mount+0x607/0xa80 fs/9p/vfs_super.c:184
 legacy_get_tree+0x105/0x220 fs/fs_context.c:610
 vfs_get_tree+0x89/0x2f0 fs/super.c:1497
 do_new_mount fs/namespace.c:3040 [inline]
 path_mount+0x1320/0x1fa0 fs/namespace.c:3370
 do_mount fs/namespace.c:3383 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount fs/namespace.c:3568 [inline]
 __x64_sys_mount+0x27f/0x300 fs/namespace.c:3568
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f7b399ee7c9
Code: 28 c3 e8 5a 14 00 00 66 2e 0f 1f 84 00 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffcc64b0598 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffcc64b05a8 RCX: 00007f7b399ee7c9
RDX: 0000000020000140 RSI: 0000000020000200 RDI: 0000000000000000
RBP: 00007ffcc64b05a0 R08: 00000000200004c0 R09: 00007f7b399aca90
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>

Fix bisection attempts:
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-smack-root 2022/01/06 11:16 upstream 75acfdb6fd92 6972b106 .config log report syz C
Crashes (40):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-root 2022/05/12 08:02 upstream feb9c5e19e91 beb0b407 .config log report syz C WARNING in __v9fs_get_acl
ci-upstream-kasan-gce-smack-root 2021/08/12 10:20 upstream 761c6d7ec820 6972b106 .config log report syz C WARNING in __v9fs_get_acl
ci-upstream-kasan-gce-root 2022/05/12 07:38 upstream feb9c5e19e91 beb0b407 .config log report info WARNING in __v9fs_get_acl
ci-upstream-kasan-gce-smack-root 2022/03/21 11:52 upstream f443e374ae13 e2d91b1d .config log report info WARNING in __v9fs_get_acl
ci-upstream-kasan-gce-smack-root 2022/03/09 15:50 upstream 330f4c53d3c2 9e8eaa75 .config log report info WARNING in __v9fs_get_acl
ci-upstream-kasan-gce-smack-root 2022/03/05 09:30 upstream 07ebd38a0da2 45a13a73 .config log report info WARNING in __v9fs_get_acl
ci-upstream-kasan-gce-root 2022/03/05 09:21 upstream 07ebd38a0da2 45a13a73 .config log report info WARNING in __v9fs_get_acl
ci-upstream-kasan-gce-smack-root 2022/01/17 07:44 upstream 79e06c4c4950 723cfaf0 .config log report info WARNING in __v9fs_get_acl
ci-upstream-kasan-gce-smack-root 2021/12/07 10:43 upstream f80ef9e49fdf 0230ba3e .config log report info WARNING in __v9fs_get_acl
ci-upstream-kasan-gce-root 2021/11/02 10:54 upstream d2fac0afe89f 098b5d53 .config log report info WARNING in __v9fs_get_acl
ci-upstream-kasan-gce-smack-root 2021/10/05 04:11 upstream 84b3e42564ac ce697b49 .config log report info WARNING in __v9fs_get_acl
ci-upstream-kasan-gce-root 2021/10/05 02:47 upstream 84b3e42564ac ce697b49 .config log report info WARNING in __v9fs_get_acl
ci-upstream-kasan-gce-root 2021/09/21 06:53 upstream e4e737bb5c17 af796c18 .config log report info WARNING in __v9fs_get_acl
ci-upstream-kasan-gce-smack-root 2021/09/04 17:48 upstream f1583cb1be35 d236a457 .config log report info WARNING in __v9fs_get_acl
ci-upstream-kasan-gce-root 2021/09/04 17:34 upstream f1583cb1be35 d236a457 .config log report info WARNING in __v9fs_get_acl
ci-upstream-kasan-gce-root 2021/09/03 18:15 upstream a9c9a6f741cd f62a5829 .config log report info WARNING in __v9fs_get_acl
ci-upstream-kasan-gce-smack-root 2021/08/25 07:12 upstream 6e764bcd1cf7 b599f2fc .config log report info WARNING in __v9fs_get_acl
ci-upstream-kasan-gce-smack-root 2021/08/25 07:12 upstream 6e764bcd1cf7 b599f2fc .config log report info WARNING in __v9fs_get_acl
ci-upstream-kasan-gce-root 2021/08/25 07:12 upstream 6e764bcd1cf7 b599f2fc .config log report info WARNING in __v9fs_get_acl
ci-upstream-kasan-gce-root 2021/08/25 07:12 upstream 6e764bcd1cf7 b599f2fc .config log report info WARNING in __v9fs_get_acl
ci-upstream-kasan-gce-smack-root 2021/08/23 05:35 upstream 1bdc3d5be7e1 b599f2fc .config log report info WARNING in __v9fs_get_acl
ci-upstream-kasan-gce-smack-root 2021/08/12 10:00 upstream 761c6d7ec820 6972b106 .config log report info WARNING in __v9fs_get_acl
ci-qemu-upstream-386 2022/03/05 09:31 upstream 07ebd38a0da2 45a13a73 .config log report info WARNING in __v9fs_get_acl
ci-upstream-linux-next-kasan-gce-root 2022/05/11 01:25 linux-next 38a288f5941e 8d7b3b67 .config log report info WARNING in __v9fs_get_acl
ci-upstream-linux-next-kasan-gce-root 2022/04/25 01:34 linux-next f1244c81da13 131df97d .config log report info WARNING in __v9fs_get_acl
ci-upstream-linux-next-kasan-gce-root 2022/04/09 23:30 linux-next ff511c1c68a5 e22c3da3 .config log report info WARNING in __v9fs_get_acl
ci-upstream-linux-next-kasan-gce-root 2022/03/11 21:38 linux-next 91265a6da44d 9e8eaa75 .config log report info WARNING in __v9fs_get_acl
ci-upstream-linux-next-kasan-gce-root 2022/03/10 05:05 linux-next 91265a6da44d 9e8eaa75 .config log report info WARNING in __v9fs_get_acl
ci-upstream-linux-next-kasan-gce-root 2022/03/05 09:22 linux-next 91265a6da44d 45a13a73 .config log report info WARNING in __v9fs_get_acl
ci-upstream-linux-next-kasan-gce-root 2022/02/11 10:48 linux-next ef6b35306dd8 0b33604d .config log report info WARNING in __v9fs_get_acl
ci-upstream-linux-next-kasan-gce-root 2022/02/08 05:41 linux-next ef6b35306dd8 a7dab638 .config log report info WARNING in __v9fs_get_acl
ci-upstream-linux-next-kasan-gce-root 2022/02/07 04:42 linux-next ef6b35306dd8 a7dab638 .config log report info WARNING in __v9fs_get_acl
ci-upstream-linux-next-kasan-gce-root 2021/11/30 01:29 linux-next f81e94e91878 d0830353 .config log report info WARNING in __v9fs_get_acl
ci-upstream-linux-next-kasan-gce-root 2021/11/29 14:00 linux-next f81e94e91878 63eeac02 .config log report info WARNING in __v9fs_get_acl
ci-upstream-linux-next-kasan-gce-root 2021/11/10 20:28 linux-next 73e5c18006f5 75b04091 .config log report info WARNING in __v9fs_get_acl
ci-upstream-linux-next-kasan-gce-root 2021/10/05 02:25 linux-next a25006a77348 ce697b49 .config log report info WARNING in __v9fs_get_acl
ci-upstream-linux-next-kasan-gce-root 2021/09/04 17:39 linux-next c1b13fe76e95 d236a457 .config log report info WARNING in __v9fs_get_acl
ci-upstream-linux-next-kasan-gce-root 2021/08/25 07:14 linux-next 372b2891c15a b599f2fc .config log report info WARNING in __v9fs_get_acl
ci-upstream-linux-next-kasan-gce-root 2021/08/23 05:34 linux-next 86ed57fd8c93 b599f2fc .config log report info WARNING in __v9fs_get_acl
ci-upstream-linux-next-kasan-gce-root 2021/08/12 09:53 linux-next 8ca403f3e7a2 6972b106 .config log report info WARNING in __v9fs_get_acl