INFO: task syz-executor.3:4091 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-executor.3 D25368 4091 8131 0x00000004 Call Trace: netlink: 4388 bytes leftover after parsing attributes in process `syz-executor.2'. IPv6: NLM_F_CREATE should be specified when creating new route context_switch kernel/sched/core.c:2828 [inline] __schedule+0x887/0x2040 kernel/sched/core.c:3517 IPv6: RTM_NEWROUTE with no NLM_F_CREATE or NLM_F_REPLACE IPv6: NLM_F_CREATE should be set when creating new route IPv6: NLM_F_CREATE should be set when creating new route schedule+0x8d/0x1b0 kernel/sched/core.c:3561 wait_current_trans+0x2e2/0x390 fs/btrfs/transaction.c:422 BTRFS warning (device ): duplicate device /dev/loop5 devid 1 generation 8 scanned by syz-executor.5 (8552) BTRFS warning (device ): duplicate device /dev/loop4 devid 1 generation 8 scanned by syz-executor.4 (8553) start_transaction+0xbf2/0xf90 fs/btrfs/transaction.c:531 btrfs_create+0x105/0x670 fs/btrfs/inode.c:6683 BTRFS warning (device ): duplicate device /dev/loop5 devid 1 generation 8 scanned by systemd-udevd (8575) BTRFS warning (device ): duplicate device /dev/loop1 devid 1 generation 8 scanned by syz-executor.1 (8554) lookup_open+0x893/0x1a20 fs/namei.c:3235 BTRFS warning (device ): duplicate device /dev/loop4 devid 1 generation 8 scanned by systemd-udevd (8578) BTRFS warning (device ): duplicate device /dev/loop1 devid 1 generation 8 scanned by systemd-udevd (8580) do_last fs/namei.c:3327 [inline] path_openat+0x1094/0x2df0 fs/namei.c:3537 do_filp_open+0x18c/0x3f0 fs/namei.c:3567 do_sys_open+0x3b3/0x520 fs/open.c:1085 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe audit: type=1326 audit(1676149268.053:120): auid=4294967295 uid=0 gid=0 ses=4294967295 subj==unconfined pid=8601 comm="syz-executor.0" exe="/root/syz-executor.0" sig=31 arch=c000003e syscall=202 compat=0 ip=0x7f996529c0f9 code=0x0 RIP: 0033:0x7f4890a800f9 Code: Bad RIP value. RSP: 002b:00007f488eff2168 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f4890b9ff80 RCX: 00007f4890a800f9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000100 RBP: 00007f4890adbae9 R08: 0000000000000000 R09: 0000000000000000 BTRFS warning (device ): duplicate device /dev/loop5 devid 1 generation 8 scanned by syz-executor.5 (8589) R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffdd73400ff R14: 00007f488eff2300 R15: 0000000000022000 BTRFS warning (device ): duplicate device /dev/loop5 devid 1 generation 8 scanned by systemd-udevd (8578) Showing all locks held in the system: 1 lock held by khungtaskd/1571: #0: 000000006b238cef (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441 1 lock held by in:imklog/7823: #0: 00000000622e5fc8 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x26f/0x310 fs/file.c:767 BTRFS warning (device ): duplicate device /dev/loop4 devid 1 generation 8 scanned by syz-executor.4 (8595) 2 locks held by agetty/8054: #0: 0000000019118625 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:272 BTRFS warning (device ): duplicate device /dev/loop4 devid 1 generation 8 scanned by systemd-udevd (8580) #1: 00000000380182f2 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x217/0x1950 drivers/tty/n_tty.c:2154 BTRFS warning (device ): duplicate device /dev/loop1 devid 1 generation 8 scanned by syz-executor.1 (8603) 3 locks held by kworker/u4:9/12186: #0: 00000000716656b5 (&rq->lock){-.-.}, at: idle_balance kernel/sched/fair.c:9702 [inline] #0: 00000000716656b5 (&rq->lock){-.-.}, at: pick_next_task_fair+0x556/0x1570 kernel/sched/fair.c:6841 #1: 000000006b238cef (rcu_read_lock){....}, at: trace_sched_stat_runtime include/trace/events/sched.h:428 [inline] #1: 000000006b238cef (rcu_read_lock){....}, at: update_curr+0x2c3/0x870 kernel/sched/fair.c:857 #2: 0000000097aee8c5 (&obj_hash[i].lock){-.-.}, at: __debug_check_no_obj_freed lib/debugobjects.c:776 [inline] #2: 0000000097aee8c5 (&obj_hash[i].lock){-.-.}, at: debug_check_no_obj_freed+0xb5/0x490 lib/debugobjects.c:817 3 locks held by syz-executor.3/4091: BTRFS warning (device ): duplicate device /dev/loop1 devid 1 generation 8 scanned by systemd-udevd (8588) #0: 000000006db314ef (sb_writers#16){.+.+}, at: sb_start_write include/linux/fs.h:1579 [inline] #0: 000000006db314ef (sb_writers#16){.+.+}, at: mnt_want_write+0x3a/0xb0 fs/namespace.c:360 #1: 000000003a8cd41d (&type->i_mutex_dir_key#10){++++}, at: inode_lock include/linux/fs.h:748 [inline] #1: 000000003a8cd41d (&type->i_mutex_dir_key#10){++++}, at: do_last fs/namei.c:3324 [inline] #1: 000000003a8cd41d (&type->i_mutex_dir_key#10){++++}, at: path_openat+0x1071/0x2df0 fs/namei.c:3537 #2: 00000000203adc30 (sb_internal#2){.+.+}, at: sb_start_intwrite include/linux/fs.h:1626 [inline] #2: 00000000203adc30 (sb_internal#2){.+.+}, at: start_transaction+0xa37/0xf90 fs/btrfs/transaction.c:528 2 locks held by systemd-udevd/8580: 1 lock held by systemd-udevd/8588: ============================================= 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/21/2023 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: 4694 Comm: systemd-journal Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 RIP: 0010:unwind_next_frame+0xa4b/0x1400 arch/x86/kernel/unwind_orc.c:510 Code: 3c 02 00 0f 85 8c 09 00 00 48 8b 54 24 08 4d 89 66 38 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 80 3c 02 00 0f 85 52 09 00 00 <49> 8d 7e 58 49 c7 46 50 00 00 00 00 48 b8 00 00 00 00 00 fc ff df RSP: 0018:ffff8880a0fa75e0 EFLAGS: 00000246 RAX: dffffc0000000000 RBX: 1ffff110141f4ec5 RCX: 0000000000000000 RDX: 1ffff110141f4eec RSI: ffff8880a0fa7570 RDI: ffff8880a0fa7ae8 RBP: 0000000000000001 R08: ffffffff8bb61c9e R09: ffffffff8bb61c9a R10: ffff8880a0fa776f R11: 0000000000074071 R12: ffff8880a0fa7af0 R13: ffff8880a0fa7745 R14: ffff8880a0fa7710 R15: ffffffff8bb61c9a FS: 00007fcf721948c0(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fcf6ef42008 CR3: 00000000a15a6000 CR4: 00000000003406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __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 kmem_cache_alloc_trace+0x12f/0x380 mm/slab.c:3625 kmalloc include/linux/slab.h:515 [inline] kzalloc include/linux/slab.h:709 [inline] aa_alloc_file_ctx security/apparmor/include/file.h:60 [inline] apparmor_file_alloc_security+0x394/0xad0 security/apparmor/lsm.c:438 security_file_alloc+0x40/0x90 security/security.c:880 __alloc_file+0xd8/0x340 fs/file_table.c:105 alloc_empty_file+0x6d/0x170 fs/file_table.c:150 path_openat+0xe9/0x2df0 fs/namei.c:3526 do_filp_open+0x18c/0x3f0 fs/namei.c:3567 do_sys_open+0x3b3/0x520 fs/open.c:1085 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7fcf71723840 Code: 73 01 c3 48 8b 0d 68 77 20 00 f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 83 3d 89 bb 20 00 00 75 10 b8 02 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 1e f6 ff ff 48 89 04 24 RSP: 002b:00007ffc0edd69c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007ffc0edd6cd0 RCX: 00007fcf71723840 RDX: 00000000000001a0 RSI: 0000000000080042 RDI: 00005640f20e1600 RBP: 000000000000000d R08: 00000000000001c0 R09: 00000000ffffffff R10: 0000000000000069 R11: 0000000000000246 R12: 00000000ffffffff R13: 00005640f20dd040 R14: 00007ffc0edd6c90 R15: 00005640f20e1c70