syzbot


WARNING: ODEBUG bug in io_sqe_files_unregister

Status: fixed on 2020/03/11 20:34
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+6bf913476056cb0f8d13@syzkaller.appspotmail.com
Fix commit: 2faf852d1be8 io_uring: cleanup fixed file data table references
First crash: 1814d, last: 1767d
Cause bisection: introduced by (bisect log) :
commit cbb537634780172137459dead490d668d437ef4d
Author: Jens Axboe <axboe@kernel.dk>
Date: Mon Dec 9 18:22:50 2019 +0000

  io_uring: avoid ring quiesce for fixed file set unregister and update

Crash: WARNING: ODEBUG bug in io_sqe_files_unregister (log)
Repro: syz .config
  
Discussions (1)
Title Replies (including bot) Last reply
WARNING: ODEBUG bug in io_sqe_files_unregister 1 (4) 2020/03/07 22:36

Sample crash report:
------------[ cut here ]------------
ODEBUG: free active (active state 0) object type: work_struct hint: io_ring_file_ref_switch+0x0/0xac0 fs/io_uring.c:5806
WARNING: CPU: 1 PID: 11388 at lib/debugobjects.c:485 debug_print_object+0x168/0x250 lib/debugobjects.c:485
Kernel panic - not syncing: panic_on_warn set ...
CPU: 1 PID: 11388 Comm: syz-executor348 Not tainted 5.5.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x197/0x210 lib/dump_stack.c:118
 panic+0x2e3/0x75c kernel/panic.c:221
 __warn.cold+0x2f/0x3e kernel/panic.c:582
 report_bug+0x289/0x300 lib/bug.c:195
 fixup_bug arch/x86/kernel/traps.c:174 [inline]
 fixup_bug arch/x86/kernel/traps.c:169 [inline]
 do_error_trap+0x11b/0x200 arch/x86/kernel/traps.c:267
 do_invalid_op+0x37/0x50 arch/x86/kernel/traps.c:286
 invalid_op+0x23/0x30 arch/x86/entry/entry_64.S:1027
RIP: 0010:debug_print_object+0x168/0x250 lib/debugobjects.c:485
Code: dd 80 84 91 88 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 b5 00 00 00 48 8b 14 dd 80 84 91 88 48 c7 c7 e0 79 91 88 e8 87 e5 a1 fd <0f> 0b 83 05 63 78 01 07 01 48 83 c4 20 5b 41 5c 41 5d 41 5e 5d c3
RSP: 0018:ffffc9000631f888 EFLAGS: 00010082
RAX: 0000000000000000 RBX: 0000000000000003 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff815e7b16 RDI: fffff52000c63f03
RBP: ffffc9000631f8c8 R08: ffff888095c6e440 R09: ffffed1015d245c9
R10: ffffed1015d245c8 R11: ffff8880ae922e43 R12: 0000000000000001
R13: ffffffff89b79a40 R14: ffffffff814c4610 R15: ffff88809f5b7188
 __debug_check_no_obj_freed lib/debugobjects.c:967 [inline]
 debug_check_no_obj_freed+0x2d6/0x441 lib/debugobjects.c:998
 kfree+0xf8/0x2c0 mm/slab.c:3756
 io_sqe_files_unregister+0x2e2/0x4d0 fs/io_uring.c:5250
 io_ring_ctx_free fs/io_uring.c:6229 [inline]
 io_ring_ctx_wait_and_kill+0x447/0x9b0 fs/io_uring.c:6310
 io_uring_release+0x42/0x50 fs/io_uring.c:6318
 __fput+0x2ff/0x890 fs/file_table.c:280
 ____fput+0x16/0x20 fs/file_table.c:313
 task_work_run+0x145/0x1c0 kernel/task_work.c:113
 exit_task_work include/linux/task_work.h:22 [inline]
 do_exit+0xba9/0x2f50 kernel/exit.c:801
 do_group_exit+0x135/0x360 kernel/exit.c:899
 get_signal+0x47c/0x24f0 kernel/signal.c:2734
 do_signal+0x87/0x1700 arch/x86/kernel/signal.c:813
 exit_to_usermode_loop+0x286/0x380 arch/x86/entry/common.c:160
 prepare_exit_to_usermode arch/x86/entry/common.c:195 [inline]
 syscall_return_slowpath arch/x86/entry/common.c:278 [inline]
 do_syscall_64+0x676/0x790 arch/x86/entry/common.c:304
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x446a79
Code: e8 0c e8 ff ff 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 5b 07 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fc231422db8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: fffffffffffffe00 RBX: 00000000006dbc28 RCX: 0000000000446a79
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00000000006dbc28
RBP: 00000000006dbc20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006dbc2c
R13: 00007ffdb6414e3f R14: 00007fc2314239c0 R15: 0000000000000000
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (964):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/02/06 01:20 upstream 6992ca0dd017 662cf49a .config console log report syz C ci-upstream-kasan-gce-root
2020/01/10 05:30 linux-next 85cff1ab6432 4de4e9f0 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2020/01/09 22:52 linux-next 85cff1ab6432 4de4e9f0 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2020/01/09 15:32 linux-next 85cff1ab6432 ddc3e859 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2020/01/09 05:55 linux-next 4becfd1b26ef ddc3e859 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2020/01/09 05:29 linux-next 4becfd1b26ef ddc3e859 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2019/12/28 21:52 linux-next 7ddd09fc4b74 af6b8ef8 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2020/02/06 07:05 upstream 4c7d00ccf40d 662cf49a .config console log report syz ci-upstream-kasan-gce-smack-root
2019/12/21 01:29 linux-next 7ddd09fc4b74 bc586918 .config console log report syz ci-upstream-linux-next-kasan-gce-root
2020/02/05 23:54 upstream 6992ca0dd017 662cf49a .config console log report ci-upstream-kasan-gce-smack-root
2020/02/04 21:43 upstream 33b40134e5cf 93e5e335 .config console log report ci-upstream-kasan-gce-selinux-root
2020/02/02 22:12 upstream 46d6b7becb1d 93e5e335 .config console log report ci-upstream-kasan-gce-root
2020/01/31 15:01 upstream ccaaaf6fe5a5 5ed23f9a .config console log report ci-upstream-kasan-gce-smack-root
2020/01/30 20:39 upstream 39bed42de2e7 5ed23f9a .config console log report ci-upstream-kasan-gce
2020/01/31 05:10 upstream 9f68e3655aae 5ed23f9a .config console log report ci-upstream-kasan-gce-386
2020/02/06 01:09 linux-next 2747d5fdab78 662cf49a .config console log report ci-upstream-linux-next-kasan-gce-root
2020/02/06 01:05 linux-next 2747d5fdab78 662cf49a .config console log report ci-upstream-linux-next-kasan-gce-root
2020/02/05 20:49 linux-next 2747d5fdab78 662cf49a .config console log report ci-upstream-linux-next-kasan-gce-root
2020/02/05 18:55 linux-next 2747d5fdab78 662cf49a .config console log report ci-upstream-linux-next-kasan-gce-root
2020/02/05 13:22 linux-next 2747d5fdab78 93e5e335 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/02/05 10:35 linux-next 2747d5fdab78 93e5e335 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/02/05 04:48 linux-next 2747d5fdab78 93e5e335 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/02/05 04:32 linux-next 2747d5fdab78 93e5e335 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/02/05 03:30 linux-next 2747d5fdab78 93e5e335 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/02/05 03:29 linux-next 2747d5fdab78 93e5e335 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/02/04 16:09 linux-next 2747d5fdab78 93e5e335 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/02/04 12:16 linux-next 2747d5fdab78 93e5e335 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/02/04 11:53 linux-next 2747d5fdab78 93e5e335 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/02/04 02:19 linux-next 2747d5fdab78 93e5e335 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/02/03 21:39 linux-next 2747d5fdab78 93e5e335 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/02/03 20:18 linux-next 2747d5fdab78 93e5e335 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/02/03 18:47 linux-next 2747d5fdab78 93e5e335 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/02/03 18:04 linux-next 2747d5fdab78 93e5e335 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/02/03 14:44 linux-next 2747d5fdab78 93e5e335 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/02/03 12:36 linux-next 2747d5fdab78 93e5e335 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/02/03 07:26 linux-next 2747d5fdab78 93e5e335 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/02/03 07:05 linux-next 2747d5fdab78 93e5e335 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/02/03 02:29 linux-next 2747d5fdab78 93e5e335 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/02/02 23:51 linux-next 2747d5fdab78 93e5e335 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/02/02 20:54 linux-next 2747d5fdab78 93e5e335 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/02/02 20:05 linux-next 2747d5fdab78 93e5e335 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/02/02 18:50 linux-next 2747d5fdab78 93e5e335 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/02/02 13:08 linux-next 2747d5fdab78 2274ad39 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/02/02 11:53 linux-next 2747d5fdab78 2274ad39 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/02/02 07:45 linux-next 2747d5fdab78 2274ad39 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/02/02 00:24 linux-next 2747d5fdab78 2274ad39 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/02/01 18:21 linux-next 2747d5fdab78 0eb59c27 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/02/01 17:20 linux-next 2747d5fdab78 0eb59c27 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/02/01 13:45 linux-next 2747d5fdab78 0eb59c27 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/02/01 13:42 linux-next 2747d5fdab78 0eb59c27 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/02/01 12:20 linux-next 2747d5fdab78 0eb59c27 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/02/01 05:48 linux-next 2747d5fdab78 c30117b2 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/02/01 05:34 linux-next 2747d5fdab78 c30117b2 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/01/31 23:14 linux-next 2747d5fdab78 c30117b2 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/01/31 16:26 linux-next 2747d5fdab78 5ed23f9a .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.