bisecting cause commit starting from 4ef8451b332662d004df269d4cdeb7d9f31419b5 building syzkaller on 64069d48f293e0be98d4a78a6f7be23861cc1e06 testing commit 4ef8451b332662d004df269d4cdeb7d9f31419b5 with gcc (GCC) 8.1.0 kernel signature: 7982ca408aa336ccedfc2b009ef4cbca5d6719299a29101ab2bf4bab7faf992a all runs: crashed: possible deadlock in send_sigio testing release v5.9 testing commit bbf5c979011a099af5dc76498918ed7df445635b with gcc (GCC) 8.1.0 kernel signature: 9b6cfc9c55e3d3e6244cda82dc55a4b812ee7e744097b641b2ca7f20ae8dc19f all runs: OK # git bisect start 4ef8451b332662d004df269d4cdeb7d9f31419b5 bbf5c979011a099af5dc76498918ed7df445635b Bisecting: 7648 revisions left to test after this (roughly 13 steps) [ca5387e448e1f88440dc93e143b353592f8a8af6] Merge tag 'configfs-5.10' of git://git.infradead.org/users/hch/configfs testing commit ca5387e448e1f88440dc93e143b353592f8a8af6 with gcc (GCC) 8.1.0 kernel signature: 99c9ff54b949b8f8355c4f0103eacd49d2f325b9d4acc739c9a893ad0332007a all runs: crashed: possible deadlock in send_sigio # git bisect bad ca5387e448e1f88440dc93e143b353592f8a8af6 Bisecting: 3816 revisions left to test after this (roughly 12 steps) [b4e1bce85fd8f43dc814049e2641cc6beaa8146b] Merge tag 'pinctrl-v5.10-1' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl testing commit b4e1bce85fd8f43dc814049e2641cc6beaa8146b with gcc (GCC) 8.1.0 kernel signature: 5186f936117f1357a12b6770ae87ac34e8eefdb2fafbef012cbb392ba3790a3e all runs: crashed: possible deadlock in send_sigio # git bisect bad b4e1bce85fd8f43dc814049e2641cc6beaa8146b Bisecting: 1901 revisions left to test after this (roughly 11 steps) [fd5c32d80884268a381ed0e67cccef0b3d37750b] Merge tag 'media/v5.10-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media testing commit fd5c32d80884268a381ed0e67cccef0b3d37750b with gcc (GCC) 8.1.0 kernel signature: ada0f547021d36add8884fafe7a8762877f79051f047e178a30090ea3c1d2786 all runs: crashed: possible deadlock in send_sigio # git bisect bad fd5c32d80884268a381ed0e67cccef0b3d37750b Bisecting: 1062 revisions left to test after this (roughly 10 steps) [865c50e1d279671728c2936cb7680eb89355eeea] x86/uaccess: utilize CONFIG_CC_HAS_ASM_GOTO_OUTPUT testing commit 865c50e1d279671728c2936cb7680eb89355eeea with gcc (GCC) 8.1.0 kernel signature: 31f22d8cebe7d135b74a6a9722cf3d45ae354abce8bb8689111aefeeb41d085b all runs: crashed: possible deadlock in send_sigio # git bisect bad 865c50e1d279671728c2936cb7680eb89355eeea Bisecting: 429 revisions left to test after this (roughly 9 steps) [13cb73490f475f8e7669f9288be0bcfa85399b1f] Merge tag 'x86-entry-2020-10-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip testing commit 13cb73490f475f8e7669f9288be0bcfa85399b1f with gcc (GCC) 8.1.0 kernel signature: 49960c76a8f98431e2be69aebe9274d705c212e80a261e35e46051f48166006c all runs: OK # git bisect good 13cb73490f475f8e7669f9288be0bcfa85399b1f Bisecting: 228 revisions left to test after this (roughly 8 steps) [dd502a81077a5f3b3e19fa9a1accffdcab5ad5bc] Merge tag 'core-static_call-2020-10-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip testing commit dd502a81077a5f3b3e19fa9a1accffdcab5ad5bc with gcc (GCC) 8.1.0 kernel signature: 4f88a6ea67c5a9a2cf5fbf1db03dd4f7fdafedee477e8b65c8b7d3eb3ea1a8e7 all runs: crashed: possible deadlock in send_sigio # git bisect bad dd502a81077a5f3b3e19fa9a1accffdcab5ad5bc Bisecting: 86 revisions left to test after this (roughly 7 steps) [ed016af52ee3035b4799ebd7d53f9ae59d5782c4] Merge tag 'locking-core-2020-10-12' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip testing commit ed016af52ee3035b4799ebd7d53f9ae59d5782c4 with gcc (GCC) 8.1.0 kernel signature: 54c5a24e067f2a898446d558a20c22cee17edb0a718914dd3cd74ceea15c049a all runs: crashed: possible deadlock in send_sigio # git bisect bad ed016af52ee3035b4799ebd7d53f9ae59d5782c4 Bisecting: 49 revisions left to test after this (roughly 6 steps) [d6c4c11348816fb4d16e33bf47d559d7aa59350a] Merge branch 'kcsan' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu into locking/core testing commit d6c4c11348816fb4d16e33bf47d559d7aa59350a with gcc (GCC) 8.1.0 kernel signature: 7e3ded4d41c7b3e49181e11b016b952083d0951faf035327d178ff6522407a3b all runs: crashed: possible deadlock in send_sigio # git bisect bad d6c4c11348816fb4d16e33bf47d559d7aa59350a Bisecting: 31 revisions left to test after this (roughly 5 steps) [6dd699b13d53f26a7603702d8bada3482312df74] seqlock: seqcount_LOCKNAME_t: Standardize naming convention testing commit 6dd699b13d53f26a7603702d8bada3482312df74 with gcc (GCC) 8.1.0 kernel signature: 9e041a83914af144f43627a1158da24eb8481de7cad7e45128a85a689833f9ab all runs: crashed: possible deadlock in send_sigio # git bisect bad 6dd699b13d53f26a7603702d8bada3482312df74 Bisecting: 15 revisions left to test after this (roughly 4 steps) [621c9dac0eea7607cb9a57cc9ba47fbcd4e644c9] lockdep: Add recursive read locks into dependency graph testing commit 621c9dac0eea7607cb9a57cc9ba47fbcd4e644c9 with gcc (GCC) 8.1.0 kernel signature: 00312131e668575c90b088a837f06601b9c13cc77bc552a3a814ea523d13072e all runs: crashed: possible deadlock in send_sigio # git bisect bad 621c9dac0eea7607cb9a57cc9ba47fbcd4e644c9 Bisecting: 7 revisions left to test after this (roughly 3 steps) [d563bc6ead9e79be37067d58509a605b67378184] lockdep: Make __bfs() visit every dependency until a match testing commit d563bc6ead9e79be37067d58509a605b67378184 with gcc (GCC) 8.1.0 kernel signature: c11c0467c1ddcf290be7be40476efb120006ab257bf969d72c0843622e280bf0 all runs: crashed: possible deadlock in send_sigio # git bisect bad d563bc6ead9e79be37067d58509a605b67378184 Bisecting: 3 revisions left to test after this (roughly 2 steps) [92b4e9f11a636d1723cc0866bf8b9111b1e24339] Documentation/locking/locktypes: Fix local_locks documentation testing commit 92b4e9f11a636d1723cc0866bf8b9111b1e24339 with gcc (GCC) 8.1.0 kernel signature: bf98e765a0ecde7bd1b0d7a3b29dc60ee16d65a237840903c815ca510f84beb7 all runs: OK # git bisect good 92b4e9f11a636d1723cc0866bf8b9111b1e24339 Bisecting: 1 revision left to test after this (roughly 1 step) [224ec489d3cdb0af6794e257eeee39d98dc9c5b2] lockdep/Documention: Recursive read lock detection reasoning testing commit 224ec489d3cdb0af6794e257eeee39d98dc9c5b2 with gcc (GCC) 8.1.0 kernel signature: f2c7f05549eec03a65deddcc2bd0a6f03dd2de9a6fb7c90047a2c916a9dd0a68 all runs: crashed: possible deadlock in send_sigio # git bisect bad 224ec489d3cdb0af6794e257eeee39d98dc9c5b2 Bisecting: 0 revisions left to test after this (roughly 0 steps) [e918188611f073063415f40fae568fa4d86d9044] locking: More accurate annotations for read_lock() testing commit e918188611f073063415f40fae568fa4d86d9044 with gcc (GCC) 8.1.0 kernel signature: f2c7f05549eec03a65deddcc2bd0a6f03dd2de9a6fb7c90047a2c916a9dd0a68 all runs: crashed: possible deadlock in send_sigio # git bisect bad e918188611f073063415f40fae568fa4d86d9044 e918188611f073063415f40fae568fa4d86d9044 is the first bad commit commit e918188611f073063415f40fae568fa4d86d9044 Author: Boqun Feng Date: Fri Aug 7 15:42:20 2020 +0800 locking: More accurate annotations for read_lock() On the archs using QUEUED_RWLOCKS, read_lock() is not always a recursive read lock, actually it's only recursive if in_interrupt() is true. So change the annotation accordingly to catch more deadlocks. Note we used to treat read_lock() as pure recursive read locks in lib/locking-seftest.c, and this is useful, especially for the lockdep development selftest, so we keep this via a variable to force switching lock annotation for read_lock(). Signed-off-by: Boqun Feng Signed-off-by: Peter Zijlstra (Intel) Link: https://lkml.kernel.org/r/20200807074238.1632519-2-boqun.feng@gmail.com include/linux/lockdep.h | 23 ++++++++++++++++++++++- kernel/locking/lockdep.c | 14 ++++++++++++++ lib/locking-selftest.c | 11 +++++++++++ 3 files changed, 47 insertions(+), 1 deletion(-) culprit signature: f2c7f05549eec03a65deddcc2bd0a6f03dd2de9a6fb7c90047a2c916a9dd0a68 parent signature: bf98e765a0ecde7bd1b0d7a3b29dc60ee16d65a237840903c815ca510f84beb7 revisions tested: 16, total time: 2h21m15.796155978s (build: 1h9m39.000822293s, test: 1h10m13.329962036s) first bad commit: e918188611f073063415f40fae568fa4d86d9044 locking: More accurate annotations for read_lock() recipients (to): ["boqun.feng@gmail.com" "linux-kernel@vger.kernel.org" "mingo@redhat.com" "peterz@infradead.org" "peterz@infradead.org" "will@kernel.org"] recipients (cc): [] crash: possible deadlock in send_sigio ======================================================== WARNING: possible irq lock inversion dependency detected 5.9.0-rc2-syzkaller #0 Not tainted -------------------------------------------------------- syz-executor.1/10157 just changed the state of lock: ffff888132d62d38 (&f->f_owner.lock){.+..}-{2:2}, at: send_sigio+0x23/0x200 fs/fcntl.c:786 but this lock was taken by another, HARDIRQ-safe lock in the past: (&dev->event_lock){-...}-{2:2} and interrupts could create inverse lock ordering between them. other info that might help us debug this: Chain exists of: &dev->event_lock --> &new->fa_lock --> &f->f_owner.lock Possible interrupt unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&f->f_owner.lock); local_irq_disable(); lock(&dev->event_lock); lock(&new->fa_lock); lock(&dev->event_lock); *** DEADLOCK *** 2 locks held by syz-executor.1/10157: #0: ffffffff869d8a18 (&fsnotify_mark_srcu){....}-{0:0}, at: fsnotify+0xf8/0x670 fs/notify/fsnotify.c:478 #1: ffff88812ca56fa0 (&mark->lock){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:354 [inline] #1: ffff88812ca56fa0 (&mark->lock){+.+.}-{2:2}, at: dnotify_handle_event+0x31/0xc0 fs/notify/dnotify/dnotify.c:89 the shortest dependencies between 2nd lock and 1st lock: -> (&dev->event_lock){-...}-{2:2} { IN-HARDIRQ-W at: lock_acquire+0xb0/0x3a0 kernel/locking/lockdep.c:5020 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x33/0x50 kernel/locking/spinlock.c:159 input_event+0x33/0x70 drivers/input/input.c:440 input_report_key include/linux/input.h:417 [inline] psmouse_report_standard_buttons+0x1b/0x50 drivers/input/mouse/psmouse-base.c:123 psmouse_report_standard_packet drivers/input/mouse/psmouse-base.c:141 [inline] psmouse_process_byte+0x70/0x260 drivers/input/mouse/psmouse-base.c:232 psmouse_handle_byte+0xa/0x50 drivers/input/mouse/psmouse-base.c:274 psmouse_interrupt+0xc5/0x3f0 drivers/input/mouse/psmouse-base.c:426 serio_interrupt+0x3b/0x80 drivers/input/serio/serio.c:1002 i8042_interrupt+0x153/0x280 drivers/input/serio/i8042.c:598 __handle_irq_event_percpu+0x3c/0x320 kernel/irq/handle.c:156 handle_irq_event_percpu+0x2b/0x70 kernel/irq/handle.c:196 handle_irq_event+0x2f/0x4c kernel/irq/handle.c:213 handle_edge_irq+0x8f/0x1b0 kernel/irq/chip.c:819 asm_call_on_stack+0xf/0x20 arch/x86/entry/entry_64.S:706 __run_on_irqstack arch/x86/include/asm/irq_stack.h:22 [inline] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:48 [inline] handle_irq arch/x86/kernel/irq.c:230 [inline] __common_interrupt arch/x86/kernel/irq.c:249 [inline] common_interrupt+0x159/0x220 arch/x86/kernel/irq.c:239 asm_common_interrupt+0x1e/0x40 arch/x86/include/asm/idtentry.h:572 native_restore_fl arch/x86/include/asm/irqflags.h:41 [inline] arch_local_irq_restore arch/x86/include/asm/irqflags.h:84 [inline] seqcount_lockdep_reader_access include/linux/seqlock.h:104 [inline] read_seqcount_t_begin include/linux/seqlock.h:311 [inline] read_seqbegin include/linux/seqlock.h:752 [inline] zone_span_seqbegin include/linux/memory_hotplug.h:80 [inline] page_outside_zone_boundaries mm/page_alloc.c:561 [inline] bad_range+0x8b/0x190 mm/page_alloc.c:590 rmqueue mm/page_alloc.c:3409 [inline] get_page_from_freelist+0x1ad5/0x1e30 mm/page_alloc.c:3828 __alloc_pages_nodemask+0x1a9/0x4a0 mm/page_alloc.c:4882 alloc_pages include/linux/gfp.h:545 [inline] __vmalloc_area_node mm/vmalloc.c:2445 [inline] __vmalloc_node_range+0x1ee/0x2c0 mm/vmalloc.c:2511 alloc_thread_stack_node kernel/fork.c:243 [inline] dup_task_struct kernel/fork.c:862 [inline] copy_process+0x8fb/0x1d50 kernel/fork.c:1916 _do_fork+0x98/0x730 kernel/fork.c:2428 kernel_thread+0x50/0x70 kernel/fork.c:2480 call_usermodehelper_exec_work+0x6a/0x80 kernel/umh.c:163 process_one_work+0x26a/0x5f0 kernel/workqueue.c:2269 worker_thread+0x38/0x380 kernel/workqueue.c:2415 kthread+0x148/0x170 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 INITIAL USE at: lock_acquire+0xb0/0x3a0 kernel/locking/lockdep.c:5020 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x33/0x50 kernel/locking/spinlock.c:159 input_inject_event+0x44/0x1b6 drivers/input/input.c:466 led_trigger_event+0x3c/0x60 drivers/leds/led-triggers.c:387 kbd_led_trigger_activate+0x4b/0x60 drivers/tty/vt/keyboard.c:1005 led_trigger_set+0x1fc/0x300 drivers/leds/led-triggers.c:195 led_trigger_set_default+0x8b/0xb0 drivers/leds/led-triggers.c:259 led_classdev_register_ext+0x23d/0x310 drivers/leds/led-class.c:412 led_classdev_register include/linux/leds.h:190 [inline] input_leds_connect+0x177/0x2ff drivers/input/input-leds.c:139 input_attach_handler+0x68/0x90 drivers/input/input.c:1031 input_register_device.cold.22+0xa4/0x152 drivers/input/input.c:2229 atkbd_connect+0x214/0x30e drivers/input/keyboard/atkbd.c:1293 serio_connect_driver+0x24/0x40 drivers/input/serio/serio.c:47 really_probe+0xd1/0x400 drivers/base/dd.c:553 driver_probe_device+0xd9/0x140 drivers/base/dd.c:738 device_driver_attach+0x4a/0x50 drivers/base/dd.c:1013 __driver_attach+0x80/0x140 drivers/base/dd.c:1090 bus_for_each_dev+0x71/0xb0 drivers/base/bus.c:305 serio_attach_driver drivers/input/serio/serio.c:808 [inline] serio_handle_event+0x1ee/0x250 drivers/input/serio/serio.c:227 process_one_work+0x26a/0x5f0 kernel/workqueue.c:2269 worker_thread+0x38/0x380 kernel/workqueue.c:2415 kthread+0x148/0x170 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 } ... key at: [] __key.34109+0x0/0x10 ... acquired at: __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:151 spin_lock include/linux/spinlock.h:354 [inline] evdev_pass_values+0x71/0x280 drivers/input/evdev.c:262 evdev_events+0xf7/0x1a0 drivers/input/evdev.c:307 input_to_handler+0x83/0xe0 drivers/input/input.c:115 input_pass_values.part.8+0x1b0/0x260 drivers/input/input.c:145 input_pass_values drivers/input/input.c:134 [inline] input_handle_event+0x4cf/0x5f0 drivers/input/input.c:399 input_inject_event+0x14f/0x1b6 drivers/input/input.c:471 evdev_write+0x136/0x230 drivers/input/evdev.c:530 vfs_write+0xc7/0x230 fs/read_write.c:576 ksys_write+0xb9/0xd0 fs/read_write.c:631 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 -> (&client->buffer_lock){....}-{2:2} { INITIAL USE at: lock_acquire+0xb0/0x3a0 kernel/locking/lockdep.c:5020 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:151 spin_lock include/linux/spinlock.h:354 [inline] evdev_pass_values+0x71/0x280 drivers/input/evdev.c:262 evdev_events+0xf7/0x1a0 drivers/input/evdev.c:307 input_to_handler+0x83/0xe0 drivers/input/input.c:115 input_pass_values.part.8+0x1b0/0x260 drivers/input/input.c:145 input_pass_values drivers/input/input.c:134 [inline] input_handle_event+0x4cf/0x5f0 drivers/input/input.c:399 input_inject_event+0x14f/0x1b6 drivers/input/input.c:471 evdev_write+0x136/0x230 drivers/input/evdev.c:530 vfs_write+0xc7/0x230 fs/read_write.c:576 ksys_write+0xb9/0xd0 fs/read_write.c:631 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 } ... key at: [] __key.36396+0x0/0x10 ... acquired at: __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x5b/0x70 kernel/locking/spinlock.c:223 kill_fasync_rcu fs/fcntl.c:1002 [inline] kill_fasync+0xa7/0x200 fs/fcntl.c:1023 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x18a/0x280 drivers/input/evdev.c:279 evdev_events+0xf7/0x1a0 drivers/input/evdev.c:307 input_to_handler+0x83/0xe0 drivers/input/input.c:115 input_pass_values.part.8+0x1b0/0x260 drivers/input/input.c:145 input_pass_values drivers/input/input.c:134 [inline] input_handle_event+0x4cf/0x5f0 drivers/input/input.c:399 input_inject_event+0x14f/0x1b6 drivers/input/input.c:471 evdev_write+0x136/0x230 drivers/input/evdev.c:530 vfs_write+0xc7/0x230 fs/read_write.c:576 ksys_write+0xb9/0xd0 fs/read_write.c:631 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 -> (&new->fa_lock){....}-{2:2} { INITIAL USE at: lock_acquire+0xb0/0x3a0 kernel/locking/lockdep.c:5020 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x5b/0x70 kernel/locking/spinlock.c:223 kill_fasync_rcu fs/fcntl.c:1002 [inline] kill_fasync+0xa7/0x200 fs/fcntl.c:1023 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x18a/0x280 drivers/input/evdev.c:279 evdev_events+0xf7/0x1a0 drivers/input/evdev.c:307 input_to_handler+0x83/0xe0 drivers/input/input.c:115 input_pass_values.part.8+0x1b0/0x260 drivers/input/input.c:145 input_pass_values drivers/input/input.c:134 [inline] input_handle_event+0x4cf/0x5f0 drivers/input/input.c:399 input_inject_event+0x14f/0x1b6 drivers/input/input.c:471 evdev_write+0x136/0x230 drivers/input/evdev.c:530 vfs_write+0xc7/0x230 fs/read_write.c:576 ksys_write+0xb9/0xd0 fs/read_write.c:631 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 } ... key at: [] __key.45771+0x0/0x10 ... acquired at: __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x5b/0x70 kernel/locking/spinlock.c:223 send_sigio+0x23/0x200 fs/fcntl.c:786 kill_fasync_rcu fs/fcntl.c:1009 [inline] kill_fasync+0xd2/0x200 fs/fcntl.c:1023 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x18a/0x280 drivers/input/evdev.c:279 evdev_events+0xf7/0x1a0 drivers/input/evdev.c:307 input_to_handler+0x83/0xe0 drivers/input/input.c:115 input_pass_values.part.8+0x1b0/0x260 drivers/input/input.c:145 input_pass_values drivers/input/input.c:134 [inline] input_handle_event+0x4cf/0x5f0 drivers/input/input.c:399 input_inject_event+0x14f/0x1b6 drivers/input/input.c:471 evdev_write+0x136/0x230 drivers/input/evdev.c:530 vfs_write+0xc7/0x230 fs/read_write.c:576 ksys_write+0xb9/0xd0 fs/read_write.c:631 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 -> (&f->f_owner.lock){.+..}-{2:2} { HARDIRQ-ON-R at: lock_acquire+0xb0/0x3a0 kernel/locking/lockdep.c:5020 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x5b/0x70 kernel/locking/spinlock.c:223 send_sigio+0x23/0x200 fs/fcntl.c:786 dnotify_handle_event+0x58/0xc0 fs/notify/dnotify/dnotify.c:97 fsnotify_handle_event fs/notify/fsnotify.c:263 [inline] send_to_group fs/notify/fsnotify.c:326 [inline] fsnotify+0x4a3/0x670 fs/notify/fsnotify.c:504 fsnotify_parent include/linux/fsnotify.h:71 [inline] fsnotify_file include/linux/fsnotify.h:90 [inline] fsnotify_access include/linux/fsnotify.h:247 [inline] do_iter_read+0x177/0x1b0 fs/read_write.c:958 vfs_readv+0x68/0xa0 fs/read_write.c:1073 do_preadv+0x87/0xd0 fs/read_write.c:1165 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 INITIAL USE at: lock_acquire+0xb0/0x3a0 kernel/locking/lockdep.c:5020 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x5b/0x70 kernel/locking/spinlock.c:223 send_sigio+0x23/0x200 fs/fcntl.c:786 kill_fasync_rcu fs/fcntl.c:1009 [inline] kill_fasync+0xd2/0x200 fs/fcntl.c:1023 __pass_event drivers/input/evdev.c:240 [inline] evdev_pass_values+0x18a/0x280 drivers/input/evdev.c:279 evdev_events+0xf7/0x1a0 drivers/input/evdev.c:307 input_to_handler+0x83/0xe0 drivers/input/input.c:115 input_pass_values.part.8+0x1b0/0x260 drivers/input/input.c:145 input_pass_values drivers/input/input.c:134 [inline] input_handle_event+0x4cf/0x5f0 drivers/input/input.c:399 input_inject_event+0x14f/0x1b6 drivers/input/input.c:471 evdev_write+0x136/0x230 drivers/input/evdev.c:530 vfs_write+0xc7/0x230 fs/read_write.c:576 ksys_write+0xb9/0xd0 fs/read_write.c:631 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 } ... key at: [] __key.49901+0x0/0x10 ... acquired at: mark_lock_irq kernel/locking/lockdep.c:3568 [inline] mark_lock+0x24f/0x850 kernel/locking/lockdep.c:4006 mark_usage kernel/locking/lockdep.c:3911 [inline] __lock_acquire+0x874/0x2ad0 kernel/locking/lockdep.c:4380 lock_acquire+0xb0/0x3a0 kernel/locking/lockdep.c:5020 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x5b/0x70 kernel/locking/spinlock.c:223 send_sigio+0x23/0x200 fs/fcntl.c:786 dnotify_handle_event+0x58/0xc0 fs/notify/dnotify/dnotify.c:97 fsnotify_handle_event fs/notify/fsnotify.c:263 [inline] send_to_group fs/notify/fsnotify.c:326 [inline] fsnotify+0x4a3/0x670 fs/notify/fsnotify.c:504 fsnotify_parent include/linux/fsnotify.h:71 [inline] fsnotify_file include/linux/fsnotify.h:90 [inline] fsnotify_access include/linux/fsnotify.h:247 [inline] do_iter_read+0x177/0x1b0 fs/read_write.c:958 vfs_readv+0x68/0xa0 fs/read_write.c:1073 do_preadv+0x87/0xd0 fs/read_write.c:1165 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 stack backtrace: CPU: 0 PID: 10157 Comm: syz-executor.1 Not tainted 5.9.0-rc2-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+0x77/0xa0 lib/dump_stack.c:118 print_irq_inversion_bug kernel/locking/lockdep.c:3429 [inline] check_usage_backwards.cold.63+0x1d/0x26 kernel/locking/lockdep.c:3480 mark_lock_irq kernel/locking/lockdep.c:3568 [inline] mark_lock+0x24f/0x850 kernel/locking/lockdep.c:4006 mark_usage kernel/locking/lockdep.c:3911 [inline] __lock_acquire+0x874/0x2ad0 kernel/locking/lockdep.c:4380 lock_acquire+0xb0/0x3a0 kernel/locking/lockdep.c:5020 __raw_read_lock include/linux/rwlock_api_smp.h:149 [inline] _raw_read_lock+0x5b/0x70 kernel/locking/spinlock.c:223 send_sigio+0x23/0x200 fs/fcntl.c:786 dnotify_handle_event+0x58/0xc0 fs/notify/dnotify/dnotify.c:97 fsnotify_handle_event fs/notify/fsnotify.c:263 [inline] send_to_group fs/notify/fsnotify.c:326 [inline] fsnotify+0x4a3/0x670 fs/notify/fsnotify.c:504 fsnotify_parent include/linux/fsnotify.h:71 [inline] fsnotify_file include/linux/fsnotify.h:90 [inline] fsnotify_access include/linux/fsnotify.h:247 [inline] do_iter_read+0x177/0x1b0 fs/read_write.c:958 vfs_readv+0x68/0xa0 fs/read_write.c:1073 do_preadv+0x87/0xd0 fs/read_write.c:1165 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45deb9 Code: 0d 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 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f5147b07c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000127 RAX: ffffffffffffffda RBX: 0000000000025e40 RCX: 000000000045deb9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000005 RBP: 000000000118bf70 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118bf2c R13: 00007ffded331ddf R14: 00007f5147b089c0 R15: 000000000118bf2c