pts pts531: tty_release: tty->count(2) != (#fd's(1) + #kopen's(0)) pts pts539: tty_release: tty->count(2) != (#fd's(1) + #kopen's(0)) pts pts540: tty_release: tty->count(2) != (#fd's(1) + #kopen's(0)) pts pts541: tty_release: tty->count(2) != (#fd's(1) + #kopen's(0)) ================================================================== BUG: KASAN: user-memory-access in memset include/linux/string.h:330 [inline] BUG: KASAN: user-memory-access in bitmap_zero include/linux/bitmap.h:216 [inline] BUG: KASAN: user-memory-access in n_tty_set_termios+0x106/0xe80 drivers/tty/n_tty.c:1784 Write of size 512 at addr 0000000000001060 by task syz-executor6/7944 pts pts546: tty_release: tty->count(2) != (#fd's(1) + #kopen's(0)) CPU: 0 PID: 7944 Comm: syz-executor6 Not tainted 4.19.0-rc2+ #220 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+0x1c9/0x2b4 lib/dump_stack.c:113 pts pts548: tty_release: tty->count(2) != (#fd's(1) + #kopen's(0)) kasan_report_error mm/kasan/report.c:352 [inline] kasan_report.cold.7+0x6d/0x30d mm/kasan/report.c:412 check_memory_region_inline mm/kasan/kasan.c:260 [inline] check_memory_region+0x13e/0x1b0 mm/kasan/kasan.c:267 pts pts543: tty_release: tty->count(2) != (#fd's(1) + #kopen's(0)) memset+0x23/0x40 mm/kasan/kasan.c:285 memset include/linux/string.h:330 [inline] bitmap_zero include/linux/bitmap.h:216 [inline] n_tty_set_termios+0x106/0xe80 drivers/tty/n_tty.c:1784 tty_set_termios+0x7a0/0xac0 drivers/tty/tty_ioctl.c:341 pts pts551: tty_release: tty->count(2) != (#fd's(1) + #kopen's(0)) set_termios+0x41e/0x7d0 drivers/tty/tty_ioctl.c:414 tty_mode_ioctl+0x855/0xb50 drivers/tty/tty_ioctl.c:749 pts pts552: tty_release: tty->count(2) != (#fd's(1) + #kopen's(0)) n_tty_ioctl_helper+0x54/0x3b0 drivers/tty/tty_ioctl.c:940 n_tty_ioctl+0x54/0x360 drivers/tty/n_tty.c:2450 pts pts550: tty_release: tty->count(2) != (#fd's(1) + #kopen's(0)) tty_ioctl+0x5e1/0x1870 drivers/tty/tty_io.c:2655 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:501 [inline] do_vfs_ioctl+0x1de/0x1720 fs/ioctl.c:685 pts pts544: tty_release: tty->count(2) != (#fd's(1) + #kopen's(0)) pts pts542: tty_release: tty->count(2) != (#fd's(1) + #kopen's(0)) pts pts549: tty_release: tty->count(2) != (#fd's(1) + #kopen's(0)) ksys_ioctl+0xa9/0xd0 fs/ioctl.c:702 pts pts547: tty_release: tty->count(2) != (#fd's(1) + #kopen's(0)) __do_sys_ioctl fs/ioctl.c:709 [inline] __se_sys_ioctl fs/ioctl.c:707 [inline] __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:707 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 pts pts553: tty_release: tty->count(2) != (#fd's(1) + #kopen's(0)) entry_SYSCALL_64_after_hwframe+0x49/0xbe pts pts555: tty_release: tty->count(2) != (#fd's(1) + #kopen's(0)) RIP: 0033:0x457099 Code: fd b4 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 cb b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f65ace70c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f65ace716d4 RCX: 0000000000457099 RDX: 00000000200000c0 RSI: 0000000000005402 RDI: 0000000000000005 RBP: 00000000009300a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000004d0b10 R14: 00000000004c64f6 R15: 0000000000000000 ================================================================== pts pts556: tty_release: tty->count(2) != (#fd's(1) + #kopen's(0))