[v5.15] BUG: sleeping function called from invalid context in __getblk_gfp

1 view
Skip to first unread message

syzbot

unread,
Mar 14, 2023, 3:21:57 PM3/14/23
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 2ddbd0f967b3 Linux 5.15.102
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=13e9de2ac80000
kernel config: https://syzkaller.appspot.com/x/.config?x=fec083380faceb1e
dashboard link: https://syzkaller.appspot.com/bug?extid=04432b64d3da7935f979
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/156d2aa91f3c/disk-2ddbd0f9.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/f0e97f5be5fb/vmlinux-2ddbd0f9.xz
kernel image: https://storage.googleapis.com/syzbot-assets/20d0a55a041d/bzImage-2ddbd0f9.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+04432b...@syzkaller.appspotmail.com

attempt to access beyond end of device
loop3: rw=0, want=8073606, limit=128
Buffer I/O error on dev loop3, logical block 8073605, async page read
BUG: sleeping function called from invalid context at fs/buffer.c:1334
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 6571, name: syz-executor.3
3 locks held by syz-executor.3/6571:
#0: ffff88807dca8500 (&iint->mutex){+.+.}-{3:3}, at: process_measurement+0x733/0x1d60 security/integrity/ima/ima_main.c:260
#1: ffff8880897ec328 (mapping.invalidate_lock#3){.+.+}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:842 [inline]
#1: ffff8880897ec328 (mapping.invalidate_lock#3){.+.+}-{3:3}, at: page_cache_ra_unbounded+0x1a6/0x930 mm/readahead.c:195
#2: ffffffff8cb92bf8 (pointers_lock){.+.+}-{2:2}, at: get_block+0x15b/0x1690 fs/sysv/itree.c:217
Preemption disabled at:
[<0000000000000000>] 0x0
CPU: 1 PID: 6571 Comm: syz-executor.3 Not tainted 5.15.102-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
Call Trace:
<TASK>
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106
___might_sleep+0x547/0x6a0 kernel/sched/core.c:9622
__getblk_gfp+0x43/0xaf0 fs/buffer.c:1334
__bread_gfp+0x2a/0x390 fs/buffer.c:1381
sb_bread include/linux/buffer_head.h:337 [inline]
get_branch+0x2af/0x660 fs/sysv/itree.c:104
get_block+0x178/0x1690 fs/sysv/itree.c:218
block_read_full_page+0x2f9/0xde0 fs/buffer.c:2290
read_pages+0x605/0x8e0 mm/readahead.c:145
page_cache_ra_unbounded+0x7b0/0x930 mm/readahead.c:239
page_cache_sync_readahead include/linux/pagemap.h:833 [inline]
filemap_get_pages mm/filemap.c:2551 [inline]
filemap_read+0x71c/0x2980 mm/filemap.c:2634
__kernel_read+0x5ac/0xa60 fs/read_write.c:443
integrity_kernel_read+0xac/0xf0 security/integrity/iint.c:199
ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:485 [inline]
ima_calc_file_shash security/integrity/ima/ima_crypto.c:516 [inline]
ima_calc_file_hash+0xa5d/0x1c00 security/integrity/ima/ima_crypto.c:573
ima_collect_measurement+0x293/0x530 security/integrity/ima/ima_api.c:254
process_measurement+0x1038/0x1d60 security/integrity/ima/ima_main.c:337
ima_file_check+0xf3/0x180 security/integrity/ima/ima_main.c:519
do_open fs/namei.c:3482 [inline]
path_openat+0x270b/0x2ee0 fs/namei.c:3615
do_filp_open+0x21c/0x460 fs/namei.c:3642
do_sys_openat2+0x13b/0x500 fs/open.c:1211
do_sys_open fs/open.c:1227 [inline]
__do_sys_open fs/open.c:1235 [inline]
__se_sys_open fs/open.c:1231 [inline]
__x64_sys_open+0x221/0x270 fs/open.c:1231
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+0x61/0xcb
RIP: 0033:0x7ff3e5f660f9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ff3e44d8168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 00007ff3e6085f80 RCX: 00007ff3e5f660f9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000000
RBP: 00007ff3e5fc1b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffc9b3c1aef R14: 00007ff3e44d8300 R15: 0000000000022000
</TASK>
attempt to access beyond end of device
loop3: rw=0, want=3245519, limit=128
Buffer I/O error on dev loop3, logical block 3245518, async page read
attempt to access beyond end of device
loop3: rw=0, want=8769404, limit=128
Buffer I/O error on dev loop3, logical block 8769403, async page read


---
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 syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Mar 14, 2023, 5:24:57 PM3/14/23
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 6449a0ba6843 Linux 6.1.19
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=13322806c80000
kernel config: https://syzkaller.appspot.com/x/.config?x=9ed8b3ec03e8c126
dashboard link: https://syzkaller.appspot.com/bug?extid=996485c5a957b7709bac
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/0ad616da3180/disk-6449a0ba.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/42677a30acb3/vmlinux-6449a0ba.xz
kernel image: https://storage.googleapis.com/syzbot-assets/2e21fe35d03d/bzImage-6449a0ba.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+996485...@syzkaller.appspotmail.com

syz-executor.1: attempt to access beyond end of device
loop1: rw=0, sector=13466417, nr_sectors = 1 limit=128
Buffer I/O error on dev loop1, logical block 13466417, async page read
syz-executor.1: attempt to access beyond end of device
loop1: rw=0, sector=8073605, nr_sectors = 1 limit=128
Buffer I/O error on dev loop1, logical block 8073605, async page read
BUG: sleeping function called from invalid context at fs/buffer.c:1331
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 24844, name: syz-executor.1
preempt_count: 1, expected: 0
RCU nest depth: 0, expected: 0
3 locks held by syz-executor.1/24844:
#0: ffff88801fbbd500 (&iint->mutex){+.+.}-{3:3}, at: process_measurement+0x7fe/0x1cf0 security/integrity/ima/ima_main.c:260
#1: ffff88803f920328 (mapping.invalidate_lock#9){.+.+}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:811 [inline]
#1: ffff88803f920328 (mapping.invalidate_lock#9){.+.+}-{3:3}, at: page_cache_ra_unbounded+0xed/0x7b0 mm/readahead.c:226
#2: ffffffff8d1e5958 (pointers_lock){.+.+}-{2:2}, at: get_block+0x15b/0x1690 fs/sysv/itree.c:217
Preemption disabled at:
[<0000000000000000>] 0x0
CPU: 0 PID: 24844 Comm: syz-executor.1 Not tainted 6.1.19-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
Call Trace:
<TASK>
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106
__might_resched+0x5cb/0x780 kernel/sched/core.c:9938
__getblk_gfp+0x41/0xa20 fs/buffer.c:1331
__bread_gfp+0x2a/0x370 fs/buffer.c:1367
sb_bread include/linux/buffer_head.h:338 [inline]
get_branch+0x2af/0x660 fs/sysv/itree.c:104
get_block+0x178/0x1690 fs/sysv/itree.c:218
block_read_full_folio+0x403/0xf60 fs/buffer.c:2271
read_pages+0x5f2/0x830 mm/readahead.c:181
page_cache_ra_unbounded+0x68b/0x7b0 mm/readahead.c:270
page_cache_sync_readahead include/linux/pagemap.h:1213 [inline]
filemap_get_pages mm/filemap.c:2582 [inline]
filemap_read+0x7fa/0x31d0 mm/filemap.c:2676
__kernel_read+0x41e/0x8a0 fs/read_write.c:428
integrity_kernel_read+0xac/0xf0 security/integrity/iint.c:199
ima_calc_file_hash_tfm security/integrity/ima/ima_crypto.c:485 [inline]
ima_calc_file_shash security/integrity/ima/ima_crypto.c:516 [inline]
ima_calc_file_hash+0xa57/0x1c00 security/integrity/ima/ima_crypto.c:573
ima_collect_measurement+0x4d4/0x970 security/integrity/ima/ima_api.c:292
process_measurement+0x1018/0x1cf0 security/integrity/ima/ima_main.c:337
ima_file_check+0xed/0x170 security/integrity/ima/ima_main.c:520
do_open fs/namei.c:3559 [inline]
path_openat+0x2687/0x2e60 fs/namei.c:3714
do_filp_open+0x230/0x480 fs/namei.c:3741
do_sys_openat2+0x13b/0x500 fs/open.c:1310
do_sys_open fs/open.c:1326 [inline]
__do_sys_open fs/open.c:1334 [inline]
__se_sys_open fs/open.c:1330 [inline]
__x64_sys_open+0x221/0x270 fs/open.c:1330
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:0x7fcce928c0f9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fccea081168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 00007fcce93abf80 RCX: 00007fcce928c0f9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000000
RBP: 00007fcce92e7b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffc52a188bf R14: 00007fccea081300 R15: 0000000000022000
</TASK>
syz-executor.1: attempt to access beyond end of device
loop1: rw=0, sector=3245518, nr_sectors = 1 limit=128
Buffer I/O error on dev loop1, logical block 3245518, async page read
syz-executor.1: attempt to access beyond end of device
loop1: rw=0, sector=8769403, nr_sectors = 1 limit=128
Buffer I/O error on dev loop1, logical block 8769403, async page read

syzbot

unread,
May 18, 2023, 2:01:12 PM5/18/23
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: fa74641fb6b9 Linux 6.1.29
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=116229f9280000
kernel config: https://syzkaller.appspot.com/x/.config?x=fac5c36c2b16009f
dashboard link: https://syzkaller.appspot.com/bug?extid=996485c5a957b7709bac
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=14569f45280000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=11cbd629280000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/3e78f005d7f8/disk-fa74641f.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/6527fcf66401/vmlinux-fa74641f.xz
kernel image: https://storage.googleapis.com/syzbot-assets/c5e0d5f8b434/bzImage-fa74641f.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/8b93011cc7f7/mount_1.gz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+996485...@syzkaller.appspotmail.com

loop0: rw=0, sector=8768635, nr_sectors = 1 limit=128
Buffer I/O error on dev loop0, logical block 8768635, async page read
syz-executor390: attempt to access beyond end of device
loop0: rw=0, sector=13466417, nr_sectors = 1 limit=128
Buffer I/O error on dev loop0, logical block 13466417, async page read
syz-executor390: attempt to access beyond end of device
loop0: rw=0, sector=209285, nr_sectors = 1 limit=128
Buffer I/O error on dev loop0, logical block 209285, async page read
BUG: sleeping function called from invalid context at fs/buffer.c:1331
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 3542, name: syz-executor390
preempt_count: 1, expected: 0
RCU nest depth: 0, expected: 0
3 locks held by syz-executor390/3542:
#0: ffff8880208531a0 (&iint->mutex){+.+.}-{3:3}, at: process_measurement+0x7fe/0x1cf0 security/integrity/ima/ima_main.c:260
#1: ffff888070440328 (mapping.invalidate_lock#3){.+.+}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:811 [inline]
#1: ffff888070440328 (mapping.invalidate_lock#3){.+.+}-{3:3}, at: page_cache_ra_unbounded+0xed/0x7b0 mm/readahead.c:226
#2: ffffffff8d1e98b8 (pointers_lock){.+.+}-{2:2}, at: get_block+0x15b/0x1690 fs/sysv/itree.c:217
Preemption disabled at:
[<0000000000000000>] 0x0
CPU: 1 PID: 3542 Comm: syz-executor390 Not tainted 6.1.29-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
Call Trace:
<TASK>
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106
__might_resched+0x5cb/0x780 kernel/sched/core.c:9941
RIP: 0033:0x7f9089826b79
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:00007ffdfc0c91d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 0031656c69662f2e RCX: 00007f9089826b79
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000180
RBP: 00007f90897e61b0 R08: 0000000000009e5d R09: 0000000000000000
R10: 00007ffdfc0c90a0 R11: 0000000000000246 R12: 00007f90897e6240
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
</TASK>
syz-executor390: attempt to access beyond end of device
loop0: rw=0, sector=8767744, nr_sectors = 1 limit=128
Buffer I/O error on dev loop0, logical block 8767744, async page read
syz-executor390: attempt to access beyond end of device
loop0: rw=0, sector=13269809, nr_sectors = 1 limit=128
Buffer I/O error on dev loop0, logical block 13269809, async page read
syz-executor390: attempt to access beyond end of device
loop0: rw=0, sector=1157, nr_sectors = 1 limit=128
Buffer I/O error on dev loop0, logical block 1157, async page read


---
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.

syzbot

unread,
May 22, 2023, 10:27:08 PM5/22/23
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 9d6bde853685 Linux 5.15.112
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=16519f45280000
kernel config: https://syzkaller.appspot.com/x/.config?x=508f7a387ef8f82b
dashboard link: https://syzkaller.appspot.com/bug?extid=04432b64d3da7935f979
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
userspace arch: arm64
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=13bf1cc5280000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=143db7d6280000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/a8ab2bd416bb/disk-9d6bde85.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/c358e3d58bb2/vmlinux-9d6bde85.xz
kernel image: https://storage.googleapis.com/syzbot-assets/c82319bbaeb8/Image-9d6bde85.gz.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/1bf4f7ef173b/mount_0.gz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+04432b...@syzkaller.appspotmail.com

loop0: rw=0, want=13466418, limit=128
Buffer I/O error on dev loop0, logical block 13466417, async page read
attempt to access beyond end of device
loop0: rw=0, want=8073606, limit=128
Buffer I/O error on dev loop0, logical block 8073605, async page read
BUG: sleeping function called from invalid context at fs/buffer.c:1334
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 3963, name: syz-executor343
2 locks held by syz-executor343/3963:
#0: ffff0000dc3e0188 (&type->i_mutex_dir_key#6){.+.+}-{3:3}, at: inode_lock_shared include/linux/fs.h:797 [inline]
#0: ffff0000dc3e0188 (&type->i_mutex_dir_key#6){.+.+}-{3:3}, at: lookup_slow+0x50/0x84 fs/namei.c:1675
#1: ffff800014d0aad8 (pointers_lock){.+.+}-{2:2}, at: get_block+0x148/0x1388 fs/sysv/itree.c:217
Preemption disabled at:
[<ffff800009305e7c>] get_block+0x148/0x1388 fs/sysv/itree.c:217
CPU: 0 PID: 3963 Comm: syz-executor343 Not tainted 5.15.112-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
Call trace:
dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152
show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106
dump_stack+0x1c/0x58 lib/dump_stack.c:113
___might_sleep+0x380/0x4dc kernel/sched/core.c:9625
__might_sleep+0x98/0xf0 kernel/sched/core.c:9579
__getblk_gfp+0x60/0x700 fs/buffer.c:1334
__bread_gfp+0x40/0x33c fs/buffer.c:1381
sb_bread include/linux/buffer_head.h:337 [inline]
get_branch+0x234/0x55c fs/sysv/itree.c:104
get_block+0x164/0x1388 fs/sysv/itree.c:218
block_read_full_page+0x2a0/0xc4c fs/buffer.c:2290
sysv_readpage+0x28/0x38 fs/sysv/itree.c:461
do_read_cache_page+0x60c/0x950
read_cache_page+0x68/0x84 mm/filemap.c:3565
read_mapping_page include/linux/pagemap.h:515 [inline]
dir_get_page fs/sysv/dir.c:58 [inline]
sysv_find_entry+0x178/0x43c fs/sysv/dir.c:146
sysv_inode_by_name+0xa0/0x1c0 fs/sysv/dir.c:360
sysv_lookup+0x74/0xe4 fs/sysv/namei.c:38
__lookup_slow+0x250/0x388 fs/namei.c:1659
lookup_slow+0x60/0x84 fs/namei.c:1676
walk_component+0x394/0x4cc fs/namei.c:1972
link_path_walk+0x5a0/0xc38
path_openat+0x1e8/0x26f0 fs/namei.c:3668
do_filp_open+0x1a8/0x3b4 fs/namei.c:3699
do_sys_openat2+0x128/0x3d8 fs/open.c:1211
do_sys_open fs/open.c:1227 [inline]
__do_sys_openat fs/open.c:1243 [inline]
__se_sys_openat fs/open.c:1238 [inline]
__arm64_sys_openat+0x1f0/0x240 fs/open.c:1238
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
attempt to access beyond end of device
loop0: rw=0, want=3245519, limit=128
Buffer I/O error on dev loop0, logical block 3245518, async page read
attempt to access beyond end of device
loop0: rw=0, want=8769404, limit=128
Buffer I/O error on dev loop0, logical block 8769403, async page read
BUG: sleeping function called from invalid context at fs/buffer.c:1334
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 3963, name: syz-executor343
2 locks held by syz-executor343/3963:
#0: ffff0000dc3e0188 (&type->i_mutex_dir_key#6){.+.+}-{3:3}, at: inode_lock_shared include/linux/fs.h:797 [inline]
#0: ffff0000dc3e0188 (&type->i_mutex_dir_key#6){.+.+}-{3:3}, at: lookup_slow+0x50/0x84 fs/namei.c:1675
#1: ffff800014d0aad8 (pointers_lock){.+.+}-{2:2}, at: get_block+0x148/0x1388 fs/sysv/itree.c:217
Preemption disabled at:
[<ffff800009305e7c>] get_block+0x148/0x1388 fs/sysv/itree.c:217
CPU: 0 PID: 3963 Comm: syz-executor343 Tainted: G W 5.15.112-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
Call trace:
dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152
show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106
dump_stack+0x1c/0x58 lib/dump_stack.c:113
___might_sleep+0x380/0x4dc kernel/sched/core.c:9625
__might_sleep+0x98/0xf0 kernel/sched/core.c:9579
__getblk_gfp+0x60/0x700 fs/buffer.c:1334
__bread_gfp+0x40/0x33c fs/buffer.c:1381
sb_bread include/linux/buffer_head.h:337 [inline]
get_branch+0x234/0x55c fs/sysv/itree.c:104
get_block+0x164/0x1388 fs/sysv/itree.c:218
block_read_full_page+0x2a0/0xc4c fs/buffer.c:2290
sysv_readpage+0x28/0x38 fs/sysv/itree.c:461
do_read_cache_page+0x60c/0x950
read_cache_page+0x68/0x84 mm/filemap.c:3565
read_mapping_page include/linux/pagemap.h:515 [inline]
dir_get_page fs/sysv/dir.c:58 [inline]
sysv_find_entry+0x178/0x43c fs/sysv/dir.c:146
sysv_inode_by_name+0xa0/0x1c0 fs/sysv/dir.c:360
sysv_lookup+0x74/0xe4 fs/sysv/namei.c:38
__lookup_slow+0x250/0x388 fs/namei.c:1659
lookup_slow+0x60/0x84 fs/namei.c:1676
walk_component+0x394/0x4cc fs/namei.c:1972
link_path_walk+0x5a0/0xc38
path_openat+0x1e8/0x26f0 fs/namei.c:3668
do_filp_open+0x1a8/0x3b4 fs/namei.c:3699
do_sys_openat2+0x128/0x3d8 fs/open.c:1211
do_sys_open fs/open.c:1227 [inline]
__do_sys_openat fs/open.c:1243 [inline]
__se_sys_openat fs/open.c:1238 [inline]
__arm64_sys_openat+0x1f0/0x240 fs/open.c:1238
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
BUG: sleeping function called from invalid context at fs/buffer.c:1334
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 3963, name: syz-executor343
2 locks held by syz-executor343/3963:
#0: ffff0000dc3e0188 (&type->i_mutex_dir_key#6){.+.+}-{3:3}, at: inode_lock_shared include/linux/fs.h:797 [inline]
#0: ffff0000dc3e0188 (&type->i_mutex_dir_key#6){.+.+}-{3:3}, at: lookup_slow+0x50/0x84 fs/namei.c:1675
#1: ffff800014d0aad8 (pointers_lock){.+.+}-{2:2}, at: get_block+0x148/0x1388 fs/sysv/itree.c:217
Preemption disabled at:
[<ffff800009305e7c>] get_block+0x148/0x1388 fs/sysv/itree.c:217
CPU: 0 PID: 3963 Comm: syz-executor343 Tainted: G W 5.15.112-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
Call trace:
dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152
show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106
dump_stack+0x1c/0x58 lib/dump_stack.c:113
___might_sleep+0x380/0x4dc kernel/sched/core.c:9625
__might_sleep+0x98/0xf0 kernel/sched/core.c:9579
__getblk_gfp+0x60/0x700 fs/buffer.c:1334
__bread_gfp+0x40/0x33c fs/buffer.c:1381
sb_bread include/linux/buffer_head.h:337 [inline]
get_branch+0x234/0x55c fs/sysv/itree.c:104
get_block+0x164/0x1388 fs/sysv/itree.c:218
block_read_full_page+0x2a0/0xc4c fs/buffer.c:2290
sysv_readpage+0x28/0x38 fs/sysv/itree.c:461
do_read_cache_page+0x60c/0x950
read_cache_page+0x68/0x84 mm/filemap.c:3565
read_mapping_page include/linux/pagemap.h:515 [inline]
dir_get_page fs/sysv/dir.c:58 [inline]
sysv_find_entry+0x178/0x43c fs/sysv/dir.c:146
sysv_inode_by_name+0xa0/0x1c0 fs/sysv/dir.c:360
sysv_lookup+0x74/0xe4 fs/sysv/namei.c:38
__lookup_slow+0x250/0x388 fs/namei.c:1659
lookup_slow+0x60/0x84 fs/namei.c:1676
walk_component+0x394/0x4cc fs/namei.c:1972
link_path_walk+0x5a0/0xc38
path_openat+0x1e8/0x26f0 fs/namei.c:3668
do_filp_open+0x1a8/0x3b4 fs/namei.c:3699
do_sys_openat2+0x128/0x3d8 fs/open.c:1211
do_sys_open fs/open.c:1227 [inline]
__do_sys_openat fs/open.c:1243 [inline]
__se_sys_openat fs/open.c:1238 [inline]
__arm64_sys_openat+0x1f0/0x240 fs/open.c:1238
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
BUG: sleeping function called from invalid context at fs/buffer.c:1334
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 3963, name: syz-executor343
2 locks held by syz-executor343/3963:
#0: ffff0000dc3e0188 (&type->i_mutex_dir_key#6){.+.+}-{3:3}, at: inode_lock_shared include/linux/fs.h:797 [inline]
#0: ffff0000dc3e0188 (&type->i_mutex_dir_key#6){.+.+}-{3:3}, at: lookup_slow+0x50/0x84 fs/namei.c:1675
#1: ffff800014d0aad8 (pointers_lock){.+.+}-{2:2}, at: get_block+0x148/0x1388 fs/sysv/itree.c:217
Preemption disabled at:
[<ffff800009305e7c>] get_block+0x148/0x1388 fs/sysv/itree.c:217
CPU: 0 PID: 3963 Comm: syz-executor343 Tainted: G W 5.15.112-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
Call trace:
dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152
show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106
dump_stack+0x1c/0x58 lib/dump_stack.c:113
___might_sleep+0x380/0x4dc kernel/sched/core.c:9625
__might_sleep+0x98/0xf0 kernel/sched/core.c:9579
__getblk_gfp+0x60/0x700 fs/buffer.c:1334
__bread_gfp+0x40/0x33c fs/buffer.c:1381
sb_bread include/linux/buffer_head.h:337 [inline]
get_branch+0x234/0x55c fs/sysv/itree.c:104
get_block+0x164/0x1388 fs/sysv/itree.c:218
block_read_full_page+0x2a0/0xc4c fs/buffer.c:2290
sysv_readpage+0x28/0x38 fs/sysv/itree.c:461
do_read_cache_page+0x60c/0x950
read_cache_page+0x68/0x84 mm/filemap.c:3565
read_mapping_page include/linux/pagemap.h:515 [inline]
dir_get_page fs/sysv/dir.c:58 [inline]
sysv_find_entry+0x178/0x43c fs/sysv/dir.c:146
sysv_inode_by_name+0xa0/0x1c0 fs/sysv/dir.c:360
sysv_lookup+0x74/0xe4 fs/sysv/namei.c:38
__lookup_slow+0x250/0x388 fs/namei.c:1659
lookup_slow+0x60/0x84 fs/namei.c:1676
walk_component+0x394/0x4cc fs/namei.c:1972
link_path_walk+0x5a0/0xc38
path_openat+0x1e8/0x26f0 fs/namei.c:3668
do_filp_open+0x1a8/0x3b4 fs/namei.c:3699
do_sys_openat2+0x128/0x3d8 fs/open.c:1211
do_sys_open fs/open.c:1227 [inline]
__do_sys_openat fs/open.c:1243 [inline]
__se_sys_openat fs/open.c:1238 [inline]
__arm64_sys_openat+0x1f0/0x240 fs/open.c:1238
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
BUG: sleeping function called from invalid context at fs/buffer.c:1334
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 3963, name: syz-executor343
2 locks held by syz-executor343/3963:
#0: ffff0000dc3e0188 (&type->i_mutex_dir_key#6){.+.+}-{3:3}, at: inode_lock_shared include/linux/fs.h:797 [inline]
#0: ffff0000dc3e0188 (&type->i_mutex_dir_key#6){.+.+}-{3:3}, at: lookup_slow+0x50/0x84 fs/namei.c:1675
#1: ffff800014d0aad8 (pointers_lock){.+.+}-{2:2}, at: get_block+0x148/0x1388 fs/sysv/itree.c:217
Preemption disabled at:
[<ffff800009305e7c>] get_block+0x148/0x1388 fs/sysv/itree.c:217
CPU: 0 PID: 3963 Comm: syz-executor343 Tainted: G W 5.15.112-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
Call trace:
dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152
show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106
dump_stack+0x1c/0x58 lib/dump_stack.c:113
___might_sleep+0x380/0x4dc kernel/sched/core.c:9625
__might_sleep+0x98/0xf0 kernel/sched/core.c:9579
__getblk_gfp+0x60/0x700 fs/buffer.c:1334
__bread_gfp+0x40/0x33c fs/buffer.c:1381
sb_bread include/linux/buffer_head.h:337 [inline]
get_branch+0x234/0x55c fs/sysv/itree.c:104
get_block+0x164/0x1388 fs/sysv/itree.c:218
block_read_full_page+0x2a0/0xc4c fs/buffer.c:2290
sysv_readpage+0x28/0x38 fs/sysv/itree.c:461
do_read_cache_page+0x60c/0x950
read_cache_page+0x68/0x84 mm/filemap.c:3565
read_mapping_page include/linux/pagemap.h:515 [inline]
dir_get_page fs/sysv/dir.c:58 [inline]
sysv_find_entry+0x178/0x43c fs/sysv/dir.c:146
sysv_inode_by_name+0xa0/0x1c0 fs/sysv/dir.c:360
sysv_lookup+0x74/0xe4 fs/sysv/namei.c:38
__lookup_slow+0x250/0x388 fs/namei.c:1659
lookup_slow+0x60/0x84 fs/namei.c:1676
walk_component+0x394/0x4cc fs/namei.c:1972
link_path_walk+0x5a0/0xc38
path_openat+0x1e8/0x26f0 fs/namei.c:3668
do_filp_open+0x1a8/0x3b4 fs/namei.c:3699
do_sys_openat2+0x128/0x3d8 fs/open.c:1211
do_sys_open fs/open.c:1227 [inline]
__do_sys_openat fs/open.c:1243 [inline]
__se_sys_openat fs/open.c:1238 [inline]
__arm64_sys_openat+0x1f0/0x240 fs/open.c:1238
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
BUG: sleeping function called from invalid context at include/linux/pagemap.h:623
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 3963, name: syz-executor343
2 locks held by syz-executor343/3963:
#0: ffff0000dc3e0188 (&type->i_mutex_dir_key#6){.+.+}-{3:3}, at: inode_lock_shared include/linux/fs.h:797 [inline]
#0: ffff0000dc3e0188 (&type->i_mutex_dir_key#6){.+.+}-{3:3}, at: lookup_slow+0x50/0x84 fs/namei.c:1675
#1: ffff800014d0aad8 (pointers_lock){.+.+}-{2:2}, at: get_block+0x148/0x1388 fs/sysv/itree.c:217
Preemption disabled at:
[<ffff800009305e7c>] get_block+0x148/0x1388 fs/sysv/itree.c:217
CPU: 0 PID: 3963 Comm: syz-executor343 Tainted: G W 5.15.112-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
Call trace:
dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152
show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106
dump_stack+0x1c/0x58 lib/dump_stack.c:113
___might_sleep+0x380/0x4dc kernel/sched/core.c:9625
__might_sleep+0x98/0xf0 kernel/sched/core.c:9579
lock_page include/linux/pagemap.h:623 [inline]
pagecache_get_page+0x4bc/0xd94 mm/filemap.c:1910
find_or_create_page include/linux/pagemap.h:420 [inline]
grow_dev_page fs/buffer.c:949 [inline]
grow_buffers fs/buffer.c:1014 [inline]
__getblk_slow fs/buffer.c:1041 [inline]
__getblk_gfp+0x1f8/0x700 fs/buffer.c:1336
__bread_gfp+0x40/0x33c fs/buffer.c:1381
sb_bread include/linux/buffer_head.h:337 [inline]
get_branch+0x234/0x55c fs/sysv/itree.c:104
get_block+0x164/0x1388 fs/sysv/itree.c:218
block_read_full_page+0x2a0/0xc4c fs/buffer.c:2290
sysv_readpage+0x28/0x38 fs/sysv/itree.c:461
do_read_cache_page+0x60c/0x950
read_cache_page+0x68/0x84 mm/filemap.c:3565
read_mapping_page include/linux/pagemap.h:515 [inline]
dir_get_page fs/sysv/dir.c:58 [inline]
sysv_find_entry+0x178/0x43c fs/sysv/dir.c:146
sysv_inode_by_name+0xa0/0x1c0 fs/sysv/dir.c:360
sysv_lookup+0x74/0xe4 fs/sysv/namei.c:38
__lookup_slow+0x250/0x388 fs/namei.c:1659
lookup_slow+0x60/0x84 fs/namei.c:1676
walk_component+0x394/0x4cc fs/namei.c:1972
link_path_walk+0x5a0/0xc38
path_openat+0x1e8/0x26f0 fs/namei.c:3668
do_filp_open+0x1a8/0x3b4 fs/namei.c:3699
do_sys_openat2+0x128/0x3d8 fs/open.c:1211
do_sys_open fs/open.c:1227 [inline]
__do_sys_openat fs/open.c:1243 [inline]
__se_sys_openat fs/open.c:1238 [inline]
__arm64_sys_openat+0x1f0/0x240 fs/open.c:1238
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
BUG: sleeping function called from invalid context at include/linux/pagemap.h:623
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 3963, name: syz-executor343
2 locks held by syz-executor343/3963:
#0: ffff0000dc3e0188 (&type->i_mutex_dir_key#6){.+.+}-{3:3}, at: inode_lock_shared include/linux/fs.h:797 [inline]
#0: ffff0000dc3e0188 (&type->i_mutex_dir_key#6){.+.+}-{3:3}, at: lookup_slow+0x50/0x84 fs/namei.c:1675
#1: ffff800014d0aad8 (pointers_lock){.+.+}-{2:2}, at: get_block+0x148/0x1388 fs/sysv/itree.c:217
Preemption disabled at:
[<ffff800009305e7c>] get_block+0x148/0x1388 fs/sysv/itree.c:217
CPU: 0 PID: 3963 Comm: syz-executor343 Tainted: G W 5.15.112-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
Call trace:
dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152
show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106
dump_stack+0x1c/0x58 lib/dump_stack.c:113
___might_sleep+0x380/0x4dc kernel/sched/core.c:9625
__might_sleep+0x98/0xf0 kernel/sched/core.c:9579
lock_page include/linux/pagemap.h:623 [inline]
pagecache_get_page+0x4bc/0xd94 mm/filemap.c:1910
find_or_create_page include/linux/pagemap.h:420 [inline]
grow_dev_page fs/buffer.c:949 [inline]
grow_buffers fs/buffer.c:1014 [inline]
__getblk_slow fs/buffer.c:1041 [inline]
__getblk_gfp+0x1f8/0x700 fs/buffer.c:1336
__bread_gfp+0x40/0x33c fs/buffer.c:1381
sb_bread include/linux/buffer_head.h:337 [inline]
get_branch+0x234/0x55c fs/sysv/itree.c:104
get_block+0x164/0x1388 fs/sysv/itree.c:218
block_read_full_page+0x2a0/0xc4c fs/buffer.c:2290
sysv_readpage+0x28/0x38 fs/sysv/itree.c:461
do_read_cache_page+0x60c/0x950
read_cache_page+0x68/0x84 mm/filemap.c:3565
read_mapping_page include/linux/pagemap.h:515 [inline]
dir_get_page fs/sysv/dir.c:58 [inline]
sysv_find_entry+0x178/0x43c fs/sysv/dir.c:146
sysv_inode_by_name+0xa0/0x1c0 fs/sysv/dir.c:360
sysv_lookup+0x74/0xe4 fs/sysv/namei.c:38
__lookup_slow+0x250/0x388 fs/namei.c:1659
lookup_slow+0x60/0x84 fs/namei.c:1676
walk_component+0x394/0x4cc fs/namei.c:1972
link_path_walk+0x5a0/0xc38
path_openat+0x1e8/0x26f0 fs/namei.c:3668
do_filp_open+0x1a8/0x3b4 fs/namei.c:3699
do_sys_openat2+0x128/0x3d8 fs/open.c:1211
do_sys_open fs/open.c:1227 [inline]
__do_sys_openat fs/open.c:1243 [inline]
__se_sys_openat fs/open.c:1238 [inline]
__arm64_sys_openat+0x1f0/0x240 fs/open.c:1238
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
BUG: sleeping function called from invalid context at include/linux/pagemap.h:623
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 3963, name: syz-executor343
2 locks held by syz-executor343/3963:
#0: ffff0000dc3e0188 (&type->i_mutex_dir_key#6){.+.+}-{3:3}, at: inode_lock_shared include/linux/fs.h:797 [inline]
#0: ffff0000dc3e0188 (&type->i_mutex_dir_key#6){.+.+}-{3:3}, at: lookup_slow+0x50/0x84 fs/namei.c:1675
#1: ffff800014d0aad8 (pointers_lock){.+.+}-{2:2}, at: get_block+0x148/0x1388 fs/sysv/itree.c:217
Preemption disabled at:
[<ffff800009305e7c>] get_block+0x148/0x1388 fs/sysv/itree.c:217
CPU: 0 PID: 3963 Comm: syz-executor343 Tainted: G W 5.15.112-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
Call trace:
dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152
show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106
dump_stack+0x1c/0x58 lib/dump_stack.c:113
___might_sleep+0x380/0x4dc kernel/sched/core.c:9625
__might_sleep+0x98/0xf0 kernel/sched/core.c:9579
lock_page include/linux/pagemap.h:623 [inline]
pagecache_get_page+0x4bc/0xd94 mm/filemap.c:1910
find_or_create_page include/linux/pagemap.h:420 [inline]
grow_dev_page fs/buffer.c:949 [inline]
grow_buffers fs/buffer.c:1014 [inline]
__getblk_slow fs/buffer.c:1041 [inline]
__getblk_gfp+0x1f8/0x700 fs/buffer.c:1336
__bread_gfp+0x40/0x33c fs/buffer.c:1381
sb_bread include/linux/buffer_head.h:337 [inline]
get_branch+0x234/0x55c fs/sysv/itree.c:104
get_block+0x164/0x1388 fs/sysv/itree.c:218
block_read_full_page+0x2a0/0xc4c fs/buffer.c:2290
sysv_readpage+0x28/0x38 fs/sysv/itree.c:461
do_read_cache_page+0x60c/0x950
read_cache_page+0x68/0x84 mm/filemap.c:3565
read_mapping_page include/linux/pagemap.h:515 [inline]
dir_get_page fs/sysv/dir.c:58 [inline]
sysv_find_entry+0x178/0x43c fs/sysv/dir.c:146
sysv_inode_by_name+0xa0/0x1c0 fs/sysv/dir.c:360
sysv_lookup+0x74/0xe4 fs/sysv/namei.c:38
__lookup_slow+0x250/0x388 fs/namei.c:1659
lookup_slow+0x60/0x84 fs/namei.c:1676
walk_component+0x394/0x4cc fs/namei.c:1972
link_path_walk+0x5a0/0xc38
path_openat+0x1e8/0x26f0 fs/namei.c:3668
do_filp_open+0x1a8/0x3b4 fs/namei.c:3699
do_sys_openat2+0x128/0x3d8 fs/open.c:1211
do_sys_open fs/open.c:1227 [inline]
__do_sys_openat fs/open.c:1243 [inline]
__se_sys_openat fs/open.c:1238 [inline]
__arm64_sys_openat+0x1f0/0x240 fs/open.c:1238
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
BUG: sleeping function called from invalid context at fs/buffer.c:1334
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 3963, name: syz-executor343
2 locks held by syz-executor343/3963:
#0: ffff0000dc3e0188 (&type->i_mutex_dir_key#6){.+.+}-{3:3}, at: inode_lock_shared include/linux/fs.h:797 [inline]
#0: ffff0000dc3e0188 (&type->i_mutex_dir_key#6){.+.+}-{3:3}, at: lookup_slow+0x50/0x84 fs/namei.c:1675
#1: ffff800014d0aad8 (pointers_lock){.+.+}-{2:2}, at: get_block+0x148/0x1388 fs/sysv/itree.c:217
Preemption disabled at:
[<ffff800009305e7c>] get_block+0x148/0x1388 fs/sysv/itree.c:217
CPU: 0 PID: 3963 Comm: syz-executor343 Tainted: G W 5.15.112-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
Call trace:
dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152
show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106
dump_stack+0x1c/0x58 lib/dump_stack.c:113
___might_sleep+0x380/0x4dc kernel/sched/core.c:9625
__might_sleep+0x98/0xf0 kernel/sched/core.c:9579
__getblk_gfp+0x60/0x700 fs/buffer.c:1334
__bread_gfp+0x40/0x33c fs/buffer.c:1381
sb_bread include/linux/buffer_head.h:337 [inline]
get_branch+0x234/0x55c fs/sysv/itree.c:104
get_block+0x164/0x1388 fs/sysv/itree.c:218
block_read_full_page+0x2a0/0xc4c fs/buffer.c:2290
sysv_readpage+0x28/0x38 fs/sysv/itree.c:461
do_read_cache_page+0x60c/0x950
read_cache_page+0x68/0x84 mm/filemap.c:3565
read_mapping_page include/linux/pagemap.h:515 [inline]
dir_get_page fs/sysv/dir.c:58 [inline]
sysv_find_entry+0x178/0x43c fs/sysv/dir.c:146
sysv_inode_by_name+0xa0/0x1c0 fs/sysv/dir.c:360
sysv_lookup+0x74/0xe4 fs/sysv/namei.c:38
__lookup_slow+0x250/0x388 fs/namei.c:1659
lookup_slow+0x60/0x84 fs/namei.c:1676
walk_component+0x394/0x4cc fs/namei.c:1972
link_path_walk+0x5a0/0xc38
path_openat+0x1e8/0x26f0 fs/namei.c:3668
do_filp_open+0x1a8/0x3b4 fs/namei.c:3699
do_sys_openat2+0x128/0x3d8 fs/open.c:1211
do_sys_open fs/open.c:1227 [inline]
__do_sys_openat fs/open.c:1243 [inline]
__se_sys_openat fs/open.c:1238 [inline]
__arm64_sys_openat+0x1f0/0x240 fs/open.c:1238
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
BUG: sleeping function called from invalid context at include/linux/pagemap.h:623
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 3963, name: syz-executor343
2 locks held by syz-executor343/3963:
#0: ffff0000dc3e0188 (&type->i_mutex_dir_key#6){.+.+}-{3:3}, at: inode_lock_shared include/linux/fs.h:797 [inline]
#0: ffff0000dc3e0188 (&type->i_mutex_dir_key#6){.+.+}-{3:3}, at: lookup_slow+0x50/0x84 fs/namei.c:1675
#1: ffff800014d0aad8 (pointers_lock){.+.+}-{2:2}, at: get_block+0x148/0x1388 fs/sysv/itree.c:217
Preemption disabled at:
[<ffff800009305e7c>] get_block+0x148/0x1388 fs/sysv/itree.c:217
CPU: 0 PID: 3963 Comm: syz-executor343 Tainted: G W 5.15.112-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023
Call trace:
dump_backtrace+0x0/0x530 arch/arm64/kernel/stacktrace.c:152
show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:216
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x108/0x170 lib/dump_stack.c:106
dump_stack+0x1c/0x58 lib/dump_stack.c:113
___might_sleep+0x380/0x4dc kernel/sched/core.c:9625
__might_sleep+0x98/0xf0 kernel/sched/core.c:9579
lock_page include/linux/pagemap.h:623 [inline]
pagecache_get_page+0x4bc/0xd94 mm/filemap.c:1910
find_or_create_page include/linux/pagemap.h:420 [inline]
grow_dev_page fs/buffer.c:949 [inline]
grow_buffers fs/buffer.c:1014 [inline]
__getblk_slow fs/buffer.c:1041 [inline]
__getblk_gfp+0x1f8/0x700 fs/buffer.c:1336
__bread_gfp+0x40/0x33c fs/buffer.c:1381
sb_bread include/linux/buffer_head.h:337 [inline]
get_branch+0x234/0x55c fs/sysv/itree.c:104
get_block+0x164/0x1388 fs/sysv/itree.c:218
block_read_full_page+0x2a0/0xc4c fs/buffer.c:2290
sysv_readpage+0x28/0x38 fs/sysv/itree.c:461
do_read_cache_page+0x60c/0x950
read_cache_page+0x68/0x84 mm/filemap.c:3565
read_mapping_page include/linux/pagemap.h:515 [inline]
dir_get_page fs/sysv/dir.c:58 [inline]
sysv_find_entry+0x178/0x43c fs/sysv/dir.c:146
sysv_inode_by_name+0xa0/0x1c0 fs/sysv/dir.c:360
sysv_lookup+0x74/0xe4 fs/sysv/namei.c:38
__lookup_slow+0x250/0x388 fs/namei.c:1659
lookup_slow+0x60/0x84 fs/namei.c:1676
walk_component+0x394/0x4cc fs/namei.c:1972
link_path_walk+0x5a0/0xc38
path_openat+0x1e8/0x26f0 fs/namei.c:3668
do_filp_open+0x1a8/0x3b4 fs/namei.c:3699
do_sys_openat2+0x128/0x3d8 fs/open.c:1211
do_sys_open fs/open.c:1227 [inline]
__do_sys_openat fs/open.c:1243 [inline]
__se_sys_openat fs/open.c:1238 [inline]
__arm64_sys_openat+0x1f0/0x240 fs/open.c:1238
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596
el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
BUG: sleeping function called from invalid context at fs/buffer.c:1334
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 3963, name: syz-executor343
2 locks held by syz-executor343/3963:
#0: ffff0000dc3e0188 (&type->i_mutex_dir_key#6){.+.+}-{3:3}, at: inode_lock_shared include/linux/fs.h:797 [inline]
#0: ffff0000dc3e0188 (&type->i_mutex_dir_key#6){.+.+}-{3:3}, at: lookup_slow+0x50/0x84 fs/namei.c:1675
#1: ffff800014d0aad8 (pointers_lock){.+.+}-{2:2}, at: get_block+0x148/0x1388 fs/sysv/itree.c:217
Reply all
Reply to author
Forward
0 new messages