Hello,
syzbot found the following crash on:
HEAD commit: 47350a9f ANDROID: x86_64_cuttlefish_defconfig: Enable lz4 ..
git tree: android-4.14
console output:
https://syzkaller.appspot.com/x/log.txt?x=171ca13e400000
kernel config:
https://syzkaller.appspot.com/x/.config?x=10d236078f3378a3
dashboard link:
https://syzkaller.appspot.com/bug?extid=a7a7484b2c71fc6af5e5
compiler: gcc (GCC) 8.0.1 20180413 (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+a7a748...@syzkaller.appspotmail.com
b_state=0x00000029, b_size=4096
device loop0 blocksize: 512
__find_get_block_slow() failed. block=1, b_blocknr=0
b_state=0x00000029, b_size=4096
device loop0 blocksize: 512
INFO: task syz-executor0:18947 blocked for more than 140 seconds.
Not tainted 4.14.67+ #1
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor0 D29432 18947 2025 0x00000004
Call Trace:
schedule+0x7f/0x1b0 kernel/sched/core.c:3490
schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:3548
__mutex_lock_common kernel/locking/mutex.c:833 [inline]
__mutex_lock+0x521/0x1480 kernel/locking/mutex.c:893
blkdev_put+0x27/0x4d0 fs/block_dev.c:1806
blkdev_close+0x86/0xb0 fs/block_dev.c:1855
__fput+0x25e/0x6f0 fs/file_table.c:210
task_work_run+0x116/0x190 kernel/task_work.c:113
tracehook_notify_resume include/linux/tracehook.h:191 [inline]
exit_to_usermode_loop+0x12e/0x150 arch/x86/entry/common.c:163
prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline]
syscall_return_slowpath arch/x86/entry/common.c:267 [inline]
do_syscall_64+0x35d/0x4b0 arch/x86/entry/common.c:294
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x410c41
RSP: 002b:00007fff92fa0760 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000005 RCX: 0000000000410c41
RDX: 0000000000000000 RSI: 00000000007302d0 RDI: 0000000000000004
RBP: 0000000000000000 R08: 00000000000000a0 R09: ffffffffffffffff
R10: 0000000000930140 R11: 0000000000000293 R12: 0000000000000008
R13: 000000000003f037 R14: 000000000000010a R15: badc0ffeebadface
INFO: task syz-executor0:18965 blocked for more than 140 seconds.
Not tainted 4.14.67+ #1
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor0 D28520 18965 2025 0x00000004
Call Trace:
schedule+0x7f/0x1b0 kernel/sched/core.c:3490
schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:3548
__mutex_lock_common kernel/locking/mutex.c:833 [inline]
__mutex_lock+0x521/0x1480 kernel/locking/mutex.c:893
__blkdev_get+0xf3/0xe50 fs/block_dev.c:1452
blkdev_get+0x97/0x8c0 fs/block_dev.c:1604
blkdev_open+0x1bd/0x240 fs/block_dev.c:1762
do_dentry_open+0x426/0xda0 fs/open.c:764
vfs_open+0x11c/0x210 fs/open.c:878
do_last fs/namei.c:3408 [inline]
path_openat+0x4eb/0x23a0 fs/namei.c:3550
do_filp_open+0x197/0x270 fs/namei.c:3584
do_sys_open+0x2ef/0x580 fs/open.c:1071
do_syscall_64+0x19b/0x4b0 arch/x86/entry/common.c:289
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x410dc1
RSP: 002b:00007fbbfc810a80 EFLAGS: 00000293 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 0000000020000168 RCX: 0000000000410dc1
RDX: 00007fbbfc810afa RSI: 0000000000000002 RDI: 00007fbbfc810af0
RBP: 0000000000000001 R08: 0000000000000000 R09: 000000000000000a
R10: 0000000000000075 R11: 0000000000000293 R12: 0000000000000003
R13: 0000000000000001 R14: 00000000004c9eab R15: 0000000000000001
INFO: task syz-executor5:18958 blocked for more than 140 seconds.
Not tainted 4.14.67+ #1
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor5 D28424 18958 2034 0x00000004
Call Trace:
schedule+0x7f/0x1b0 kernel/sched/core.c:3490
__rwsem_down_read_failed_common kernel/locking/rwsem-xadd.c:269 [inline]
rwsem_down_read_failed+0x21a/0x3d0 kernel/locking/rwsem-xadd.c:286
call_rwsem_down_read_failed+0x14/0x30 arch/x86/lib/rwsem.S:94
__down_read arch/x86/include/asm/rwsem.h:66 [inline]
down_read+0x45/0xa0 kernel/locking/rwsem.c:26
__get_super.part.2+0x1ce/0x280 fs/super.c:678
__get_super include/linux/spinlock.h:317 [inline]
get_super+0x29/0x50 fs/super.c:707
fsync_bdev+0x12/0xc0 fs/block_dev.c:481
invalidate_partition+0x2d/0x50 block/genhd.c:1506
drop_partitions block/partition-generic.c:442 [inline]
rescan_partitions+0xc8/0x7c0 block/partition-generic.c:515
__blkdev_reread_part+0x143/0x1c0 block/ioctl.c:173
blkdev_reread_part+0x20/0x30 block/ioctl.c:193
loop_reread_partitions+0x72/0x80 drivers/block/loop.c:614
loop_set_status+0xa84/0xf40 drivers/block/loop.c:1169
loop_set_status64+0x8d/0xe0 drivers/block/loop.c:1287
lo_ioctl+0x3cd/0x17d0 drivers/block/loop.c:1400
__blkdev_driver_ioctl block/ioctl.c:297 [inline]
blkdev_ioctl+0x57d/0x18c0 block/ioctl.c:594
block_ioctl+0xd9/0x120 fs/block_dev.c:1873
vfs_ioctl fs/ioctl.c:46 [inline]
file_ioctl fs/ioctl.c:500 [inline]
do_vfs_ioctl+0x1a0/0x1030 fs/ioctl.c:684
SYSC_ioctl fs/ioctl.c:701 [inline]
SyS_ioctl+0x7e/0xb0 fs/ioctl.c:692
do_syscall_64+0x19b/0x4b0 arch/x86/entry/common.c:289
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x457089
RSP: 002b:00007fb695dabc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fb695dac6d4 RCX: 0000000000457089
RDX: 0000000020000240 RSI: 0000000000004c04 RDI: 0000000000000003
RBP: 00000000009300a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000004cf7e8 R14: 00000000004c5ba0 R15: 0000000000000000
INFO: task syz-executor5:18963 blocked for more than 140 seconds.
Not tainted 4.14.67+ #1
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor5 D28936 18963 2034 0x00000004
Call Trace:
schedule+0x7f/0x1b0 kernel/sched/core.c:3490
schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:3548
__mutex_lock_common kernel/locking/mutex.c:833 [inline]
__mutex_lock+0x521/0x1480 kernel/locking/mutex.c:893
__blkdev_get+0xf3/0xe50 fs/block_dev.c:1452
blkdev_get+0x97/0x8c0 fs/block_dev.c:1604
blkdev_open+0x1bd/0x240 fs/block_dev.c:1762
do_dentry_open+0x426/0xda0 fs/open.c:764
vfs_open+0x11c/0x210 fs/open.c:878
do_last fs/namei.c:3408 [inline]
path_openat+0x4eb/0x23a0 fs/namei.c:3550
do_filp_open+0x197/0x270 fs/namei.c:3584
do_sys_open+0x2ef/0x580 fs/open.c:1071
do_syscall_64+0x19b/0x4b0 arch/x86/entry/common.c:289
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x410dc1
RSP: 002b:00007fb695d8a7a0 EFLAGS: 00000293 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 6666666666666667 RCX: 0000000000410dc1
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00007fb695d8a850
RBP: 0000000000930140 R08: 000000000000000f R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000293 R12: 00000000ffffffff
R13: 00000000004d6d90 R14: 00000000004ca11f R15: 0000000000000001
INFO: task syz-executor5:18995 blocked for more than 140 seconds.
Not tainted 4.14.67+ #1
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor5 D29944 18995 2034 0x00000004
Call Trace:
schedule+0x7f/0x1b0 kernel/sched/core.c:3490
schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:3548
__mutex_lock_common kernel/locking/mutex.c:833 [inline]
__mutex_lock+0x521/0x1480 kernel/locking/mutex.c:893
lo_ioctl+0x85/0x17d0 drivers/block/loop.c:1373
__blkdev_driver_ioctl block/ioctl.c:297 [inline]
blkdev_ioctl+0x57d/0x18c0 block/ioctl.c:594
block_ioctl+0xd9/0x120 fs/block_dev.c:1873
vfs_ioctl fs/ioctl.c:46 [inline]
file_ioctl fs/ioctl.c:500 [inline]
do_vfs_ioctl+0x1a0/0x1030 fs/ioctl.c:684
SYSC_ioctl fs/ioctl.c:701 [inline]
SyS_ioctl+0x7e/0xb0 fs/ioctl.c:692
do_syscall_64+0x19b/0x4b0 arch/x86/entry/common.c:289
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x457089
RSP: 002b:00007fb695d48c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fb695d496d4 RCX: 0000000000457089
RDX: 0000000020000240 RSI: 0000000000004c04 RDI: 0000000000000003
RBP: 0000000000930280 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000004cf7e8 R14: 00000000004c5ba0 R15: 0000000000000003
INFO: task blkid:18961 blocked for more than 140 seconds.
Not tainted 4.14.67+ #1
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
blkid D27832 18961 5677 0x00000004
Call Trace:
schedule+0x7f/0x1b0 kernel/sched/core.c:3490
schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:3548
__mutex_lock_common kernel/locking/mutex.c:833 [inline]
__mutex_lock+0x521/0x1480 kernel/locking/mutex.c:893
__blkdev_get+0xf3/0xe50 fs/block_dev.c:1452
blkdev_get+0x97/0x8c0 fs/block_dev.c:1604
blkdev_open+0x1bd/0x240 fs/block_dev.c:1762
do_dentry_open+0x426/0xda0 fs/open.c:764
vfs_open+0x11c/0x210 fs/open.c:878
do_last fs/namei.c:3408 [inline]
path_openat+0x4eb/0x23a0 fs/namei.c:3550
do_filp_open+0x197/0x270 fs/namei.c:3584
do_sys_open+0x2ef/0x580 fs/open.c:1071
do_syscall_64+0x19b/0x4b0 arch/x86/entry/common.c:289
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x7f21fa297120
RSP: 002b:00007ffcf8dd4f68 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f21fa297120
RDX: 00007ffcf8dd5f41 RSI: 0000000000000000 RDI: 00007ffcf8dd5f41
RBP: 0000000000000000 R08: 0000000000000078 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000002058030
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000005
Showing all locks held in the system:
1 lock held by khungtaskd/23:
#0: (tasklist_lock){.+.+}, at: [<ffffffff98a01847>]
debug_show_all_locks+0x74/0x20f kernel/locking/lockdep.c:4541
1 lock held by rsyslogd/1856:
#0: (&f->f_pos_lock){+.+.}, at: [<ffffffff98dbcab2>]
__fdget_pos+0xa2/0xc0 fs/file.c:768
2 locks held by getty/1952:
#0: (&tty->ldisc_sem){++++}, at: [<ffffffff9951c500>]
tty_ldisc_ref_wait+0x20/0x80 drivers/tty/tty_ldisc.c:275
#1: (&ldata->atomic_read_lock){+.+.}, at: [<ffffffff99517a7f>]
n_tty_read+0x1ff/0x15e0 drivers/tty/n_tty.c:2142
1 lock held by syz-executor0/18947:
#0: (&bdev->bd_mutex){+.+.}, at: [<ffffffff98e19647>]
blkdev_put+0x27/0x4d0 fs/block_dev.c:1806
1 lock held by syz-executor0/18965:
#0: (&bdev->bd_mutex){+.+.}, at: [<ffffffff98e188c3>]
__blkdev_get+0xf3/0xe50 fs/block_dev.c:1452
3 locks held by syz-executor5/18958:
#0: (&lo->lo_ctl_mutex/1){+.+.}, at: [<ffffffff995cb8d5>]
lo_ioctl+0x85/0x17d0 drivers/block/loop.c:1373
#1: (&bdev->bd_mutex){+.+.}, at: [<ffffffff992fd838>]
blkdev_reread_part+0x18/0x30 block/ioctl.c:192
#2: (&type->s_umount_key#48){.+.+}, at: [<ffffffff98d61ece>]
__get_super.part.2+0x1ce/0x280 fs/super.c:678
1 lock held by syz-executor5/18963:
#0: (&bdev->bd_mutex){+.+.}, at: [<ffffffff98e188c3>]
__blkdev_get+0xf3/0xe50 fs/block_dev.c:1452
1 lock held by syz-executor5/18995:
#0: (&lo->lo_ctl_mutex/1){+.+.}, at: [<ffffffff995cb8d5>]
lo_ioctl+0x85/0x17d0 drivers/block/loop.c:1373
1 lock held by blkid/18961:
#0: (&bdev->bd_mutex){+.+.}, at: [<ffffffff98e188c3>]
__blkdev_get+0xf3/0xe50 fs/block_dev.c:1452
1 lock held by init/19025:
#0: (tty_mutex){+.+.}, at: [<ffffffff9950bef8>] tty_open_by_driver
drivers/tty/tty_io.c:1922 [inline]
#0: (tty_mutex){+.+.}, at: [<ffffffff9950bef8>] tty_open+0x3a8/0x980
drivers/tty/tty_io.c:2006
1 lock held by init/19026:
#0: (tty_mutex){+.+.}, at: [<ffffffff9950bef8>] tty_open_by_driver
drivers/tty/tty_io.c:1922 [inline]
#0: (tty_mutex){+.+.}, at: [<ffffffff9950bef8>] tty_open+0x3a8/0x980
drivers/tty/tty_io.c:2006
1 lock held by init/19027:
#0: (tty_mutex){+.+.}, at: [<ffffffff9950bef8>] tty_open_by_driver
drivers/tty/tty_io.c:1922 [inline]
#0: (tty_mutex){+.+.}, at: [<ffffffff9950bef8>] tty_open+0x3a8/0x980
drivers/tty/tty_io.c:2006
1 lock held by init/19028:
#0: (tty_mutex){+.+.}, at: [<ffffffff9950bef8>] tty_open_by_driver
drivers/tty/tty_io.c:1922 [inline]
#0: (tty_mutex){+.+.}, at: [<ffffffff9950bef8>] tty_open+0x3a8/0x980
drivers/tty/tty_io.c:2006
1 lock held by init/19029:
#0: (tty_mutex){+.+.}, at: [<ffffffff9950bef8>] tty_open_by_driver
drivers/tty/tty_io.c:1922 [inline]
#0: (tty_mutex){+.+.}, at: [<ffffffff9950bef8>] tty_open+0x3a8/0x980
drivers/tty/tty_io.c:2006
1 lock held by init/19030:
#0: (tty_mutex){+.+.}, at: [<ffffffff9950bef8>] tty_open_by_driver
drivers/tty/tty_io.c:1922 [inline]
#0: (tty_mutex){+.+.}, at: [<ffffffff9950bef8>] tty_open+0x3a8/0x980
drivers/tty/tty_io.c:2006
=============================================
NMI backtrace for cpu 1
CPU: 1 PID: 23 Comm: khungtaskd Not tainted 4.14.67+ #1
Call Trace:
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0xb9/0x11b lib/dump_stack.c:53
nmi_cpu_backtrace.cold.0+0x18/0x8e lib/nmi_backtrace.c:103
nmi_trigger_cpumask_backtrace+0x121/0x146 lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:138 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:196 [inline]
watchdog+0x574/0xa70 kernel/hung_task.c:252
kthread+0x348/0x420 kernel/kthread.c:232
ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:402
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 19005 Comm: syz-executor7 Not tainted 4.14.67+ #1
task: ffff8801c198c680 task.stack: ffff8801c1a28000
RIP: 0010:inb arch/x86/include/asm/io.h:309 [inline]
RIP: 0010:io_serial_in+0x60/0x80 drivers/tty/serial/8250/8250_port.c:450
RSP: 0018:ffff8801c1a2f830 EFLAGS: 00000002
RAX: dffffc0000000000 RBX: 00000000000003fd RCX: 0000000000000000
RDX: 00000000000003fd RSI: ffffc900056a0000 RDI: ffffffff9cb1d998
RBP: ffffffff9cb1d960 R08: 0000000000000435 R09: ffffffff9bcc4848
R10: ffff8801c198ced8 R11: 0000000000000001 R12: 0000000000000020
R13: fffffbfff3963b72 R14: fffffbfff3963b35 R15: ffffffff9cb1db92
FS: 00007fa492d10700(0000) GS:ffff8801dba00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4a337eaa30 CR3: 00000001c77c8003 CR4: 00000000001606b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
Call Trace:
serial_in drivers/tty/serial/8250/8250.h:115 [inline]
wait_for_xmitr+0x90/0x1e0 drivers/tty/serial/8250/8250_port.c:2032
serial8250_console_putchar+0x19/0x50
drivers/tty/serial/8250/8250_port.c:3184
uart_console_write+0x4b/0xd0 drivers/tty/serial/serial_core.c:1876
serial8250_console_write+0x51b/0x800
drivers/tty/serial/8250/8250_port.c:3250
call_console_drivers kernel/printk/printk.c:1574 [inline]
console_unlock+0x5b9/0xb50 kernel/printk/printk.c:2233
vprintk_emit+0x241/0x4e0 kernel/printk/printk.c:1757
vprintk_func+0x58/0x136 kernel/printk/printk_safe.c:385
printk+0xa7/0xcf kernel/printk/printk.c:1829
binder_ioctl.cold.56+0x54/0x110 drivers/android/binder.c:4837
vfs_ioctl fs/ioctl.c:46 [inline]
file_ioctl fs/ioctl.c:500 [inline]
do_vfs_ioctl+0x1a0/0x1030 fs/ioctl.c:684
SYSC_ioctl fs/ioctl.c:701 [inline]
SyS_ioctl+0x7e/0xb0 fs/ioctl.c:692
do_syscall_64+0x19b/0x4b0 arch/x86/entry/common.c:289
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x457089
RSP: 002b:00007fa492d0fc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fa492d106d4 RCX: 0000000000457089
RDX: 000000000040000b RSI: 00000000c0306201 RDI: 0000000000000005
RBP: 00000000009300a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000004cd640 R14: 00000000004c3f29 R15: 0000000000000000
Code: 30 0f b6 8d d1 00 00 00 48 8d 7d 38 48 b8 00 00 00 00 00 fc ff df 48
89 fa 48 c1 ea 03 d3 e3 80 3c 02 00 75 13 03 5d 38 89 da ec <0f> b6 c0 5b
5d c3 e8 d5 5c 7e ff eb c9 e8 fe 5c 7e ff eb e6 66
---
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.