sctp: [Deprecated]: syz-executor2 (pid 9613) Use of int in maxseg socket option. Use struct sctp_assoc_value instead IPVS: ftp: loaded support on port[0] = 21 ===================================================== WARNING: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected 4.17.0-rc2+ #26 Not tainted ----------------------------------------------------- kworker/0:0/4 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire: (ptrval) (fs_reclaim){+.+.}, at: fs_reclaim_acquire.part.82+0x0/0x30 mm/page_alloc.c:463 and this task is already holding: (ptrval) (&(&dev->event_lock)->rlock){-...}, at: input_event+0x67/0xa0 drivers/input/input.c:435 which would create a new lock dependency: (&(&dev->event_lock)->rlock){-...} -> (fs_reclaim){+.+.} but this new dependency connects a HARDIRQ-irq-safe lock: (&(&dev->event_lock)->rlock){-...} ... which became HARDIRQ-irq-safe at: lock_acquire+0x1dc/0x520 kernel/locking/lockdep.c:3920 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x96/0xc0 kernel/locking/spinlock.c:152 input_event+0x67/0xa0 drivers/input/input.c:435 input_report_key include/linux/input.h:393 [inline] psmouse_report_standard_buttons+0x31/0x90 drivers/input/mouse/psmouse-base.c:127 psmouse_report_standard_packet drivers/input/mouse/psmouse-base.c:145 [inline] psmouse_process_byte+0x1ef/0x710 drivers/input/mouse/psmouse-base.c:236 psmouse_handle_byte+0x4a/0x570 drivers/input/mouse/psmouse-base.c:278 psmouse_interrupt+0x38a/0x1420 drivers/input/mouse/psmouse-base.c:428 serio_interrupt+0x98/0x160 drivers/input/serio/serio.c:1018 i8042_interrupt+0x385/0x5e0 drivers/input/serio/i8042.c:586 __handle_irq_event_percpu+0x1c0/0xad0 kernel/irq/handle.c:149 handle_irq_event_percpu+0x98/0x1c0 kernel/irq/handle.c:189 handle_irq_event+0xa7/0x135 kernel/irq/handle.c:206 handle_edge_irq+0x20f/0x870 kernel/irq/chip.c:791 generic_handle_irq_desc include/linux/irqdesc.h:159 [inline] handle_irq+0x18c/0x2e7 arch/x86/kernel/irq_64.c:77 do_IRQ+0x78/0x190 arch/x86/kernel/irq.c:245 ret_from_intr+0x0/0x1e find_entry.isra.16+0x9d/0x1e0 fs/proc/proc_sysctl.c:118 find_subdir+0xa8/0x180 fs/proc/proc_sysctl.c:923 get_subdir fs/proc/proc_sysctl.c:977 [inline] __register_sysctl_table+0x693/0x1040 fs/proc/proc_sysctl.c:1327 register_net_sysctl+0x29/0x30 net/sysctl_net.c:120 neigh_sysctl_register+0x399/0x730 net/core/neighbour.c:3252 devinet_sysctl_register+0xb4/0x220 net/ipv4/devinet.c:2346 inetdev_init+0x2d4/0x580 net/ipv4/devinet.c:263 inetdev_event+0xf0d/0x1340 net/ipv4/devinet.c:1456 notifier_call_chain+0x178/0x380 kernel/notifier.c:93 __raw_notifier_call_chain kernel/notifier.c:394 [inline] raw_notifier_call_chain+0x2d/0x40 kernel/notifier.c:401 call_netdevice_notifiers_info+0x3f/0x90 net/core/dev.c:1735 call_netdevice_notifiers net/core/dev.c:1753 [inline] register_netdevice+0xb95/0x11c0 net/core/dev.c:8000 __ip_tunnel_create+0x4c3/0x660 net/ipv4/ip_tunnel.c:282 ip_tunnel_init_net+0x3f8/0xad0 net/ipv4/ip_tunnel.c:1020 vti_init_net+0x7c/0x450 net/ipv4/ip_vti.c:437 ops_init+0xff/0x550 net/core/net_namespace.c:128 __register_pernet_operations net/core/net_namespace.c:912 [inline] register_pernet_operations+0x49a/0x9f0 net/core/net_namespace.c:987 register_pernet_device+0x2a/0x80 net/core/net_namespace.c:1074 vti_init+0x24/0x170 net/ipv4/ip_vti.c:584 do_one_initcall+0x127/0x913 init/main.c:883 do_initcall_level init/main.c:951 [inline] do_initcalls init/main.c:959 [inline] do_basic_setup init/main.c:977 [inline] kernel_init_freeable+0x49b/0x58e init/main.c:1127 kernel_init+0x11/0x1b3 init/main.c:1053 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:412 to a HARDIRQ-irq-unsafe lock: (fs_reclaim){+.+.} ... which became HARDIRQ-irq-unsafe at: ... lock_acquire+0x1dc/0x520 kernel/locking/lockdep.c:3920 fs_reclaim_acquire.part.82+0x24/0x30 mm/page_alloc.c:3739 fs_reclaim_acquire+0x14/0x20 mm/page_alloc.c:3740 slab_pre_alloc_hook mm/slab.h:418 [inline] slab_alloc_node mm/slab.c:3299 [inline] kmem_cache_alloc_node_trace+0x39/0x770 mm/slab.c:3661 kmalloc_node include/linux/slab.h:550 [inline] kzalloc_node include/linux/slab.h:712 [inline] alloc_worker+0xbd/0x2e0 kernel/workqueue.c:1704 init_rescuer.part.25+0x1f/0x190 kernel/workqueue.c:4000 init_rescuer kernel/workqueue.c:3997 [inline] workqueue_init+0x51f/0x7d0 kernel/workqueue.c:5732 kernel_init_freeable+0x2ad/0x58e init/main.c:1115 kernel_init+0x11/0x1b3 init/main.c:1053 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:412 other info that might help us debug this: Possible interrupt unsafe locking scenario: CPU0 CPU1 ---- ---- lock(fs_reclaim); local_irq_disable(); lock(&(&dev->event_lock)->rlock); lock(fs_reclaim); lock(&(&dev->event_lock)->rlock); *** DEADLOCK *** 3 locks held by kworker/0:0/4: #0: (ptrval) ((wq_completion)"kacpi_notify"){+.+.}, at: __write_once_size include/linux/compiler.h:215 [inline] #0: (ptrval) ((wq_completion)"kacpi_notify"){+.+.}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: (ptrval) ((wq_completion)"kacpi_notify"){+.+.}, at: atomic64_set include/asm-generic/atomic-instrumented.h:40 [inline] #0: (ptrval) ((wq_completion)"kacpi_notify"){+.+.}, at: atomic_long_set include/asm-generic/atomic-long.h:57 [inline] #0: (ptrval) ((wq_completion)"kacpi_notify"){+.+.}, at: set_work_data kernel/workqueue.c:617 [inline] #0: (ptrval) ((wq_completion)"kacpi_notify"){+.+.}, at: set_work_pool_and_clear_pending kernel/workqueue.c:644 [inline] #0: (ptrval) ((wq_completion)"kacpi_notify"){+.+.}, at: process_one_work+0xaef/0x1b50 kernel/workqueue.c:2116 #1: (ptrval) ((work_completion)(&dpc->work)){+.+.}, at: process_one_work+0xb46/0x1b50 kernel/workqueue.c:2120 #2: (ptrval) (&(&dev->event_lock)->rlock){-...}, at: input_event+0x67/0xa0 drivers/input/input.c:435 the dependencies between HARDIRQ-irq-safe lock and the holding lock: -> (&(&dev->event_lock)->rlock){-...} ops: 9 { IN-HARDIRQ-W at: lock_acquire+0x1dc/0x520 kernel/locking/lockdep.c:3920 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x96/0xc0 kernel/locking/spinlock.c:152 input_event+0x67/0xa0 drivers/input/input.c:435 input_report_key include/linux/input.h:393 [inline] psmouse_report_standard_buttons+0x31/0x90 drivers/input/mouse/psmouse-base.c:127 psmouse_report_standard_packet drivers/input/mouse/psmouse-base.c:145 [inline] psmouse_process_byte+0x1ef/0x710 drivers/input/mouse/psmouse-base.c:236 psmouse_handle_byte+0x4a/0x570 drivers/input/mouse/psmouse-base.c:278 psmouse_interrupt+0x38a/0x1420 drivers/input/mouse/psmouse-base.c:428 serio_interrupt+0x98/0x160 drivers/input/serio/serio.c:1018 i8042_interrupt+0x385/0x5e0 drivers/input/serio/i8042.c:586 __handle_irq_event_percpu+0x1c0/0xad0 kernel/irq/handle.c:149 handle_irq_event_percpu+0x98/0x1c0 kernel/irq/handle.c:189 handle_irq_event+0xa7/0x135 kernel/irq/handle.c:206 handle_edge_irq+0x20f/0x870 kernel/irq/chip.c:791 generic_handle_irq_desc include/linux/irqdesc.h:159 [inline] handle_irq+0x18c/0x2e7 arch/x86/kernel/irq_64.c:77 do_IRQ+0x78/0x190 arch/x86/kernel/irq.c:245 ret_from_intr+0x0/0x1e find_entry.isra.16+0x9d/0x1e0 fs/proc/proc_sysctl.c:118 find_subdir+0xa8/0x180 fs/proc/proc_sysctl.c:923 get_subdir fs/proc/proc_sysctl.c:977 [inline] __register_sysctl_table+0x693/0x1040 fs/proc/proc_sysctl.c:1327 register_net_sysctl+0x29/0x30 net/sysctl_net.c:120 neigh_sysctl_register+0x399/0x730 net/core/neighbour.c:3252 devinet_sysctl_register+0xb4/0x220 net/ipv4/devinet.c:2346 inetdev_init+0x2d4/0x580 net/ipv4/devinet.c:263 inetdev_event+0xf0d/0x1340 net/ipv4/devinet.c:1456 notifier_call_chain+0x178/0x380 kernel/notifier.c:93 __raw_notifier_call_chain kernel/notifier.c:394 [inline] raw_notifier_call_chain+0x2d/0x40 kernel/notifier.c:401 call_netdevice_notifiers_info+0x3f/0x90 net/core/dev.c:1735 call_netdevice_notifiers net/core/dev.c:1753 [inline] register_netdevice+0xb95/0x11c0 net/core/dev.c:8000 __ip_tunnel_create+0x4c3/0x660 net/ipv4/ip_tunnel.c:282 ip_tunnel_init_net+0x3f8/0xad0 net/ipv4/ip_tunnel.c:1020 vti_init_net+0x7c/0x450 net/ipv4/ip_vti.c:437 ops_init+0xff/0x550 net/core/net_namespace.c:128 __register_pernet_operations net/core/net_namespace.c:912 [inline] register_pernet_operations+0x49a/0x9f0 net/core/net_namespace.c:987 register_pernet_device+0x2a/0x80 net/core/net_namespace.c:1074 sctp: [Deprecated]: syz-executor2 (pid 9631) Use of int in maxseg socket option. Use struct sctp_assoc_value instead vti_init+0x24/0x170 net/ipv4/ip_vti.c:584 do_one_initcall+0x127/0x913 init/main.c:883 do_initcall_level init/main.c:951 [inline] do_initcalls init/main.c:959 [inline] do_basic_setup init/main.c:977 [inline] kernel_init_freeable+0x49b/0x58e init/main.c:1127 kernel_init+0x11/0x1b3 init/main.c:1053 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:412 INITIAL USE at: lock_acquire+0x1dc/0x520 kernel/locking/lockdep.c:3920 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x96/0xc0 kernel/locking/spinlock.c:152 input_inject_event+0xe0/0x3ed drivers/input/input.c:461 input_leds_brightness_set+0x81/0xb0 drivers/input/input-leds.c:66 __led_set_brightness drivers/leds/led-core.c:34 [inline] led_set_brightness_nopm+0x4c/0xe0 drivers/leds/led-core.c:261 led_set_brightness_nosleep drivers/leds/led-core.c:278 [inline] led_set_brightness+0x113/0x220 drivers/leds/led-core.c:253 led_trigger_event+0x77/0xd0 drivers/leds/led-triggers.c:292 kbd_led_trigger_activate+0xed/0x120 drivers/tty/vt/keyboard.c:969 led_trigger_set+0x668/0x930 drivers/leds/led-triggers.c:138 led_trigger_set_default+0x10a/0x180 drivers/leds/led-triggers.c:171 of_led_classdev_register+0x485/0x640 drivers/leds/led-class.c:302 input_leds_connect+0x410/0x7c0 drivers/input/input-leds.c:143 input_attach_handler+0x1b1/0x210 drivers/input/input.c:996 input_register_device.cold.22+0xe8/0x297 drivers/input/input.c:2152 atkbd_connect+0x6fe/0x930 drivers/input/keyboard/atkbd.c:1200 serio_connect_driver+0x4f/0x70 drivers/input/serio/serio.c:63 serio_driver_probe+0x47/0x60 drivers/input/serio/serio.c:794 really_probe drivers/base/dd.c:448 [inline] driver_probe_device+0x69b/0x960 drivers/base/dd.c:590 __driver_attach+0x1b2/0x1f0 drivers/base/dd.c:824 bus_for_each_dev+0x151/0x1d0 drivers/base/bus.c:311 driver_attach+0x3d/0x50 drivers/base/dd.c:843 serio_attach_driver drivers/input/serio/serio.c:824 [inline] serio_handle_event+0x70a/0xb20 drivers/input/serio/serio.c:243 process_one_work+0xc1e/0x1b50 kernel/workqueue.c:2145 worker_thread+0x1cc/0x1440 kernel/workqueue.c:2279 kthread+0x345/0x410 kernel/kthread.c:238 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:412 } ... key at: [] __key.33441+0x0/0x40 ... acquired at: lock_acquire+0x1dc/0x520 kernel/locking/lockdep.c:3920 fs_reclaim_acquire.part.82+0x24/0x30 mm/page_alloc.c:3739 fs_reclaim_acquire+0x14/0x20 mm/page_alloc.c:3740 slab_pre_alloc_hook mm/slab.h:418 [inline] slab_alloc mm/slab.c:3378 [inline] __do_kmalloc mm/slab.c:3716 [inline] __kmalloc+0x45/0x760 mm/slab.c:3727 kmalloc_array include/linux/slab.h:631 [inline] kcalloc include/linux/slab.h:642 [inline] numa_crng_init drivers/char/random.c:798 [inline] crng_reseed+0x427/0x920 drivers/char/random.c:923 credit_entropy_bits+0x98d/0xa30 drivers/char/random.c:708 add_timer_randomness+0x26b/0x320 drivers/char/random.c:1133 add_input_randomness+0xce/0x3e0 drivers/char/random.c:1148 input_handle_event+0xb3/0x1210 drivers/input/input.c:375 input_event+0x7b/0xa0 drivers/input/input.c:436 input_report_key include/linux/input.h:393 [inline] acpi_button_notify+0x17a/0x360 drivers/acpi/button.c:435 acpi_device_notify drivers/acpi/bus.c:464 [inline] acpi_device_notify_fixed+0x68/0x80 drivers/acpi/bus.c:472 acpi_os_execute_deferred+0x57/0x80 drivers/acpi/osl.c:830 process_one_work+0xc1e/0x1b50 kernel/workqueue.c:2145 worker_thread+0x1cc/0x1440 kernel/workqueue.c:2279 kthread+0x345/0x410 kernel/kthread.c:238 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:412 the dependencies between the lock to be acquired and HARDIRQ-irq-unsafe lock: -> (fs_reclaim){+.+.} ops: 2264108 { HARDIRQ-ON-W at: lock_acquire+0x1dc/0x520 kernel/locking/lockdep.c:3920 fs_reclaim_acquire.part.82+0x24/0x30 mm/page_alloc.c:3739 fs_reclaim_acquire+0x14/0x20 mm/page_alloc.c:3740 slab_pre_alloc_hook mm/slab.h:418 [inline] slab_alloc_node mm/slab.c:3299 [inline] kmem_cache_alloc_node_trace+0x39/0x770 mm/slab.c:3661 kmalloc_node include/linux/slab.h:550 [inline] kzalloc_node include/linux/slab.h:712 [inline] alloc_worker+0xbd/0x2e0 kernel/workqueue.c:1704 init_rescuer.part.25+0x1f/0x190 kernel/workqueue.c:4000 init_rescuer kernel/workqueue.c:3997 [inline] workqueue_init+0x51f/0x7d0 kernel/workqueue.c:5732 kernel_init_freeable+0x2ad/0x58e init/main.c:1115 kernel_init+0x11/0x1b3 init/main.c:1053 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:412 SOFTIRQ-ON-W at: lock_acquire+0x1dc/0x520 kernel/locking/lockdep.c:3920 fs_reclaim_acquire.part.82+0x24/0x30 mm/page_alloc.c:3739 fs_reclaim_acquire+0x14/0x20 mm/page_alloc.c:3740 slab_pre_alloc_hook mm/slab.h:418 [inline] slab_alloc_node mm/slab.c:3299 [inline] kmem_cache_alloc_node_trace+0x39/0x770 mm/slab.c:3661 kmalloc_node include/linux/slab.h:550 [inline] kzalloc_node include/linux/slab.h:712 [inline] alloc_worker+0xbd/0x2e0 kernel/workqueue.c:1704 init_rescuer.part.25+0x1f/0x190 kernel/workqueue.c:4000 init_rescuer kernel/workqueue.c:3997 [inline] workqueue_init+0x51f/0x7d0 kernel/workqueue.c:5732 kernel_init_freeable+0x2ad/0x58e init/main.c:1115 kernel_init+0x11/0x1b3 init/main.c:1053 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:412 INITIAL USE at: lock_acquire+0x1dc/0x520 kernel/locking/lockdep.c:3920 fs_reclaim_acquire.part.82+0x24/0x30 mm/page_alloc.c:3739 fs_reclaim_acquire+0x14/0x20 mm/page_alloc.c:3740 slab_pre_alloc_hook mm/slab.h:418 [inline] slab_alloc_node mm/slab.c:3299 [inline] kmem_cache_alloc_node_trace+0x39/0x770 mm/slab.c:3661 kmalloc_node include/linux/slab.h:550 [inline] kzalloc_node include/linux/slab.h:712 [inline] alloc_worker+0xbd/0x2e0 kernel/workqueue.c:1704 init_rescuer.part.25+0x1f/0x190 kernel/workqueue.c:4000 init_rescuer kernel/workqueue.c:3997 [inline] workqueue_init+0x51f/0x7d0 kernel/workqueue.c:5732 kernel_init_freeable+0x2ad/0x58e init/main.c:1115 kernel_init+0x11/0x1b3 init/main.c:1053 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:412 } ... key at: [] __fs_reclaim_map+0x0/0x40 ... acquired at: lock_acquire+0x1dc/0x520 kernel/locking/lockdep.c:3920 fs_reclaim_acquire.part.82+0x24/0x30 mm/page_alloc.c:3739 fs_reclaim_acquire+0x14/0x20 mm/page_alloc.c:3740 slab_pre_alloc_hook mm/slab.h:418 [inline] slab_alloc mm/slab.c:3378 [inline] __do_kmalloc mm/slab.c:3716 [inline] __kmalloc+0x45/0x760 mm/slab.c:3727 kmalloc_array include/linux/slab.h:631 [inline] kcalloc include/linux/slab.h:642 [inline] numa_crng_init drivers/char/random.c:798 [inline] crng_reseed+0x427/0x920 drivers/char/random.c:923 credit_entropy_bits+0x98d/0xa30 drivers/char/random.c:708 add_timer_randomness+0x26b/0x320 drivers/char/random.c:1133 add_input_randomness+0xce/0x3e0 drivers/char/random.c:1148 input_handle_event+0xb3/0x1210 drivers/input/input.c:375 input_event+0x7b/0xa0 drivers/input/input.c:436 input_report_key include/linux/input.h:393 [inline] acpi_button_notify+0x17a/0x360 drivers/acpi/button.c:435 acpi_device_notify drivers/acpi/bus.c:464 [inline] acpi_device_notify_fixed+0x68/0x80 drivers/acpi/bus.c:472 acpi_os_execute_deferred+0x57/0x80 drivers/acpi/osl.c:830 process_one_work+0xc1e/0x1b50 kernel/workqueue.c:2145 worker_thread+0x1cc/0x1440 kernel/workqueue.c:2279 kthread+0x345/0x410 kernel/kthread.c:238 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:412 stack backtrace: CPU: 0 PID: 4 Comm: kworker/0:0 Not tainted 4.17.0-rc2+ #26 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: kacpi_notify acpi_os_execute_deferred Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1b9/0x294 lib/dump_stack.c:113 print_bad_irq_dependency kernel/locking/lockdep.c:1570 [inline] check_usage.cold.58+0x6d5/0xac7 kernel/locking/lockdep.c:1602 check_irq_usage kernel/locking/lockdep.c:1658 [inline] check_prev_add_irq kernel/locking/lockdep_states.h:7 [inline] check_prev_add kernel/locking/lockdep.c:1868 [inline] check_prevs_add kernel/locking/lockdep.c:1976 [inline] validate_chain kernel/locking/lockdep.c:2417 [inline] __lock_acquire+0x2417/0x5140 kernel/locking/lockdep.c:3431 lock_acquire+0x1dc/0x520 kernel/locking/lockdep.c:3920 fs_reclaim_acquire.part.82+0x24/0x30 mm/page_alloc.c:3739 fs_reclaim_acquire+0x14/0x20 mm/page_alloc.c:3740 slab_pre_alloc_hook mm/slab.h:418 [inline] slab_alloc mm/slab.c:3378 [inline] __do_kmalloc mm/slab.c:3716 [inline] __kmalloc+0x45/0x760 mm/slab.c:3727 kmalloc_array include/linux/slab.h:631 [inline] kcalloc include/linux/slab.h:642 [inline] numa_crng_init drivers/char/random.c:798 [inline] crng_reseed+0x427/0x920 drivers/char/random.c:923 credit_entropy_bits+0x98d/0xa30 drivers/char/random.c:708 add_timer_randomness+0x26b/0x320 drivers/char/random.c:1133 add_input_randomness+0xce/0x3e0 drivers/char/random.c:1148 input_handle_event+0xb3/0x1210 drivers/input/input.c:375 input_event+0x7b/0xa0 drivers/input/input.c:436 input_report_key include/linux/input.h:393 [inline] acpi_button_notify+0x17a/0x360 drivers/acpi/button.c:435 acpi_device_notify drivers/acpi/bus.c:464 [inline] acpi_device_notify_fixed+0x68/0x80 drivers/acpi/bus.c:472 acpi_os_execute_deferred+0x57/0x80 drivers/acpi/osl.c:830 process_one_work+0xc1e/0x1b50 kernel/workqueue.c:2145 worker_thread+0x1cc/0x1440 kernel/workqueue.c:2279 kthread+0x345/0x410 kernel/kthread.c:238 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:412 BUG: sleeping function called from invalid context at mm/slab.h:421 in_atomic(): 1, irqs_disabled(): 1, pid: 4, name: kworker/0:0 INFO: lockdep is turned off. irq event stamp: 74548 hardirqs last enabled at (74547): [] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] hardirqs last enabled at (74547): [] _raw_spin_unlock_irqrestore+0x74/0xc0 kernel/locking/spinlock.c:184 hardirqs last disabled at (74548): [] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline] hardirqs last disabled at (74548): [] _raw_spin_lock_irqsave+0x74/0xc0 kernel/locking/spinlock.c:152 softirqs last enabled at (73496): [] update_defense_level+0x569/0x12f0 net/netfilter/ipvs/ip_vs_ctl.c:209 softirqs last disabled at (73494): [] update_defense_level+0x14a/0x12f0 net/netfilter/ipvs/ip_vs_ctl.c:113 CPU: 0 PID: 4 Comm: kworker/0:0 Not tainted 4.17.0-rc2+ #26 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: kacpi_notify acpi_os_execute_deferred Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1b9/0x294 lib/dump_stack.c:113 ___might_sleep.cold.87+0x11f/0x13a kernel/sched/core.c:6188 __might_sleep+0x95/0x190 kernel/sched/core.c:6141 slab_pre_alloc_hook mm/slab.h:421 [inline] slab_alloc mm/slab.c:3378 [inline] __do_kmalloc mm/slab.c:3716 [inline] __kmalloc+0x2b9/0x760 mm/slab.c:3727 kmalloc_array include/linux/slab.h:631 [inline] kcalloc include/linux/slab.h:642 [inline] numa_crng_init drivers/char/random.c:798 [inline] crng_reseed+0x427/0x920 drivers/char/random.c:923 credit_entropy_bits+0x98d/0xa30 drivers/char/random.c:708 add_timer_randomness+0x26b/0x320 drivers/char/random.c:1133 add_input_randomness+0xce/0x3e0 drivers/char/random.c:1148 input_handle_event+0xb3/0x1210 drivers/input/input.c:375 input_event+0x7b/0xa0 drivers/input/input.c:436 input_report_key include/linux/input.h:393 [inline] acpi_button_notify+0x17a/0x360 drivers/acpi/button.c:435 acpi_device_notify drivers/acpi/bus.c:464 [inline] acpi_device_notify_fixed+0x68/0x80 drivers/acpi/bus.c:472 acpi_os_execute_deferred+0x57/0x80 drivers/acpi/osl.c:830 process_one_work+0xc1e/0x1b50 kernel/workqueue.c:2145 worker_thread+0x1cc/0x1440 kernel/workqueue.c:2279 kthread+0x345/0x410 kernel/kthread.c:238 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:412 random: crng init done IPVS: ftp: loaded support on port[0] = 21 netlink: 'syz-executor7': attribute type 12 has an invalid length. ieee80211 phy6: Selected rate control algorithm 'minstrel_ht' IPVS: ftp: loaded support on port[0] = 21 device bridge0 entered promiscuous mode netlink: 'syz-executor7': attribute type 12 has an invalid length. ieee80211 phy7: Selected rate control algorithm 'minstrel_ht' device bridge0 left promiscuous mode dccp_close: ABORT with 1 bytes unread TCP: request_sock_TCPv6: Possible SYN flooding on port 20002. Sending cookies. Check SNMP counters. IPv4: Oversized IP packet from 127.0.0.1 IPv4: Oversized IP packet from 127.0.0.1 IPVS: set_ctl: invalid protocol: 124 0.0.0.0:20002 wrr IPVS: set_ctl: invalid protocol: 124 0.0.0.0:20002 wrr ================================================================== BUG: KASAN: slab-out-of-bounds in ipv6_addr_equal include/net/ipv6.h:508 [inline] BUG: KASAN: slab-out-of-bounds in __sctp_v6_cmp_addr+0x4c7/0x530 net/sctp/ipv6.c:580 Read of size 8 at addr ffff8801d6e640d0 by task syz-executor2/10213 CPU: 1 PID: 10213 Comm: syz-executor2 Tainted: G W 4.17.0-rc2+ #26 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+0x1b9/0x294 lib/dump_stack.c:113 print_address_description+0x6c/0x20b mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.7+0x242/0x2fe mm/kasan/report.c:412 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433 sit: non-ECT from 0.0.0.0 with TOS=0x1 ipv6_addr_equal include/net/ipv6.h:508 [inline] __sctp_v6_cmp_addr+0x4c7/0x530 net/sctp/ipv6.c:580 sctp_inet6_cmp_addr+0x169/0x1a0 net/sctp/ipv6.c:898 sctp_bind_addr_match+0x20b/0x400 net/sctp/bind_addr.c:330 sit: non-ECT from 0.0.0.0 with TOS=0x1 sctp_do_bind+0x1c0/0x5f0 net/sctp/socket.c:427 sctp_bindx_add+0x90/0x1a0 net/sctp/socket.c:529 sctp_setsockopt_bindx+0x2ad/0x320 net/sctp/socket.c:1056 sctp_setsockopt+0x12c4/0x6b00 net/sctp/socket.c:4222 sock_common_setsockopt+0x9a/0xe0 net/core/sock.c:3042 __sys_setsockopt+0x1bd/0x390 net/socket.c:1903 __do_sys_setsockopt net/socket.c:1914 [inline] __se_sys_setsockopt net/socket.c:1911 [inline] __x64_sys_setsockopt+0xbe/0x150 net/socket.c:1911 do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x455979 RSP: 002b:00007fde87a43c68 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 ieee80211 phy8: Selected rate control algorithm 'minstrel_ht' RAX: ffffffffffffffda RBX: 00007fde87a446d4 RCX: 0000000000455979 RDX: 0000000000000064 RSI: 0000000000000084 RDI: 0000000000000013 RBP: 000000000072bf50 R08: 0000000000000010 R09: 0000000000000000 R10: 0000000020223fd4 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000616 R14: 00000000006fd2b0 R15: 0000000000000001 Allocated by task 10213: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc+0xc4/0xe0 mm/kasan/kasan.c:553 __do_kmalloc_node mm/slab.c:3682 [inline] __kmalloc_node+0x47/0x70 mm/slab.c:3689 kmalloc_node include/linux/slab.h:554 [inline] kvmalloc_node+0x6b/0x100 mm/util.c:421 kvmalloc include/linux/mm.h:550 [inline] vmemdup_user+0x2d/0xa0 mm/util.c:186 sctp_setsockopt_bindx+0x5d/0x320 net/sctp/socket.c:1020 sctp_setsockopt+0x12c4/0x6b00 net/sctp/socket.c:4222 sock_common_setsockopt+0x9a/0xe0 net/core/sock.c:3042 __sys_setsockopt+0x1bd/0x390 net/socket.c:1903 __do_sys_setsockopt net/socket.c:1914 [inline] __se_sys_setsockopt net/socket.c:1911 [inline] __x64_sys_setsockopt+0xbe/0x150 net/socket.c:1911 do_syscall_64+0x1b1/0x800 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 8682: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x11a/0x170 mm/kasan/kasan.c:521 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:528 __cache_free mm/slab.c:3498 [inline] kfree+0xd9/0x260 mm/slab.c:3813 shmem_destroy_callback+0xa2/0xc0 mm/shmem.c:3865 __rcu_reclaim kernel/rcu/rcu.h:178 [inline] rcu_do_batch kernel/rcu/tree.c:2675 [inline] invoke_rcu_callbacks kernel/rcu/tree.c:2930 [inline] __rcu_process_callbacks kernel/rcu/tree.c:2897 [inline] rcu_process_callbacks+0x941/0x15f0 kernel/rcu/tree.c:2914 __do_softirq+0x2e0/0xaf5 kernel/softirq.c:285 The buggy address belongs to the object at ffff8801d6e640c0 which belongs to the cache kmalloc-32 of size 32 The buggy address is located 16 bytes inside of 32-byte region [ffff8801d6e640c0, ffff8801d6e640e0) The buggy address belongs to the page: page:ffffea00075b9900 count:1 mapcount:0 mapping:ffff8801d6e64000 index:0xffff8801d6e64fc1 flags: 0x2fffc0000000100(slab) raw: 02fffc0000000100 ffff8801d6e64000 ffff8801d6e64fc1 0000000100000022 raw: ffffea00075b8160 ffffea00075ad1e0 ffff8801da8001c0 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801d6e63f80: fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc fc ffff8801d6e64000: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc >ffff8801d6e64080: fb fb fb fb fc fc fc fc 00 00 fc fc fc fc fc fc ^ ffff8801d6e64100: fb fb fb fb fc fc fc fc 00 00 fc fc fc fc fc fc ffff8801d6e64180: 00 00 fc fc fc fc fc fc fb fb fb fb fc fc fc fc ==================================================================