syzbot


kernel BUG in __set_page_owner_handle

Status: internal: reported C repro on 2022/05/08 02:48
Reported-by: syzbot+@syzkaller.appspotmail.com
Fix commit: cd8c1fd8cdd1 mm/page_owner: use strscpy() instead of strlcpy()
Patched on: [ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64 ci-upstream-gce-leak ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce ci-upstream-kmsan-gce-386 ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-usb], missing on: [ci-qemu2-riscv64]
First crash: 264d, last: 101d

Sample crash report:
loop0: detected capacity change from 0 to 264192
detected buffer overflow in __fortify_strlen
------------[ cut here ]------------
kernel BUG at lib/string_helpers.c:1027!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 3605 Comm: syz-executor320 Not tainted 6.0.0-syzkaller-09413-g4899a36f91a9 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
RIP: 0010:fortify_panic+0x18/0x1a lib/string_helpers.c:1027
Code: 8c e8 8e e0 d3 fa e9 ac 97 b1 fa e8 b4 87 7a f8 eb db 55 48 89 fd e8 79 71 2d f8 48 89 ee 48 c7 c7 40 36 49 8a e8 1d e7 f0 ff <0f> 0b e8 63 71 2d f8 48 8b 54 24 18 4c 89 f1 48 c7 c7 c0 40 49 8a
RSP: 0018:ffffc9000408fb28 EFLAGS: 00010282
RAX: 000000000000002c RBX: ffff888021344000 RCX: 0000000000000000
RDX: ffff888027c59d80 RSI: ffffffff81612738 RDI: fffff52000811f57
RBP: ffffffff8a3b0220 R08: 000000000000002c R09: 0000000000000000
R10: 0000000080000000 R11: 6465746365746564 R12: 0000000000000040
R13: ffff8880215f147e R14: ffff8880215f0128 R15: 0000000000000000
FS:  0000555556389300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa30fbf5a70 CR3: 0000000020af2000 CR4: 0000000000350ef0
Call Trace:
 <TASK>
 __fortify_strlen include/linux/fortify-string.h:186 [inline]
 strlcpy include/linux/fortify-string.h:201 [inline]
 init_names fs/gfs2/ops_fstype.c:385 [inline]
 gfs2_fill_super+0x1226/0x27f0 fs/gfs2/ops_fstype.c:1187
 get_tree_bdev+0x440/0x760 fs/super.c:1323
 gfs2_get_tree+0x4a/0x270 fs/gfs2/ops_fstype.c:1323
 vfs_get_tree+0x89/0x2f0 fs/super.c:1530
 do_new_mount fs/namespace.c:3040 [inline]
 path_mount+0x1326/0x1e20 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+0x63/0xcd
RIP: 0033:0x7fdcadafc03a
Code: 83 c4 08 5b 5d c3 66 2e 0f 1f 84 00 00 00 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 49 89 ca b8 a5 00 00 00 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:00007ffcde0fd3a8 EFLAGS: 00000282 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fdcadafc03a
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007ffcde0fd3c0
RBP: 00007ffcde0fd3c0 R08: 00007ffcde0fd400 R09: 00005555563892c0
R10: 0000000000000008 R11: 0000000000000282 R12: 0000000000000004
R13: 00007ffcde0fd400 R14: 0000000000000001 R15: 0000000020000218
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:fortify_panic+0x18/0x1a lib/string_helpers.c:1027
Code: 8c e8 8e e0 d3 fa e9 ac 97 b1 fa e8 b4 87 7a f8 eb db 55 48 89 fd e8 79 71 2d f8 48 89 ee 48 c7 c7 40 36 49 8a e8 1d e7 f0 ff <0f> 0b e8 63 71 2d f8 48 8b 54 24 18 4c 89 f1 48 c7 c7 c0 40 49 8a
RSP: 0018:ffffc9000408fb28 EFLAGS: 00010282
RAX: 000000000000002c RBX: ffff888021344000 RCX: 0000000000000000
RDX: ffff888027c59d80 RSI: ffffffff81612738 RDI: fffff52000811f57
RBP: ffffffff8a3b0220 R08: 000000000000002c R09: 0000000000000000
R10: 0000000080000000 R11: 6465746365746564 R12: 0000000000000040
R13: ffff8880215f147e R14: ffff8880215f0128 R15: 0000000000000000
FS:  0000555556389300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa30fbf5a70 CR3: 0000000020af2000 CR4: 0000000000350ef0

Crashes (37):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci-upstream-kasan-gce-root 2022/10/10 13:16 upstream 4899a36f91a9 aea5da89 .config strace log report syz C [disk image] [vmlinux] [mounted in repro] kernel BUG in gfs2_fill_super
ci-upstream-kasan-gce-root 2022/09/25 21:38 upstream 105a36f3694e 0042f2b4 .config strace log report syz C [disk image] [vmlinux] kernel BUG in gfs2_fill_super
ci-upstream-bpf-next-kasan-gce 2022/05/08 02:47 bpf-next 20b87e7c29df e60b1103 .config console log report info kernel BUG in __set_page_owner_handle
ci-upstream-kasan-gce-selinux-root 2022/10/17 16:57 upstream 55be6084c8e0 67cb024c .config console log report info [disk image] [vmlinux] kernel BUG in gfs2_fill_super
ci-upstream-kasan-gce-root 2022/10/17 16:54 upstream 55be6084c8e0 67cb024c .config console log report info [disk image] [vmlinux] kernel BUG in gfs2_fill_super
ci-upstream-kasan-gce-root 2022/10/17 16:45 upstream 55be6084c8e0 67cb024c .config console log report info [disk image] [vmlinux] kernel BUG in gfs2_fill_super
ci-upstream-kasan-gce-root 2022/10/17 16:44 upstream 55be6084c8e0 67cb024c .config console log report info [disk image] [vmlinux] kernel BUG in gfs2_fill_super
ci-upstream-kasan-gce-selinux-root 2022/10/17 16:43 upstream 55be6084c8e0 67cb024c .config console log report info [disk image] [vmlinux] kernel BUG in gfs2_fill_super
ci-upstream-kasan-gce-root 2022/10/17 16:38 upstream 55be6084c8e0 67cb024c .config console log report info [disk image] [vmlinux] kernel BUG in gfs2_fill_super
ci-upstream-kasan-gce-selinux-root 2022/10/17 16:35 upstream 55be6084c8e0 67cb024c .config console log report info [disk image] [vmlinux] kernel BUG in gfs2_fill_super
ci-upstream-kasan-gce-selinux-root 2022/10/14 19:49 upstream 55be6084c8e0 4954e4b2 .config console log report info [disk image] [vmlinux] kernel BUG in gfs2_fill_super
ci-upstream-kasan-gce-root 2022/10/14 19:48 upstream 55be6084c8e0 4954e4b2 .config console log report info [disk image] [vmlinux] kernel BUG in gfs2_fill_super
ci-upstream-kasan-gce-root 2022/10/14 09:21 upstream 55be6084c8e0 4954e4b2 .config console log report info [disk image] [vmlinux] kernel BUG in gfs2_fill_super
ci-upstream-kasan-gce-selinux-root 2022/10/13 21:36 upstream 55be6084c8e0 adf90437 .config console log report info [disk image] [vmlinux] kernel BUG in gfs2_fill_super
ci-upstream-kasan-gce-root 2022/10/13 21:31 upstream 55be6084c8e0 adf90437 .config console log report info [disk image] [vmlinux] kernel BUG in gfs2_fill_super
ci-upstream-kasan-gce-selinux-root 2022/10/11 08:38 upstream 55be6084c8e0 2b253ced .config console log report info [disk image] [vmlinux] kernel BUG in gfs2_fill_super
ci-upstream-kasan-gce-root 2022/10/11 08:37 upstream 55be6084c8e0 2b253ced .config console log report info [disk image] [vmlinux] kernel BUG in gfs2_fill_super
ci-upstream-kasan-gce-root 2022/10/11 06:35 upstream 55be6084c8e0 2b253ced .config console log report info [disk image] [vmlinux] kernel BUG in gfs2_fill_super
ci-upstream-kasan-gce-selinux-root 2022/10/11 06:20 upstream 55be6084c8e0 2b253ced .config console log report info [disk image] [vmlinux] kernel BUG in gfs2_fill_super
ci-upstream-kasan-gce-selinux-root 2022/10/10 22:09 upstream 4899a36f91a9 aea5da89 .config console log report info [disk image] [vmlinux] kernel BUG in gfs2_fill_super
ci-upstream-kasan-gce-root 2022/10/10 22:07 upstream 4899a36f91a9 aea5da89 .config console log report info [disk image] [vmlinux] kernel BUG in gfs2_fill_super
ci-upstream-kasan-gce-root 2022/10/10 22:07 upstream 4899a36f91a9 aea5da89 .config console log report info [disk image] [vmlinux] kernel BUG in gfs2_fill_super
ci-upstream-kasan-gce-root 2022/10/10 11:28 upstream 4899a36f91a9 aea5da89 .config console log report info [disk image] [vmlinux] kernel BUG in gfs2_fill_super
ci-upstream-kasan-gce-selinux-root 2022/10/10 10:11 upstream 4899a36f91a9 aea5da89 .config console log report info [disk image] [vmlinux] kernel BUG in gfs2_fill_super
ci-upstream-kasan-gce-selinux-root 2022/10/07 03:47 upstream ffb39098bf87 8a212197 .config console log report info [disk image] [vmlinux] kernel BUG in gfs2_fill_super
ci-upstream-kasan-gce-selinux-root 2022/10/05 01:27 upstream a5088ee7251e eab8f949 .config console log report info [disk image] [vmlinux] kernel BUG in gfs2_fill_super
ci-upstream-kasan-gce-root 2022/10/05 01:17 upstream a5088ee7251e eab8f949 .config console log report info [disk image] [vmlinux] kernel BUG in gfs2_fill_super
ci-qemu-upstream 2022/10/02 05:28 upstream b357fd1c2afc feb56351 .config console log report info kernel BUG in gfs2_fill_super
ci-upstream-kasan-gce-selinux-root 2022/10/02 05:21 upstream b357fd1c2afc feb56351 .config console log report info kernel BUG in gfs2_fill_super
ci-upstream-kasan-gce-root 2022/10/02 05:21 upstream b357fd1c2afc feb56351 .config console log report info [disk image] [vmlinux] kernel BUG in gfs2_fill_super
ci-upstream-kasan-gce-selinux-root 2022/09/24 21:04 upstream a63f2e7cb110 0042f2b4 .config console log report info [disk image] [vmlinux] kernel BUG in gfs2_fill_super
ci-upstream-kasan-gce-selinux-root 2022/09/24 21:04 upstream a63f2e7cb110 0042f2b4 .config console log report info [disk image] [vmlinux] kernel BUG in gfs2_fill_super
ci-upstream-kasan-gce-selinux-root 2022/09/24 20:34 upstream a63f2e7cb110 0042f2b4 .config console log report info [disk image] [vmlinux] kernel BUG in gfs2_fill_super
ci-upstream-kasan-gce-root 2022/09/24 20:32 upstream a63f2e7cb110 0042f2b4 .config console log report info kernel BUG in gfs2_fill_super
ci-qemu-upstream-386 2022/10/02 05:19 upstream b357fd1c2afc feb56351 .config console log report info kernel BUG in gfs2_fill_super
ci-qemu-upstream-386 2022/09/25 15:22 upstream 1a61b828566f 0042f2b4 .config console log report info kernel BUG in gfs2_fill_super
ci-qemu-upstream-386 2022/09/25 01:55 upstream 1a61b828566f 0042f2b4 .config console log report info kernel BUG in gfs2_fill_super
* Struck through repros no longer work on HEAD.