summaryrefslogtreecommitdiff
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2014-11-09 08:38:39 +0000
committerChris Mason <clm@fb.com>2014-11-20 17:20:07 -0800
commit5f5bc6b1e2d5a6f827bc860ef2dc5b6f365d1339 (patch)
treed17afbf1a528b003f34d43cf557d2da62a7a6b1b /include/linux/timerqueue.h
parentc7bc6319c59cc791743cf1b6e98f86be69444495 (diff)
downloadkernel-5f5bc6b1e2d5a6f827bc860ef2dc5b6f365d1339.tar.gz
Btrfs: make xattr replace operations atomic
Replacing a xattr consists of doing a lookup for its existing value, delete the current value from the respective leaf, release the search path and then finally insert the new value. This leaves a time window where readers (getxattr, listxattrs) won't see any value for the xattr. Xattrs are used to store ACLs, so this has security implications. This change also fixes 2 other existing issues which were: *) Deleting the old xattr value without verifying first if the new xattr will fit in the existing leaf item (in case multiple xattrs are packed in the same item due to name hash collision); *) Returning -EEXIST when the flag XATTR_CREATE is given and the xattr doesn't exist but we have have an existing item that packs muliple xattrs with the same name hash as the input xattr. In this case we should return ENOSPC. A test case for xfstests follows soon. Thanks to Alexandre Oliva for reporting the non-atomicity of the xattr replace implementation. Reported-by: Alexandre Oliva <oliva@gnu.org> Signed-off-by: Filipe Manana <fdmanana@suse.com> Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
/drivers/net/wireless/intel/iwlwifi/mvm/d3.c?id=4635e6eaa0fec321409242f99cccedbaf486c5e8'>wifi: iwlwifi: mvm: support new versions of the wowlan APIsEmmanuel Grumbach 2024-10-31Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski 2024-10-25wifi: iwlwifi: mvm: Use the sync timepoint API in suspendDaniel Gabay 2024-10-23wifi: iwlwifi: fw: add an error table status getterYedidya Benshimol 2024-09-27[tree-wide] finally take no_llseek outAl Viro 2024-08-26wifi: iwlwifi: mvm: fix hibernationEmmanuel Grumbach 2024-06-26wifi: iwlwifi: support fast resumeEmmanuel Grumbach 2024-05-29wifi: iwlwifi: mvm: Handle BIGTK cipher in kek_kck cmdYedidya Benshimol 2024-05-29wifi: iwlwifi: mvm: d3: fix WoWLAN command version lookupYedidya Benshimol 2024-05-06wifi: iwlwifi: mvm: Block EMLSR when a p2p/softAP vif is activeYedidya Benshimol 2024-04-19wifi: iwlwifi: mvm: disable EMLSR when we suspend with wowlanYedidya Benshimol 2024-04-19wifi: iwlwifi: mvm: Implement new link selection algorithmMiri Korenblit 2024-04-03Merge tag 'wireless-next-2024-04-03' of git://git.kernel.org/pub/scm/linux/ke...Jakub Kicinski 2024-03-25wifi: iwlwifi: mvm: support wowlan notif version 4Shaul Triebitz 2024-03-25wifi: iwlwifi: mvm: skip keys of other linksShaul Triebitz 2024-03-25wifi: iwlwifi: mvm: stop assuming sta id 0 in d3Shaul Triebitz 2024-03-25wifi: iwlwifi: mvm: fix the sta id in offloadShaul Triebitz 2024-03-25wifi: iwlwifi: mvm: consider having one active linkShaul Triebitz 2024-03-08Merge tag 'wireless-next-2024-03-08' of git://git.kernel.org/pub/scm/linux/ke...Jakub Kicinski 2024-03-04wifi: mac80211: add link id to ieee80211_gtk_rekey_add()Shaul Triebitz 2024-02-29Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/netJakub Kicinski 2024-02-21wifi: iwlwifi: mvm: unlock mvm if there is no primary linkBenjamin Berg 2024-02-21wifi: iwlwifi: mvm: support wider-bandwidth OFDMAJohannes Berg 2024-02-21wifi: iwlwifi: mvm: ensure offloading TID queue existsBenjamin Berg 2024-02-12wifi: iwlwifi: don't use TRUE/FALSE with boolJohannes Berg 2024-02-12wifi: iwlwifi: iwlmvm: handle unprotected deauth/disassoc in d3Shaul Triebitz 2024-02-08wifi: iwlwifi: mvm: don't set replay counters to 0xffJohannes Berg 2024-02-08wifi: iwlwifi: mvm: avoid garbage iPNShaul Triebitz 2024-02-08wifi: iwlwifi: mvm: always update keys in D3 exitShaul Triebitz 2024-02-08wifi: iwlwifi: mvm: limit pseudo-D3 to 60 secondsJohannes Berg 2024-02-08wifi: iwlwifi: mvm: fix the key PN indexShaul Triebitz 2024-02-02wifi: iwlwifi: mvm: d3: implement suspend with MLOJohannes Berg 2024-02-02wifi: iwlwifi: mvm: d3: fix IPN byte orderJohannes Berg 2024-02-02wifi: iwlwifi: mvm: d3: disconnect on GTK rekey failureJohannes Berg 2023-12-21wifi: iwlwifi: mvm: d3: avoid intermediate/early mutex unlockJohannes Berg 2023-10-23wifi: iwlwifi: mvm: fix regdb initializationGregory Greenman 2023-10-23wifi: iwlwifi: mvm: update IGTK in mvmvif upon D3 resumeYedidya Benshimol