syzbot


WARNING in __virt_to_phys

Status: closed as dup on 2022/09/19 06:44
Subsystems: nilfs
[Documentation on labels]
Reported-by: syzbot+443228fd71f385302265@syzkaller.appspotmail.com
First crash: 560d, last: 473d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
BUG: unable to handle kernel paging request in kernfs_put_active kernfs nilfs C 2 558d 558d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] WARNING in __virt_to_phys 1 (2) 2022/09/19 07:05
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in __virt_to_phys (2) ntfs3 C 2 324d 320d 0/26 auto-obsoleted due to no activity on 2023/08/23 09:02
linux-6.1 WARNING in __virt_to_phys origin:lts-only C done 1 315d 322d 3/3 fixed on 2023/06/19 12:27
linux-5.15 WARNING in __virt_to_phys origin:lts-only C error 1 316d 319d 0/3 upstream: reported C repro on 2023/05/14 19:50

Sample crash report:
------------[ cut here ]------------
virt_to_phys used for non-linear address: 00000000ca05cf10 (init_completion.__key+0x0/0x10)
WARNING: CPU: 0 PID: 3048 at arch/arm64/mm/physaddr.c:15 __virt_to_phys+0x80/0x98 arch/arm64/mm/physaddr.c:17
Modules linked in:
CPU: 0 PID: 3048 Comm: syz-executor164 Not tainted 6.0.0-rc7-syzkaller-18095-gbbed346d5a96 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/30/2022
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : __virt_to_phys+0x80/0x98 arch/arm64/mm/physaddr.c:17
lr : __virt_to_phys+0x7c/0x98 arch/arm64/mm/physaddr.c:12
sp : ffff8000128d39f0
x29: ffff8000128d39f0 x28: ffff0000c6909a80 x27: 0000000000000000
x26: 00000000ffffc000 x25: 0000000000000000 x24: 00000000ffffc1c0
x23: ffff0000cad10000 x22: 0000000000000000 x21: 0000000040000000
x20: 000080000da86030 x19: ffff80000da86030 x18: 000000000000002c
x17: 0000000000000000 x16: ffff80000db49158 x15: ffff0000c6909a80
x14: 0000000000000000 x13: 00000000ffffffff x12: ffff0000c6909a80
x11: ff808000081c0d5c x10: 0000000000000000 x9 : 43564a1c4cc52100
x8 : ffff80000cf00000 x7 : ffff800008161d1c x6 : 0000000000000000
x5 : 0000000000000080 x4 : 0000000000000001 x3 : 0000000000000000
x2 : 0000000000000007 x1 : 0000000100000000 x0 : 000000000000005b
Call trace:
 __virt_to_phys+0x80/0x98 arch/arm64/mm/physaddr.c:17
 virt_to_folio include/linux/mm.h:856 [inline]
 kfree+0x70/0x348 mm/slub.c:4561
 nilfs_mdt_destroy+0x24/0x3c fs/nilfs2/mdt.c:497
 nilfs_free_inode+0x2c/0x54 fs/nilfs2/super.c:168
 i_callback fs/inode.c:249 [inline]
 alloc_inode+0xdc/0x104 fs/inode.c:274
 new_inode_pseudo fs/inode.c:1019 [inline]
 new_inode+0x2c/0xc0 fs/inode.c:1047
 nilfs_new_inode+0x48/0x378 fs/nilfs2/inode.c:334
 nilfs_mknod+0x7c/0x170 fs/nilfs2/namei.c:113
 vfs_mknod+0x2e8/0x318 fs/namei.c:3892
 unix_bind_bsd+0x138/0x320 net/unix/af_unix.c:1192
 unix_bind+0xd4/0x10c net/unix/af_unix.c:1283
 __sys_bind+0x148/0x1b0 net/socket.c:1776
 __do_sys_bind net/socket.c:1787 [inline]
 __se_sys_bind net/socket.c:1785 [inline]
 __arm64_sys_bind+0x28/0x3c net/socket.c:1785
 __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/0x164 arch/arm64/kernel/syscall.c:206
 el0_svc+0x58/0x150 arch/arm64/kernel/entry-common.c:636
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:654
 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581
irq event stamp: 2726
hardirqs last  enabled at (2725): [<ffff800008161dac>] raw_spin_rq_unlock_irq kernel/sched/sched.h:1367 [inline]
hardirqs last  enabled at (2725): [<ffff800008161dac>] finish_lock_switch+0x94/0xe8 kernel/sched/core.c:4942
hardirqs last disabled at (2726): [<ffff80000bfb5fbc>] el1_dbg+0x24/0x5c arch/arm64/kernel/entry-common.c:404
softirqs last  enabled at (2516): [<ffff80000801c33c>] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32
softirqs last disabled at (2514): [<ffff80000801c308>] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19
---[ end trace 0000000000000000 ]---
------------[ cut here ]------------
WARNING: CPU: 1 PID: 3048 at mm/slub.c:3572 free_large_kmalloc+0x40/0x148 mm/slub.c:3573
Modules linked in:
CPU: 1 PID: 3048 Comm: syz-executor164 Tainted: G        W          6.0.0-rc7-syzkaller-18095-gbbed346d5a96 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/30/2022
pstate: 00400005 (nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : free_large_kmalloc+0x40/0x148 mm/slub.c:3573
lr : kfree+0x2d8/0x348 mm/slub.c:4563
sp : ffff8000128d39e0
x29: ffff8000128d39e0 x28: ffff0000c6909a80 x27: 0000000000000000
x26: 00000000ffffc000 x25: 0000000000000000 x24: 00000000ffffc1c0
x23: ffff0000cad10000 x22: 0000000000000000 x21: fffffc0006182180
x20: ffff800008f55d20 x19: fffffc0006182180 x18: 000000000000002c
x17: 0000000000000000 x16: ffff80000db49158 x15: ffff0000c6909a80
x14: 0000000000000000 x13: 00000000ffffffff x12: ffff0000c6909a80
x11: ff808000081c0d5c x10: 0000000000000000 x9 : fffffc0000000000
x8 : ffff80000d8c8000 x7 : ffff800008161d1c x6 : 0000000000000000
x5 : 0000000000000080 x4 : 0000000000000001 x3 : 0000000000000000
x2 : 0000000000000007 x1 : ffff80000da86030 x0 : fffffc0006182180
Call trace:
 free_large_kmalloc+0x40/0x148 mm/slub.c:3573
 kfree+0x2d8/0x348 mm/slub.c:4563
 nilfs_mdt_destroy+0x24/0x3c fs/nilfs2/mdt.c:497
 nilfs_free_inode+0x2c/0x54 fs/nilfs2/super.c:168
 i_callback fs/inode.c:249 [inline]
 alloc_inode+0xdc/0x104 fs/inode.c:274
 new_inode_pseudo fs/inode.c:1019 [inline]
 new_inode+0x2c/0xc0 fs/inode.c:1047
 nilfs_new_inode+0x48/0x378 fs/nilfs2/inode.c:334
 nilfs_mknod+0x7c/0x170 fs/nilfs2/namei.c:113
 vfs_mknod+0x2e8/0x318 fs/namei.c:3892
 unix_bind_bsd+0x138/0x320 net/unix/af_unix.c:1192
 unix_bind+0xd4/0x10c net/unix/af_unix.c:1283
 __sys_bind+0x148/0x1b0 net/socket.c:1776
 __do_sys_bind net/socket.c:1787 [inline]
 __se_sys_bind net/socket.c:1785 [inline]
 __arm64_sys_bind+0x28/0x3c net/socket.c:1785
 __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/0x164 arch/arm64/kernel/syscall.c:206
 el0_svc+0x58/0x150 arch/arm64/kernel/entry-common.c:636
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:654
 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581
irq event stamp: 2838
hardirqs last  enabled at (2837): [<ffff80000bfb8138>] __exit_to_kernel_mode arch/arm64/kernel/entry-common.c:84 [inline]
hardirqs last  enabled at (2837): [<ffff80000bfb8138>] exit_to_kernel_mode+0xe8/0x118 arch/arm64/kernel/entry-common.c:94
hardirqs last disabled at (2838): [<ffff80000bfb5fbc>] el1_dbg+0x24/0x5c arch/arm64/kernel/entry-common.c:404
softirqs last  enabled at (2832): [<ffff8000080102e4>] _stext+0x2e4/0x37c
softirqs last disabled at (2729): [<ffff800008017c14>] ____do_softirq+0x14/0x20 arch/arm64/kernel/irq.c:79
---[ end trace 0000000000000000 ]---
object pointer: 0x00000000ca05cf10
BUG: Bad page state in process syz-executor164  pfn:1c6086
page:00000000845f2fff refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1c6086
flags: 0x5ffc00000001000(reserved|node=0|zone=2|lastcpupid=0x7ff)
raw: 05ffc00000001000 fffffc0006182188 fffffc0006182188 0000000000000000
raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: PAGE_FLAGS_CHECK_AT_FREE flag(s) set
Modules linked in:
CPU: 1 PID: 3048 Comm: syz-executor164 Tainted: G        W          6.0.0-rc7-syzkaller-18095-gbbed346d5a96 #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/0x54 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
 bad_page+0x104/0x108 mm/page_alloc.c:716
 check_free_page_bad+0x4c/0xa0 mm/page_alloc.c:1288
 check_free_page mm/page_alloc.c:1298 [inline]
 free_pages_prepare mm/page_alloc.c:1443 [inline]
 free_pcp_prepare+0x218/0x5b4 mm/page_alloc.c:1499
 free_unref_page_prepare mm/page_alloc.c:3380 [inline]
 free_unref_page+0x38/0x2c4 mm/page_alloc.c:3476
 free_the_page mm/page_alloc.c:767 [inline]
 __free_pages+0x104/0x168 mm/page_alloc.c:5600
 free_large_kmalloc+0xa4/0x148 mm/slub.c:3578
 kfree+0x2d8/0x348 mm/slub.c:4563
 nilfs_mdt_destroy+0x24/0x3c fs/nilfs2/mdt.c:497
 nilfs_free_inode+0x2c/0x54 fs/nilfs2/super.c:168
 i_callback fs/inode.c:249 [inline]
 alloc_inode+0xdc/0x104 fs/inode.c:274
 new_inode_pseudo fs/inode.c:1019 [inline]
 new_inode+0x2c/0xc0 fs/inode.c:1047
 nilfs_new_inode+0x48/0x378 fs/nilfs2/inode.c:334
 nilfs_mknod+0x7c/0x170 fs/nilfs2/namei.c:113
 vfs_mknod+0x2e8/0x318 fs/namei.c:3892
 unix_bind_bsd+0x138/0x320 net/unix/af_unix.c:1192
 unix_bind+0xd4/0x10c net/unix/af_unix.c:1283
 __sys_bind+0x148/0x1b0 net/socket.c:1776
 __do_sys_bind net/socket.c:1787 [inline]
 __se_sys_bind net/socket.c:1785 [inline]
 __arm64_sys_bind+0x28/0x3c net/socket.c:1785
 __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/0x164 arch/arm64/kernel/syscall.c:206
 el0_svc+0x58/0x150 arch/arm64/kernel/entry-common.c:636
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:654
 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581

Crashes (19):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/10/12 23:57 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 89b5a509 .config console log report syz C [mounted in repro] ci-upstream-gce-arm64 WARNING in __virt_to_phys
2022/10/11 00:07 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 aea5da89 .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci-upstream-gce-arm64 WARNING in __virt_to_phys
2022/09/27 06:08 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci c194837ebb57 10323ddf .config console log report syz C ci-upstream-gce-arm64 WARNING in __virt_to_phys
2022/09/23 18:12 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci d2cd2931d2fd 0042f2b4 .config console log report syz C ci-upstream-gce-arm64 WARNING in __virt_to_phys
2022/12/11 22:22 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in __virt_to_phys
2022/11/28 00:23 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 6d464646530f 74a66371 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in __virt_to_phys
2022/11/16 12:02 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 9500fc6e9e60 3a127a31 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING in __virt_to_phys
2022/10/21 18:41 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 4bfd3c27 .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING in __virt_to_phys
2022/10/21 10:58 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 63e790dd .config console log report info ci-upstream-gce-arm64 WARNING in __virt_to_phys
2022/10/18 20:51 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 b31320fc .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING in __virt_to_phys
2022/10/16 11:40 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 67cb024c .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING in __virt_to_phys
2022/10/08 11:53 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 aea5da89 .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING in __virt_to_phys
2022/10/04 20:35 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 eab8f949 .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING in __virt_to_phys
2022/10/03 21:36 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 feb56351 .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING in __virt_to_phys
2022/10/03 07:28 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 feb56351 .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING in __virt_to_phys
2022/10/02 03:53 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 feb56351 .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING in __virt_to_phys
2022/10/01 12:45 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci bbed346d5a96 feb56351 .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING in __virt_to_phys
2022/09/17 02:21 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a6b443748715 dd9a85ff .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 WARNING in __virt_to_phys
2022/09/15 06:10 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a6b443748715 b884348d .config console log report info ci-upstream-gce-arm64 WARNING in __virt_to_phys
* Struck through repros no longer work on HEAD.