syzbot


INFO: task hung in pipe_write

Status: upstream: reported C repro on 2020/06/07 01:40
Reported-by: syzbot+eb4579cce1e26940e2e1@syzkaller.appspotmail.com
First crash: 795d, last: 13d

Fix bisection: failed (bisect log)
similar bugs (11):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in pipe_write (3) 1 928d 928d 0/23 auto-closed as invalid on 2020/04/25 05:37
android-44 INFO: task hung in pipe_write 1 1343d 1215d 0/2 auto-closed as invalid on 2019/06/05 06:19
upstream INFO: task hung in pipe_write (2) C done 6 1057d 1057d 0/23 closed as invalid on 2019/09/28 02:25
upstream INFO: task hung in pipe_write 8 1287d 1402d 0/23 auto-closed as invalid on 2019/07/30 21:09
android-44 INFO: task hung in pipe_write (2) 1 983d 983d 0/2 auto-closed as invalid on 2020/03/31 01:26
android-49 INFO: task hung in pipe_write C 3 1009d 1215d 0/3 public: reported C repro on 2019/04/14 08:51
upstream INFO: task hung in pipe_write (4) syz error 7 195d 742d 0/23 upstream: reported syz repro on 2020/07/30 05:04
android-414 INFO: task hung in pipe_write 1 1031d 1031d 0/1 auto-closed as invalid on 2020/02/11 22:17
upstream INFO: task can't die in pipe_write (2) 1 295d 291d 0/23 auto-closed as invalid on 2021/12/19 10:46
upstream INFO: task hung in rtnetlink_rcv_msg C inconclusive inconclusive 352 4d13h 1266d 0/23 upstream: reported C repro on 2019/02/22 17:00
upstream INFO: task can't die in pipe_write 1 369d 342d 0/23 auto-closed as invalid on 2021/10/06 11:40

Sample crash report:
netlink: 'syz-executor190': attribute type 1 has an invalid length.
netlink: 72 bytes leftover after parsing attributes in process `syz-executor190'.
netlink: 72 bytes leftover after parsing attributes in process `syz-executor190'.
INFO: task syz-executor190:8137 blocked for more than 140 seconds.
      Not tainted 4.19.211-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor190 D27736  8137   8135 0x00000004
Call Trace:
 context_switch kernel/sched/core.c:2828 [inline]
 __schedule+0x887/0x2040 kernel/sched/core.c:3517
 schedule+0x8d/0x1b0 kernel/sched/core.c:3561
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:3619
 __mutex_lock_common kernel/locking/mutex.c:1016 [inline]
 __mutex_lock+0x5f0/0x1190 kernel/locking/mutex.c:1078
 pipe_lock_nested fs/pipe.c:77 [inline]
 pipe_lock fs/pipe.c:85 [inline]
 pipe_wait+0x1bd/0x1e0 fs/pipe.c:133
 pipe_write+0x5c3/0xf80 fs/pipe.c:500
 call_write_iter include/linux/fs.h:1821 [inline]
 new_sync_write fs/read_write.c:474 [inline]
 __vfs_write+0x51b/0x770 fs/read_write.c:487
 vfs_write+0x1f3/0x540 fs/read_write.c:549
 ksys_write+0x12b/0x2a0 fs/read_write.c:599
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fadd482eab9
Code: Bad RIP value.
RSP: 002b:00007fadd47e02f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fadd48b6420 RCX: 00007fadd482eab9
RDX: 00000000fffffecc RSI: 0000000020000000 RDI: 0000000000000004
RBP: 00007fadd48b642c R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fadd4884074
R13: 632e79726f6d656d R14: 00000ffffffff000 R15: 00007fadd48b6428

Showing all locks held in the system:
1 lock held by khungtaskd/1571:
 #0: 000000006b1a827e (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441
1 lock held by in:imklog/7823:
 #0: 0000000071c54c7c (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x26f/0x310 fs/file.c:767
1 lock held by syz-executor190/8137:
 #0: 00000000754de621 (&pipe->mutex/1){+.+.}, at: pipe_lock_nested fs/pipe.c:77 [inline]
 #0: 00000000754de621 (&pipe->mutex/1){+.+.}, at: pipe_lock fs/pipe.c:85 [inline]
 #0: 00000000754de621 (&pipe->mutex/1){+.+.}, at: pipe_wait+0x1bd/0x1e0 fs/pipe.c:133
2 locks held by syz-executor190/8138:

=============================================

NMI backtrace for cpu 0
CPU: 0 PID: 1571 Comm: khungtaskd Not tainted 4.19.211-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+0x1fc/0x2ef lib/dump_stack.c:118
 nmi_cpu_backtrace.cold+0x63/0xa2 lib/nmi_backtrace.c:101
 nmi_trigger_cpumask_backtrace+0x1a6/0x1f0 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:203 [inline]
 watchdog+0x991/0xe60 kernel/hung_task.c:287
 kthread+0x33f/0x460 kernel/kthread.c:259
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 8138 Comm: syz-executor190 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:preempt_latency_start kernel/sched/core.c:3218 [inline]
RIP: 0010:preempt_count_add+0xde/0x190 kernel/sched/core.c:3241
Code: 48 8b 2c 25 c0 df 01 00 48 8d bd 38 12 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 8e 00 00 00 <48> 89 9d 38 12 00 00 5b 5d c3 31 ff 31 db e8 ff 14 0a 00 eb c0 e8
RSP: 0018:ffff8880b0fcef48 EFLAGS: 00000246
RAX: dffffc0000000000 RBX: ffffffff81298225 RCX: 0000000000000000
RDX: 1ffff1101289f6d7 RSI: ffff8880b0fceef0 RDI: ffff8880944fb6b8
RBP: ffff8880944fa480 R08: 0000000000000001 R09: 0000000000000001
R10: ffff8880b0fcf0ef R11: 0000000000074071 R12: ffff8880b0fcf0d8
R13: 0000000000000000 R14: ffff8880b0fcf090 R15: 0000000000001000
FS:  00007fadd47bf700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7d03b27020 CR3: 00000000a5555000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 unwind_next_frame+0x135/0x1400 arch/x86/kernel/unwind_orc.c:407
 __save_stack_trace+0x9f/0x190 arch/x86/kernel/stacktrace.c:44
 save_stack mm/kasan/kasan.c:448 [inline]
 set_track mm/kasan/kasan.c:460 [inline]
 kasan_kmalloc+0xeb/0x160 mm/kasan/kasan.c:553
 __do_kmalloc_node mm/slab.c:3689 [inline]
 __kmalloc_node_track_caller+0x4c/0x70 mm/slab.c:3703
 __kmalloc_reserve net/core/skbuff.c:137 [inline]
 __alloc_skb+0xae/0x560 net/core/skbuff.c:205
 alloc_skb include/linux/skbuff.h:995 [inline]
 nlmsg_new include/net/netlink.h:511 [inline]
 ip_set_protocol+0xaa/0x540 net/netfilter/ipset/ip_set_core.c:1828
 nfnetlink_rcv_msg+0xc4f/0xf60 net/netfilter/nfnetlink.c:233
 netlink_rcv_skb+0x160/0x440 net/netlink/af_netlink.c:2463
 nfnetlink_rcv+0x1b2/0x420 net/netfilter/nfnetlink.c:565
 netlink_unicast_kernel net/netlink/af_netlink.c:1325 [inline]
 netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1351
 netlink_sendmsg+0x6c3/0xc50 net/netlink/af_netlink.c:1917
 sock_sendmsg_nosec net/socket.c:651 [inline]
 sock_sendmsg+0xc3/0x120 net/socket.c:661
 sock_no_sendpage+0xf5/0x140 net/core/sock.c:2686
 kernel_sendpage net/socket.c:3585 [inline]
 sock_sendpage+0xdf/0x140 net/socket.c:912
 pipe_to_sendpage+0x268/0x330 fs/splice.c:452
 splice_from_pipe_feed fs/splice.c:503 [inline]
 __splice_from_pipe+0x389/0x800 fs/splice.c:627
 splice_from_pipe fs/splice.c:662 [inline]
 generic_splice_sendpage+0xd4/0x140 fs/splice.c:833
 do_splice_from fs/splice.c:852 [inline]
 do_splice fs/splice.c:1154 [inline]
 __do_sys_splice fs/splice.c:1428 [inline]
 __se_sys_splice+0xfe7/0x16d0 fs/splice.c:1408
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fadd482eab9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 15 00 00 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 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fadd47bf2e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000113
RAX: ffffffffffffffda RBX: 00007fadd48b6430 RCX: 00007fadd482eab9
RDX: 0000000000000005 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 00007fadd48b643c R08: 000000000004ffe6 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fadd4884074
R13: 632e79726f6d656d R14: 00000ffffffff000 R15: 00007fadd48b6438
----------------
Code disassembly (best guess):
   0:	48 8b 2c 25 c0 df 01 	mov    0x1dfc0,%rbp
   7:	00
   8:	48 8d bd 38 12 00 00 	lea    0x1238(%rbp),%rdi
   f:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  16:	fc ff df
  19:	48 89 fa             	mov    %rdi,%rdx
  1c:	48 c1 ea 03          	shr    $0x3,%rdx
  20:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1)
  24:	0f 85 8e 00 00 00    	jne    0xb8
* 2a:	48 89 9d 38 12 00 00 	mov    %rbx,0x1238(%rbp) <-- trapping instruction
  31:	5b                   	pop    %rbx
  32:	5d                   	pop    %rbp
  33:	c3                   	retq
  34:	31 ff                	xor    %edi,%edi
  36:	31 db                	xor    %ebx,%ebx
  38:	e8 ff 14 0a 00       	callq  0xa153c
  3d:	eb c0                	jmp    0xffffffff
  3f:	e8                   	.byte 0xe8

Crashes (7):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-linux-4-19 2022/06/01 11:31 linux-4.19.y 3f8a27f9e27b 3666edfe .config log report syz C INFO: task hung in pipe_write
ci2-linux-4-19 2020/06/07 01:39 linux-4.19.y 4707d8e57273 e6b89e4e .config log report syz
ci2-linux-4-19 2022/07/28 23:49 linux-4.19.y 3f8a27f9e27b fb95c74d .config log report info INFO: task hung in pipe_write
ci2-linux-4-19 2022/06/01 07:24 linux-4.19.y 3f8a27f9e27b 3666edfe .config log report info INFO: task hung in pipe_write
ci2-linux-4-19 2022/02/05 22:32 linux-4.19.y 3f8a27f9e27b a7dab638 .config log report info INFO: task hung in pipe_write
ci2-linux-4-19 2022/01/31 07:41 linux-4.19.y 3f8a27f9e27b 495e00c5 .config log report info INFO: task hung in pipe_write
ci2-linux-4-19 2022/01/26 13:18 linux-4.19.y 3f8a27f9e27b 2cbffd88 .config log report info INFO: task hung in pipe_write