I've triggered the following warning while running KASAN-enabled kernel with syzkaller:
------------[ cut here ]------------
WARNING: CPU: 3 PID: 175 at /mnt/host/source/src/third_party/kernel/v3.18/drivers/tty/tty_ldisc.c:463 tty_ldisc_close.isra.4+0x44/0x90()
CPU: 3 PID: 175 Comm: sh Tainted: G U 3.18.0 #88
Hardware name: Google Tegra210 Smaug Rev 1,3+ (DT)
Call trace:
[<ffffffc00020b064>] dump_backtrace+0x0/0x17c arch/arm64/kernel/traps.c:91
[<ffffffc00020b1f8>] show_stack+0x18/0x24 arch/arm64/kernel/traps.c:173
[< inline >] __dump_stack lib/dump_stack.c:15
[<ffffffc00118b510>] dump_stack+0x94/0x100 lib/dump_stack.c:50
[<ffffffc00022c5b4>] warn_slowpath_common+0xbc/0xec kernel/panic.c:441
[<ffffffc00022c748>] warn_slowpath_null+0x2c/0x38 kernel/panic.c:474
[<ffffffc000743564>] tty_ldisc_close.isra.4+0x40/0x90 drivers/tty/tty_ldisc.c:463
[<ffffffc0007437a8>] tty_ldisc_reinit+0x68/0x12c drivers/tty/tty_ldisc.c:628
[<ffffffc000744344>] tty_ldisc_hangup+0x1c4/0x2ec drivers/tty/tty_ldisc.c:705
[<ffffffc0007372c8>] __tty_hangup+0x488/0x5ec drivers/tty/tty_io.c:660
[< inline >] tty_vhangup_session drivers/tty/tty_io.c:777
[<ffffffc000739a00>] disassociate_ctty+0x90/0x38c drivers/tty/tty_io.c:838
[<ffffffc000231538>] do_exit+0x7c8/0x12f0 kernel/exit.c:760
[<ffffffc000232188>] do_group_exit+0xcc/0x188 kernel/exit.c:892
[< inline >] SYSC_exit_group kernel/exit.c:903
[<ffffffc000232260>] SyS_exit_group+0x1c/0x20 kernel/exit.c:901
---[ end trace b94b96bc696cc6b6 ]---
Comment 1 by cmasso@google.com
, Mar 7 2018