[Android 5.4] BUG: corrupted list in __dentry_kill (2)

1 view
Skip to first unread message

syzbot

unread,
Mar 27, 2024, 7:32:19 AMMar 27
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 43a5ead9254d BACKPORT: net: core: enable SO_BINDTODEVICE f..
git tree: android12-5.4
console+strace: https://syzkaller.appspot.com/x/log.txt?x=15117b4e180000
kernel config: https://syzkaller.appspot.com/x/.config?x=a2dd4b5d39d9fde5
dashboard link: https://syzkaller.appspot.com/bug?extid=3e9b6f2c49278173fda0
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=122ddc6e180000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=173b783a180000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/480eb8fbb672/disk-43a5ead9.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/756f2dac4021/vmlinux-43a5ead9.xz
kernel image: https://storage.googleapis.com/syzbot-assets/77e35c2bfd36/bzImage-43a5ead9.xz

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

do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x5c/0xc1
---[ end trace e98fc4b4f13babd2 ]---
list_del corruption. prev->next should be ffff8881e7f40800, but was ffff8881e7f3eb30
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:61!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 357 Comm: syz-executor878 Tainted: G W 5.4.265-syzkaller-00009-g43a5ead9254d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024
RIP: 0010:__list_del_entry_valid+0x107/0x120 lib/list_debug.c:59
Code: 4c 89 f6 e8 6a 0b 1e 02 0f 0b 48 c7 c7 00 41 fa 84 4c 89 f6 e8 59 0b 1e 02 0f 0b 48 c7 c7 60 41 fa 84 4c 89 f6 e8 48 0b 1e 02 <0f> 0b 48 c7 c7 c0 41 fa 84 4c 89 f6 e8 37 0b 1e 02 0f 0b 66 0f 1f
RSP: 0018:ffff8881db8bfab8 EFLAGS: 00010246
RAX: 0000000000000054 RBX: ffff8881e7f3eb30 RCX: 2369c3de64081000
RDX: 0000000000000000 RSI: 0000000080000002 RDI: 0000000000000000
RBP: ffff8881e7f40780 R08: ffffffff814d68b2 R09: ffffed103edca9b8
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff8881e7f407c8 R14: ffff8881e7f40800 R15: ffff8881e7f3ec40
FS: 0000555556838380(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020004b30 CR3: 00000001dbf6b000 CR4: 00000000003406b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__list_del_entry include/linux/list.h:131 [inline]
dentry_unlist fs/dcache.c:522 [inline]
__dentry_kill+0x242/0x630 fs/dcache.c:575
dentry_kill+0xb8/0x280 fs/dcache.c:673
dput+0x154/0x2f0 fs/dcache.c:859
path_put+0x35/0x60 fs/namei.c:485
dentry_release+0x4e/0xa0 fs/incfs/vfs.c:1562
__dentry_kill+0x48d/0x630 fs/dcache.c:584
dentry_kill+0xb8/0x280 fs/dcache.c:673
dput+0x154/0x2f0 fs/dcache.c:859
do_renameat2+0x9bd/0x1110 fs/namei.c:4737
__do_sys_renameat2 fs/namei.c:4768 [inline]
__se_sys_renameat2 fs/namei.c:4765 [inline]
__x64_sys_renameat2+0xb1/0xc0 fs/namei.c:4765
do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x5c/0xc1
Modules linked in:
---[ end trace e98fc4b4f13babd3 ]---
RIP: 0010:__list_del_entry_valid+0x107/0x120 lib/list_debug.c:59
Code: 4c 89 f6 e8 6a 0b 1e 02 0f 0b 48 c7 c7 00 41 fa 84 4c 89 f6 e8 59 0b 1e 02 0f 0b 48 c7 c7 60 41 fa 84 4c 89 f6 e8 48 0b 1e 02 <0f> 0b 48 c7 c7 c0 41 fa 84 4c 89 f6 e8 37 0b 1e 02 0f 0b 66 0f 1f
RSP: 0018:ffff8881db8bfab8 EFLAGS: 00010246
RAX: 0000000000000054 RBX: ffff8881e7f3eb30 RCX: 2369c3de64081000
RDX: 0000000000000000 RSI: 0000000080000002 RDI: 0000000000000000
RBP: ffff8881e7f40780 R08: ffffffff814d68b2 R09: ffffed103edca9b8
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff8881e7f407c8 R14: ffff8881e7f40800 R15: ffff8881e7f3ec40
FS: 0000555556838380(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020004b30 CR3: 00000001dbf6b000 CR4: 00000000003406b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


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