BUG: corrupted list in remove_wait_queue

39 views
Skip to first unread message

syzbot

unread,
Apr 10, 2019, 12:06:06 PM4/10/19
to syzkaller...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: 4d552acf Linux 4.19.34
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=12ca9cdd200000
kernel config: https://syzkaller.appspot.com/x/.config?x=c95a88291f095edd
dashboard link: https://syzkaller.appspot.com/bug?extid=8994162da09c6d9e1ad7
compiler: gcc (GCC) 9.0.0 20181231 (experimental)

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

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

list_del corruption, ffff88808732fa28->next is LIST_POISON1
(dead000000000100)
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:45!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 24989 Comm: syz-executor.0 Not tainted 4.19.34 #2
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
RIP: 0010:__list_del_entry_valid.cold+0x23/0x4f lib/list_debug.c:45
Code: e8 b5 de 30 fe 0f 0b 4c 89 f6 48 c7 c7 40 a2 81 87 e8 a4 de 30 fe 0f
0b 4c 89 ea 4c 89 f6 48 c7 c7 80 a1 81 87 e8 90 de 30 fe <0f> 0b 4c 89 e2
4c 89 f6 48 c7 c7 e0 a1 81 87 e8 7c de 30 fe 0f 0b
RSP: 0018:ffff88808732f8e8 EFLAGS: 00010082
RAX: 000000000000004e RBX: ffff88808732fa10 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8155d206 RDI: ffffed1010e65f0f
RBP: ffff88808732f900 R08: 000000000000004e R09: ffffed1015d24fe9
R10: ffffed1015d24fe8 R11: ffff8880ae927f47 R12: dead000000000200
R13: dead000000000100 R14: ffff88808732fa28 R15: ffff88808732fa30
FS: 00007fa0f63f6700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b31d26000 CR3: 00000000a84ea000 CR4: 00000000001426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__list_del_entry include/linux/list.h:117 [inline]
list_del include/linux/list.h:125 [inline]
__remove_wait_queue include/linux/wait.h:184 [inline]
remove_wait_queue+0x2f/0x190 kernel/sched/wait.c:44
__tipc_sendstream+0x3db/0xaa0 net/tipc/socket.c:1446
tipc_sendstream+0x53/0x80 net/tipc/socket.c:1411
sock_sendmsg_nosec net/socket.c:622 [inline]
sock_sendmsg+0xdd/0x130 net/socket.c:632
sock_write_iter+0x27c/0x3e0 net/socket.c:901
call_write_iter include/linux/fs.h:1811 [inline]
new_sync_write fs/read_write.c:474 [inline]
__vfs_write+0x58e/0x820 fs/read_write.c:487
vfs_write+0x20c/0x560 fs/read_write.c:549
ksys_write+0xea/0x1f0 fs/read_write.c:598
__do_sys_write fs/read_write.c:610 [inline]
__se_sys_write fs/read_write.c:607 [inline]
__x64_sys_write+0x73/0xb0 fs/read_write.c:607
do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4582f9
Code: ad b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 7b b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fa0f63f5c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00000000004582f9
RDX: 0000000000152610 RSI: 00000000200000c0 RDI: 0000000000000004
RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fa0f63f66d4
R13: 00000000004ce178 R14: 00000000004dd8c0 R15: 00000000ffffffff
Modules linked in:
---[ end trace e97693b7db7858e4 ]---
RIP: 0010:__list_del_entry_valid.cold+0x23/0x4f lib/list_debug.c:45
Code: e8 b5 de 30 fe 0f 0b 4c 89 f6 48 c7 c7 40 a2 81 87 e8 a4 de 30 fe 0f
0b 4c 89 ea 4c 89 f6 48 c7 c7 80 a1 81 87 e8 90 de 30 fe <0f> 0b 4c 89 e2
4c 89 f6 48 c7 c7 e0 a1 81 87 e8 7c de 30 fe 0f 0b
RSP: 0018:ffff88808732f8e8 EFLAGS: 00010082
RAX: 000000000000004e RBX: ffff88808732fa10 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8155d206 RDI: ffffed1010e65f0f
RBP: ffff88808732f900 R08: 000000000000004e R09: ffffed1015d24fe9
R10: ffffed1015d24fe8 R11: ffff8880ae927f47 R12: dead000000000200
R13: dead000000000100 R14: ffff88808732fa28 R15: ffff88808732fa30
FS: 00007fa0f63f6700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b31d26000 CR3: 00000000a84ea000 CR4: 00000000001426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


---
This bug 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 bug report. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Apr 10, 2019, 3:36:08 PM4/10/19
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following crash on:

HEAD commit: 4d552acf Linux 4.19.34
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=14fad2bf200000
kernel config: https://syzkaller.appspot.com/x/.config?x=c95a88291f095edd
dashboard link: https://syzkaller.appspot.com/bug?extid=8994162da09c6d9e1ad7
compiler: gcc (GCC) 9.0.0 20181231 (experimental)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=14fd4fa7200000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=165e2eaf200000

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

audit: type=1400 audit(1554924615.401:36): avc: denied { map } for
pid=8027 comm="syz-executor155" path="/root/syz-executor155910495"
dev="sda1" ino=16484 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023
tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1
list_del corruption, ffff8880a90efa28->next is LIST_POISON1
(dead000000000100)
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:45!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 8042 Comm: syz-executor155 Not tainted 4.19.34 #2
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
RIP: 0010:__list_del_entry_valid.cold+0x23/0x4f lib/list_debug.c:45
Code: e8 b5 de 30 fe 0f 0b 4c 89 f6 48 c7 c7 40 a2 81 87 e8 a4 de 30 fe 0f
0b 4c 89 ea 4c 89 f6 48 c7 c7 80 a1 81 87 e8 90 de 30 fe <0f> 0b 4c 89 e2
4c 89 f6 48 c7 c7 e0 a1 81 87 e8 7c de 30 fe 0f 0b
RSP: 0018:ffff8880a90ef8e8 EFLAGS: 00010082
RAX: 000000000000004e RBX: ffff8880a90efa10 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8155d206 RDI: ffffed101521df0f
RBP: ffff8880a90ef900 R08: 000000000000004e R09: ffffed1015d24fe9
R10: ffffed1015d24fe8 R11: ffff8880ae927f47 R12: dead000000000200
R13: dead000000000100 R14: ffff8880a90efa28 R15: ffff8880a90efa30
FS: 0000000001f5e880(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffff600400 CR3: 000000008d182000 CR4: 00000000001406e0
Call Trace:
__list_del_entry include/linux/list.h:117 [inline]
list_del include/linux/list.h:125 [inline]
__remove_wait_queue include/linux/wait.h:184 [inline]
remove_wait_queue+0x2f/0x190 kernel/sched/wait.c:44
__tipc_sendstream+0x3db/0xaa0 net/tipc/socket.c:1446
tipc_sendstream+0x53/0x80 net/tipc/socket.c:1411
sock_sendmsg_nosec net/socket.c:622 [inline]
sock_sendmsg+0xdd/0x130 net/socket.c:632
sock_write_iter+0x27c/0x3e0 net/socket.c:901
call_write_iter include/linux/fs.h:1811 [inline]
new_sync_write fs/read_write.c:474 [inline]
__vfs_write+0x58e/0x820 fs/read_write.c:487
vfs_write+0x20c/0x560 fs/read_write.c:549
ksys_write+0xea/0x1f0 fs/read_write.c:598
__do_sys_write fs/read_write.c:610 [inline]
__se_sys_write fs/read_write.c:607 [inline]
__x64_sys_write+0x73/0xb0 fs/read_write.c:607
do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x445089
Code: e8 fc ab 02 00 48 83 c4 18 c3 0f 1f 80 00 00 00 00 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 0f 83 bb cd fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffcc581f8c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000445089
RDX: 0000000000152610 RSI: 00000000200000c0 RDI: 0000000000000003
RBP: 000000000000d6d7 R08: 0000000b004002e0 R09: 0000000b004002e0
R10: 0000000b004002e0 R11: 0000000000000246 R12: 00000000004022d0
R13: 0000000000402360 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace daeb8fd9afcb1ed7 ]---
RIP: 0010:__list_del_entry_valid.cold+0x23/0x4f lib/list_debug.c:45
Code: e8 b5 de 30 fe 0f 0b 4c 89 f6 48 c7 c7 40 a2 81 87 e8 a4 de 30 fe 0f
0b 4c 89 ea 4c 89 f6 48 c7 c7 80 a1 81 87 e8 90 de 30 fe <0f> 0b 4c 89 e2
4c 89 f6 48 c7 c7 e0 a1 81 87 e8 7c de 30 fe 0f 0b
RSP: 0018:ffff8880a90ef8e8 EFLAGS: 00010082
RAX: 000000000000004e RBX: ffff8880a90efa10 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8155d206 RDI: ffffed101521df0f
RBP: ffff8880a90ef900 R08: 000000000000004e R09: ffffed1015d24fe9
R10: ffffed1015d24fe8 R11: ffff8880ae927f47 R12: dead000000000200
R13: dead000000000100 R14: ffff8880a90efa28 R15: ffff8880a90efa30
FS: 0000000001f5e880(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffff600400 CR3: 000000008d182000 CR4: 00000000001406e0

Reply all
Reply to author
Forward
0 new messages