[Cluster-devel] [syzbot] WARNING in gfs2_check_blk_type
Hello, syzbot found the following issue on: HEAD commit:4cee37b3a4e6 Merge tag 'mm-hotfixes-stable-2022-12-10-1' o.. git tree: upstream console+strace: https://syzkaller.appspot.com/x/log.txt?x=14da950b88 kernel config: https://syzkaller.appspot.com/x/.config?x=d58e7fe7f9cf5e24 dashboard link: https://syzkaller.appspot.com/bug?extid=092b28923eb79e0f3c41 compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=14f12ddb88 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=10ebee1f88 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/051fc9a10d4a/disk-4cee37b3.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/c40b15750245/vmlinux-4cee37b3.xz kernel image: https://storage.googleapis.com/syzbot-assets/a25e4bc102fa/bzImage-4cee37b3.xz mounted in repro: https://storage.googleapis.com/syzbot-assets/f10d144677a2/mount_0.gz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+092b28923eb79e0f3...@syzkaller.appspotmail.com gfs2: fsid=syz:syz.0: first mount done, others may mount [ cut here ] WARNING: CPU: 0 PID: 3635 at fs/gfs2/rgrp.c:2628 gfs2_rbm_from_block fs/gfs2/rgrp.c:279 [inline] WARNING: CPU: 0 PID: 3635 at fs/gfs2/rgrp.c:2628 gfs2_check_blk_type+0x43d/0x660 fs/gfs2/rgrp.c:2627 Modules linked in: CPU: 0 PID: 3635 Comm: syz-executor328 Not tainted 6.1.0-rc8-syzkaller-00164-g4cee37b3a4e6 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:gfs2_check_blk_type+0x43d/0x660 fs/gfs2/rgrp.c:2628 Code: 85 c6 01 00 00 8b 1b 89 df 44 89 f6 e8 1c ae cd fd 4c 89 74 24 10 44 39 f3 76 21 e8 6d ac cd fd 45 31 ed eb 6d e8 63 ac cd fd <0f> 0b 41 bf f9 ff ff ff 48 8b 5c 24 18 e9 41 01 00 00 e8 4c ac cd RSP: 0018:c90003c0f8c0 EFLAGS: 00010293 RAX: 83bcf389 RBX: 0012 RCX: 88802243ba80 RDX: RSI: 0012 RDI: 0013 RBP: c90003c0f9d0 R08: 83bcf37f R09: ed100e7a15dd R10: ed100e7a15dd R11: 11100e7a15dc R12: 11100ea34806 R13: 8880751a4000 R14: 11100ea34805 R15: 0013 FS: 56210300() GS:8880b980() knlGS: CS: 0010 DS: ES: CR0: 80050033 CR2: 55bda9265e90 CR3: 1d27a000 CR4: 003506f0 DR0: DR1: DR2: DR3: DR6: fffe0ff0 DR7: 0400 Call Trace: gfs2_inode_lookup+0xb66/0xd90 fs/gfs2/inode.c:173 gfs2_lookup_by_inum+0x4d/0xe0 fs/gfs2/inode.c:241 gfs2_get_dentry fs/gfs2/export.c:139 [inline] gfs2_fh_to_dentry+0x12d/0x1f0 fs/gfs2/export.c:162 exportfs_decode_fh_raw+0x115/0x600 fs/exportfs/expfs.c:435 exportfs_decode_fh+0x38/0x70 fs/exportfs/expfs.c:575 do_handle_to_path fs/fhandle.c:152 [inline] handle_to_path fs/fhandle.c:207 [inline] do_handle_open+0x485/0x950 fs/fhandle.c:223 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f27f5ae1799 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 14 00 00 90 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:7ffd97d6fbf8 EFLAGS: 0246 ORIG_RAX: 0130 RAX: ffda RBX: RCX: 7f27f5ae1799 RDX: RSI: 2100 RDI: 0004 RBP: 7f27f5aa1030 R08: R09: R10: 000124d6 R11: 0246 R12: 7f27f5aa10c0 R13: R14: R15: --- This report is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at syzkal...@googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. syzbot can test patches for this issue, for details see: https://goo.gl/tpsmEJ#testing-patches
Re: [Cluster-devel] [syzbot] BUG: sleeping function called from invalid context in do_page_fault (3)
syzbot has found a reproducer for the following issue on: HEAD commit:a5541c0811a0 Merge branch 'for-next/core' into for-kernelci git tree: git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci console output: https://syzkaller.appspot.com/x/log.txt?x=127e776d88 kernel config: https://syzkaller.appspot.com/x/.config?x=cbd4e584773e9397 dashboard link: https://syzkaller.appspot.com/bug?extid=2845b2dfa28dec36e215 compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2 userspace arch: arm64 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1578ffdf88 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/4b7702208fb9/disk-a5541c08.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/9ec0153ec051/vmlinux-a5541c08.xz kernel image: https://storage.googleapis.com/syzbot-assets/6f8725ad290a/Image-a5541c08.gz.xz mounted in repro #1: https://storage.googleapis.com/syzbot-assets/59313e0459cb/mount_0.gz mounted in repro #2: https://storage.googleapis.com/syzbot-assets/1afee1432fbe/mount_4.gz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+2845b2dfa28dec36e...@syzkaller.appspotmail.com gfs2: fsid=syz:syz.0: H: s:?? f:pn e:-32768 p:0 [(none)] preempt_count+0x10/0x24 arch/arm64/include/asm/preempt.h:12 BUG: sleeping function called from invalid context at arch/arm64/mm/fault.c:599 in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 3596, name: syz-executor.0 preempt_count: 0, expected: 0 RCU nest depth: 1, expected: 0 3 locks held by syz-executor.0/3596: #0: d0712d10 (&type->i_mutex_dir_key#8){.+.+}-{3:3}, at: inode_lock_shared include/linux/fs.h:766 [inline] #0: d0712d10 (&type->i_mutex_dir_key#8){.+.+}-{3:3}, at: open_last_lookups fs/namei.c:3480 [inline] #0: d0712d10 (&type->i_mutex_dir_key#8){.+.+}-{3:3}, at: path_openat+0x2e4/0x11c4 fs/namei.c:3711 #1: 8d4a4640 (rcu_read_lock){}-{1:2}, at: rcu_lock_acquire+0x10/0x4c include/linux/rcupdate.h:303 #2: d51feb48 (&mm->mmap_lock){}-{3:3}, at: mmap_read_trylock include/linux/mmap_lock.h:136 [inline] #2: d51feb48 (&mm->mmap_lock){}-{3:3}, at: do_page_fault+0x1ec/0x79c arch/arm64/mm/fault.c:589 CPU: 1 PID: 3596 Comm: syz-executor.0 Not tainted 6.1.0-rc8-syzkaller-0-ga5541c0811a0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/30/2022 Call trace: dump_backtrace+0x1c4/0x1f0 arch/arm64/kernel/stacktrace.c:156 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:163 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x104/0x16c lib/dump_stack.c:106 dump_stack+0x1c/0x58 lib/dump_stack.c:113 __might_resched+0x208/0x218 kernel/sched/core.c:9908 __might_sleep+0x48/0x78 kernel/sched/core.c:9837 do_page_fault+0x214/0x79c arch/arm64/mm/fault.c:599 do_translation_fault+0x78/0x194 arch/arm64/mm/fault.c:691 do_mem_abort+0x54/0x130 arch/arm64/mm/fault.c:827 el1_abort+0x3c/0x5c arch/arm64/kernel/entry-common.c:367 el1h_64_sync_handler+0x60/0xac arch/arm64/kernel/entry-common.c:427 el1h_64_sync+0x64/0x68 arch/arm64/kernel/entry.S:579 pid_nr include/linux/pid.h:185 [inline] dump_holder fs/gfs2/glock.c:2337 [inline] gfs2_dump_glock+0x518/0x904 fs/gfs2/glock.c:2447 gfs2_consist_inode_i+0x68/0x88 fs/gfs2/util.c:465 gfs2_dirent_scan+0x2dc/0x3b4 fs/gfs2/dir.c:602 gfs2_dirent_search+0x134/0x494 fs/gfs2/dir.c:850 gfs2_dir_search+0x58/0x130 fs/gfs2/dir.c:1650 gfs2_lookupi+0x23c/0x354 fs/gfs2/inode.c:323 __gfs2_lookup+0x5c/0x1dc fs/gfs2/inode.c:870 gfs2_atomic_open+0x74/0x148 fs/gfs2/inode.c:1274 atomic_open fs/namei.c:3276 [inline] lookup_open fs/namei.c:3384 [inline] open_last_lookups fs/namei.c:3481 [inline] path_openat+0x67c/0x11c4 fs/namei.c:3711 do_filp_open+0xdc/0x1b8 fs/namei.c:3741 do_sys_openat2+0xb8/0x22c fs/open.c:1310 do_sys_open fs/open.c:1326 [inline] __do_sys_openat fs/open.c:1342 [inline] __se_sys_openat fs/open.c:1337 [inline] __arm64_sys_openat+0xb0/0xe0 fs/open.c:1337 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall arch/arm64/kernel/syscall.c:52 [inline] el0_svc_common+0x138/0x220 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x48/0x140 arch/arm64/kernel/syscall.c:197 el0_svc+0x58/0x150 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:584 Unable to handle kernel paging request at virtual address 03fda9bf7ccd Mem abort info: ESR = 0x9604 EC = 0x25: DABT (current EL), IL = 32 bits SET = 0, FnV = 0 EA = 0, S1PTW = 0 FSC = 0x04: level 0 translation fault Data abort info: ISV = 0, ISS = 0x0004
Re: [Cluster-devel] [syzbot] general protection fault in do_xmote
syzbot has found a reproducer for the following issue on: HEAD commit:764822972d64 Merge tag 'nfsd-6.2' of git://git.kernel.org/.. git tree: upstream console+strace: https://syzkaller.appspot.com/x/log.txt?x=1428fb0b88 kernel config: https://syzkaller.appspot.com/x/.config?x=8c59170b68d26a55 dashboard link: https://syzkaller.appspot.com/bug?extid=ececff266234ba40fe13 compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=14ce69c048 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1016950b88 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/0c840c19749d/disk-76482297.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/bdfd51618ae0/vmlinux-76482297.xz kernel image: https://storage.googleapis.com/syzbot-assets/fef17b5d4d6d/bzImage-76482297.xz mounted in repro: https://storage.googleapis.com/syzbot-assets/a114b1cb5db6/mount_0.gz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+ececff266234ba40f...@syzkaller.appspotmail.com general protection fault, probably for non-canonical address 0xdc97: [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x04b8-0x04bf] CPU: 1 PID: 1273 Comm: kworker/1:1H Not tainted 6.1.0-syzkaller-03225-g764822972d64 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Workqueue: glock_workqueue glock_work_func RIP: 0010:is_system_glock fs/gfs2/glock.c:725 [inline] RIP: 0010:do_xmote+0xdde/0x13d0 fs/gfs2/glock.c:835 Code: 00 48 03 5d 00 48 89 d8 48 c1 e8 03 42 80 3c 30 00 74 08 48 89 df e8 91 e1 27 fe bd b8 04 00 00 48 03 2b 48 89 e8 48 c1 e8 03 <42> 80 3c 30 00 74 08 48 89 ef e8 73 e1 27 fe 4c 8b 64 24 08 4c 39 RSP: 0018:c900061a7b70 EFLAGS: 00010202 RAX: 0097 RBX: 888021dd8718 RCX: 888021c93a80 RDX: RSI: 4000 RDI: RBP: 04b8 R08: 83b7d986 R09: ed10043bb016 R10: ed10043bb016 R11: 1110043bb015 R12: 888075bf0548 R13: 0818 R14: dc00 R15: 888021dd8000 FS: () GS:8880b990() knlGS: CS: 0010 DS: ES: CR0: 80050033 CR2: 20002080 CR3: 7a61b000 CR4: 003506e0 DR0: DR1: DR2: DR3: DR6: fffe0ff0 DR7: 0400 Call Trace: glock_work_func+0x2c2/0x450 fs/gfs2/glock.c:1082 process_one_work+0x877/0xdb0 kernel/workqueue.c:2289 worker_thread+0xb14/0x1330 kernel/workqueue.c:2436 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 Modules linked in: ---[ end trace ]--- RIP: 0010:is_system_glock fs/gfs2/glock.c:725 [inline] RIP: 0010:do_xmote+0xdde/0x13d0 fs/gfs2/glock.c:835 Code: 00 48 03 5d 00 48 89 d8 48 c1 e8 03 42 80 3c 30 00 74 08 48 89 df e8 91 e1 27 fe bd b8 04 00 00 48 03 2b 48 89 e8 48 c1 e8 03 <42> 80 3c 30 00 74 08 48 89 ef e8 73 e1 27 fe 4c 8b 64 24 08 4c 39 RSP: 0018:c900061a7b70 EFLAGS: 00010202 RAX: 0097 RBX: 888021dd8718 RCX: 888021c93a80 RDX: RSI: 4000 RDI: RBP: 04b8 R08: 83b7d986 R09: ed10043bb016 R10: ed10043bb016 R11: 1110043bb015 R12: 888075bf0548 R13: 0818 R14: dc00 R15: 888021dd8000 FS: () GS:8880b990() knlGS: CS: 0010 DS: ES: CR0: 80050033 CR2: 20002080 CR3: 7e6e4000 CR4: 003506e0 DR0: DR1: DR2: DR3: DR6: fffe0ff0 DR7: 0400 Code disassembly (best guess): 0: 00 48 03add%cl,0x3(%rax) 3: 5d pop%rbp 4: 00 48 89add%cl,-0x77(%rax) 7: d8 48 c1fmuls -0x3f(%rax) a: e8 03 42 80 3c callq 0x3c804212 f: 30 00 xor%al,(%rax) 11: 74 08 je 0x1b 13: 48 89 dfmov%rbx,%rdi 16: e8 91 e1 27 fe callq 0xfe27e1ac 1b: bd b8 04 00 00 mov$0x4b8,%ebp 20: 48 03 2badd(%rbx),%rbp 23: 48 89 e8mov%rbp,%rax 26: 48 c1 e8 03 shr$0x3,%rax * 2a: 42 80 3c 30 00 cmpb $0x0,(%rax,%r14,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 48 89 efmov%rbp,%rdi 34: e8 73 e1 27 fe callq 0xfe27e1ac 39: 4c 8b 64 24 08 mov0x8(%rsp),%r12 3e: 4c rex.WR 3f: 39 .byt