ffff8801cb971f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [] __vfs_read+0x103/0x670 fs/read_write.c:452 BUG: KASAN: slab-out-of-bounds in __read_once_size include/linux/compiler.h:243 [inline] at addr ffff8801cb972064 BUG: KASAN: slab-out-of-bounds in atomic_read arch/x86/include/asm/atomic.h:26 [inline] at addr ffff8801cb972064 BUG: KASAN: slab-out-of-bounds in virt_spin_lock arch/x86/include/asm/qspinlock.h:56 [inline] at addr ffff8801cb972064 BUG: KASAN: slab-out-of-bounds in native_queued_spin_lock_slowpath+0x6a1/0x6c0 kernel/locking/qspinlock.c:421 at addr ffff8801cb972064 ffffffff8153a45c ffffed003972e40c ffff8801d77ff640 0000000000000000 ^ set_track mm/kasan/kasan.c:507 [inline] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:598 [] kasan_object_err+0x1c/0x70 mm/kasan/report.c:160 >ffff8801cb972000: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 ffff8801cb971f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [] sg_finish_rem_req+0x295/0x340 drivers/scsi/sg.c:1838 ffff8801cb971f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [] sg_read+0xa1c/0x1440 drivers/scsi/sg.c:527 ffff8801cb972060 ffffed003972e40c ffff8801cb972064 ffff8801c0e7f978 slab_post_alloc_hook mm/slab.h:417 [inline] slab_alloc_node mm/slub.c:2715 [inline] slab_alloc mm/slub.c:2723 [inline] kmem_cache_alloc+0xba/0x290 mm/slub.c:2728 set_track mm/kasan/kasan.c:507 [inline] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:598 sg_fasync+0x86/0xb0 drivers/scsi/sg.c:1203 [] vfs_read+0x11e/0x380 fs/read_write.c:475 [] entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124 ================================================================== [] sg_read+0xa1c/0x1440 drivers/scsi/sg.c:527 entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124 [] vfs_read+0x11e/0x380 fs/read_write.c:475 sg_fasync+0x86/0xb0 drivers/scsi/sg.c:1203 ffff8801cb971f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [] sg_read+0xa1c/0x1440 drivers/scsi/sg.c:527 ffffffff8153a45c ffffed003972e40c ffff8801d77ff640 0000000000000000 fasync_alloc fs/fcntl.c:604 [inline] fasync_add_entry fs/fcntl.c:662 [inline] fasync_helper+0x37/0xb0 fs/fcntl.c:691 Read of size 4 by task syz-executor7/3662 BUG: KASAN: slab-out-of-bounds in __read_once_size include/linux/compiler.h:243 [inline] at addr ffff8801cb972064 BUG: KASAN: slab-out-of-bounds in atomic_read arch/x86/include/asm/atomic.h:26 [inline] at addr ffff8801cb972064 BUG: KASAN: slab-out-of-bounds in virt_spin_lock arch/x86/include/asm/qspinlock.h:56 [inline] at addr ffff8801cb972064 BUG: KASAN: slab-out-of-bounds in native_queued_spin_lock_slowpath+0x6a1/0x6c0 kernel/locking/qspinlock.c:421 at addr ffff8801cb972064 PID = 3662 entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124 ffffffff8153a45c ffffed003972e40c ffff8801d77ff640 0000000000000000 (stack is not available) ffff8801cb971f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== C_SYSC_fcntl64 fs/compat.c:469 [inline] compat_SyS_fcntl64+0xce/0x4f0 fs/compat.c:403 Read of size 4 by task syz-executor7/3662 ^ save_stack+0x43/0xd0 mm/kasan/kasan.c:495 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:537 ================================================================== [] do_syscall_32_irqs_on arch/x86/entry/common.c:322 [inline] [] do_fast_syscall_32+0x2f7/0x890 arch/x86/entry/common.c:384 [] vfs_read+0x11e/0x380 fs/read_write.c:475 PID = 3662 Memory state around the buggy address: [] kasan_object_err+0x1c/0x70 mm/kasan/report.c:160 Object at ffff8801cb972000, in cache fasync_cache size: 96 ================================================================== do_syscall_32_irqs_on arch/x86/entry/common.c:322 [inline] do_fast_syscall_32+0x2f7/0x890 arch/x86/entry/common.c:384 [] sg_finish_rem_req+0x295/0x340 drivers/scsi/sg.c:1838 entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124 [] do_syscall_32_irqs_on arch/x86/entry/common.c:322 [inline] [] do_fast_syscall_32+0x2f7/0x890 arch/x86/entry/common.c:384 [] entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124 PID = 3662 entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124 [] kasan_report mm/kasan/report.c:329 [inline] [] __asan_report_load4_noabort+0x29/0x30 mm/kasan/report.c:329 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 ^ [] entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124 ^ entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124 [] SYSC_read fs/read_write.c:591 [inline] [] SyS_read+0xd9/0x1b0 fs/read_write.c:584 [] SYSC_read fs/read_write.c:591 [inline] [] SyS_read+0xd9/0x1b0 fs/read_write.c:584 Allocated: sg_fasync+0x86/0xb0 drivers/scsi/sg.c:1203 [] __vfs_read+0x103/0x670 fs/read_write.c:452 [] kasan_report mm/kasan/report.c:329 [inline] [] __asan_report_load4_noabort+0x29/0x30 mm/kasan/report.c:329 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:537 [] pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:663 [inline] [] queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:28 [inline] [] queued_spin_lock include/asm-generic/qspinlock.h:103 [inline] [] queued_write_lock_slowpath+0x116/0x150 kernel/locking/qrwlock.c:115 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [] kasan_report mm/kasan/report.c:329 [inline] [] __asan_report_load4_noabort+0x29/0x30 mm/kasan/report.c:329 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 [] kasan_object_err+0x1c/0x70 mm/kasan/report.c:160 ffffffff8153a45c ffffed003972e40c ffff8801d77ff640 0000000000000000 ffff8801cb972080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc PID = 0 [] kasan_report mm/kasan/report.c:329 [inline] [] __asan_report_load4_noabort+0x29/0x30 mm/kasan/report.c:329 sg_fasync+0x86/0xb0 drivers/scsi/sg.c:1203 slab_post_alloc_hook mm/slab.h:417 [inline] slab_alloc_node mm/slub.c:2715 [inline] slab_alloc mm/slub.c:2723 [inline] kmem_cache_alloc+0xba/0x290 mm/slub.c:2728 [] do_syscall_32_irqs_on arch/x86/entry/common.c:322 [inline] [] do_fast_syscall_32+0x2f7/0x890 arch/x86/entry/common.c:384 ffff8801cb971f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [] sg_finish_rem_req+0x295/0x340 drivers/scsi/sg.c:1838 [] kasan_report mm/kasan/report.c:329 [inline] [] __asan_report_load4_noabort+0x29/0x30 mm/kasan/report.c:329 CPU: 1 PID: 3662 Comm: syz-executor7 Tainted: G B 4.9.70-g9542d2a #5 [] print_address_description mm/kasan/report.c:198 [inline] [] kasan_report_error mm/kasan/report.c:287 [inline] [] kasan_report.part.1+0x21c/0x500 mm/kasan/report.c:309 [] print_address_description mm/kasan/report.c:198 [inline] [] kasan_report_error mm/kasan/report.c:287 [inline] [] kasan_report.part.1+0x21c/0x500 mm/kasan/report.c:309 do_syscall_32_irqs_on arch/x86/entry/common.c:322 [inline] do_fast_syscall_32+0x2f7/0x890 arch/x86/entry/common.c:384 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 [] __raw_write_lock_irqsave include/linux/rwlock_api_smp.h:187 [inline] [] _raw_write_lock_irqsave+0x56/0x62 kernel/locking/spinlock.c:303 Memory state around the buggy address: Read of size 4 by task syz-executor7/3662 ^ ffff8801cb972060 ffffed003972e40c ffff8801cb972064 ffff8801c0e7f978 ffff8801cb971f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8801cb972060 ffffed003972e40c ffff8801cb972064 ffff8801c0e7f978 ffff8801cb971f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [] sg_read+0xa1c/0x1440 drivers/scsi/sg.c:527 >ffff8801cb972000: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc ================================================================== [] __vfs_read+0x103/0x670 fs/read_write.c:452 [] do_syscall_32_irqs_on arch/x86/entry/common.c:322 [inline] [] do_fast_syscall_32+0x2f7/0x890 arch/x86/entry/common.c:384 Memory state around the buggy address: [] print_address_description mm/kasan/report.c:198 [inline] [] kasan_report_error mm/kasan/report.c:287 [inline] [] kasan_report.part.1+0x21c/0x500 mm/kasan/report.c:309 [] kasan_report mm/kasan/report.c:329 [inline] [] __asan_report_load4_noabort+0x29/0x30 mm/kasan/report.c:329 Allocated: sg_fasync+0x86/0xb0 drivers/scsi/sg.c:1203 [] print_address_description mm/kasan/report.c:198 [inline] [] kasan_report_error mm/kasan/report.c:287 [inline] [] kasan_report.part.1+0x21c/0x500 mm/kasan/report.c:309 ffffffff8153a45c ffffed003972e40c ffff8801d77ff640 0000000000000000 PID = 3662 sg_fasync+0x86/0xb0 drivers/scsi/sg.c:1203 >ffff8801cb972000: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc save_stack+0x43/0xd0 mm/kasan/kasan.c:495 ^ ffff8801cb971f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [] kasan_report mm/kasan/report.c:329 [inline] [] __asan_report_load4_noabort+0x29/0x30 mm/kasan/report.c:329 ffff8801cb971f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8801c0e7f950 ffffffff81d90a29 ffff8801d77ff640 ffff8801cb972000 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 Freed: Memory state around the buggy address: [] print_address_description mm/kasan/report.c:198 [inline] [] kasan_report_error mm/kasan/report.c:287 [inline] [] kasan_report.part.1+0x21c/0x500 mm/kasan/report.c:309 ^ [] do_syscall_32_irqs_on arch/x86/entry/common.c:322 [inline] [] do_fast_syscall_32+0x2f7/0x890 arch/x86/entry/common.c:384 ================================================================== [] __read_once_size include/linux/compiler.h:243 [inline] [] atomic_read arch/x86/include/asm/atomic.h:26 [inline] [] virt_spin_lock arch/x86/include/asm/qspinlock.h:56 [inline] [] native_queued_spin_lock_slowpath+0x6a1/0x6c0 kernel/locking/qspinlock.c:421 ^ [] do_syscall_32_irqs_on arch/x86/entry/common.c:322 [inline] [] do_fast_syscall_32+0x2f7/0x890 arch/x86/entry/common.c:384 fasync_alloc fs/fcntl.c:604 [inline] fasync_add_entry fs/fcntl.c:662 [inline] fasync_helper+0x37/0xb0 fs/fcntl.c:691 [] kasan_object_err+0x1c/0x70 mm/kasan/report.c:160 entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124 ^ Object at ffff8801cb972000, in cache fasync_cache size: 96 ffff8801cb971f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [] __raw_write_lock_irqsave include/linux/rwlock_api_smp.h:187 [inline] [] _raw_write_lock_irqsave+0x56/0x62 kernel/locking/spinlock.c:303 entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124 ffff8801cb971f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 set_track mm/kasan/kasan.c:507 [inline] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:598 PID = 0 [] sg_read+0xa1c/0x1440 drivers/scsi/sg.c:527 [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] do_syscall_32_irqs_on arch/x86/entry/common.c:322 [inline] [] do_fast_syscall_32+0x2f7/0x890 arch/x86/entry/common.c:384 [] __vfs_read+0x103/0x670 fs/read_write.c:452 [] print_address_description mm/kasan/report.c:198 [inline] [] kasan_report_error mm/kasan/report.c:287 [inline] [] kasan_report.part.1+0x21c/0x500 mm/kasan/report.c:309 [] SYSC_read fs/read_write.c:591 [inline] [] SyS_read+0xd9/0x1b0 fs/read_write.c:584 [] kasan_report mm/kasan/report.c:329 [inline] [] __asan_report_load4_noabort+0x29/0x30 mm/kasan/report.c:329 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:537 (stack is not available) [] sg_finish_rem_req+0x295/0x340 drivers/scsi/sg.c:1838 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:537 [] kasan_report mm/kasan/report.c:329 [inline] [] __asan_report_load4_noabort+0x29/0x30 mm/kasan/report.c:329 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:537 [] sg_remove_request+0x70/0x120 drivers/scsi/sg.c:2122 ================================================================== [] sg_remove_request+0x70/0x120 drivers/scsi/sg.c:2122 [] pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:663 [inline] [] queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:28 [inline] [] queued_spin_lock include/asm-generic/qspinlock.h:103 [inline] [] queued_write_lock_slowpath+0x116/0x150 kernel/locking/qrwlock.c:115 ffff8801cb971f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 Memory state around the buggy address: Read of size 4 by task syz-executor7/3662 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:537 [] kasan_report mm/kasan/report.c:329 [inline] [] __asan_report_load4_noabort+0x29/0x30 mm/kasan/report.c:329 ffff8801cb971f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [] kasan_object_err+0x1c/0x70 mm/kasan/report.c:160 do_syscall_32_irqs_on arch/x86/entry/common.c:322 [inline] do_fast_syscall_32+0x2f7/0x890 arch/x86/entry/common.c:384 [] kasan_report mm/kasan/report.c:329 [inline] [] __asan_report_load4_noabort+0x29/0x30 mm/kasan/report.c:329 ffff8801cb971f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8801cb971f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [] vfs_read+0x11e/0x380 fs/read_write.c:475 C_SYSC_fcntl64 fs/compat.c:469 [inline] compat_SyS_fcntl64+0xce/0x4f0 fs/compat.c:403 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [] sg_read+0xa1c/0x1440 drivers/scsi/sg.c:527 [] kasan_report mm/kasan/report.c:329 [inline] [] __asan_report_load4_noabort+0x29/0x30 mm/kasan/report.c:329 sg_fasync+0x86/0xb0 drivers/scsi/sg.c:1203 [] print_address_description mm/kasan/report.c:198 [inline] [] kasan_report_error mm/kasan/report.c:287 [inline] [] kasan_report.part.1+0x21c/0x500 mm/kasan/report.c:309 ffff8801cb972100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [] sg_read+0xa1c/0x1440 drivers/scsi/sg.c:527 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [] __read_once_size include/linux/compiler.h:243 [inline] [] atomic_read arch/x86/include/asm/atomic.h:26 [inline] [] virt_spin_lock arch/x86/include/asm/qspinlock.h:56 [inline] [] native_queued_spin_lock_slowpath+0x6a1/0x6c0 kernel/locking/qspinlock.c:421 [] print_address_description mm/kasan/report.c:198 [inline] [] kasan_report_error mm/kasan/report.c:287 [inline] [] kasan_report.part.1+0x21c/0x500 mm/kasan/report.c:309 ================================================================== [] sg_finish_rem_req+0x295/0x340 drivers/scsi/sg.c:1838 >ffff8801cb972000: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc [] __raw_write_lock_irqsave include/linux/rwlock_api_smp.h:187 [inline] [] _raw_write_lock_irqsave+0x56/0x62 kernel/locking/spinlock.c:303 Memory state around the buggy address: [] kasan_object_err+0x1c/0x70 mm/kasan/report.c:160 PID = 0 [] do_syscall_32_irqs_on arch/x86/entry/common.c:322 [inline] [] do_fast_syscall_32+0x2f7/0x890 arch/x86/entry/common.c:384 [] entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124 ffff8801cb972080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801c0e7f950 ffffffff81d90a29 ffff8801d77ff640 ffff8801cb972000 ffff8801cb971f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 slab_post_alloc_hook mm/slab.h:417 [inline] slab_alloc_node mm/slub.c:2715 [inline] slab_alloc mm/slub.c:2723 [inline] kmem_cache_alloc+0xba/0x290 mm/slub.c:2728 [] sg_remove_request+0x70/0x120 drivers/scsi/sg.c:2122 ================================================================== Object at ffff8801cb972000, in cache fasync_cache size: 96 ffff8801cb971f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [] kasan_report mm/kasan/report.c:329 [inline] [] __asan_report_load4_noabort+0x29/0x30 mm/kasan/report.c:329 set_track mm/kasan/kasan.c:507 [inline] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:598 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 [] do_syscall_32_irqs_on arch/x86/entry/common.c:322 [inline] [] do_fast_syscall_32+0x2f7/0x890 arch/x86/entry/common.c:384 [] kasan_object_err+0x1c/0x70 mm/kasan/report.c:160 fasync_alloc fs/fcntl.c:604 [inline] fasync_add_entry fs/fcntl.c:662 [inline] fasync_helper+0x37/0xb0 fs/fcntl.c:691 [] entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124 PID = 0 [] queued_write_lock include/asm-generic/qrwlock.h:134 [inline] [] do_raw_write_lock+0xc7/0x1d0 kernel/locking/spinlock_debug.c:203 [] pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:663 [inline] [] queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:28 [inline] [] queued_spin_lock include/asm-generic/qspinlock.h:103 [inline] [] queued_write_lock_slowpath+0x116/0x150 kernel/locking/qrwlock.c:115 Call Trace: ffff8801cb971f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [] __raw_write_lock_irqsave include/linux/rwlock_api_smp.h:187 [inline] [] _raw_write_lock_irqsave+0x56/0x62 kernel/locking/spinlock.c:303 [] entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124 Allocated: ffff8801cb972060 ffffed003972e40c ffff8801cb972064 ffff8801c0e7f978 >ffff8801cb972000: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc ^ do_syscall_32_irqs_on arch/x86/entry/common.c:322 [inline] do_fast_syscall_32+0x2f7/0x890 arch/x86/entry/common.c:384 [] queued_write_lock include/asm-generic/qrwlock.h:134 [inline] [] do_raw_write_lock+0xc7/0x1d0 kernel/locking/spinlock_debug.c:203 [] __vfs_read+0x103/0x670 fs/read_write.c:452 [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 ffff8801cb972100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8801cb972100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8801cb972060 ffffed003972e40c ffff8801cb972064 ffff8801c0e7f978 >ffff8801cb972000: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc [] sg_read+0xa1c/0x1440 drivers/scsi/sg.c:527 [] kasan_report mm/kasan/report.c:329 [inline] [] __asan_report_load4_noabort+0x29/0x30 mm/kasan/report.c:329 [] do_syscall_32_irqs_on arch/x86/entry/common.c:322 [inline] [] do_fast_syscall_32+0x2f7/0x890 arch/x86/entry/common.c:384 [] vfs_read+0x11e/0x380 fs/read_write.c:475 fasync_alloc fs/fcntl.c:604 [inline] fasync_add_entry fs/fcntl.c:662 [inline] fasync_helper+0x37/0xb0 fs/fcntl.c:691 [] __raw_write_lock_irqsave include/linux/rwlock_api_smp.h:187 [inline] [] _raw_write_lock_irqsave+0x56/0x62 kernel/locking/spinlock.c:303 Read of size 4 by task syz-executor7/3662 ================================================================== [] __vfs_read+0x103/0x670 fs/read_write.c:452 [] queued_write_lock include/asm-generic/qrwlock.h:134 [inline] [] do_raw_write_lock+0xc7/0x1d0 kernel/locking/spinlock_debug.c:203 entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124 ffff8801cb972100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [] print_address_description mm/kasan/report.c:198 [inline] [] kasan_report_error mm/kasan/report.c:287 [inline] [] kasan_report.part.1+0x21c/0x500 mm/kasan/report.c:309 [] pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:663 [inline] [] queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:28 [inline] [] queued_spin_lock include/asm-generic/qspinlock.h:103 [inline] [] queued_write_lock_slowpath+0x116/0x150 kernel/locking/qrwlock.c:115 ================================================================== [] __vfs_read+0x103/0x670 fs/read_write.c:452 Call Trace: Memory state around the buggy address: Call Trace: ffff8801cb971f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [] __vfs_read+0x103/0x670 fs/read_write.c:452 Call Trace: Object at ffff8801cb972000, in cache fasync_cache size: 96 ffff8801cb971f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8801cb972080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [] print_address_description mm/kasan/report.c:198 [inline] [] kasan_report_error mm/kasan/report.c:287 [inline] [] kasan_report.part.1+0x21c/0x500 mm/kasan/report.c:309 [] queued_write_lock include/asm-generic/qrwlock.h:134 [inline] [] do_raw_write_lock+0xc7/0x1d0 kernel/locking/spinlock_debug.c:203 [] __vfs_read+0x103/0x670 fs/read_write.c:452 ffff8801c0e7f950 ffffffff81d90a29 ffff8801d77ff640 ffff8801cb972000 ffff8801cb972080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [] sg_finish_rem_req+0x295/0x340 drivers/scsi/sg.c:1838 fasync_alloc fs/fcntl.c:604 [inline] fasync_add_entry fs/fcntl.c:662 [inline] fasync_helper+0x37/0xb0 fs/fcntl.c:691 Object at ffff8801cb972000, in cache fasync_cache size: 96 CPU: 1 PID: 3662 Comm: syz-executor7 Tainted: G B 4.9.70-g9542d2a #5 Object at ffff8801cb972000, in cache fasync_cache size: 96 >ffff8801cb972000: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc do_syscall_32_irqs_on arch/x86/entry/common.c:322 [inline] do_fast_syscall_32+0x2f7/0x890 arch/x86/entry/common.c:384 Call Trace: [] print_address_description mm/kasan/report.c:198 [inline] [] kasan_report_error mm/kasan/report.c:287 [inline] [] kasan_report.part.1+0x21c/0x500 mm/kasan/report.c:309 [] queued_write_lock include/asm-generic/qrwlock.h:134 [inline] [] do_raw_write_lock+0xc7/0x1d0 kernel/locking/spinlock_debug.c:203 [] vfs_read+0x11e/0x380 fs/read_write.c:475 ^ [] entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124 Memory state around the buggy address: BUG: KASAN: slab-out-of-bounds in __read_once_size include/linux/compiler.h:243 [inline] at addr ffff8801cb972064 BUG: KASAN: slab-out-of-bounds in atomic_read arch/x86/include/asm/atomic.h:26 [inline] at addr ffff8801cb972064 BUG: KASAN: slab-out-of-bounds in virt_spin_lock arch/x86/include/asm/qspinlock.h:56 [inline] at addr ffff8801cb972064 BUG: KASAN: slab-out-of-bounds in native_queued_spin_lock_slowpath+0x6a1/0x6c0 kernel/locking/qspinlock.c:421 at addr ffff8801cb972064 [] entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124 [] print_address_description mm/kasan/report.c:198 [inline] [] kasan_report_error mm/kasan/report.c:287 [inline] [] kasan_report.part.1+0x21c/0x500 mm/kasan/report.c:309 entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124 [] sg_read+0xa1c/0x1440 drivers/scsi/sg.c:527 ffff8801cb972080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc (stack is not available) C_SYSC_fcntl64 fs/compat.c:469 [inline] compat_SyS_fcntl64+0xce/0x4f0 fs/compat.c:403 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 ffff8801cb971f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [] __raw_write_lock_irqsave include/linux/rwlock_api_smp.h:187 [inline] [] _raw_write_lock_irqsave+0x56/0x62 kernel/locking/spinlock.c:303 Object at ffff8801cb972000, in cache fasync_cache size: 96 ffff8801cb972060 ffffed003972e40c ffff8801cb972064 ffff8801c0e7f978 Freed: ^ ffff8801cb971f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== Object at ffff8801cb972000, in cache fasync_cache size: 96 [] entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 [] print_address_description mm/kasan/report.c:198 [inline] [] kasan_report_error mm/kasan/report.c:287 [inline] [] kasan_report.part.1+0x21c/0x500 mm/kasan/report.c:309 [] print_address_description mm/kasan/report.c:198 [inline] [] kasan_report_error mm/kasan/report.c:287 [inline] [] kasan_report.part.1+0x21c/0x500 mm/kasan/report.c:309 [] kasan_report mm/kasan/report.c:329 [inline] [] __asan_report_load4_noabort+0x29/0x30 mm/kasan/report.c:329 ffff8801cb971f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [] queued_write_lock include/asm-generic/qrwlock.h:134 [inline] [] do_raw_write_lock+0xc7/0x1d0 kernel/locking/spinlock_debug.c:203 [] entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:537 [] kasan_object_err+0x1c/0x70 mm/kasan/report.c:160 Memory state around the buggy address: [] kasan_object_err+0x1c/0x70 mm/kasan/report.c:160 ================================================================== [] kasan_object_err+0x1c/0x70 mm/kasan/report.c:160 Freed: ffff8801cb971f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [] sg_finish_rem_req+0x295/0x340 drivers/scsi/sg.c:1838 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 ffff8801cb972060 ffffed003972e40c ffff8801cb972064 ffff8801c0e7f978 ^ [] sg_remove_request+0x70/0x120 drivers/scsi/sg.c:2122 [] vfs_read+0x11e/0x380 fs/read_write.c:475 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 [] pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:663 [inline] [] queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:28 [inline] [] queued_spin_lock include/asm-generic/qspinlock.h:103 [inline] [] queued_write_lock_slowpath+0x116/0x150 kernel/locking/qrwlock.c:115 [] queued_write_lock include/asm-generic/qrwlock.h:134 [inline] [] do_raw_write_lock+0xc7/0x1d0 kernel/locking/spinlock_debug.c:203 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 ffff8801cb971f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [] sg_remove_request+0x70/0x120 drivers/scsi/sg.c:2122 fasync_alloc fs/fcntl.c:604 [inline] fasync_add_entry fs/fcntl.c:662 [inline] fasync_helper+0x37/0xb0 fs/fcntl.c:691 [] __vfs_read+0x103/0x670 fs/read_write.c:452 [] print_address_description mm/kasan/report.c:198 [inline] [] kasan_report_error mm/kasan/report.c:287 [inline] [] kasan_report.part.1+0x21c/0x500 mm/kasan/report.c:309 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ffff8801c0e7f950 ffffffff81d90a29 ffff8801d77ff640 ffff8801cb972000 fasync_alloc fs/fcntl.c:604 [inline] fasync_add_entry fs/fcntl.c:662 [inline] fasync_helper+0x37/0xb0 fs/fcntl.c:691 [] __read_once_size include/linux/compiler.h:243 [inline] [] atomic_read arch/x86/include/asm/atomic.h:26 [inline] [] virt_spin_lock arch/x86/include/asm/qspinlock.h:56 [inline] [] native_queued_spin_lock_slowpath+0x6a1/0x6c0 kernel/locking/qspinlock.c:421 [] entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124 [] entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124 ffff8801cb971f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [] sg_remove_request+0x70/0x120 drivers/scsi/sg.c:2122 set_track mm/kasan/kasan.c:507 [inline] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:598 [] SYSC_read fs/read_write.c:591 [inline] [] SyS_read+0xd9/0x1b0 fs/read_write.c:584 ^ save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 [] sg_finish_rem_req+0x295/0x340 drivers/scsi/sg.c:1838 ffff8801cb971f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Allocated: [] sg_read+0xa1c/0x1440 drivers/scsi/sg.c:527 Freed: do_syscall_32_irqs_on arch/x86/entry/common.c:322 [inline] do_fast_syscall_32+0x2f7/0x890 arch/x86/entry/common.c:384 [] do_syscall_32_irqs_on arch/x86/entry/common.c:322 [inline] [] do_fast_syscall_32+0x2f7/0x890 arch/x86/entry/common.c:384 Read of size 4 by task syz-executor7/3662 [] sg_read+0xa1c/0x1440 drivers/scsi/sg.c:527 [] pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:663 [inline] [] queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:28 [inline] [] queued_spin_lock include/asm-generic/qspinlock.h:103 [inline] [] queued_write_lock_slowpath+0x116/0x150 kernel/locking/qrwlock.c:115 Read of size 4 by task syz-executor7/3662 Read of size 4 by task syz-executor7/3662 Freed: >ffff8801cb972000: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc [] __raw_write_lock_irqsave include/linux/rwlock_api_smp.h:187 [inline] [] _raw_write_lock_irqsave+0x56/0x62 kernel/locking/spinlock.c:303 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 C_SYSC_fcntl64 fs/compat.c:469 [inline] compat_SyS_fcntl64+0xce/0x4f0 fs/compat.c:403 ffff8801cb971f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] SYSC_read fs/read_write.c:591 [inline] [] SyS_read+0xd9/0x1b0 fs/read_write.c:584 fasync_alloc fs/fcntl.c:604 [inline] fasync_add_entry fs/fcntl.c:662 [inline] fasync_helper+0x37/0xb0 fs/fcntl.c:691 [] __vfs_read+0x103/0x670 fs/read_write.c:452 [] do_syscall_32_irqs_on arch/x86/entry/common.c:322 [inline] [] do_fast_syscall_32+0x2f7/0x890 arch/x86/entry/common.c:384 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 ffff8801cb971f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [] queued_write_lock include/asm-generic/qrwlock.h:134 [inline] [] do_raw_write_lock+0xc7/0x1d0 kernel/locking/spinlock_debug.c:203 slab_post_alloc_hook mm/slab.h:417 [inline] slab_alloc_node mm/slub.c:2715 [inline] slab_alloc mm/slub.c:2723 [inline] kmem_cache_alloc+0xba/0x290 mm/slub.c:2728 [] __read_once_size include/linux/compiler.h:243 [inline] [] atomic_read arch/x86/include/asm/atomic.h:26 [inline] [] virt_spin_lock arch/x86/include/asm/qspinlock.h:56 [inline] [] native_queued_spin_lock_slowpath+0x6a1/0x6c0 kernel/locking/qspinlock.c:421 [] print_address_description mm/kasan/report.c:198 [inline] [] kasan_report_error mm/kasan/report.c:287 [inline] [] kasan_report.part.1+0x21c/0x500 mm/kasan/report.c:309 do_syscall_32_irqs_on arch/x86/entry/common.c:322 [inline] do_fast_syscall_32+0x2f7/0x890 arch/x86/entry/common.c:384 [] sg_remove_request+0x70/0x120 drivers/scsi/sg.c:2122 Read of size 4 by task syz-executor7/3662 ffff8801cb972080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [] sg_read+0xa1c/0x1440 drivers/scsi/sg.c:527 BUG: KASAN: slab-out-of-bounds in __read_once_size include/linux/compiler.h:243 [inline] at addr ffff8801cb972064 BUG: KASAN: slab-out-of-bounds in atomic_read arch/x86/include/asm/atomic.h:26 [inline] at addr ffff8801cb972064 BUG: KASAN: slab-out-of-bounds in virt_spin_lock arch/x86/include/asm/qspinlock.h:56 [inline] at addr ffff8801cb972064 BUG: KASAN: slab-out-of-bounds in native_queued_spin_lock_slowpath+0x6a1/0x6c0 kernel/locking/qspinlock.c:421 at addr ffff8801cb972064 [] sg_read+0xa1c/0x1440 drivers/scsi/sg.c:527 set_track mm/kasan/kasan.c:507 [inline] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:598 ^ [] entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124 slab_post_alloc_hook mm/slab.h:417 [inline] slab_alloc_node mm/slub.c:2715 [inline] slab_alloc mm/slub.c:2723 [inline] kmem_cache_alloc+0xba/0x290 mm/slub.c:2728 [] sg_finish_rem_req+0x295/0x340 drivers/scsi/sg.c:1838 ffff8801cb971f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [] kasan_report mm/kasan/report.c:329 [inline] [] __asan_report_load4_noabort+0x29/0x30 mm/kasan/report.c:329 fasync_alloc fs/fcntl.c:604 [inline] fasync_add_entry fs/fcntl.c:662 [inline] fasync_helper+0x37/0xb0 fs/fcntl.c:691 Read of size 4 by task syz-executor7/3662 ffff8801cb971f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [] sg_remove_request+0x70/0x120 drivers/scsi/sg.c:2122 Call Trace: fasync_alloc fs/fcntl.c:604 [inline] fasync_add_entry fs/fcntl.c:662 [inline] fasync_helper+0x37/0xb0 fs/fcntl.c:691 [] pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:663 [inline] [] queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:28 [inline] [] queued_spin_lock include/asm-generic/qspinlock.h:103 [inline] [] queued_write_lock_slowpath+0x116/0x150 kernel/locking/qrwlock.c:115 ffff8801cb972060 ffffed003972e40c ffff8801cb972064 ffff8801c0e7f978 Freed: ffff8801cb971f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [] pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:663 [inline] [] queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:28 [inline] [] queued_spin_lock include/asm-generic/qspinlock.h:103 [inline] [] queued_write_lock_slowpath+0x116/0x150 kernel/locking/qrwlock.c:115 ================================================================== [] queued_write_lock include/asm-generic/qrwlock.h:134 [inline] [] do_raw_write_lock+0xc7/0x1d0 kernel/locking/spinlock_debug.c:203 [] __vfs_read+0x103/0x670 fs/read_write.c:452 CPU: 1 PID: 3662 Comm: syz-executor7 Tainted: G B 4.9.70-g9542d2a #5 [] pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:663 [inline] [] queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:28 [inline] [] queued_spin_lock include/asm-generic/qspinlock.h:103 [inline] [] queued_write_lock_slowpath+0x116/0x150 kernel/locking/qrwlock.c:115 ffff8801cb971f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Allocated: C_SYSC_fcntl64 fs/compat.c:469 [inline] compat_SyS_fcntl64+0xce/0x4f0 fs/compat.c:403 [] kasan_report mm/kasan/report.c:329 [inline] [] __asan_report_load4_noabort+0x29/0x30 mm/kasan/report.c:329 ================================================================== [] sg_remove_request+0x70/0x120 drivers/scsi/sg.c:2122 PID = 3662 ffff8801cb971f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [] kasan_report mm/kasan/report.c:329 [inline] [] __asan_report_load4_noabort+0x29/0x30 mm/kasan/report.c:329 ================================================================== ^ C_SYSC_fcntl64 fs/compat.c:469 [inline] compat_SyS_fcntl64+0xce/0x4f0 fs/compat.c:403 >ffff8801cb972000: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc [] __raw_write_lock_irqsave include/linux/rwlock_api_smp.h:187 [inline] [] _raw_write_lock_irqsave+0x56/0x62 kernel/locking/spinlock.c:303 Object at ffff8801cb972000, in cache fasync_cache size: 96 ffff8801cb971f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [] __read_once_size include/linux/compiler.h:243 [inline] [] atomic_read arch/x86/include/asm/atomic.h:26 [inline] [] virt_spin_lock arch/x86/include/asm/qspinlock.h:56 [inline] [] native_queued_spin_lock_slowpath+0x6a1/0x6c0 kernel/locking/qspinlock.c:421 ffff8801cb972060 ffffed003972e40c ffff8801cb972064 ffff8801c0e7f978 [] __read_once_size include/linux/compiler.h:243 [inline] [] atomic_read arch/x86/include/asm/atomic.h:26 [inline] [] virt_spin_lock arch/x86/include/asm/qspinlock.h:56 [inline] [] native_queued_spin_lock_slowpath+0x6a1/0x6c0 kernel/locking/qspinlock.c:421 entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124 set_track mm/kasan/kasan.c:507 [inline] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:598 Freed: ffff8801cb971f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [] kasan_report mm/kasan/report.c:329 [inline] [] __asan_report_load4_noabort+0x29/0x30 mm/kasan/report.c:329 sg_fasync+0x86/0xb0 drivers/scsi/sg.c:1203 [] do_syscall_32_irqs_on arch/x86/entry/common.c:322 [inline] [] do_fast_syscall_32+0x2f7/0x890 arch/x86/entry/common.c:384 ffff8801cb971f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [] __raw_write_lock_irqsave include/linux/rwlock_api_smp.h:187 [inline] [] _raw_write_lock_irqsave+0x56/0x62 kernel/locking/spinlock.c:303 PID = 0 [] queued_write_lock include/asm-generic/qrwlock.h:134 [inline] [] do_raw_write_lock+0xc7/0x1d0 kernel/locking/spinlock_debug.c:203 sg_fasync+0x86/0xb0 drivers/scsi/sg.c:1203 Object at ffff8801cb972000, in cache fasync_cache size: 96 ================================================================== [] sg_remove_request+0x70/0x120 drivers/scsi/sg.c:2122 ffff8801cb971f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [] sg_read+0xa1c/0x1440 drivers/scsi/sg.c:527 [] print_address_description mm/kasan/report.c:198 [inline] [] kasan_report_error mm/kasan/report.c:287 [inline] [] kasan_report.part.1+0x21c/0x500 mm/kasan/report.c:309 ffff8801cb972100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc CPU: 1 PID: 3662 Comm: syz-executor7 Tainted: G B 4.9.70-g9542d2a #5 ffffffff8153a45c ffffed003972e40c ffff8801d77ff640 0000000000000000 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124 ffff8801cb971f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [] __raw_write_lock_irqsave include/linux/rwlock_api_smp.h:187 [inline] [] _raw_write_lock_irqsave+0x56/0x62 kernel/locking/spinlock.c:303 fasync_alloc fs/fcntl.c:604 [inline] fasync_add_entry fs/fcntl.c:662 [inline] fasync_helper+0x37/0xb0 fs/fcntl.c:691 [] __vfs_read+0x103/0x670 fs/read_write.c:452 [] kasan_report mm/kasan/report.c:329 [inline] [] __asan_report_load4_noabort+0x29/0x30 mm/kasan/report.c:329 [] __raw_write_lock_irqsave include/linux/rwlock_api_smp.h:187 [inline] [] _raw_write_lock_irqsave+0x56/0x62 kernel/locking/spinlock.c:303 [] __raw_write_lock_irqsave include/linux/rwlock_api_smp.h:187 [inline] [] _raw_write_lock_irqsave+0x56/0x62 kernel/locking/spinlock.c:303 entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124 ffff8801cb971f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 [] kasan_report mm/kasan/report.c:329 [inline] [] __asan_report_load4_noabort+0x29/0x30 mm/kasan/report.c:329 [] do_syscall_32_irqs_on arch/x86/entry/common.c:322 [inline] [] do_fast_syscall_32+0x2f7/0x890 arch/x86/entry/common.c:384 [] sg_finish_rem_req+0x295/0x340 drivers/scsi/sg.c:1838 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 >ffff8801cb972000: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc [] print_address_description mm/kasan/report.c:198 [inline] [] kasan_report_error mm/kasan/report.c:287 [inline] [] kasan_report.part.1+0x21c/0x500 mm/kasan/report.c:309 [] vfs_read+0x11e/0x380 fs/read_write.c:475 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 sg_fasync+0x86/0xb0 drivers/scsi/sg.c:1203 [] vfs_read+0x11e/0x380 fs/read_write.c:475 [] entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124 [] do_syscall_32_irqs_on arch/x86/entry/common.c:322 [inline] [] do_fast_syscall_32+0x2f7/0x890 arch/x86/entry/common.c:384 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 ffffffff8153a45c ffffed003972e40c ffff8801d77ff640 0000000000000000 C_SYSC_fcntl64 fs/compat.c:469 [inline] compat_SyS_fcntl64+0xce/0x4f0 fs/compat.c:403 ffff8801cb971f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [] queued_write_lock include/asm-generic/qrwlock.h:134 [inline] [] do_raw_write_lock+0xc7/0x1d0 kernel/locking/spinlock_debug.c:203 [] entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124 [] do_syscall_32_irqs_on arch/x86/entry/common.c:322 [inline] [] do_fast_syscall_32+0x2f7/0x890 arch/x86/entry/common.c:384 [] queued_write_lock include/asm-generic/qrwlock.h:134 [inline] [] do_raw_write_lock+0xc7/0x1d0 kernel/locking/spinlock_debug.c:203 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:537 ffff8801c0e7f950 ffffffff81d90a29 ffff8801d77ff640 ffff8801cb972000 PID = 0 ffff8801cb971f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [] __vfs_read+0x103/0x670 fs/read_write.c:452 [] vfs_read+0x11e/0x380 fs/read_write.c:475 ^ slab_post_alloc_hook mm/slab.h:417 [inline] slab_alloc_node mm/slub.c:2715 [inline] slab_alloc mm/slub.c:2723 [inline] kmem_cache_alloc+0xba/0x290 mm/slub.c:2728 PID = 3662 C_SYSC_fcntl64 fs/compat.c:469 [inline] compat_SyS_fcntl64+0xce/0x4f0 fs/compat.c:403 ffff8801cb972100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc CPU: 1 PID: 3662 Comm: syz-executor7 Tainted: G B 4.9.70-g9542d2a #5 ffff8801c0e7f950 ffffffff81d90a29 ffff8801d77ff640 ffff8801cb972000 entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124 [] do_syscall_32_irqs_on arch/x86/entry/common.c:322 [inline] [] do_fast_syscall_32+0x2f7/0x890 arch/x86/entry/common.c:384 ffff8801cb971f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [] sg_read+0xa1c/0x1440 drivers/scsi/sg.c:527 ffff8801cb971f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [] pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:663 [inline] [] queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:28 [inline] [] queued_spin_lock include/asm-generic/qspinlock.h:103 [inline] [] queued_write_lock_slowpath+0x116/0x150 kernel/locking/qrwlock.c:115 ffff8801cb972080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124 [] vfs_read+0x11e/0x380 fs/read_write.c:475 Allocated: slab_post_alloc_hook mm/slab.h:417 [inline] slab_alloc_node mm/slub.c:2715 [inline] slab_alloc mm/slub.c:2723 [inline] kmem_cache_alloc+0xba/0x290 mm/slub.c:2728 (stack is not available) [] sg_finish_rem_req+0x295/0x340 drivers/scsi/sg.c:1838 [] do_syscall_32_irqs_on arch/x86/entry/common.c:322 [inline] [] do_fast_syscall_32+0x2f7/0x890 arch/x86/entry/common.c:384 [] sg_read+0xa1c/0x1440 drivers/scsi/sg.c:527 slab_post_alloc_hook mm/slab.h:417 [inline] slab_alloc_node mm/slub.c:2715 [inline] slab_alloc mm/slub.c:2723 [inline] kmem_cache_alloc+0xba/0x290 mm/slub.c:2728 Freed: ffff8801cb971f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [] __vfs_read+0x103/0x670 fs/read_write.c:452 ffffffff8153a45c ffffed003972e40c ffff8801d77ff640 0000000000000000 [] __dump_stack lib/dump_stack.c:15 [inline] [] dump_stack+0xc1/0x128 lib/dump_stack.c:51 [] vfs_read+0x11e/0x380 fs/read_write.c:475 fasync_alloc fs/fcntl.c:604 [inline] fasync_add_entry fs/fcntl.c:662 [inline] fasync_helper+0x37/0xb0 fs/fcntl.c:691 ffff8801cb971f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [] __raw_write_lock_irqsave include/linux/rwlock_api_smp.h:187 [inline] [] _raw_write_lock_irqsave+0x56/0x62 kernel/locking/spinlock.c:303 Object at ffff8801cb972000, in cache fasync_cache size: 96 PID = 0 [] SYSC_read fs/read_write.c:591 [inline] [] SyS_read+0xd9/0x1b0 fs/read_write.c:584 [] queued_write_lock include/asm-generic/qrwlock.h:134 [inline] [] do_raw_write_lock+0xc7/0x1d0 kernel/locking/spinlock_debug.c:203 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 Object at ffff8801cb972000, in cache fasync_cache size: 96 >ffff8801cb972000: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc [] sg_finish_rem_req+0x295/0x340 drivers/scsi/sg.c:1838 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 CPU: 1 PID: 3662 Comm: syz-executor7 Tainted: G B 4.9.70-g9542d2a #5 ffffffff8153a45c ffffed003972e40c ffff8801d77ff640 0000000000000000 >ffff8801cb972000: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc [] sg_remove_request+0x70/0x120 drivers/scsi/sg.c:2122 >ffff8801cb972000: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc [] print_address_description mm/kasan/report.c:198 [inline] [] kasan_report_error mm/kasan/report.c:287 [inline] [] kasan_report.part.1+0x21c/0x500 mm/kasan/report.c:309 ffff8801c0e7f950 ffffffff81d90a29 ffff8801d77ff640 ffff8801cb972000 entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124 [] pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:663 [inline] [] queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:28 [inline] [] queued_spin_lock include/asm-generic/qspinlock.h:103 [inline] [] queued_write_lock_slowpath+0x116/0x150 kernel/locking/qrwlock.c:115 [] kasan_object_err+0x1c/0x70 mm/kasan/report.c:160 Memory state around the buggy address: Read of size 4 by task syz-executor7/3662 >ffff8801cb972000: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc Call Trace: [] SYSC_read fs/read_write.c:591 [inline] [] SyS_read+0xd9/0x1b0 fs/read_write.c:584 [] SYSC_read fs/read_write.c:591 [inline] [] SyS_read+0xd9/0x1b0 fs/read_write.c:584 ================================================================== ffffffff8153a45c ffffed003972e40c ffff8801d77ff640 0000000000000000 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 [] kasan_report mm/kasan/report.c:329 [inline] [] __asan_report_load4_noabort+0x29/0x30 mm/kasan/report.c:329 [] do_syscall_32_irqs_on arch/x86/entry/common.c:322 [inline] [] do_fast_syscall_32+0x2f7/0x890 arch/x86/entry/common.c:384 [] print_address_description mm/kasan/report.c:198 [inline] [] kasan_report_error mm/kasan/report.c:287 [inline] [] kasan_report.part.1+0x21c/0x500 mm/kasan/report.c:309 [] kasan_report mm/kasan/report.c:329 [inline] [] __asan_report_load4_noabort+0x29/0x30 mm/kasan/report.c:329 [] __raw_write_lock_irqsave include/linux/rwlock_api_smp.h:187 [inline] [] _raw_write_lock_irqsave+0x56/0x62 kernel/locking/spinlock.c:303 ffff8801cb972080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [] do_syscall_32_irqs_on arch/x86/entry/common.c:322 [inline] [] do_fast_syscall_32+0x2f7/0x890 arch/x86/entry/common.c:384 ffff8801cb972060 ffffed003972e40c ffff8801cb972064 ffff8801c0e7f978 >ffff8801cb972000: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc [] __raw_write_lock_irqsave include/linux/rwlock_api_smp.h:187 [inline] [] _raw_write_lock_irqsave+0x56/0x62 kernel/locking/spinlock.c:303 ffff8801cb971f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Freed: >ffff8801cb972000: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc [] do_syscall_32_irqs_on arch/x86/entry/common.c:322 [inline] [] do_fast_syscall_32+0x2f7/0x890 arch/x86/entry/common.c:384 ffffffff8153a45c ffffed003972e40c ffff8801d77ff640 0000000000000000 ^ ffff8801cb971f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Memory state around the buggy address: ffff8801cb972100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc Freed: >ffff8801cb972000: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc [] do_syscall_32_irqs_on arch/x86/entry/common.c:322 [inline] [] do_fast_syscall_32+0x2f7/0x890 arch/x86/entry/common.c:384 [] entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124 ffff8801cb971f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [] __read_once_size include/linux/compiler.h:243 [inline] [] atomic_read arch/x86/include/asm/atomic.h:26 [inline] [] virt_spin_lock arch/x86/include/asm/qspinlock.h:56 [inline] [] native_queued_spin_lock_slowpath+0x6a1/0x6c0 kernel/locking/qspinlock.c:421 [] sg_remove_request+0x70/0x120 drivers/scsi/sg.c:2122 ffff8801c0e7f950 ffffffff81d90a29 ffff8801d77ff640 ffff8801cb972000 ^ slab_post_alloc_hook mm/slab.h:417 [inline] slab_alloc_node mm/slub.c:2715 [inline] slab_alloc mm/slub.c:2723 [inline] kmem_cache_alloc+0xba/0x290 mm/slub.c:2728 [] vfs_read+0x11e/0x380 fs/read_write.c:475 slab_post_alloc_hook mm/slab.h:417 [inline] slab_alloc_node mm/slub.c:2715 [inline] slab_alloc mm/slub.c:2723 [inline] kmem_cache_alloc+0xba/0x290 mm/slub.c:2728 ffff8801cb972080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc Memory state around the buggy address: >ffff8801cb972000: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc [] sg_remove_request+0x70/0x120 drivers/scsi/sg.c:2122 [] vfs_read+0x11e/0x380 fs/read_write.c:475 entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124 ================================================================== [] do_syscall_32_irqs_on arch/x86/entry/common.c:322 [inline] [] do_fast_syscall_32+0x2f7/0x890 arch/x86/entry/common.c:384 ^ [] __raw_write_lock_irqsave include/linux/rwlock_api_smp.h:187 [inline] [] _raw_write_lock_irqsave+0x56/0x62 kernel/locking/spinlock.c:303 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 [] sg_remove_request+0x70/0x120 drivers/scsi/sg.c:2122 [] do_syscall_32_irqs_on arch/x86/entry/common.c:322 [inline] [] do_fast_syscall_32+0x2f7/0x890 arch/x86/entry/common.c:384 [] vfs_read+0x11e/0x380 fs/read_write.c:475 Freed: >ffff8801cb972000: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc PID = 3662 Freed: ^ [] entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124 ffff8801cb972080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [] __vfs_read+0x103/0x670 fs/read_write.c:452 [] print_address_description mm/kasan/report.c:198 [inline] [] kasan_report_error mm/kasan/report.c:287 [inline] [] kasan_report.part.1+0x21c/0x500 mm/kasan/report.c:309 [] print_address_description mm/kasan/report.c:198 [inline] [] kasan_report_error mm/kasan/report.c:287 [inline] [] kasan_report.part.1+0x21c/0x500 mm/kasan/report.c:309 ffff8801cb972100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [] sg_finish_rem_req+0x295/0x340 drivers/scsi/sg.c:1838 entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124 [] kasan_object_err+0x1c/0x70 mm/kasan/report.c:160 ffff8801cb971f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [] __vfs_read+0x103/0x670 fs/read_write.c:452 [] do_syscall_32_irqs_on arch/x86/entry/common.c:322 [inline] [] do_fast_syscall_32+0x2f7/0x890 arch/x86/entry/common.c:384 [] vfs_read+0x11e/0x380 fs/read_write.c:475 >ffff8801cb972000: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc >ffff8801cb972000: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc [] print_address_description mm/kasan/report.c:198 [inline] [] kasan_report_error mm/kasan/report.c:287 [inline] [] kasan_report.part.1+0x21c/0x500 mm/kasan/report.c:309 [] kasan_report mm/kasan/report.c:329 [inline] [] __asan_report_load4_noabort+0x29/0x30 mm/kasan/report.c:329 [] entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124 PID = 3662 ffff8801cb971f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [] queued_write_lock include/asm-generic/qrwlock.h:134 [inline] [] do_raw_write_lock+0xc7/0x1d0 kernel/locking/spinlock_debug.c:203 [] kasan_report mm/kasan/report.c:329 [inline] [] __asan_report_load4_noabort+0x29/0x30 mm/kasan/report.c:329 ================================================================== >ffff8801cb972000: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc ffff8801cb972080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [] sg_finish_rem_req+0x295/0x340 drivers/scsi/sg.c:1838 C_SYSC_fcntl64 fs/compat.c:469 [inline] compat_SyS_fcntl64+0xce/0x4f0 fs/compat.c:403 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [] sg_read+0xa1c/0x1440 drivers/scsi/sg.c:527 [] kasan_report mm/kasan/report.c:329 [inline] [] __asan_report_load4_noabort+0x29/0x30 mm/kasan/report.c:329 [] kasan_report mm/kasan/report.c:329 [inline] [] __asan_report_load4_noabort+0x29/0x30 mm/kasan/report.c:329 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 ffff8801cb972060 ffffed003972e40c ffff8801cb972064 ffff8801c0e7f978 ^ entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124 ^ save_stack+0x43/0xd0 mm/kasan/kasan.c:495 [] sg_remove_request+0x70/0x120 drivers/scsi/sg.c:2122 Memory state around the buggy address: [] print_address_description mm/kasan/report.c:198 [inline] [] kasan_report_error mm/kasan/report.c:287 [inline] [] kasan_report.part.1+0x21c/0x500 mm/kasan/report.c:309 Freed: ffff8801cb972080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [] __vfs_read+0x103/0x670 fs/read_write.c:452 [] pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:663 [inline] [] queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:28 [inline] [] queued_spin_lock include/asm-generic/qspinlock.h:103 [inline] [] queued_write_lock_slowpath+0x116/0x150 kernel/locking/qrwlock.c:115 ^ fasync_alloc fs/fcntl.c:604 [inline] fasync_add_entry fs/fcntl.c:662 [inline] fasync_helper+0x37/0xb0 fs/fcntl.c:691 [] pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:663 [inline] [] queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:28 [inline] [] queued_spin_lock include/asm-generic/qspinlock.h:103 [inline] [] queued_write_lock_slowpath+0x116/0x150 kernel/locking/qrwlock.c:115 ffff8801cb972060 ffffed003972e40c ffff8801cb972064 ffff8801c0e7f978 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:537 [] pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:663 [inline] [] queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:28 [inline] [] queued_spin_lock include/asm-generic/qspinlock.h:103 [inline] [] queued_write_lock_slowpath+0x116/0x150 kernel/locking/qrwlock.c:115 ================================================================== entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124 ffff8801cb971f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [] sg_read+0xa1c/0x1440 drivers/scsi/sg.c:527 [] sg_remove_request+0x70/0x120 drivers/scsi/sg.c:2122 [] vfs_read+0x11e/0x380 fs/read_write.c:475 set_track mm/kasan/kasan.c:507 [inline] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:598 [] __vfs_read+0x103/0x670 fs/read_write.c:452 >ffff8801cb972000: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc Allocated: slab_post_alloc_hook mm/slab.h:417 [inline] slab_alloc_node mm/slub.c:2715 [inline] slab_alloc mm/slub.c:2723 [inline] kmem_cache_alloc+0xba/0x290 mm/slub.c:2728 ffff8801cb971f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== [] __vfs_read+0x103/0x670 fs/read_write.c:452 [] queued_write_lock include/asm-generic/qrwlock.h:134 [inline] [] do_raw_write_lock+0xc7/0x1d0 kernel/locking/spinlock_debug.c:203 [] kasan_report mm/kasan/report.c:329 [inline] [] __asan_report_load4_noabort+0x29/0x30 mm/kasan/report.c:329 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:537 [] __read_once_size include/linux/compiler.h:243 [inline] [] atomic_read arch/x86/include/asm/atomic.h:26 [inline] [] virt_spin_lock arch/x86/include/asm/qspinlock.h:56 [inline] [] native_queued_spin_lock_slowpath+0x6a1/0x6c0 kernel/locking/qspinlock.c:421 [] __vfs_read+0x103/0x670 fs/read_write.c:452 CPU: 1 PID: 3662 Comm: syz-executor7 Tainted: G B 4.9.70-g9542d2a #5 [] __raw_write_lock_irqsave include/linux/rwlock_api_smp.h:187 [inline] [] _raw_write_lock_irqsave+0x56/0x62 kernel/locking/spinlock.c:303 >ffff8801cb972000: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc save_stack+0x43/0xd0 mm/kasan/kasan.c:495 PID = 3662 Freed: >ffff8801cb972000: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc [] __raw_write_lock_irqsave include/linux/rwlock_api_smp.h:187 [inline] [] _raw_write_lock_irqsave+0x56/0x62 kernel/locking/spinlock.c:303 [] entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124 ffff8801cb972060 ffffed003972e40c ffff8801cb972064 ffff8801c0e7f978 >ffff8801cb972000: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc sg_fasync+0x86/0xb0 drivers/scsi/sg.c:1203 fasync_alloc fs/fcntl.c:604 [inline] fasync_add_entry fs/fcntl.c:662 [inline] fasync_helper+0x37/0xb0 fs/fcntl.c:691 [] __vfs_read+0x103/0x670 fs/read_write.c:452 [] pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:663 [inline] [] queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:28 [inline] [] queued_spin_lock include/asm-generic/qspinlock.h:103 [inline] [] queued_write_lock_slowpath+0x116/0x150 kernel/locking/qrwlock.c:115 set_track mm/kasan/kasan.c:507 [inline] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:598 Allocated: sg_fasync+0x86/0xb0 drivers/scsi/sg.c:1203 [] queued_write_lock include/asm-generic/qrwlock.h:134 [inline] [] do_raw_write_lock+0xc7/0x1d0 kernel/locking/spinlock_debug.c:203 ffffffff8153a45c ffffed003972e40c ffff8801d77ff640 0000000000000000 ^ [] entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124 ffff8801cb971f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:537 [] queued_write_lock include/asm-generic/qrwlock.h:134 [inline] [] do_raw_write_lock+0xc7/0x1d0 kernel/locking/spinlock_debug.c:203 [] vfs_read+0x11e/0x380 fs/read_write.c:475 slab_post_alloc_hook mm/slab.h:417 [inline] slab_alloc_node mm/slub.c:2715 [inline] slab_alloc mm/slub.c:2723 [inline] kmem_cache_alloc+0xba/0x290 mm/slub.c:2728 [] vfs_read+0x11e/0x380 fs/read_write.c:475 Allocated: ffff8801cb971f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [] pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:663 [inline] [] queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:28 [inline] [] queued_spin_lock include/asm-generic/qspinlock.h:103 [inline] [] queued_write_lock_slowpath+0x116/0x150 kernel/locking/qrwlock.c:115 Read of size 4 by task syz-executor7/3662 ffffffff8153a45c ffffed003972e40c ffff8801d77ff640 0000000000000000 ================================================================== [] sg_read+0xa1c/0x1440 drivers/scsi/sg.c:527 [] SYSC_read fs/read_write.c:591 [inline] [] SyS_read+0xd9/0x1b0 fs/read_write.c:584 [] vfs_read+0x11e/0x380 fs/read_write.c:475 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 [] __vfs_read+0x103/0x670 fs/read_write.c:452 [] __read_once_size include/linux/compiler.h:243 [inline] [] atomic_read arch/x86/include/asm/atomic.h:26 [inline] [] virt_spin_lock arch/x86/include/asm/qspinlock.h:56 [inline] [] native_queued_spin_lock_slowpath+0x6a1/0x6c0 kernel/locking/qspinlock.c:421 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:537 [] entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124 [] do_syscall_32_irqs_on arch/x86/entry/common.c:322 [inline] [] do_fast_syscall_32+0x2f7/0x890 arch/x86/entry/common.c:384 [] kasan_report mm/kasan/report.c:329 [inline] [] __asan_report_load4_noabort+0x29/0x30 mm/kasan/report.c:329 ffff8801cb972060 ffffed003972e40c ffff8801cb972064 ffff8801c0e7f978 entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124 [] kasan_object_err+0x1c/0x70 mm/kasan/report.c:160 >ffff8801cb972000: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc [] __raw_write_lock_irqsave include/linux/rwlock_api_smp.h:187 [inline] [] _raw_write_lock_irqsave+0x56/0x62 kernel/locking/spinlock.c:303 fasync_alloc fs/fcntl.c:604 [inline] fasync_add_entry fs/fcntl.c:662 [inline] fasync_helper+0x37/0xb0 fs/fcntl.c:691 Allocated: slab_post_alloc_hook mm/slab.h:417 [inline] slab_alloc_node mm/slub.c:2715 [inline] slab_alloc mm/slub.c:2723 [inline] kmem_cache_alloc+0xba/0x290 mm/slub.c:2728 ffff8801cb972060 ffffed003972e40c ffff8801cb972064 ffff8801c0e7f978 ffff8801cb971f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [] queued_write_lock include/asm-generic/qrwlock.h:134 [inline] [] do_raw_write_lock+0xc7/0x1d0 kernel/locking/spinlock_debug.c:203 ffff8801cb971f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ================================================================== ^ Allocated: set_track mm/kasan/kasan.c:507 [inline] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:598 [] SYSC_read fs/read_write.c:591 [inline] [] SyS_read+0xd9/0x1b0 fs/read_write.c:584 ================================================================== >ffff8801cb972000: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fasync_alloc fs/fcntl.c:604 [inline] fasync_add_entry fs/fcntl.c:662 [inline] fasync_helper+0x37/0xb0 fs/fcntl.c:691 ================================================================== ffff8801cb971f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [] pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:663 [inline] [] queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:28 [inline] [] queued_spin_lock include/asm-generic/qspinlock.h:103 [inline] [] queued_write_lock_slowpath+0x116/0x150 kernel/locking/qrwlock.c:115 ^ set_track mm/kasan/kasan.c:507 [inline] kasan_kmalloc+0xad/0xe0 mm/kasan/kasan.c:598 Allocated: sg_fasync+0x86/0xb0 drivers/scsi/sg.c:1203 [] __read_once_size include/linux/compiler.h:243 [inline] [] atomic_read arch/x86/include/asm/atomic.h:26 [inline] [] virt_spin_lock arch/x86/include/asm/qspinlock.h:56 [inline] [] native_queued_spin_lock_slowpath+0x6a1/0x6c0 kernel/locking/qspinlock.c:421 ffffffff8153a45c ffffed003972e40c ffff8801d77ff640 0000000000000000 ffff8801cb971f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [] SYSC_read fs/read_write.c:591 [inline] [] SyS_read+0xd9/0x1b0 fs/read_write.c:584 [] kasan_report mm/kasan/report.c:329 [inline] [] __asan_report_load4_noabort+0x29/0x30 mm/kasan/report.c:329 Allocated: kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:537 [] kasan_report mm/kasan/report.c:329 [inline] [] __asan_report_load4_noabort+0x29/0x30 mm/kasan/report.c:329 fasync_alloc fs/fcntl.c:604 [inline] fasync_add_entry fs/fcntl.c:662 [inline] fasync_helper+0x37/0xb0 fs/fcntl.c:691 [] do_syscall_32_irqs_on arch/x86/entry/common.c:322 [inline] [] do_fast_syscall_32+0x2f7/0x890 arch/x86/entry/common.c:384 [] __vfs_read+0x103/0x670 fs/read_write.c:452 [] kasan_report mm/kasan/report.c:329 [inline] [] __asan_report_load4_noabort+0x29/0x30 mm/kasan/report.c:329 save_stack+0x43/0xd0 mm/kasan/kasan.c:495 save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:57 [] queued_write_lock include/asm-generic/qrwlock.h:134 [inline] [] do_raw_write_lock+0xc7/0x1d0 kernel/locking/spinlock_debug.c:203 ================================================================== do_syscall_32_irqs_on arch/x86/entry/common.c:322 [inline] do_fast_syscall_32+0x2f7/0x890 arch/x86/entry/common.c:384 [] sg_remove_request+0x70/0x120 drivers/scsi/sg.c:2122 [] queued_write_lock include/asm-generic/qrwlock.h:134 [inline] [] do_raw_write_lock+0xc7/0x1d0 kernel/locking/spinlock_debug.c:203 >ffff8801cb972000: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc [] sg_remove_request+0x70/0x120 drivers/scsi/sg.c:2122 [] SYSC_read fs/read_write.c:591 [inline] [] SyS_read+0xd9/0x1b0 fs/read_write.c:584 [] __raw_write_lock_irqsave include/linux/rwlock_api_smp.h:187 [inline] [] _raw_write_lock_irqsave+0x56/0x62 kernel/locking/spinlock.c:303 sg_fasync+0x86/0xb0 drivers/scsi/sg.c:1203 [] __read_once_size include/linux/compiler.h:243 [inline] [] atomic_read arch/x86/include/asm/atomic.h:26 [inline] [] virt_spin_lock arch/x86/include/asm/qspinlock.h:56 [inline] [] native_queued_spin_lock_slowpath+0x6a1/0x6c0 kernel/locking/qspinlock.c:421 ffffffff8153a45c ffffed003972e40c ffff8801d77ff640 0000000000000000 ^ [] entry_SYSENTER_compat+0x51/0x60 arch/x86/entry/entry_64_compat.S:124 PID = 3662 Freed: CPU: 1 PID: 3662 Comm: syz-executor7 Tainted: G B 4.9.70-g9542d2a #5 [] queued_write_lock include/asm-generic/qrwlock.h:134 [inline] [] do_raw_write_lock+0xc7/0x1d0 kernel/locking/spinlock_debug.c:203