{"api_version":"1","generated_at":"2026-10-15T02:48:38+00:00","cve":"CVE-2026-90302","urls":{"html":"https://cve.report/CVE-2026-90302","api":"https://cve.report/api/cve/CVE-2026-90302.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-90302","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-90302"},"summary":{"title":"ocfs2: synchronize heartbeat callbacks with o2net teardown","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: synchronize heartbeat callbacks with o2net teardown\n\nPatch series \"ocfs2: harden heartbeat teardown races\".\n\nThis series fixes two OCFS2 heartbeat/o2net teardown races found by\nKASAN.\n\n\nThis patch (of 2):\n\nHeartbeat callbacks stay registered while configfs local-node teardown\nenters o2net_stop_listening().  A node-down event can still run through\no2net_disconnect_node() and o2net_set_nn_state() while teardown is\ndestroying o2net_wq, so the later queue/flush operations can hit a dead\nworkqueue.  KASAN has caught this as a slab-use-after-free in\n__queue_work() with the call chain:\n\nKASAN slab-use-after-free in __queue_work+0x56/0xa90\nRead of size 4\nCall trace:\n  dump_stack_lvl+0x66/0xa0\n  print_report+0xce/0x630\n  __queue_work+0x56/0xa90\n  srso_alias_return_thunk+0x5/0xfbef5\n  __virt_addr_valid+0x19f/0x330\n  kasan_report+0xe0/0x110\n  __queue_delayed_work+0x58/0x1e0\n  queue_delayed_work_on+0xb4/0xc0\n  o2net_set_nn_state+0x467/0x840\n  o2net_disconnect_node+0x7b/0xe0\n  o2net_hb_node_down_cb+0x54/0x60\n  o2hb_run_event_list+0x236/0x2d0\n  o2hb_check_slot+0xad4/0xbc0\n  lock_release+0xc8/0x290\n  o2hb_check_slot+0x9ea/0xbc0\n  trace_hardirqs_on+0x18/0x130\n  o2hb_do_disk_heartbeat+0x646/0xb30 (fs/ocfs2/cluster/heartbeat.c:1079)\n  __lock_acquire+0x466/0x2260\n  lockdep_hardirqs_on_prepare+0xea/0x1a0\n  ktime_get_with_offset+0xe9/0x230\n  o2hb_thread+0x14e/0x770\n  kthread+0x1ad/0x1f0\n  ret_from_fork+0x3c9/0x540\n  __switch_to+0x2e9/0x730\n  ret_from_fork_asm+0x1a/0x30\nAllocated by task stack:\n  kasan_save_stack+0x33/0x60\n  kasan_save_track+0x14/0x30\n  __kasan_kmalloc+0xaa/0xb0\n  __kmalloc_noprof+0x292/0x760\n  __alloc_workqueue+0x736/0xc60\n  alloc_workqueue_noprof+0xb1/0x110\n  o2net_start_listening+0xe5/0x430\n  o2nm_node_local_store+0x184/0x310\n  configfs_write_iter+0x18a/0x210\n  vfs_write+0x469/0x810\n  ksys_write+0xd2/0x170\n  do_syscall_64+0x115/0x6a0 (arch/x86/entry/syscall_64.c:87)\n  entry_SYSCALL_64_after_hwframe+0x77/0x7f\nFreed by task stack:\n  kasan_save_stack+0x33/0x60\n  kasan_save_track+0x14/0x30\n  kasan_save_free_info+0x3b/0x60\n  __kasan_slab_free+0x5f/0x80\n  kfree+0x313/0x590\n  rcu_core+0x4f4/0x1320\n  handle_softirqs+0x156/0x660\n\nqueue_delayed_work_on\no2net_set_nn_state\no2net_disconnect_node\no2net_hb_node_down_cb\no2hb_run_event_list\n\nKeep heartbeat callbacks registered so quorum state still tracks node\nstate, but stop them from driving o2net reconnect/disconnect work once\nlocal teardown starts. Mark the transport offline before destroying\no2net_wq, wait for any in-flight heartbeat callback to finish, and delay\nbring-up replay until the new local node is published through\no2nm_this_node().\n\nThe replay also has to stay serialized with heartbeat callback delivery.\nOtherwise a live-node snapshot can be copied, a real hb_down callback\ncan install -ENOTCONN for a peer, and the stale replay can call\no2net_hb_node_up() for that same peer and queue reconnect work even\nthough heartbeat is already down.\n\nThe buggy scenario involves two paths, with each column showing the order\nwithin that path:\n\nlocal-node teardown:                 heartbeat node-down callback:\n1. configfs local-off enters         1. o2hb_run_event_list() invokes\n   o2net_stop_listening().              o2net_hb_node_down_cb().\n2. teardown heads for                2. the callback reaches\n   destroy_workqueue(o2net_wq).         o2net_disconnect_node() and\n                                        o2net_set_nn_state().\n3. teardown destroys and NULLs       3. the callback flushes or queues\n   o2net_wq.                            work through o2net_wq.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-09-17 17:17:27","updated_at":"2026-09-17 17:17:27"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/fb61882e184ee5ca745806bc5b2a8483fa129bca","name":"https://git.kernel.org/stable/c/fb61882e184ee5ca745806bc5b2a8483fa129bca","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/cbb4efc2f99d6a8dba09c96b10acad82da982cf9","name":"https://git.kernel.org/stable/c/cbb4efc2f99d6a8dba09c96b10acad82da982cf9","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/a03078a9a2a1c5e4a62f65d389c1f75f9898e21d","name":"https://git.kernel.org/stable/c/a03078a9a2a1c5e4a62f65d389c1f75f9898e21d","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/aee687a2fb36974dc37e4e0f5b03802067c6c4ec","name":"https://git.kernel.org/stable/c/aee687a2fb36974dc37e4e0f5b03802067c6c4ec","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/073f51e39bed354452a057d38a4cc3952727c304","name":"https://git.kernel.org/stable/c/073f51e39bed354452a057d38a4cc3952727c304","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/8f96b78314cff0778a3466e49e5edbc1e459c95c","name":"https://git.kernel.org/stable/c/8f96b78314cff0778a3466e49e5edbc1e459c95c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/7601db4c9d3bd9ab2482a863cb05204154d51ae8","name":"https://git.kernel.org/stable/c/7601db4c9d3bd9ab2482a863cb05204154d51ae8","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/3e326f3bf16506873777444608e8b715aab74a7a","name":"https://git.kernel.org/stable/c/3e326f3bf16506873777444608e8b715aab74a7a","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-90302","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-90302","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 98211489d4147e41b11703e4245846d60b3acce4 7601db4c9d3bd9ab2482a863cb05204154d51ae8 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 98211489d4147e41b11703e4245846d60b3acce4 fb61882e184ee5ca745806bc5b2a8483fa129bca git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 98211489d4147e41b11703e4245846d60b3acce4 a03078a9a2a1c5e4a62f65d389c1f75f9898e21d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 98211489d4147e41b11703e4245846d60b3acce4 cbb4efc2f99d6a8dba09c96b10acad82da982cf9 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 98211489d4147e41b11703e4245846d60b3acce4 8f96b78314cff0778a3466e49e5edbc1e459c95c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 98211489d4147e41b11703e4245846d60b3acce4 aee687a2fb36974dc37e4e0f5b03802067c6c4ec git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 98211489d4147e41b11703e4245846d60b3acce4 073f51e39bed354452a057d38a4cc3952727c304 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 98211489d4147e41b11703e4245846d60b3acce4 3e326f3bf16506873777444608e8b715aab74a7a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2.6.16","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 2.6.16 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.270 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.221 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.188 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.157 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.110 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.52 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.2.6 7.2.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["fs/ocfs2/cluster/heartbeat.c","fs/ocfs2/cluster/heartbeat.h","fs/ocfs2/cluster/nodemanager.c","fs/ocfs2/cluster/tcp.c","fs/ocfs2/cluster/tcp.h"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"7601db4c9d3bd9ab2482a863cb05204154d51ae8","status":"affected","version":"98211489d4147e41b11703e4245846d60b3acce4","versionType":"git"},{"lessThan":"fb61882e184ee5ca745806bc5b2a8483fa129bca","status":"affected","version":"98211489d4147e41b11703e4245846d60b3acce4","versionType":"git"},{"lessThan":"a03078a9a2a1c5e4a62f65d389c1f75f9898e21d","status":"affected","version":"98211489d4147e41b11703e4245846d60b3acce4","versionType":"git"},{"lessThan":"cbb4efc2f99d6a8dba09c96b10acad82da982cf9","status":"affected","version":"98211489d4147e41b11703e4245846d60b3acce4","versionType":"git"},{"lessThan":"8f96b78314cff0778a3466e49e5edbc1e459c95c","status":"affected","version":"98211489d4147e41b11703e4245846d60b3acce4","versionType":"git"},{"lessThan":"aee687a2fb36974dc37e4e0f5b03802067c6c4ec","status":"affected","version":"98211489d4147e41b11703e4245846d60b3acce4","versionType":"git"},{"lessThan":"073f51e39bed354452a057d38a4cc3952727c304","status":"affected","version":"98211489d4147e41b11703e4245846d60b3acce4","versionType":"git"},{"lessThan":"3e326f3bf16506873777444608e8b715aab74a7a","status":"affected","version":"98211489d4147e41b11703e4245846d60b3acce4","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/ocfs2/cluster/heartbeat.c","fs/ocfs2/cluster/heartbeat.h","fs/ocfs2/cluster/nodemanager.c","fs/ocfs2/cluster/tcp.c","fs/ocfs2/cluster/tcp.h"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"2.6.16"},{"lessThan":"2.6.16","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.270","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.221","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.188","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.157","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.110","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.52","versionType":"semver"},{"lessThanOrEqual":"7.2.*","status":"unaffected","version":"7.2.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.3-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.270","versionStartIncluding":"2.6.16","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.221","versionStartIncluding":"2.6.16","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.188","versionStartIncluding":"2.6.16","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.157","versionStartIncluding":"2.6.16","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.110","versionStartIncluding":"2.6.16","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.52","versionStartIncluding":"2.6.16","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.2.6","versionStartIncluding":"2.6.16","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3-rc1","versionStartIncluding":"2.6.16","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: synchronize heartbeat callbacks with o2net teardown\n\nPatch series \"ocfs2: harden heartbeat teardown races\".\n\nThis series fixes two OCFS2 heartbeat/o2net teardown races found by\nKASAN.\n\n\nThis patch (of 2):\n\nHeartbeat callbacks stay registered while configfs local-node teardown\nenters o2net_stop_listening().  A node-down event can still run through\no2net_disconnect_node() and o2net_set_nn_state() while teardown is\ndestroying o2net_wq, so the later queue/flush operations can hit a dead\nworkqueue.  KASAN has caught this as a slab-use-after-free in\n__queue_work() with the call chain:\n\nKASAN slab-use-after-free in __queue_work+0x56/0xa90\nRead of size 4\nCall trace:\n  dump_stack_lvl+0x66/0xa0\n  print_report+0xce/0x630\n  __queue_work+0x56/0xa90\n  srso_alias_return_thunk+0x5/0xfbef5\n  __virt_addr_valid+0x19f/0x330\n  kasan_report+0xe0/0x110\n  __queue_delayed_work+0x58/0x1e0\n  queue_delayed_work_on+0xb4/0xc0\n  o2net_set_nn_state+0x467/0x840\n  o2net_disconnect_node+0x7b/0xe0\n  o2net_hb_node_down_cb+0x54/0x60\n  o2hb_run_event_list+0x236/0x2d0\n  o2hb_check_slot+0xad4/0xbc0\n  lock_release+0xc8/0x290\n  o2hb_check_slot+0x9ea/0xbc0\n  trace_hardirqs_on+0x18/0x130\n  o2hb_do_disk_heartbeat+0x646/0xb30 (fs/ocfs2/cluster/heartbeat.c:1079)\n  __lock_acquire+0x466/0x2260\n  lockdep_hardirqs_on_prepare+0xea/0x1a0\n  ktime_get_with_offset+0xe9/0x230\n  o2hb_thread+0x14e/0x770\n  kthread+0x1ad/0x1f0\n  ret_from_fork+0x3c9/0x540\n  __switch_to+0x2e9/0x730\n  ret_from_fork_asm+0x1a/0x30\nAllocated by task stack:\n  kasan_save_stack+0x33/0x60\n  kasan_save_track+0x14/0x30\n  __kasan_kmalloc+0xaa/0xb0\n  __kmalloc_noprof+0x292/0x760\n  __alloc_workqueue+0x736/0xc60\n  alloc_workqueue_noprof+0xb1/0x110\n  o2net_start_listening+0xe5/0x430\n  o2nm_node_local_store+0x184/0x310\n  configfs_write_iter+0x18a/0x210\n  vfs_write+0x469/0x810\n  ksys_write+0xd2/0x170\n  do_syscall_64+0x115/0x6a0 (arch/x86/entry/syscall_64.c:87)\n  entry_SYSCALL_64_after_hwframe+0x77/0x7f\nFreed by task stack:\n  kasan_save_stack+0x33/0x60\n  kasan_save_track+0x14/0x30\n  kasan_save_free_info+0x3b/0x60\n  __kasan_slab_free+0x5f/0x80\n  kfree+0x313/0x590\n  rcu_core+0x4f4/0x1320\n  handle_softirqs+0x156/0x660\n\nqueue_delayed_work_on\no2net_set_nn_state\no2net_disconnect_node\no2net_hb_node_down_cb\no2hb_run_event_list\n\nKeep heartbeat callbacks registered so quorum state still tracks node\nstate, but stop them from driving o2net reconnect/disconnect work once\nlocal teardown starts. Mark the transport offline before destroying\no2net_wq, wait for any in-flight heartbeat callback to finish, and delay\nbring-up replay until the new local node is published through\no2nm_this_node().\n\nThe replay also has to stay serialized with heartbeat callback delivery.\nOtherwise a live-node snapshot can be copied, a real hb_down callback\ncan install -ENOTCONN for a peer, and the stale replay can call\no2net_hb_node_up() for that same peer and queue reconnect work even\nthough heartbeat is already down.\n\nThe buggy scenario involves two paths, with each column showing the order\nwithin that path:\n\nlocal-node teardown:                 heartbeat node-down callback:\n1. configfs local-off enters         1. o2hb_run_event_list() invokes\n   o2net_stop_listening().              o2net_hb_node_down_cb().\n2. teardown heads for                2. the callback reaches\n   destroy_workqueue(o2net_wq).         o2net_disconnect_node() and\n                                        o2net_set_nn_state().\n3. teardown destroys and NULLs       3. the callback flushes or queues\n   o2net_wq.                            work through o2net_wq."}],"providerMetadata":{"dateUpdated":"2026-09-17T16:08:25.808Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/7601db4c9d3bd9ab2482a863cb05204154d51ae8"},{"url":"https://git.kernel.org/stable/c/fb61882e184ee5ca745806bc5b2a8483fa129bca"},{"url":"https://git.kernel.org/stable/c/a03078a9a2a1c5e4a62f65d389c1f75f9898e21d"},{"url":"https://git.kernel.org/stable/c/cbb4efc2f99d6a8dba09c96b10acad82da982cf9"},{"url":"https://git.kernel.org/stable/c/8f96b78314cff0778a3466e49e5edbc1e459c95c"},{"url":"https://git.kernel.org/stable/c/aee687a2fb36974dc37e4e0f5b03802067c6c4ec"},{"url":"https://git.kernel.org/stable/c/073f51e39bed354452a057d38a4cc3952727c304"},{"url":"https://git.kernel.org/stable/c/3e326f3bf16506873777444608e8b715aab74a7a"}],"title":"ocfs2: synchronize heartbeat callbacks with o2net teardown","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-90302","datePublished":"2026-09-17T16:08:25.808Z","dateReserved":"2026-09-11T19:38:34.799Z","dateUpdated":"2026-09-17T16:08:25.808Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-09-17 17:17:27","lastModifiedDate":"2026-09-17 17:17:27","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"90302","Ordinal":"1","Title":"ocfs2: synchronize heartbeat callbacks with o2net teardown","CVE":"CVE-2026-90302","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"90302","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: synchronize heartbeat callbacks with o2net teardown\n\nPatch series \"ocfs2: harden heartbeat teardown races\".\n\nThis series fixes two OCFS2 heartbeat/o2net teardown races found by\nKASAN.\n\n\nThis patch (of 2):\n\nHeartbeat callbacks stay registered while configfs local-node teardown\nenters o2net_stop_listening().  A node-down event can still run through\no2net_disconnect_node() and o2net_set_nn_state() while teardown is\ndestroying o2net_wq, so the later queue/flush operations can hit a dead\nworkqueue.  KASAN has caught this as a slab-use-after-free in\n__queue_work() with the call chain:\n\nKASAN slab-use-after-free in __queue_work+0x56/0xa90\nRead of size 4\nCall trace:\n  dump_stack_lvl+0x66/0xa0\n  print_report+0xce/0x630\n  __queue_work+0x56/0xa90\n  srso_alias_return_thunk+0x5/0xfbef5\n  __virt_addr_valid+0x19f/0x330\n  kasan_report+0xe0/0x110\n  __queue_delayed_work+0x58/0x1e0\n  queue_delayed_work_on+0xb4/0xc0\n  o2net_set_nn_state+0x467/0x840\n  o2net_disconnect_node+0x7b/0xe0\n  o2net_hb_node_down_cb+0x54/0x60\n  o2hb_run_event_list+0x236/0x2d0\n  o2hb_check_slot+0xad4/0xbc0\n  lock_release+0xc8/0x290\n  o2hb_check_slot+0x9ea/0xbc0\n  trace_hardirqs_on+0x18/0x130\n  o2hb_do_disk_heartbeat+0x646/0xb30 (fs/ocfs2/cluster/heartbeat.c:1079)\n  __lock_acquire+0x466/0x2260\n  lockdep_hardirqs_on_prepare+0xea/0x1a0\n  ktime_get_with_offset+0xe9/0x230\n  o2hb_thread+0x14e/0x770\n  kthread+0x1ad/0x1f0\n  ret_from_fork+0x3c9/0x540\n  __switch_to+0x2e9/0x730\n  ret_from_fork_asm+0x1a/0x30\nAllocated by task stack:\n  kasan_save_stack+0x33/0x60\n  kasan_save_track+0x14/0x30\n  __kasan_kmalloc+0xaa/0xb0\n  __kmalloc_noprof+0x292/0x760\n  __alloc_workqueue+0x736/0xc60\n  alloc_workqueue_noprof+0xb1/0x110\n  o2net_start_listening+0xe5/0x430\n  o2nm_node_local_store+0x184/0x310\n  configfs_write_iter+0x18a/0x210\n  vfs_write+0x469/0x810\n  ksys_write+0xd2/0x170\n  do_syscall_64+0x115/0x6a0 (arch/x86/entry/syscall_64.c:87)\n  entry_SYSCALL_64_after_hwframe+0x77/0x7f\nFreed by task stack:\n  kasan_save_stack+0x33/0x60\n  kasan_save_track+0x14/0x30\n  kasan_save_free_info+0x3b/0x60\n  __kasan_slab_free+0x5f/0x80\n  kfree+0x313/0x590\n  rcu_core+0x4f4/0x1320\n  handle_softirqs+0x156/0x660\n\nqueue_delayed_work_on\no2net_set_nn_state\no2net_disconnect_node\no2net_hb_node_down_cb\no2hb_run_event_list\n\nKeep heartbeat callbacks registered so quorum state still tracks node\nstate, but stop them from driving o2net reconnect/disconnect work once\nlocal teardown starts. Mark the transport offline before destroying\no2net_wq, wait for any in-flight heartbeat callback to finish, and delay\nbring-up replay until the new local node is published through\no2nm_this_node().\n\nThe replay also has to stay serialized with heartbeat callback delivery.\nOtherwise a live-node snapshot can be copied, a real hb_down callback\ncan install -ENOTCONN for a peer, and the stale replay can call\no2net_hb_node_up() for that same peer and queue reconnect work even\nthough heartbeat is already down.\n\nThe buggy scenario involves two paths, with each column showing the order\nwithin that path:\n\nlocal-node teardown:                 heartbeat node-down callback:\n1. configfs local-off enters         1. o2hb_run_event_list() invokes\n   o2net_stop_listening().              o2net_hb_node_down_cb().\n2. teardown heads for                2. the callback reaches\n   destroy_workqueue(o2net_wq).         o2net_disconnect_node() and\n                                        o2net_set_nn_state().\n3. teardown destroys and NULLs       3. the callback flushes or queues\n   o2net_wq.                            work through o2net_wq.","Type":"Description","Title":"ocfs2: synchronize heartbeat callbacks with o2net teardown"}]}}}