[v6.1] BUG: sleeping function called from invalid context in __dentry_kill

0 views
Skip to first unread message

syzbot

unread,
Feb 19, 2024, 11:05:29 PMFeb 19
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 8b4118fabd6e Linux 6.1.78
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1058a072180000
kernel config: https://syzkaller.appspot.com/x/.config?x=93bcaf862378a9b8
dashboard link: https://syzkaller.appspot.com/bug?extid=c4e7681de0ea584334bf
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=13b1e1c2180000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=15f8f22c180000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/9862fbd3cc89/disk-8b4118fa.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/fda010942bf1/vmlinux-8b4118fa.xz
kernel image: https://storage.googleapis.com/syzbot-assets/23852cd010cb/bzImage-8b4118fa.xz

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

BUG: sleeping function called from invalid context at fs/dcache.c:622
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 10537, name: syz-executor278
preempt_count: 1, expected: 0
RCU nest depth: 0, expected: 0
no locks held by syz-executor278/10537.
Preemption disabled at:
[<0000000000000000>] 0x0
CPU: 0 PID: 10537 Comm: syz-executor278 Not tainted 6.1.78-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
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:9942
__dentry_kill+0x52e/0x650 fs/dcache.c:622
dentry_kill+0xbb/0x290
dput+0xfb/0x1d0 fs/dcache.c:914
__fput+0x5e4/0x890 fs/file_table.c:328
task_work_run+0x246/0x300 kernel/task_work.c:179
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop+0xde/0x100 kernel/entry/common.c:171
exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:204
__syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline]
syscall_exit_to_user_mode+0x60/0x270 kernel/entry/common.c:297
do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:87
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f60273c343a
Code: 48 3d 00 f0 ff ff 77 48 c3 0f 1f 80 00 00 00 00 48 83 ec 18 89 7c 24 0c e8 f3 84 02 00 8b 7c 24 0c 89 c2 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 36 89 d7 89 44 24 0c e8 53 85 02 00 8b 44 24
RSP: 002b:00007ffc9d82aee0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00007f60273c343a
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000003 R09: 0000000000000003
R10: 0000000000000000 R11: 0000000000000293 R12: 00007ffc9d82af18
R13: 00007ffc9d82af30 R14: 00007ffc9d82af70 R15: 0000000000001b2c
</TASK>
BUG: scheduling while atomic: syz-executor278/10537/0x00000002
no locks held by syz-executor278/10537.
Modules linked in:
Preemption disabled at:
[<0000000000000000>] 0x0


---
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.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

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.

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup
Reply all
Reply to author
Forward
0 new messages