Bug 97331
Summary: | do not call blocking ops when !TASK_RUNNING | ||
---|---|---|---|
Product: | Drivers | Reporter: | Stas Sergeev (stsp2) |
Component: | Console/Framebuffers | Assignee: | James Simmons (jsimmons) |
Status: | NEW --- | ||
Severity: | normal | CC: | andi |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 4.0.0-rc6+ git | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
Stas Sergeev
2015-04-26 21:15:30 UTC
Confirmed (-rc5, when using gpm on text tty, middle button): [ 162.292047] ------------[ cut here ]------------ [ 162.292317] WARNING: CPU: 0 PID: 3973 at kernel/sched/core.c:7286 __might_sleep+0x77/0x90() [ 162.292822] do not call blocking ops when !TASK_RUNNING; state=1 set at [<c1312ff9>] paste_selection+0x89/0x160 [ 162.293438] Modules linked in: zram lz4_compress lz4_decompress joydev usbhid radeon uhci_hcd ehci_hcd snd_pcsp snd_als4000 snd_azt3328 snd_sb_common usbcore sr_mod snd_via82xx snd_opl3_lib serio_raw cdrom sg usb_common snd_hwdep snd_ac97_codec ac97_bus drm_kms_helper ttm i2c_viapro snd_mpu401_uart snd_rawmidi snd_pcm_oss snd_mixer_oss snd_pcm snd_seq_device 8250 serial_core snd_timer snd gameport w83627hf hwmon_vid rtc_cmos via_rhine mii psmouse fuse parport_pc ppdev lp parport [ 162.296943] CPU: 0 PID: 3973 Comm: gpm Not tainted 4.1.0-rc5-00080-ge10470f #9 [ 162.297359] Hardware name: VIA Technologies, Inc. VT8367-8235/VT8367-8235, BIOS 6.00 PG 09/16/2003 [ 162.297896] dee63d1c dee63d1c dee63cd8 c1488c0e dee63d0c c103b50e c15ee5e0 dee63d38 [ 162.298447] 00000f85 c15eb4c4 00001c76 c1053a57 00001c76 c1053a57 c1312ff9 00000001 [ 162.298999] dd12af3c dee63d24 c103b56e 00000009 dee63d1c c15ee5e0 dee63d38 dee63d58 [ 162.299552] Call Trace: [ 162.299642] [<c1488c0e>] dump_stack+0x16/0x18 [ 162.299868] [<c103b50e>] warn_slowpath_common+0x7e/0xb0 [ 162.300179] [<c1053a57>] ? __might_sleep+0x77/0x90 [ 162.300432] [<c1053a57>] ? __might_sleep+0x77/0x90 [ 162.300684] [<c1312ff9>] ? paste_selection+0x89/0x160 [ 162.300954] [<c103b56e>] warn_slowpath_fmt+0x2e/0x30 [ 162.301218] [<c1053a57>] __might_sleep+0x77/0x90 [ 162.301457] [<c1312ff9>] ? paste_selection+0x89/0x160 [ 162.301727] [<c1312ff9>] ? paste_selection+0x89/0x160 [ 162.301998] [<c148b067>] down_read+0x17/0x30 [ 162.302212] [<c1309dfe>] n_tty_receive_buf_common+0x2e/0xa30 [ 162.302526] [<c148bf83>] ? ldsem_down_read+0x23/0x190 [ 162.302795] [<c130a81a>] n_tty_receive_buf2+0x1a/0x20 [ 162.303063] [<c130a800>] ? n_tty_receive_buf_common+0xa30/0xa30 [ 162.303394] [<c1313042>] paste_selection+0xd2/0x160 [ 162.303653] [<c10542b0>] ? wake_up_process+0x40/0x40 [ 162.303918] [<c1319f07>] tioclinux+0xa7/0x290 [ 162.336223] [<c13108ec>] vt_ioctl+0x1dc/0x1310 [ 162.368304] [<c10f2c35>] ? dput+0xb5/0x1d0 [ 162.400283] [<c10fa23b>] ? mntput+0x1b/0x30 [ 162.432059] [<c10e7fcd>] ? terminate_walk+0x3d/0x40 [ 162.463812] [<c10ea4d7>] ? do_last.isra.46+0xc7/0xcb0 [ 162.495264] [<c1310710>] ? complete_change_console+0xd0/0xd0 [ 162.526620] [<c13066aa>] tty_ioctl+0x38a/0xac0 [ 162.557893] [<c1053a0c>] ? __might_sleep+0x2c/0x90 [ 162.589025] [<c1053a0c>] ? __might_sleep+0x2c/0x90 [ 162.619882] [<c13055cd>] ? __tty_fasync+0x4d/0xf0 [ 162.650621] [<c127566a>] ? _copy_to_user+0x3a/0x50 [ 162.681357] [<c10e4297>] ? cp_new_stat64+0xf7/0x110 [ 162.712031] [<c1306320>] ? no_tty+0x20/0x20 [ 162.742559] [<c10efb82>] do_vfs_ioctl+0x322/0x550 [ 162.772833] [<c10e4563>] ? SyS_fstat64+0x23/0x30 [ 162.802883] [<c10efde8>] SyS_ioctl+0x38/0x70 [ 162.832825] [<c148c510>] syscall_call+0x7/0x7 [ 162.862598] ---[ end trace 672836810ebbcd0c ]--- |