ci2 starts bisection 2023-05-24 01:42:02.10626026 +0000 UTC m=+314693.803164101 bisecting cause commit starting from 421ca22e313871d4104617bab077b275b30950ae building syzkaller on 4bce1a3e705a8b62de8194bdb28f5eef89c8feec ensuring issue is reproducible on original commit 421ca22e313871d4104617bab077b275b30950ae testing commit 421ca22e313871d4104617bab077b275b30950ae gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: ac4076d5f4a0ca372534be0c0fb285d8a65890658cbf3a22ae2be2c505fbff4b all runs: crashed: INFO: task hung in flush_old_commits testing release v6.3 testing commit 457391b0380335d5e9a5babdec90ac53928b23b4 gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: a593e36d05fd566ce95749e2c91a3caea5f470891a75fad1437b0aa8703c46eb all runs: OK # git bisect start 421ca22e313871d4104617bab077b275b30950ae 457391b0380335d5e9a5babdec90ac53928b23b4 Bisecting: 6572 revisions left to test after this (roughly 13 steps) [6e98b09da931a00bf4e0477d0fa52748bf28fcce] Merge tag 'net-next-6.4' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next testing commit 6e98b09da931a00bf4e0477d0fa52748bf28fcce gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: c868e30eddd3c64b6051aaa730862b12336eed5299625e10971fa7a073bd460c all runs: crashed: INFO: task hung in flush_old_commits # git bisect bad 6e98b09da931a00bf4e0477d0fa52748bf28fcce Bisecting: 3926 revisions left to test after this (roughly 12 steps) [088e0c188513b58a0056a488cf5b7df094a8a48a] Merge tag 'platform-drivers-x86-v6.4-1' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86 testing commit 088e0c188513b58a0056a488cf5b7df094a8a48a gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 07d0d8c61d0309794908c7930b25cbc2994f5f513ced7f9d73c2d8b5ef317d72 all runs: crashed: INFO: task hung in flush_old_commits # git bisect bad 088e0c188513b58a0056a488cf5b7df094a8a48a Bisecting: 2178 revisions left to test after this (roughly 11 steps) [736b378b29d89c8c3567fa4b2e948be5568aebb8] Merge tag 'slab-for-6.4' of git://git.kernel.org/pub/scm/linux/kernel/git/vbabka/slab testing commit 736b378b29d89c8c3567fa4b2e948be5568aebb8 gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 02114e6fc372dd74be5bb5793af2c19264299425ad16ef12fd598112c1411515 all runs: crashed: INFO: task hung in flush_old_commits # git bisect bad 736b378b29d89c8c3567fa4b2e948be5568aebb8 Bisecting: 932 revisions left to test after this (roughly 10 steps) [b8a4346d25024e00714fb6ceb0709075827f335d] Merge tag 'mvebu-dt64-6.4-1' of git://git.kernel.org/pub/scm/linux/kernel/git/gclement/mvebu into soc/dt testing commit b8a4346d25024e00714fb6ceb0709075827f335d gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: cbf4c767ae952a6b117839a0defb150a7e25c0301a85df065bf35f6b2e71dc92 all runs: OK # git bisect good b8a4346d25024e00714fb6ceb0709075827f335d Bisecting: 464 revisions left to test after this (roughly 9 steps) [e94ee641f9cef2502adfe5e0c264b271420c7ab5] Merge tag 'edac_updates_for_v6.4' of git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras testing commit e94ee641f9cef2502adfe5e0c264b271420c7ab5 gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 674d313ab93322c8b81b7154eae879ced46899ab079ea572ccf6e690e9bff07c all runs: crashed: INFO: task hung in flush_old_commits # git bisect bad e94ee641f9cef2502adfe5e0c264b271420c7ab5 Bisecting: 207 revisions left to test after this (roughly 8 steps) [5dfb75e842e0ef59fc7bf307e5c52eab215bdb4c] Merge tag 'rcu.6.4.april5.2023.3' of git://git.kernel.org/pub/scm/linux/kernel/git/jfern/linux testing commit 5dfb75e842e0ef59fc7bf307e5c52eab215bdb4c gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 6273c9adf3dcb6bea57dec9af40c975e3b1b98d221fde2a027bb81e93594f36e run #0: crashed: INFO: task hung in flush_old_commits run #1: crashed: WARNING: ODEBUG bug in netdev_run_todo run #2: crashed: INFO: task hung in flush_old_commits run #3: crashed: INFO: task hung in flush_old_commits run #4: crashed: INFO: task hung in flush_old_commits run #5: crashed: INFO: task hung in flush_old_commits run #6: crashed: INFO: task hung in flush_old_commits run #7: crashed: INFO: task hung in flush_old_commits run #8: crashed: INFO: task hung in flush_old_commits run #9: crashed: INFO: task hung in flush_old_commits # git bisect bad 5dfb75e842e0ef59fc7bf307e5c52eab215bdb4c Bisecting: 134 revisions left to test after this (roughly 7 steps) [406037351e08dea03735178bf11046da85f00125] Merge tag 'lkmm.2023.04.07a' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu testing commit 406037351e08dea03735178bf11046da85f00125 gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: f23fd7e6f6c208c8cf41613218fe7398062d98863229a6595426ed2ff11999d6 all runs: crashed: INFO: task hung in flush_old_commits # git bisect bad 406037351e08dea03735178bf11046da85f00125 Bisecting: 48 revisions left to test after this (roughly 6 steps) [08e30833f86ba25945e416b9f372791aacfef153] Merge tag 'lsm-pr-20230420' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/lsm testing commit 08e30833f86ba25945e416b9f372791aacfef153 gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: e3dd1e3ecaf5299ab99f1bbdd36cf202820de282ec924839daa85ebbdea2cccd all runs: crashed: INFO: task hung in flush_old_commits # git bisect bad 08e30833f86ba25945e416b9f372791aacfef153 Bisecting: 42 revisions left to test after this (roughly 5 steps) [a5624566431de76b17862383d9ae254d9606cba9] Merge branch 'x86-rep-insns': x86 user copy clarifications testing commit a5624566431de76b17862383d9ae254d9606cba9 gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 53d713c9185478c8230f79aa132eeb385ade0c6f4fc3bdd5592af5e3649773b4 all runs: OK # git bisect good a5624566431de76b17862383d9ae254d9606cba9 Bisecting: 21 revisions left to test after this (roughly 5 steps) [e261301c851aee401cfc63179ca4d3facd2f098b] lsm: move the remaining LSM hook comments to security/security.c testing commit e261301c851aee401cfc63179ca4d3facd2f098b gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 5807a5d2de0b8b86fe5dce3cdef1fab53a638ddbadb5679bc8298931bd25a679 all runs: OK # git bisect good e261301c851aee401cfc63179ca4d3facd2f098b Bisecting: 10 revisions left to test after this (roughly 4 steps) [d82dcd9e21b77d338dc4875f3d4111f0db314a7c] reiserfs: Add security prefix to xattr name in reiserfs_security_write() testing commit d82dcd9e21b77d338dc4875f3d4111f0db314a7c gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 914b978679a5c6cd501c0b5e8999b3b706837c1231e3a2b4f2607149877a1826 all runs: crashed: INFO: task hung in flush_old_commits # git bisect bad d82dcd9e21b77d338dc4875f3d4111f0db314a7c Bisecting: 5 revisions left to test after this (roughly 3 steps) [42994ee3cd7298b27698daa6848ed7168e72d056] security: Introduce LSM_ORDER_LAST and set it for the integrity LSM testing commit 42994ee3cd7298b27698daa6848ed7168e72d056 gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 58b106d70d7e68cc33ce70819adb8c18dcf65e35685e3000de4cabb6130dd19b all runs: OK # git bisect good 42994ee3cd7298b27698daa6848ed7168e72d056 Bisecting: 2 revisions left to test after this (roughly 2 steps) [52ca4b6435a493e47aaa98e7345e19e1e8710b13] reiserfs: Switch to security_inode_init_security() testing commit 52ca4b6435a493e47aaa98e7345e19e1e8710b13 gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: e082081474720f6cc28a259b12ed85610fe595b6332797e2a9a6247baab6e7b7 all runs: OK # git bisect good 52ca4b6435a493e47aaa98e7345e19e1e8710b13 Bisecting: 0 revisions left to test after this (roughly 1 step) [0d57b970df352517a75f4533820c49de360c4123] security: Remove security_old_inode_init_security() testing commit 0d57b970df352517a75f4533820c49de360c4123 gcc compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 8c5a8c89e50ae9201255de1174cbbd3ee5e5ff9766274ecdf5f5c6f8b83b498f all runs: OK # git bisect good 0d57b970df352517a75f4533820c49de360c4123 d82dcd9e21b77d338dc4875f3d4111f0db314a7c is the first bad commit commit d82dcd9e21b77d338dc4875f3d4111f0db314a7c Author: Roberto Sassu Date: Fri Mar 31 14:32:18 2023 +0200 reiserfs: Add security prefix to xattr name in reiserfs_security_write() Reiserfs sets a security xattr at inode creation time in two stages: first, it calls reiserfs_security_init() to obtain the xattr from active LSMs; then, it calls reiserfs_security_write() to actually write that xattr. Unfortunately, it seems there is a wrong expectation that LSMs provide the full xattr name in the form 'security.'. However, LSMs always provided just the suffix, causing reiserfs to not write the xattr at all (if the suffix is shorter than the prefix), or to write an xattr with the wrong name. Add a temporary buffer in reiserfs_security_write(), and write to it the full xattr name, before passing it to reiserfs_xattr_set_handle(). Also replace the name length check with a check that the full xattr name is not larger than XATTR_NAME_MAX. Cc: stable@vger.kernel.org # v2.6.x Fixes: 57fe60df6241 ("reiserfs: add atomic addition of selinux attributes during inode creation") Signed-off-by: Roberto Sassu Signed-off-by: Paul Moore fs/reiserfs/xattr_security.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) culprit signature: 914b978679a5c6cd501c0b5e8999b3b706837c1231e3a2b4f2607149877a1826 parent signature: 8c5a8c89e50ae9201255de1174cbbd3ee5e5ff9766274ecdf5f5c6f8b83b498f revisions tested: 16, total time: 8h16m7.064417102s (build: 5h58m15.253114837s, test: 2h14m51.045541051s) first bad commit: d82dcd9e21b77d338dc4875f3d4111f0db314a7c reiserfs: Add security prefix to xattr name in reiserfs_security_write() recipients (to): ["paul@paul-moore.com" "roberto.sassu@huawei.com"] recipients (cc): [] crash: INFO: task hung in flush_old_commits INFO: task kworker/0:0:7 blocked for more than 143 seconds. Not tainted 6.3.0-rc1-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/0:0 state:D stack:24576 pid:7 ppid:2 flags:0x00004000 Workqueue: events_long flush_old_commits Call Trace: context_switch kernel/sched/core.c:5304 [inline] __schedule+0x17c3/0x4770 kernel/sched/core.c:6622 schedule+0xc3/0x180 kernel/sched/core.c:6698 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6757 __mutex_lock_common+0xe33/0x2530 kernel/locking/mutex.c:679 __mutex_lock kernel/locking/mutex.c:747 [inline] mutex_lock_nested+0x1b/0x20 kernel/locking/mutex.c:799 reiserfs_write_lock+0x70/0xc0 fs/reiserfs/lock.c:27 reiserfs_sync_fs fs/reiserfs/super.c:76 [inline] flush_old_commits+0x164/0x280 fs/reiserfs/super.c:111 process_one_work+0x7ee/0x1010 kernel/workqueue.c:2390 worker_thread+0x8c9/0xfd0 kernel/workqueue.c:2537 kthread+0x238/0x2b0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 INFO: task kworker/0:1:14 blocked for more than 144 seconds. Not tainted 6.3.0-rc1-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/0:1 state:D stack:23216 pid:14 ppid:2 flags:0x00004000 Workqueue: events_long flush_old_commits Call Trace: context_switch kernel/sched/core.c:5304 [inline] __schedule+0x17c3/0x4770 kernel/sched/core.c:6622 schedule+0xc3/0x180 kernel/sched/core.c:6698 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6757 __mutex_lock_common+0xe33/0x2530 kernel/locking/mutex.c:679 __mutex_lock kernel/locking/mutex.c:747 [inline] mutex_lock_nested+0x1b/0x20 kernel/locking/mutex.c:799 reiserfs_write_lock+0x70/0xc0 fs/reiserfs/lock.c:27 reiserfs_sync_fs fs/reiserfs/super.c:76 [inline] flush_old_commits+0x164/0x280 fs/reiserfs/super.c:111 process_one_work+0x7ee/0x1010 kernel/workqueue.c:2390 worker_thread+0x8c9/0xfd0 kernel/workqueue.c:2537 kthread+0x238/0x2b0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 INFO: task kworker/1:6:4999 blocked for more than 145 seconds. Not tainted 6.3.0-rc1-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/1:6 state:D stack:23296 pid:4999 ppid:2 flags:0x00004000 Workqueue: events_long flush_old_commits Call Trace: context_switch kernel/sched/core.c:5304 [inline] __schedule+0x17c3/0x4770 kernel/sched/core.c:6622 schedule+0xc3/0x180 kernel/sched/core.c:6698 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6757 __mutex_lock_common+0xe33/0x2530 kernel/locking/mutex.c:679 __mutex_lock kernel/locking/mutex.c:747 [inline] mutex_lock_nested+0x1b/0x20 kernel/locking/mutex.c:799 reiserfs_write_lock+0x70/0xc0 fs/reiserfs/lock.c:27 reiserfs_sync_fs fs/reiserfs/super.c:76 [inline] flush_old_commits+0x164/0x280 fs/reiserfs/super.c:111 process_one_work+0x7ee/0x1010 kernel/workqueue.c:2390 worker_thread+0x8c9/0xfd0 kernel/workqueue.c:2537 kthread+0x238/0x2b0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 INFO: task kworker/0:4:5429 blocked for more than 148 seconds. Not tainted 6.3.0-rc1-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/0:4 state:D stack:22872 pid:5429 ppid:2 flags:0x00004000 Workqueue: events_long flush_old_commits Call Trace: context_switch kernel/sched/core.c:5304 [inline] __schedule+0x17c3/0x4770 kernel/sched/core.c:6622 schedule+0xc3/0x180 kernel/sched/core.c:6698 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6757 __mutex_lock_common+0xe33/0x2530 kernel/locking/mutex.c:679 __mutex_lock kernel/locking/mutex.c:747 [inline] mutex_lock_nested+0x1b/0x20 kernel/locking/mutex.c:799 reiserfs_write_lock+0x70/0xc0 fs/reiserfs/lock.c:27 reiserfs_sync_fs fs/reiserfs/super.c:76 [inline] flush_old_commits+0x164/0x280 fs/reiserfs/super.c:111 process_one_work+0x7ee/0x1010 kernel/workqueue.c:2390 worker_thread+0x8c9/0xfd0 kernel/workqueue.c:2537 kthread+0x238/0x2b0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 INFO: task kworker/0:5:5445 blocked for more than 150 seconds. Not tainted 6.3.0-rc1-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/0:5 state:D stack:24976 pid:5445 ppid:2 flags:0x00004000 Workqueue: events_long flush_old_commits Call Trace: context_switch kernel/sched/core.c:5304 [inline] __schedule+0x17c3/0x4770 kernel/sched/core.c:6622 schedule+0xc3/0x180 kernel/sched/core.c:6698 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6757 __mutex_lock_common+0xe33/0x2530 kernel/locking/mutex.c:679 __mutex_lock kernel/locking/mutex.c:747 [inline] mutex_lock_nested+0x1b/0x20 kernel/locking/mutex.c:799 reiserfs_write_lock+0x70/0xc0 fs/reiserfs/lock.c:27 reiserfs_sync_fs fs/reiserfs/super.c:76 [inline] flush_old_commits+0x164/0x280 fs/reiserfs/super.c:111 process_one_work+0x7ee/0x1010 kernel/workqueue.c:2390 worker_thread+0x8c9/0xfd0 kernel/workqueue.c:2537 kthread+0x238/0x2b0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 INFO: task kworker/1:7:5518 blocked for more than 152 seconds. Not tainted 6.3.0-rc1-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/1:7 state:D stack:24496 pid:5518 ppid:2 flags:0x00004000 Workqueue: events_long flush_old_commits Call Trace: context_switch kernel/sched/core.c:5304 [inline] __schedule+0x17c3/0x4770 kernel/sched/core.c:6622